diff options
Diffstat (limited to 'source/n/tcpdump/tcpdump.SlackBuild')
-rwxr-xr-x | source/n/tcpdump/tcpdump.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/n/tcpdump/tcpdump.SlackBuild b/source/n/tcpdump/tcpdump.SlackBuild index 8e38a7f3d..8442d178f 100755 --- a/source/n/tcpdump/tcpdump.SlackBuild +++ b/source/n/tcpdump/tcpdump.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2018, 2021 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=tcpdump VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -62,7 +62,7 @@ cd $TMP rm -rf tcpdump-$VERSION # To (try to) avoid weird errors, take an axe to this: -rm -rf $TMP/libpcap-?.?.? +rm -rf $TMP/libpcap-?.*.? tar xvf $CWD/tcpdump-$VERSION.tar.?z || exit 1 cd tcpdump-$VERSION || exit 1 @@ -85,7 +85,7 @@ make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 # Strange, two identical files: -( cd $PKG/usr/sbin +( cd $PKG/usr/bin rm -f tcpdump ln -s tcpdump.$VERSION tcpdump ) || exit 1 |