ports/contrib (3.2): arpon: 2.7 -> 2.7.2
commit 6c9d62c4c115aa0bd8240bb5b0d20a6ba4df3d70 Author: Thomas Penteker <tek@serverop.de> Date: Mon Nov 30 01:30:16 2015 +0100 arpon: 2.7 -> 2.7.2 diff --git a/arpon/.footprint b/arpon/.footprint index 4397147..97b3a60 100644 --- a/arpon/.footprint +++ b/arpon/.footprint @@ -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 diff --git a/arpon/.md5sum b/arpon/.md5sum index f2279b5..092f0ed 100644 --- a/arpon/.md5sum +++ b/arpon/.md5sum @@ -1,2 +1,2 @@ -9d4c13edc069fb74fd6cd9e6caedd04a ArpON-2.7.tar.gz -ce8814c168844856da0e40e2e6a69597 arpon +91f577b55e1db330870e7f00ec037d8f ArpON-2.7.2.tar.gz +1412f226b611dfa0c50e5b72d211b926 arpon diff --git a/arpon/Pkgfile b/arpon/Pkgfile index 2a078c5..1147514 100644 --- a/arpon/Pkgfile +++ b/arpon/Pkgfile @@ -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 + } diff --git a/arpon/arpon b/arpon/arpon index 36cd405..1dc798b 100644 --- a/arpon/arpon +++ b/arpon/arpon @@ -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
participants (1)
-
crux@crux.nu