aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnetfilter_log/APKBUILD
blob: 2e36e7ddaff2eedf3a146c5b5192bca869a42545 (plain) (blame)
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
58
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libnetfilter_log
pkgver=1.0.1
pkgrel=2
pkgdesc="interface to packets that have been logged by the kernel packet filter"
url="http://www.netfilter.org/projects/libnetfilter_log/"
arch="all"
license="GPL-2.0"
depends=
depends_dev="linux-headers"
makedepends="$depends_dev libnfnetlink-dev"
subpackages="$pkgname-dev"
source="https://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2
	sys-types.patch
	sys-types2.patch
	"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	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 || return 1
}

md5sums="2a4bb0654ae675a52d2e8d1c06090b94  libnetfilter_log-1.0.1.tar.bz2
4a3b135f683291a9444082b151485591  sys-types.patch
210445355fc1ff63d6558e8d643edfcc  sys-types2.patch"
sha256sums="74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21  libnetfilter_log-1.0.1.tar.bz2
0adb7b8e3b68621de8809f56d811f7fa0276f468fa4c3cb501eb7dd9faf80182  sys-types.patch
b78bc2ad8352bb2f925d41eb0c440bf6b4ef83a912f7ff07d44e30275e105042  sys-types2.patch"
sha512sums="4088b9bf055fb4cd5f2e201a46a00def7642116b5d1695a371936b7b45eb93877944456506b45761bf2f3f81b40c161c1ecdcfb90532009f073dac3cedc6f436  libnetfilter_log-1.0.1.tar.bz2
aa8b2502fd53bce2ffdb4607bcbb179b854d9544814eca43c5313392c39bf5f8abdc51e61629d26cce1df07b0499d793858020144eac6d4785ab96d59db8e364  sys-types.patch
b2c93fc854cd52040637164f422ac9bc6cdf22585c638b45f500c30c59925131ff874fdf3dc231d948adf12b45744809d6278a79abd4a2887aa5a7b5e8e4cc9d  sys-types2.patch"