aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-02 11:03:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-02 11:03:45 +0000
commitc90c3edcabb91c4946af44b0ba58c016b5484538 (patch)
tree2b28cc31ea4c3d409a971d1e06cb76a837ae4123 /main
parent1ffa728e33f190c047b2addf0125d767d12116a1 (diff)
downloadaports-c90c3edcabb91c4946af44b0ba58c016b5484538.tar.bz2
aports-c90c3edcabb91c4946af44b0ba58c016b5484538.tar.xz
main/arpon: new aport
Arp handler inspectiON is a handler daemon with tools to handle all ARP aspects http://arpon.sourceforge.net/ fixes #149
Diffstat (limited to 'main')
-rw-r--r--main/arpon/APKBUILD34
-rw-r--r--main/arpon/arpon.confd1
-rw-r--r--main/arpon/arpon.initd23
3 files changed, 58 insertions, 0 deletions
diff --git a/main/arpon/APKBUILD b/main/arpon/APKBUILD
new file mode 100644
index 0000000000..5d1e8da0ca
--- /dev/null
+++ b/main/arpon/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=arpon
+pkgver=1.90
+pkgrel=0
+pkgdesc="Arp handler inspectiON is a handler daemon with tools to handle all ARP aspects"
+url="http://arpon.sourceforge.net/"
+license="GPL"
+depends=""
+makedepends="libdnet-dev libpcap-dev libnet-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/ArpON-$pkgver.tar.gz
+ arpon.initd
+ arpon.confd
+ "
+
+build() {
+ cd "$srcdir"/ArpON-$pkgver
+ sed -i -e '/^CFLAGS/s/-Werror//' Makefile
+
+ # seems like it does not like the --as-needed
+ export LDFLAGS=
+ make linux || return 1
+ install -D -m755 arpon "$pkgdir"/usr/sbin/arpon
+ install -D man8/arpon.8 "$pkgdir"/usr/share/man/man8/arpon.8
+
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="41671d58190cf829b7c9049ae3fa8cdf ArpON-1.90.tar.gz
+92e60e8b86f87b772b8e198db3829c09 arpon.initd
+26986bed19b28cec66ed08447d22efaf arpon.confd"
diff --git a/main/arpon/arpon.confd b/main/arpon/arpon.confd
new file mode 100644
index 0000000000..0b80238a34
--- /dev/null
+++ b/main/arpon/arpon.confd
@@ -0,0 +1 @@
+ARPON_OPTS=
diff --git a/main/arpon/arpon.initd b/main/arpon/arpon.initd
new file mode 100644
index 0000000000..8a949a9bf0
--- /dev/null
+++ b/main/arpon/arpon.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+NAME=arpon
+DAEMON=/usr/sbin/$NAME
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${NAME}.pid \
+ --exec ${DAEMON} -- -d ${ARPON_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${NAME}.pid
+ eend $?
+}