slackbuilds_ponce/network/gophernicus/Makefile.patch

44 lines
1.2 KiB
Diff
Raw Normal View History

--- 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: