summaryrefslogtreecommitdiffstats
path: root/main/fprobe-ulog/APKBUILD
blob: 4e88be2960e56a75f0e375f7e70e29fc9a77a04b (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=fprobe-ulog
pkgver=1.1
pkgrel=2
pkgdesc="netfilter-based tool that collect network traffic"
url="http://fprobe.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/fprobe/$pkgname/$pkgver/$pkgname-1.1.tar.bz2
	fprobe-ulog.confd
	fprobe-ulog.initd
	fprobe-1.1-pidfile-sanity.patch
	"

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

prepare() {
	cd $_builddir
	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="cdb2e4edc47e8a3d5479eeabfb979ebc  fprobe-ulog-1.1.tar.bz2
8aabfe548f2fb197a10c8ccfaa4d0a23  fprobe-ulog.confd
df64f84f28af0976bff35a8fda8d663a  fprobe-ulog.initd
f1316ad835c1a2b6565b4dc448b022df  fprobe-1.1-pidfile-sanity.patch"