diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2011-12-13 09:16:56 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2011-12-13 09:16:56 +0000 |
commit | 6f595729c7cb6c6328852c600366a70bd78634fa (patch) | |
tree | c4cc52e6fd15c42c12fe0567d0e686a5f80b3759 /testing/arpalert | |
parent | 7fadc36b763c5015f287af421d7871e6956733ab (diff) | |
download | aports-6f595729c7cb6c6328852c600366a70bd78634fa.tar.bz2 aports-6f595729c7cb6c6328852c600366a70bd78634fa.tar.xz |
testing/arpalert: new aport - Monitor ethernet ports
Diffstat (limited to 'testing/arpalert')
-rw-r--r-- | testing/arpalert/APKBUILD | 48 | ||||
-rwxr-xr-x | testing/arpalert/arpalert.initd | 18 |
2 files changed, 66 insertions, 0 deletions
diff --git a/testing/arpalert/APKBUILD b/testing/arpalert/APKBUILD new file mode 100644 index 0000000000..bc23f5e79f --- /dev/null +++ b/testing/arpalert/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=arpalert +pkgver=2.0.11 +pkgrel=0 +pkgdesc="Monitor ARP changes in ethernet networks" +url="http://www.arpalert.org" +arch="all" +license="GPL" +depends="" +depends_dev="libpcap-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.arpalert.org/src/$pkgname-$pkgver.tar.gz + $pkgname.initd" +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --sharedstatedir=/usr/share \ + --localstatedir=/var \ + --includedir=/usr/include \ + --datarootdir=/usr/share + + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname +} + +md5sums="4b2b7682b27c7f260716f59ecfa50ecc arpalert-2.0.11.tar.gz +da046bdcd1dde63930a3353b37e35ddd arpalert.initd" diff --git a/testing/arpalert/arpalert.initd b/testing/arpalert/arpalert.initd new file mode 100755 index 0000000000..2567dbab1b --- /dev/null +++ b/testing/arpalert/arpalert.initd @@ -0,0 +1,18 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting arpalert" + start-stop-daemon --quiet --start --pidfile /var/run/arpalert.lock --exec /usr/sbin/arpalert -- -d + eend $? +} + +stop() { + ebegin "Stopping arpalert" + start-stop-daemon --quiet --stop --pidfile /var/run/arpalert.lock + eend $? +} + |