network/2ping: Add SlackBuild to doc dir.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-03-31 11:16:26 -04:00 committed by Willy Sudiarto Raharjo
parent d1d3252b0c
commit 5f699a8b0e
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20220331 bkw: BUILD=2, add SlackBuild to doc dir.
# 20210911 bkw: update for v4.5.1.
# 20200805 bkw: update for v4.5.
# 20191130 bkw: update for v4.3.
@ -19,7 +20,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=2ping
VERSION=${VERSION:-4.5.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -72,9 +73,12 @@ fi
mkdir -p $PKG/usr/man/man1
gzip -9c < doc/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/wireshark
cp -a README* COPYING* ChangeLog* doc/*.py doc/*.md $PKG/usr/doc/$PRGNAM-$VERSION
cp -a wireshark/*.pcap $PKG/usr/doc/$PRGNAM-$VERSION/wireshark
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC/wireshark
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
cp -a README* COPYING* ChangeLog* doc/*.py doc/*.md $PKGDOC
cp -a wireshark/*.pcap $PKGDOC/wireshark
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc