aboutsummaryrefslogtreecommitdiff
path: root/network/dothost
diff options
context:
space:
mode:
authorDonald Cooley <chytraeu@sdf.org>2020-02-23 23:49:34 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-23 23:49:34 +0700
commit9e8aa27f08ad78080cf0366974fe706f7d1c41c1 (patch)
treebdc737705783a99bfee36db6e91267bf968f295f /network/dothost
parent6df21f034280181d1047e7df379dae40c3d5dd95 (diff)
network/dothost: Updated for version 0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/dothost')
-rw-r--r--network/dothost/README20
-rw-r--r--network/dothost/dothost.SlackBuild19
-rw-r--r--network/dothost/dothost.info8
-rw-r--r--network/dothost/slack-desc2
4 files changed, 28 insertions, 21 deletions
diff --git a/network/dothost/README b/network/dothost/README
index dfce38298e63..92be91a80f18 100644
--- a/network/dothost/README
+++ b/network/dothost/README
@@ -4,12 +4,16 @@ Perl module also available at slackbuilds.org
Example:
-dothost www.iana.org | graph-easy --as boxart
+dothost www.iana.org | graph-easy --as ascii
- ┌──────────────────┐
- ∨ │
-┌────────────┐ ┏━━━━━━━━━━━━━━┓ ┌───────────────────┐
-│ 192.0.32.8 │ ──> ┃ www.iana.org ┃ ──> │ 2620:0:2d0:200::8 │
-└────────────┘ ┗━━━━━━━━━━━━━━┛ └───────────────────┘
- ∧ │
- └────────────────────┘
+ +-------------------------+
+ v |
+ ##################### +------------+
+ +> # www.iana.org # --> | 192.0.32.8 |
+ | ##################### +------------+
+ | |
+ | |
+ | v
+ | +-------------------+
+ +- | 2620:0:2d0:200::8 |
+ +-------------------+
diff --git a/network/dothost/dothost.SlackBuild b/network/dothost/dothost.SlackBuild
index 7f5fc755a4a8..fdd763df5e8f 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
diff --git a/network/dothost/dothost.info b/network/dothost/dothost.info
index 52d08d53cbd9..d4cfa2b9b965 100644
--- a/network/dothost/dothost.info
+++ b/network/dothost/dothost.info
@@ -1,8 +1,8 @@
PRGNAM="dothost"
-VERSION="0.1"
-HOMEPAGE="http://jwilk.net/software/dothost"
-DOWNLOAD="https://github.com/jwilk/dothost/releases/download/0.1/dothost-0.1.tar.gz"
-MD5SUM="4c1aa7632ede8a65d6037a5b3b922179"
+VERSION="0.2"
+HOMEPAGE="https://jwilk.net/software/dothost"
+DOWNLOAD="https://github.com/jwilk/dothost/releases/download/0.2/dothost-0.2.tar.gz"
+MD5SUM="2f95fb6cd01458b9e848b4fdbe9aba79"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="graph-easy"
diff --git a/network/dothost/slack-desc b/network/dothost/slack-desc
index 9793dfb5b024..69fa54c838e8 100644
--- a/network/dothost/slack-desc
+++ b/network/dothost/slack-desc
@@ -14,6 +14,6 @@ dothost: graph-easy Perl module also available at slackbuilds.org
dothost:
dothost:
dothost:
-dothost: http://jwilk.net/software/dothost
+dothost: https://jwilk.net/software/dothost
dothost:
dothost: