diff -u arpwatch-2.1a15/debian/control arpwatch-2.1a15/debian/control --- arpwatch-2.1a15/debian/control +++ arpwatch-2.1a15/debian/control @@ -8,7 +8,7 @@ Package: arpwatch Architecture: any -Depends: adduser, ${shlibs:Depends}, ${misc:Depends} +Depends: adduser, lsb-base (>= 3.2-13), ${shlibs:Depends}, ${misc:Depends} Description: Ethernet/FDDI station activity monitor Arpwatch maintains a database of Ethernet MAC addresses seen on the network, with their associated IP pairs. Alerts the system administrator diff -u arpwatch-2.1a15/debian/changelog arpwatch-2.1a15/debian/changelog --- arpwatch-2.1a15/debian/changelog +++ arpwatch-2.1a15/debian/changelog @@ -1,3 +1,12 @@ +arpwatch (2.1a15-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Added status to init script to be LSB compliant (LP: #806145) + - debian/init.d: Added status to usage and case + - debian/control: Added dependency for lsb-base + + -- Jake Smith Wed, 06 Jul 2011 09:31:34 -0400 + arpwatch (2.1a15-1.1) unstable; urgency=high * Non-maintainer upload. diff -u arpwatch-2.1a15/debian/init.d arpwatch-2.1a15/debian/init.d --- arpwatch-2.1a15/debian/init.d +++ arpwatch-2.1a15/debian/init.d @@ -16,6 +16,9 @@ # Run daemon only if executable. PATH=/sbin:/bin:/usr/sbin:/usr/bin + +. /lib/lsb/init-functions + NAME=arpwatch DAEMON=/usr/sbin/$NAME DESC="Ethernet/FDDI station monitor daemon" @@ -155,10 +158,13 @@ sleep 1 startup ;; + status) + status_of_proc $DAEMON "Arpwatch" + ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac