Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26304/scripts
Modified Files:
arpwatch
Log Message:
arpwatch fixes
Index: arpwatch
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/arpwatch,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- arpwatch 11 Jan 2004 14:43:04 -0000 1.17
+++ arpwatch 2 May 2004 14:52:52 -0000 1.18
@@ -28,8 +28,9 @@
case $1 in
build )
if [ "$CONFIG_ARPWATCH" = "y" ]; then
- ./configure --prefix=/usr --localstatedir=/var || exit 1
- make $PMAKE all || exit 1
+ bzcat $SRCDIR/arpwatch_repscr.patch.bz2 | patch -p1 || exit 1
+ ./configure --bindir=/usr/bin --sbindir=/usr/sbin --localstatedir=/var --sysconfdir=/etc || exit 1
+ make $PMAKE REPORT_SCRIPT=/etc/arpwatch/arpwatch_report ARPDIR=/etc/arpwatch all || exit 1
strip_debug
fi
;;
@@ -38,10 +39,17 @@
if [ "$CONFIG_ARPWATCH" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp/usr/sbin || exit 1
+ mkdir -p $ETCDIR/etc/arpwatch || exit 1
+
make install DESTDIR=$WORKDIR/tmp || exit 1
-
copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1
rm -rf $WORKDIR/tmp || exit 1
+
+ cp $MYDIR/scripts/arpwatch $ETCDIR/etc/init.d || exit 1
+ echo "# Start arpwatch?" >> $CONFIGFILE
+ echo "START_ARPWATCH=no" >> $CONFIGFILE
+ echo >> $CONFIGFILE
+ echo "HELP_$MYNAME=\"$MYNAME is a daemon which discover and monitor MAC changes on a local network\"" >> $SOFTWAREHELP
fi
;;
|