aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpon/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-02-25 10:25:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-02-25 10:25:56 +0000
commitd5489ac2a1a2c0fb6ecdd9647650b0fd25acb865 (patch)
treeddbdfdebedda558f3420e938e3feebe313ae4f21 /main/arpon/APKBUILD
parent2330f981446b9c5d0be60e509c7ed4371cb12e34 (diff)
downloadaports-d5489ac2a1a2c0fb6ecdd9647650b0fd25acb865.tar.bz2
aports-d5489ac2a1a2c0fb6ecdd9647650b0fd25acb865.tar.xz
main/arpon: upgrade to 2.1
Diffstat (limited to 'main/arpon/APKBUILD')
-rw-r--r--main/arpon/APKBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/main/arpon/APKBUILD b/main/arpon/APKBUILD
index 676e517d62..57e8bfa59e 100644
--- a/main/arpon/APKBUILD
+++ b/main/arpon/APKBUILD
@@ -1,35 +1,42 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=arpon
-pkgver=1.90
-pkgrel=2
+pkgver=2.1
+pkgrel=0
pkgdesc="Arp handler inspectiON is a handler daemon with tools to handle all ARP aspects"
url="http://arpon.sourceforge.net/"
arch="all"
license="GPL"
depends=""
-makedepends="libdnet-dev libpcap-dev libnet-dev"
+makedepends="libdnet-dev libpcap-dev libnet-dev cmake"
install=
subpackages="$pkgname-doc"
-source="http://downloads.sourceforge.net/$pkgname/ArpON-$pkgver.tar.gz
+source="http://arpon.sourceforge.net/tarball/ArpON-$pkgver.tar.gz
arpon.initd
arpon.confd
"
+_builddir="$srcdir"/ArpON-$pkgver/build
+
+prepare() {
+ mkdir -p "$_builddir"
+ cd "$_builddir"
+}
+
build() {
- cd "$srcdir"/ArpON-$pkgver
- sed -i -e '/^CFLAGS/s/-Werror//' Makefile
+ cd "$_builddir"
+ cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
+ make || return 1
+}
- # 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
+package() {
+ cd "$_builddir"
+ make install DESTDIR="$pkgdir"
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
+md5sums="c5e958af0d7068a12cb1fea656a759bd ArpON-2.1.tar.gz
4bf2cb423936b1ca84773fe6b7baaa73 arpon.initd
26986bed19b28cec66ed08447d22efaf arpon.confd"