APKBUILD 2.94 KB
Newer Older
1 2
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=fprobe-ulog
3
pkgver=1.2
4
pkgrel=4
5
pkgdesc="netfilter-based tool that collect network traffic"
6
url="https://github.com/opoplawski/fprobe-ulog"
7 8 9
arch="all"
license="GPL"
depends=
10
makedepends="libnfnetlink-dev libnetfilter_log-dev"
11 12
install=""
subpackages="$pkgname-doc"
13
source="https://github.com/opoplawski/fprobe-ulog/releases/download/v$pkgver/fprobe-ulog-$pkgver.tar.gz
14 15
	fprobe-ulog.confd
	fprobe-ulog.initd
16
	fprobe-1.1-pidfile-sanity.patch
17
	fix-setuser.patch
18
	fprobe-nflog.patch
19 20 21 22 23 24
	"

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

prepare() {
	cd $_builddir
25
	update_config_sub || return 1
26 27 28 29
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
30
	done
31 32 33 34
}

build() {
	cd "$_builddir"
35
	CFLAGS="$CFLAGS -std=gnu89" \
36 37 38 39
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
40 41
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
42 43
		--infodir=/usr/share/info \
		|| return 1
44 45 46 47 48 49 50 51 52 53 54 55
	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

}

56
md5sums="05408501ac17a664fda269a208efa087  fprobe-ulog-1.2.tar.gz
57
8aabfe548f2fb197a10c8ccfaa4d0a23  fprobe-ulog.confd
58
d791e5d15be8fb59b22f7fa235b9f041  fprobe-ulog.initd
59
f1316ad835c1a2b6565b4dc448b022df  fprobe-1.1-pidfile-sanity.patch
60
27bfeb6c6cd7089240173a2829054d87  fix-setuser.patch
61
d03cd5c60183d89171fcacca5e15205d  fprobe-nflog.patch"
62
sha256sums="72a8c13001dd512acff9b85594dd29a435947072e20abefe85c29468a3967121  fprobe-ulog-1.2.tar.gz
63
7101091e238f5b0719a66f525f5bdc000ad593f492dd51896e2bd077fcada8f4  fprobe-ulog.confd
64
3dfaa0a8e995ac2c3caa49a01ed570f83348fb3348d1a5106af5a80a1fc1f3d0  fprobe-ulog.initd
65
660531f8ba574f80835bb26390e47c2541a3c75985656d46a334c38bfaa4e362  fprobe-1.1-pidfile-sanity.patch
66
aa4b237750555323de29f6ddbc3f807dc507bd72564043e9dab6316dc3424123  fix-setuser.patch
67
a14c2a65618e07dae11a1e40731a82f7eb06c08fe404dc71b0d75362b4bced70  fprobe-nflog.patch"
68
sha512sums="c393c0705bd6c7cee998fccc48dede3568063b5130971f36c08f580c7678cf52fdf446c02cc4df3d5a2ead68cb2d14434e0847bfff27b6a0c5ef5ec7d6f61145  fprobe-ulog-1.2.tar.gz
69
388522863b5c77a334ee11bd771717d829448c85755b58088e22558b99a98514ac95ec3122cf3cb1ce7376f40ac0bae6bf1488dbd4ef60170c3ff83824988195  fprobe-ulog.confd
70
2c81ab715eea71beac21d4e4261464ed763464398e3fa4979eb8bd1f671d22916dffb64f051714b6460bb422924517979a3630139b478ddd258b2c28b3d73a14  fprobe-ulog.initd
71
e8d5103d2c12fffb913b327badf07e6ac3a0ad8b6e39e942c50dc7e472391b345006b7ee7b7d12a4613c351db2b4e88a6fbd17cfa0907c7c9010faeced3ff557  fprobe-1.1-pidfile-sanity.patch
72
981f8bf359f7f338a742eb605a09ff95a960231b98b80552d70f1637aea0ec061fddfd8fa004eef971143af52c88e3a8c7dd45605693f9035cb2c63ccfadb1ed  fix-setuser.patch
73
832dbdf80a7c9561c8ea10150bfca8968edca2ab7045e2c6cb604ed0269ff6574b14c472971187258ef4acb8e7eda4d8970ea8e7845f406debe00f27855868b1  fprobe-nflog.patch"