summaryrefslogtreecommitdiff
path: root/network/ntop/ntop.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2011-09-30 23:02:54 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:24 -0500
commit382ea0feff2814b4d9516da94c53190d84e8ec13 (patch)
tree4d7b08ece37458ca910bf10ea4a77dc42c5aa036 /network/ntop/ntop.SlackBuild
parentcaa704088b18173dfe4c056c97a35859db73cbba (diff)
downloadslackbuilds-382ea0feff2814b4d9516da94c53190d84e8ec13.tar.gz
network/ntop: Updated for version 4.1.0.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/ntop/ntop.SlackBuild')
-rw-r--r--network/ntop/ntop.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/network/ntop/ntop.SlackBuild b/network/ntop/ntop.SlackBuild
index dc3e2c341b..8d1b196740 100644
--- a/network/ntop/ntop.SlackBuild
+++ b/network/ntop/ntop.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for ntop
# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
+# Copyright 2009-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Maintained as of version >= 3.3.10 by Niels Horn <niels.horn@gmail.com>
-# revision date: 2010/08/23
+# revision date: 2011/08/25
PRGNAM=ntop
-VERSION=4.0.1
+VERSION=${VERSION:-4.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -102,10 +102,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --with-tcpwrap \
- --enable-sslwatchdog \
--enable-snmp \
- --enable-i18n \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -124,9 +121,18 @@ fi
mkdir -p $PKG/etc/logrotate.d $PKG/etc/rc.d
install -m 0644 $CWD/$PRGNAM.logrotate $PKG/etc/logrotate.d/$PRGNAM.new
-sed -e "s%@NTOPUSER@%$NTOPUSER%" -e "s%@NTOPGROUP@%$NTOPGROUP%" \
+sed \
+ -e "s%@NTOPUSER@%$NTOPUSER%" \
+ -e "s%@NTOPGROUP@%$NTOPGROUP%" \
$CWD/rc.ntop > $PKG/etc/rc.d/rc.ntop.new
-chmod 0755 $PKG/etc/rc.d/rc.ntop.new
+
+# Rename some data to .new to avoid overwriting existing files
+cd $PKG/etc/$PRGNAM
+ for f in \
+ specialMAC.txt.gz ntop-cert.pem GeoIPASNum.dat GeoLiteCity.dat etter.finger.os.gz oui.txt.gz; do
+ mv $f $f.new
+ done
+cd -
# Change the permissions on ntops homedir so we can write logs
chown -R $NTOPUSER:$NTOPGROUP $PKG/var/lib/$PRGNAM
@@ -135,7 +141,7 @@ chown -R $NTOPUSER:$NTOPGROUP $PKG/var/lib/$PRGNAM
# some arkane reason. Rename some docs to prevent them copying over each other.
for FILE in {README,INSTALL}; do mv docs/$FILE docs/$FILE.docs ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS CONTENTS COPYING ChangeLog INSTALL MANIFESTO NEWS PORTING \
+cp -a AUTHORS CONTENTS COPYING ChangeLog INSTALL LICENSE* MANIFESTO NEWS PORTING \
README SUPPORT_NTOP.txt THANKS ntop.html ntop.txt docs/* NetFlow www \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild