network/gophernicus: Updated for version 2.5.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2017-08-05 11:43:45 +02:00 committed by Willy Sudiarto Raharjo
parent 7725f3eb55
commit afdd4b0bf8
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 33 additions and 12 deletions

View file

@ -1,34 +1,55 @@
--- Makefile.orig 2012-12-02 09:55:11.000000000 +0200
+++ Makefile 2012-12-10 13:05:11.000000000 +0200
@@ -16,9 +16,9 @@
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)
+DESTDIR =
+SBINDIR = $(DESTDIR)/usr/sbin
+DOCDIR = $(DESTDIR)/usr/doc/$(PACKAGE)-$(VERSION)
ROOT = /var/gopher
OSXROOT = /Library/GopherServer
@@ -144,11 +144,9 @@
@@ -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)" ]; then \
- 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:
@@ -166,10 +164,8 @@
@@ -201,10 +200,8 @@
@echo
install-xinetd:

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gophernicus
VERSION=${VERSION:-1.7}
VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -64,7 +64,7 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
patch -p0 < $CWD/Makefile.patch
patch -p1 < $CWD/Makefile.patch
make CFLAGS="$SLKCFLAGS" -j1
make install DESTDIR=$PKG

View file

@ -1,8 +1,8 @@
PRGNAM="gophernicus"
VERSION="1.7"
VERSION="2.5"
HOMEPAGE="gopher://gophernicus.org"
DOWNLOAD="https://dl.dropboxusercontent.com/u/11914640/gophernicus-1.7.tar.gz"
MD5SUM="7ec01ac0d4707b8a50d2c36769c2db76"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/gophernicus-2.5.tar.gz"
MD5SUM="53ef0889e90f4fd3eca68914020b422d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""