summaryrefslogtreecommitdiff
path: root/network/dothost/dothost.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/dothost/dothost.SlackBuild')
-rw-r--r--network/dothost/dothost.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/network/dothost/dothost.SlackBuild b/network/dothost/dothost.SlackBuild
index 7f5fc755a4..fdd763df5e 100644
--- a/network/dothost/dothost.SlackBuild
+++ b/network/dothost/dothost.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dothost
-# Copyright 2018 Donald Cooley South Haven, Indiana USA
+# Copyright 2018-2020 Donald Cooley South Haven, Indiana USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dothost
-VERSION=${VERSION:-0.1}
+VERSION=${VERSION:-0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,17 +55,20 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Install dothost binary in /opt
-mkdir -p $PKG/opt/dothost
-cp dothost $PKG/opt/dothost/dothost
+# Install to /usr instead of /usr/local
+sed -i 's_/usr/local_/usr_' Makefile
-# Link dothost binary to /usr/bin
-mkdir -p $PKG/usr/bin
-ln -s /opt/dothost/dothost $PKG/usr/bin/dothost
+# Install man pages into /usr/man instead of /usr/share/man
+sed -i 's_/share/man_/man_' Makefile
+
+make
+make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild