diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2020-04-10 00:47:35 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-10 00:47:35 +0700 |
commit | 1d0a0a85e1142045ed969425c550165ace30fd7d (patch) | |
tree | 32af674afb2d8741ff329051a0888085d811e7b7 /network/netcat-openbsd/netcat-openbsd.SlackBuild | |
parent | ca256f567049aebae83bcb33b7eb92f10d4f265d (diff) | |
download | slackbuilds-1d0a0a85e1142045ed969425c550165ace30fd7d.tar.gz |
network/netcat-openbsd: Updated for version 1.217-1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/netcat-openbsd/netcat-openbsd.SlackBuild')
-rw-r--r-- | network/netcat-openbsd/netcat-openbsd.SlackBuild | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/network/netcat-openbsd/netcat-openbsd.SlackBuild b/network/netcat-openbsd/netcat-openbsd.SlackBuild index 22fa49b298..c36b771854 100644 --- a/network/netcat-openbsd/netcat-openbsd.SlackBuild +++ b/network/netcat-openbsd/netcat-openbsd.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for netcat-openbsd # +# Copyright 2020 Duncan Roe, Melbourne, Australia # Copyright 2020 Donald Cooley, South Haven, Indiana USA # Copyright 2010, 2014 Slax-Dude <jmfl {at} sapo [dot] pt> # All rights reserved. @@ -24,12 +25,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=netcat-openbsd -VERSION=${VERSION:-1.206} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.217_1} +SRCVER=$(echo $VERSION | tr _ -) +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -DEBVER=1 - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -69,9 +69,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM\_$VERSION.orig.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -79,10 +79,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Apply Debian patches -for i in $CWD/patches/* ; do patch -p1 < $i ; done - -make CFLAGS="$SLKCFLAGS -DDEBIAN_VERSION=\"\\\"$DEBVER\\\"\"" +make CFLAGS="$SLKCFLAGS -DNETCAT_VERSION=\"\\\"$VERSION\\\"\"" mkdir -p $PKG/usr/bin/ $PKG/usr/man/man1/ install -s -m 0755 nc $PKG/usr/bin/nc.openbsd @@ -91,6 +88,7 @@ gzip -9c nc.1 > $PKG/usr/man/man1/nc.openbsd.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cp -a changelog copyright README* $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |