aboutsummaryrefslogtreecommitdiff
path: root/network/gophernicus
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2017-08-05 11:43:45 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:58:42 +0700
commit658f7cb58b80ff656bcf2aed92e887e37f4edb26 (patch)
tree20ec2c2eb7f03232d42996aa35013ffe5c6d3247 /network/gophernicus
parentff1b125563e1e681537d7e835d5e4a1cdcd31d51 (diff)
network/gophernicus: Updated for version 2.5.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/gophernicus')
-rw-r--r--network/gophernicus/Makefile.patch35
-rw-r--r--network/gophernicus/gophernicus.SlackBuild4
-rw-r--r--network/gophernicus/gophernicus.info6
3 files changed, 33 insertions, 12 deletions
diff --git a/network/gophernicus/Makefile.patch b/network/gophernicus/Makefile.patch
index b2a5db3e6d9cd..2de81cdc9e756 100644
--- a/network/gophernicus/Makefile.patch
+++ b/network/gophernicus/Makefile.patch
@@ -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:
diff --git a/network/gophernicus/gophernicus.SlackBuild b/network/gophernicus/gophernicus.SlackBuild
index 7f5336162294d..fea7b7593ad67 100644
--- a/network/gophernicus/gophernicus.SlackBuild
+++ b/network/gophernicus/gophernicus.SlackBuild
@@ -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
diff --git a/network/gophernicus/gophernicus.info b/network/gophernicus/gophernicus.info
index 2a1c3e3909534..eb0dcd54cce85 100644
--- a/network/gophernicus/gophernicus.info
+++ b/network/gophernicus/gophernicus.info
@@ -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=""