summaryrefslogtreecommitdiffstats
path: root/main/fprobe/APKBUILD
blob: ca6d465d28b35d1c878f6a3b0f03747f107ccd6d (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
49
50
51
52
53
54
55
56
57
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=fprobe
pkgver=1.1
pkgrel=6
pkgdesc="libpcap-based tool that collect network traffic"
url="http://fprobe.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="libpcap-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
	fprobe-1.1-pidfile-sanity.patch
	fprobe-1.1-setgroups.patch
	$pkgname.initd
	$pkgname.confd"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd $_builddir
	update_config_sub || return 1
	for i in ../*.patch
	do
		msg "Applying $i"
		patch -p1 < ../$i || exit 1
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

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

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

md5sums="65850d0470078269b33eee58cba77ac2  fprobe-1.1.tar.bz2
265c9d9c434df46fc224a1ce7051e27a  fprobe-1.1-pidfile-sanity.patch
ba8632d883fb49e83ea16db67c50a69b  fprobe-1.1-setgroups.patch
6dba73f47bd466c586a836d6f26fb712  fprobe.initd
ba9c9327456e4db897b60481705df282  fprobe.confd"