network/ncp: Fix npoll and npush symlinks.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-03 21:44:09 -05:00 committed by Willy Sudiarto Raharjo
parent bd9ea97789
commit bdfe83733b
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -6,13 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230103 bkw: BUILD=3, how did I miss broken symlinks?
# 20220207 bkw: BUILD=2, libowfat changed its dir structure.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ncp
VERSION=${VERSION:-1.2.4}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -71,6 +72,12 @@ make install PREFIX=$PKG/usr
gzip $PKG/usr/man/man1/*.1
ln -s npush.1.gz $PKG/usr/man/man1/npoll.1.gz
# 20230103 bkw: grrr. no DESTDIR support in the Makefile, so we get
# broken symlinks.
rm -f $PKG/usr/bin/{npush,npoll}
ln -s ncp $PKG/usr/bin/npush
ln -s ncp $PKG/usr/bin/npoll
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild