summaryrefslogtreecommitdiffstats
path: root/source/n/iptraf-ng/iptraf-ng.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/iptraf-ng/iptraf-ng.SlackBuild')
-rwxr-xr-xsource/n/iptraf-ng/iptraf-ng.SlackBuild24
1 files changed, 6 insertions, 18 deletions
diff --git a/source/n/iptraf-ng/iptraf-ng.SlackBuild b/source/n/iptraf-ng/iptraf-ng.SlackBuild
index eee74671e..a96c55c7f 100755
--- a/source/n/iptraf-ng/iptraf-ng.SlackBuild
+++ b/source/n/iptraf-ng/iptraf-ng.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2013, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2013, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=iptraf-ng
-VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -66,9 +66,11 @@ PKG=$TMP/package-$PKGNAM
cd $TMP
rm -rf $PKG
rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
+tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1
cd $PKGNAM-$VERSION
+zcat $CWD/iptraf-ng.paths.diff.gz | patch -p1 --verbose || exit 1
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -76,29 +78,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
-# Configure:
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sbindir=/usr/sbin \
- --sysconfdir=/etc \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --disable-static \
- --build=$ARCH-slackware-linux || exit 1
-
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Make symlinks to the old names:
( cd $PKG/usr/sbin
ln -sf iptraf-ng iptraf
- ln -sf rvnamed-ng rvnamed
)
( cd $PKG/usr/man/man8
ln -sf iptraf-ng.8 iptraf.8
- ln -sf rvnamed-ng.8 rvnamed.8
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \