arpon: 2.7 -> 2.7.2

This commit is contained in:
Thomas Penteker 2015-11-30 01:30:16 +01:00
parent cfae243d35
commit 6c9d62c4c1
4 changed files with 44 additions and 27 deletions

View File

@ -2,8 +2,11 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/arpon
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man8/
-rwxr-xr-x root/root usr/man/man8/arpon.8.gz
drwxr-xr-x root/root usr/etc/
-r--r--r-- root/root usr/etc/arpon.sarpi
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/arpon
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man8/
-r--r--r-- root/root usr/share/man/man8/arpon.8.gz

View File

@ -1,2 +1,2 @@
9d4c13edc069fb74fd6cd9e6caedd04a ArpON-2.7.tar.gz
ce8814c168844856da0e40e2e6a69597 arpon
91f577b55e1db330870e7f00ec037d8f ArpON-2.7.2.tar.gz
1412f226b611dfa0c50e5b72d211b926 arpon

View File

@ -4,7 +4,7 @@
# Depends on: libdnet
name=arpon
version=2.7
version=2.7.2
release=1
source=(http://download.sourceforge.net/$name/ArpON-$version.tar.gz \
arpon)
@ -12,9 +12,11 @@ source=(http://download.sourceforge.net/$name/ArpON-$version.tar.gz \
build() {
install arpon -D $PKG/etc/rc.d/arpon
cd ArpON-$version
gcc -g -Wall -Werror -lpthread -lpcap -ldnet -lnet -L/usr/lib\
-I/usr/include -DLINUX -o arpon src/arpon.c /usr/lib/libpcap.a\
/usr/lib/libnet.a /usr/lib/libdnet.a
install -D arpon $PKG/usr/sbin/arpon
install -D man8/arpon.8 $PKG/usr/man/man8/arpon.8
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make DESTDIR=$PKG install
}

View File

@ -1,26 +1,38 @@
#! /bin/sh
#!/bin/sh
#
# /etc/rc.d/arpon: start/stop/restart/reload the arpon daemon
# /etc/rc.d/arpon: start/stop arpon daemon
#
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/arpon
PID=/var/run/arpon.pid
OPTS="-gqD 1>>/var/log/arpon.log"
case $1 in
start)
/usr/sbin/arpon -ysdg -f /var/log/arpon.log 1>>/var/log/arpon.log
;;
$SSD --start --pidfile $PID --exec $PROG -- $OPTS
;;
stop)
TEST=`pidof /usr/sbin/arpon`
if [ "$TEST" != "" ] ; then
kill -TERM $TEST
fi
;;
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID
;;
restart)
$0 stop
$0 start
;;
$0 stop
$0 start
;;
reload)
$SSD --stop --signal HUP --pidfile $PID
;;
status)
$SSD --status --pidfile $PID
case $? in
0) echo "$PROG is running" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;
esac
;;
*)
echo "Usage: $0 [start|stop|restart]"
exit 1
;;
echo "usage: $0 [start|stop|restart|reload|status]"
;;
esac
# End of file