aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpon/APKBUILD
blob: 3aeebecb2c9bfad4158f5184e10d121ec0ab4cf8 (plain)
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
42
43
44
45
46
47
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=arpon
pkgver=2.7.2
pkgrel=2
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://downloads.sourceforge.net/project/${pkgname}/${pkgname}/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="91f577b55e1db330870e7f00ec037d8f  ArpON-2.7.2.tar.gz
60ff0f9c6d035861d8cd608982b02d63  arpon.initd
26986bed19b28cec66ed08447d22efaf  arpon.confd"
sha256sums="99adf83e4cdf2eda01601a60e2e1a611b5bce73865745fe67774c525c5f7d6d0  ArpON-2.7.2.tar.gz
89169274080a1e7287f065970c13c912e9f7b966c6fe8c498c0d3321c03e0633  arpon.initd
5ffa4f833e511037c07c68617d139d6f6c769ff2a1024b7a0aa863ded83a58de  arpon.confd"
sha512sums="7518f8f8920817725c9b3e0a6420190dcc101b1c0c7cd9eec50870b3f893fe2322eddc90cb71e9c3c35326b4e1730aa02797ca51775caa9401807da3978628b4  ArpON-2.7.2.tar.gz
9a7c862c3b07e31da091906b61339680b23af154c088eb259f2540916273d8e5f4dc6af5f883564d5b2ede6552b55376aa37b413270f837067ec5ce3d61a076f  arpon.initd
c368acd8b0f9945a750e5c39a22fdad2a10f117270cd07f641333fbb9c22223cbf18809665d8675732408e820da5a806dac10c78ab0b9f2dae58cacbe58c61c1  arpon.confd"