|
From: Serge L. <sma...@us...> - 2007-02-22 14:12:49
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv17081/scripts Added Files: fprobe Log Message: - added fprobe (netflow probe) --- NEW FILE: fprobe --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/fprobe,v $ # $Revision: 1.2 $ # $Date: 2007/02/22 14:12:42 $ # # http://www.devil-linux.org # FPROBE added by Michele Pensotti <10...@ti...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: fprobe # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=FPROBE case $1 in build ) if [ "$CONFIG_FPROBE" = "y" ]; then ./configure --prefix=/usr --localstatedir=/var || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_FPROBE" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 DESTDIR=$TMPDIR make install || exit 1 copy_docs $TMPDIR cp -dpR $TMPDIR/* $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |