diff options
author | Fridrich von Stauffenberg <cancellor2@gmail.com> | 2012-12-10 12:36:50 +0100 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-11 16:23:05 -0500 |
commit | a842d4dcdb4d59e0f72892b0cde77df70d5f98e8 (patch) | |
tree | 02e40dbda165581efa49d5103a038902e0f1be07 /network/gophernicus/Makefile.patch | |
parent | 84fdbc022238f7aacf6573d61374ba5915ccbc64 (diff) |
network/gophernicus: Added (gopher server).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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 0000000000000..b2a5db3e6d9cd --- /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: |