summaryrefslogtreecommitdiff
path: root/network/mrtg/mrtg.SlackBuild
diff options
context:
space:
mode:
authorUlrich Schaefer <us@ulischaefer.net>2015-05-01 08:17:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-01 08:17:47 +0700
commit77a8aea45db004b694812541973b0dd1c0c650c5 (patch)
tree02f23eaa13ad3978c07595a11bbe8ffe7c578d49 /network/mrtg/mrtg.SlackBuild
parent5d269cae175fcab1b138c8aaa41d02e19f27d04a (diff)
downloadslackbuilds-77a8aea45db004b694812541973b0dd1c0c650c5.tar.gz
network/mrtg: Updated for version 2.17.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/mrtg/mrtg.SlackBuild')
-rw-r--r--network/mrtg/mrtg.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/network/mrtg/mrtg.SlackBuild b/network/mrtg/mrtg.SlackBuild
index 1db8b96ae1..87060d5704 100644
--- a/network/mrtg/mrtg.SlackBuild
+++ b/network/mrtg/mrtg.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=mrtg
VERSION=${VERSION:-2.17.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -46,10 +46,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CPPFLAGS="$SLKCFLAGS" \
@@ -66,6 +66,9 @@ make
make install DESTDIR=$PKG
sed -i "s/lib\${/lib${LIBDIRSUFFIX}\${/" $PKG/usr/bin/mrtg
+sed -i "s/lib\${/lib${LIBDIRSUFFIX}\${/" $PKG/usr/bin/cfgmaker
+sed -i "s/lib\${/lib${LIBDIRSUFFIX}\${/" $PKG/usr/bin/indexmaker
+sed -i "s/lib\${/lib${LIBDIRSUFFIX}\${/" $PKG/usr/bin/mrtg-traffic-sum
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true