aboutsummaryrefslogtreecommitdiff
path: root/network/gophernicus
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-11 02:53:51 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:52:24 +0700
commit5084926e25107b6bc50bd90c50f179f24412d68a (patch)
tree8a00f327651799b5d742231fa6f8e56596b07bb6 /network/gophernicus
parentae6d3087723af026f227605f1beb51d6a5e6b5b2 (diff)
network/gophernicus: Updated for version 3.1.1.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/gophernicus')
-rw-r--r--network/gophernicus/README12
-rw-r--r--network/gophernicus/gophernicus.SlackBuild31
-rw-r--r--network/gophernicus/gophernicus.info6
-rw-r--r--network/gophernicus/slack-desc2
4 files changed, 30 insertions, 21 deletions
diff --git a/network/gophernicus/README b/network/gophernicus/README
index 1e1c73cb2eb6..13fb2bd316b9 100644
--- a/network/gophernicus/README
+++ b/network/gophernicus/README
@@ -1,13 +1,13 @@
gophernicus (gopher server)
Gophernicus is a modern full-featured (and hopefully) secure gopher
-daemon for inetd.
+daemon for inetd or xinetd.
-You may want to add this line to your /etc/inetd.conf and then restart
-or kill -HUP the inetd process:
+To run under inetd, add this line to your /etc/inetd.conf and then
+restart or kill -HUP the inetd process:
gopher stream tcp nowait nobody /usr/sbin/in.gophernicus in.gophernicus -h <your-hostname>
-Alternatively, gophernicus can be configured to run under xinetd.
-This is done automatically when xinetd is present on the system at
-build time.
+To run under xinetd, just restart or kill -HUP the xinetd process
+after installing the package. This assumes you already have xinetd
+installed and running.
diff --git a/network/gophernicus/gophernicus.SlackBuild b/network/gophernicus/gophernicus.SlackBuild
index 9414665e27a9..8f17d4338214 100644
--- a/network/gophernicus/gophernicus.SlackBuild
+++ b/network/gophernicus/gophernicus.SlackBuild
@@ -23,6 +23,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20210911 bkw: update for v3.1.1.
# 20180722 bkw:
# - Take over maintenance.
# - Update for latest upstream 'rolling release' version.
@@ -35,7 +36,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gophernicus
-VERSION=${VERSION:-2.5v101}
+VERSION=${VERSION:-3.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -48,9 +49,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -79,7 +77,7 @@ set -e
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
+mkdir -p $TMP $PKG $OUTPUT $PKG/etc
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
@@ -87,15 +85,26 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . -perm /111 -exec chmod 755 {} + -o -exec chmod 644 {} +
-patch -p1 < $CWD/Makefile.patch
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfig=/etc/$PRGNAM \
+ --mandir=/usr/man \
+ --os=linux \
+ --listener=inetd,xinetd
-# 'make install' strips the binary already.
-make all CFLAGS="$SLKCFLAGS"
-make install DOCDIR="$PKGDOC" DESTDIR=$PKG
+make LDFLAGS="-lnsl"
+make install DESTDIR="$PKG"
-# Don't need this:
-rm -f $PKGDOC/INSTALL
+# binary already stripped
+gzip -9 $PKG/usr/man/man?/*.*
+# do not ship this!
+rm -rf $PKG/etc/inetd.conf
+
+mkdir -p $PKGDOC
+cp -a LIC* README* change* gophermap.sample gophertag $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/gophernicus/gophernicus.info b/network/gophernicus/gophernicus.info
index a9f15b99e833..c9a84081b9d3 100644
--- a/network/gophernicus/gophernicus.info
+++ b/network/gophernicus/gophernicus.info
@@ -1,8 +1,8 @@
PRGNAM="gophernicus"
-VERSION="2.5v101"
+VERSION="3.1.1"
HOMEPAGE="https://github.com/kimholviala/gophernicus"
-DOWNLOAD="https://slackware.uk/~urchlay/src/gophernicus-2.5v101.tar.xz"
-MD5SUM="a95b9c71bf67581b66703d979e5e3789"
+DOWNLOAD="https://github.com/gophernicus/gophernicus/releases/download/3.1.1/gophernicus-3.1.1.tar.xz"
+MD5SUM="4282ec7115a86205fa09f8099432ac1f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/network/gophernicus/slack-desc b/network/gophernicus/slack-desc
index 07356b2de3ee..510b70c3a8e8 100644
--- a/network/gophernicus/slack-desc
+++ b/network/gophernicus/slack-desc
@@ -9,7 +9,7 @@
gophernicus: gophernicus (gopher server)
gophernicus:
gophernicus: Gophernicus is a modern full-featured (and hopefully) secure gopher
-gophernicus: daemon for inetd.
+gophernicus: daemon for inetd or xinetd.
gophernicus:
gophernicus: Homepage: gopher://gophernicus.org
gophernicus: or: https://github.com/kimholviala/gophernicus