APKBUILD 1.74 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=arpon
4
pkgver=2.7.2
5
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
6 7
pkgdesc="Arp handler inspectiON is a handler daemon with tools to handle all ARP aspects"
url="http://arpon.sourceforge.net/"
8
arch="all"
9
license="BSD"
Natanael Copa's avatar
Natanael Copa committed
10
depends=""
Natanael Copa's avatar
Natanael Copa committed
11
makedepends="libdnet-dev libpcap-dev libnet-dev cmake"
12
install=""
Natanael Copa's avatar
Natanael Copa committed
13
subpackages="$pkgname-doc"
14
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/ArpON-${pkgver}.tar.gz
15 16 17
		arpon.initd
		arpon.confd
		"
Natanael Copa's avatar
Natanael Copa committed
18

Natanael Copa's avatar
Natanael Copa committed
19 20 21 22 23 24
_builddir="$srcdir"/ArpON-$pkgver/build
prepare() {
	mkdir -p "$_builddir"
	cd "$_builddir"
}

Natanael Copa's avatar
Natanael Copa committed
25
build() {
Natanael Copa's avatar
Natanael Copa committed
26 27 28 29
	cd "$_builddir"
	cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
	make || return 1
}
Natanael Copa's avatar
Natanael Copa committed
30

Natanael Copa's avatar
Natanael Copa committed
31 32
package() {
	cd "$_builddir"
33
	make install DESTDIR="$pkgdir" || return 1
Natanael Copa's avatar
Natanael Copa committed
34 35 36 37 38

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

39
md5sums="91f577b55e1db330870e7f00ec037d8f  ArpON-2.7.2.tar.gz
40
60ff0f9c6d035861d8cd608982b02d63  arpon.initd
Natanael Copa's avatar
Natanael Copa committed
41
26986bed19b28cec66ed08447d22efaf  arpon.confd"
42
sha256sums="99adf83e4cdf2eda01601a60e2e1a611b5bce73865745fe67774c525c5f7d6d0  ArpON-2.7.2.tar.gz
43
89169274080a1e7287f065970c13c912e9f7b966c6fe8c498c0d3321c03e0633  arpon.initd
44 45
5ffa4f833e511037c07c68617d139d6f6c769ff2a1024b7a0aa863ded83a58de  arpon.confd"
sha512sums="7518f8f8920817725c9b3e0a6420190dcc101b1c0c7cd9eec50870b3f893fe2322eddc90cb71e9c3c35326b4e1730aa02797ca51775caa9401807da3978628b4  ArpON-2.7.2.tar.gz
46
9a7c862c3b07e31da091906b61339680b23af154c088eb259f2540916273d8e5f4dc6af5f883564d5b2ede6552b55376aa37b413270f837067ec5ce3d61a076f  arpon.initd
47
c368acd8b0f9945a750e5c39a22fdad2a10f117270cd07f641333fbb9c22223cbf18809665d8675732408e820da5a806dac10c78ab0b9f2dae58cacbe58c61c1  arpon.confd"