mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
network/dothost: Updated for version 0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6df21f0342
commit
9e8aa27f08
4 changed files with 28 additions and 21 deletions
|
@ -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 |
|
||||
+-------------------+
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue