summaryrefslogtreecommitdiff
path: root/network/mrtg/mrtg.SlackBuild
diff options
context:
space:
mode:
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