aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpon/APKBUILD
blob: c04a8db09a558c0c4aa7fcaa63cec98812f97c2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=arpon
pkgver=2.7
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="BSD"
depends=""
makedepends="libdnet-dev libpcap-dev libnet-dev cmake"
install=""
subpackages="$pkgname-doc"
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 "$_builddir"
	cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="3c3230f6852b9ffd5618a35c2f25221c  ArpON-2.7.tar.gz
4bf2cb423936b1ca84773fe6b7baaa73  arpon.initd
26986bed19b28cec66ed08447d22efaf  arpon.confd"