diff options
Diffstat (limited to 'network/gophernicus/Makefile.patch')
-rw-r--r-- | network/gophernicus/Makefile.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/network/gophernicus/Makefile.patch b/network/gophernicus/Makefile.patch new file mode 100644 index 0000000000..b2a5db3e6d --- /dev/null +++ b/network/gophernicus/Makefile.patch @@ -0,0 +1,43 @@ +--- Makefile.orig 2012-12-02 09:55:11.000000000 +0200 ++++ Makefile 2012-12-10 13:05:11.000000000 +0200 +@@ -16,9 +16,9 @@ + DOCS = LICENSE README INSTALL TODO ChangeLog README.Gophermap gophertag + + INSTALL = PATH=$$PATH:/usr/sbin ./install-sh -o 0 -g 0 +-DESTDIR = /usr +-SBINDIR = $(DESTDIR)/sbin +-DOCDIR = $(DESTDIR)/share/doc/$(PACKAGE) ++DESTDIR = ++SBINDIR = $(DESTDIR)/usr/sbin ++DOCDIR = $(DESTDIR)/usr/doc/$(PACKAGE)-$(VERSION) + + ROOT = /var/gopher + OSXROOT = /Library/GopherServer +@@ -144,11 +144,9 @@ + @echo + + install-root: +- if [ ! -d "$(ROOT)" ]; then \ +- mkdir -p $(ROOT); \ +- $(INSTALL) -m 644 $(MAP) $(ROOT); \ +- ln -s $(DOCDIR) $(ROOT)/docs; \ +- fi ++ mkdir -p $(DESTDIR)/$(ROOT) ++ $(INSTALL) -m 644 $(MAP) $(DESTDIR)/$(ROOT) ++ ln -s /usr/doc/$(PACKAGE)-$(VERSION) $(DESTDIR)/$(ROOT)/docs + @echo + + install-inetd: +@@ -166,10 +164,8 @@ + @echo + + install-xinetd: +- if [ -d "$(XINETD)" -a ! -f "$(XINETD)/$(NAME)" ]; then \ +- sed -e "s/@HOSTNAME@/`hostname`/g" $(NAME).xinetd > $(XINETD)/$(NAME); \ +- [ -x /sbin/service ] && /sbin/service xinetd reload; \ +- fi ++ mkdir -p $(DESTDIR)/$(XINETD) ++ sed -e "s/@HOSTNAME@/`hostname`/g" $(NAME).xinetd > $(DESTDIR)/$(XINETD)/$(NAME).new + @echo + + install-osx: |