aboutsummaryrefslogtreecommitdiffstats
path: root/testing/arpalert/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-12-13 09:16:56 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-12-13 09:16:56 +0000
commit6f595729c7cb6c6328852c600366a70bd78634fa (patch)
treec4cc52e6fd15c42c12fe0567d0e686a5f80b3759 /testing/arpalert/APKBUILD
parent7fadc36b763c5015f287af421d7871e6956733ab (diff)
downloadaports-6f595729c7cb6c6328852c600366a70bd78634fa.tar.bz2
aports-6f595729c7cb6c6328852c600366a70bd78634fa.tar.xz
testing/arpalert: new aport - Monitor ethernet ports
Diffstat (limited to 'testing/arpalert/APKBUILD')
-rw-r--r--testing/arpalert/APKBUILD48
1 files changed, 48 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"