summaryrefslogtreecommitdiffstats
path: root/testing/arpalert/APKBUILD
blob: bc23f5e79ffe112a2a9db462a09a5825383b93c5 (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
48
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=arpalert
pkgver=2.0.11
pkgrel=0
pkgdesc="Monitor ARP changes in ethernet networks"
url="http://www.arpalert.org"
arch="all"
license="GPL"
depends=""
depends_dev="libpcap-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.arpalert.org/src/$pkgname-$pkgver.tar.gz
	$pkgname.initd"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--exec-prefix=/usr \
		--sysconfdir=/etc \
		--sharedstatedir=/usr/share \
		--localstatedir=/var \
		--includedir=/usr/include \
		--datarootdir=/usr/share
		      
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

md5sums="4b2b7682b27c7f260716f59ecfa50ecc  arpalert-2.0.11.tar.gz
da046bdcd1dde63930a3353b37e35ddd  arpalert.initd"