Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv475/scripts
Modified Files:
Tag: rel-1-2-patches
ntop
Log Message:
fixed ntop (Roland Pabel)
Index: ntop
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/ntop,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- ntop 27 Mar 2004 17:42:20 -0000 1.3
+++ ntop 16 Sep 2004 13:37:48 -0000 1.3.2.1
@@ -55,10 +55,26 @@
ln -sf /usr/share/ntop/p2c.opt.table.gz $WORKDIR/tmp/etc/ntop/p2c.opt.table.gz || exit 1
ln -sf /usr/share/ntop/specialMAC.txt.gz $WORKDIR/tmp/etc/ntop/specialMAC.txt.gz || exit 1
+ cp -dp $MYDIR/scripts/ntop $ETCDIR/etc/init.d/ || exit 1
cp -dpfR $WORKDIR/tmp/etc/* $ETCDIR/etc/ || exit 1
copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1
+
+ useradd -u 105 -g nogroup -s /bin/false -c "ntop daemon" ntop
+
rm -rf $WORKDIR/tmp || exit 1
+
+ mkdir -p $CDDIR/var/lib/ntop || exit 1
+ chmod -R 755 $CDDIR/var/lib/ntop || exit 1
+ chown -R ntop $CDDIR/var/lib/ntop || exit 1
+
+ echo "# Start ntop?" >> $CONFIGFILE
+ echo "START_$MYNAME=no" >> $CONFIGFILE
+ echo "NTOP_INTERFACES=eth0,eth1" >> $CONFIGFILE
+ echo "NTOP_PORT=8080" >> $CONFIGFILE
+ echo "NTOP_SSL_PORT=0" >> $CONFIGFILE
+ echo >> $CONFIGFILE
+ echo "HELP_$MYNAME=\"ntop is a network traffic probe that shows network usage\"" >> $SOFTWAREHELP
fi
;;
|