summaryrefslogtreecommitdiffstats
path: root/main/arpon/APKBUILD
blob: 51c57263d6a476de90792d27f708fbd067da67c7 (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=1
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
4bf2cb423936b1ca84773fe6b7baaa73  arpon.initd
26986bed19b28cec66ed08447d22efaf  arpon.confd"
sha256sums="99adf83e4cdf2eda01601a60e2e1a611b5bce73865745fe67774c525c5f7d6d0  ArpON-2.7.2.tar.gz
c61b7004b24c794b981ddd4d58807180c71de51dba993219626c531700511c83  arpon.initd
5ffa4f833e511037c07c68617d139d6f6c769ff2a1024b7a0aa863ded83a58de  arpon.confd"
sha512sums="7518f8f8920817725c9b3e0a6420190dcc101b1c0c7cd9eec50870b3f893fe2322eddc90cb71e9c3c35326b4e1730aa02797ca51775caa9401807da3978628b4  ArpON-2.7.2.tar.gz
aa0e0969c14daf1030c528cb0b4adcf306a329cf502932f1494e668ad03dafa04bf08668f11c58af5702f74428134018cd4dc72fe44ac644ecc4e9b4f7be448c  arpon.initd
c368acd8b0f9945a750e5c39a22fdad2a10f117270cd07f641333fbb9c22223cbf18809665d8675732408e820da5a806dac10c78ab0b9f2dae58cacbe58c61c1  arpon.confd"