diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-24 07:27:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-25 07:25:07 +0700 |
commit | 1ceb24dc5e7428bf3a98f2346935bac3efcaa79d (patch) | |
tree | 3289384e3a91272c13171c750e6f3ac020aac5f5 /system/apachetop/apachetop.SlackBuild | |
parent | 8e2a719822e2abfc020eeaa3af2e179b76fe5835 (diff) |
system/apachetop: Updated for version 0.15.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/apachetop/apachetop.SlackBuild')
-rw-r--r-- | system/apachetop/apachetop.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/system/apachetop/apachetop.SlackBuild b/system/apachetop/apachetop.SlackBuild index 9dcfd7b091da5..e7a3a26f91f8f 100644 --- a/system/apachetop/apachetop.SlackBuild +++ b/system/apachetop/apachetop.SlackBuild @@ -10,8 +10,8 @@ # See http://sam.zoy.org/wtfpl/COPYING for more details. PRGNAM=apachetop -VERSION=${VERSION:-0.12.6} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.15.6} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,10 +51,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 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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Apply a patch by Aaron McClimont to allow writing statistics to a file. # For like MRTG to use (or Cricket, Cacti, Torrus, whatever). @@ -63,9 +63,6 @@ patch -p0 < $CWD/apachetop.outputfile.patch # Add mension of the feature added above to the manpage. patch -p0 < $CWD/apachetop.manpage.diff -# Add patch from Fedora Project to fix buffer overflow possibility -patch -p1 < $CWD/apachetop-0.12.6-maxpathlen.patch - # Add --with-adns=<path> if you have adns installed and want ApacheTop support # Note: The log to parce can be overwritten at runtime, using the '-f' flag. CXXFLAGS="$SLKCFLAGS" \ @@ -80,18 +77,15 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \ - | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +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 -( cd $PKG/usr/man || exit 1 - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a [A-Z][A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.$TAG mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |