mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
658f7cb58b
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
64 lines
1.9 KiB
Diff
64 lines
1.9 KiB
Diff
diff -Naur gophernicus-2.5.orig/Makefile gophernicus-2.5/Makefile
|
|
--- gophernicus-2.5.orig/Makefile 2017-06-24 17:54:48.000000000 +0200
|
|
+++ gophernicus-2.5/Makefile 2017-08-05 11:37:14.145035221 +0200
|
|
@@ -17,10 +17,10 @@
|
|
DOCS = LICENSE README INSTALL TODO ChangeLog README.Gophermap gophertag
|
|
|
|
INSTALL = PATH=$$PATH:/usr/sbin ./install-sh -o 0 -g 0
|
|
-DESTDIR = /usr
|
|
+DESTDIR =
|
|
OSXDEST = /usr/local
|
|
-SBINDIR = $(DESTDIR)/sbin
|
|
-DOCDIR = $(DESTDIR)/share/doc/$(PACKAGE)
|
|
+SBINDIR = $(DESTDIR)/usr/sbin
|
|
+DOCDIR = $(DESTDIR)/usr/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
ROOT = /var/gopher
|
|
OSXROOT = /Library/GopherServer
|
|
@@ -62,7 +62,7 @@
|
|
generic: $(BINARY)
|
|
|
|
withwrap:
|
|
- $(MAKE) EXTRA_CFLAGS="-DHAVE_LIBWRAP" EXTRA_LDFLAGS="-lwrap" $(BINARY)
|
|
+ $(MAKE) EXTRA_CFLAGS="-DHAVE_LIBWRAP" EXTRA_LDFLAGS="-lwrap -lnsl" $(BINARY)
|
|
|
|
|
|
#
|
|
@@ -86,7 +86,7 @@
|
|
$(NAME).c: $(NAME).h $(HEADERS)
|
|
|
|
$(BINARY): $(OBJECTS)
|
|
- $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJECTS) -o $@
|
|
+ $(CC) $(LDFLAGS) $(OBJECTS) $(EXTRA_LDFLAGS) -o $@
|
|
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $(EXTRA_CFLAGS) -DVERSION="\"$(VERSION)\"" -DCODENAME="\"$(CODENAME)\"" -DDEFAULT_ROOT="\"$(ROOT)\"" $< -o $@
|
|
@@ -179,11 +179,10 @@
|
|
@echo
|
|
|
|
install-root:
|
|
- if [ ! -d "$(ROOT)" -o ! -f "$(ROOT)/$(MAP)" ]; then \
|
|
- mkdir -p $(ROOT); \
|
|
- $(INSTALL) -m 644 $(MAP) $(ROOT); \
|
|
- ln -s $(DOCDIR) $(ROOT)/docs; \
|
|
- fi
|
|
+ @echo
|
|
+ mkdir -p $(DESTDIR)/$(ROOT)
|
|
+ $(INSTALL) -m 644 $(MAP) $(DESTDIR)/$(ROOT)
|
|
+ ln -s /usr/doc/$(PACKAGE)-$(VERSION) $(DESTDIR)/$(ROOT)/docs
|
|
@echo
|
|
|
|
install-inetd:
|
|
@@ -201,10 +200,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:
|