aboutsummaryrefslogtreecommitdiffstats
path: root/main/conntrack-tools/APKBUILD
blob: e94a8dcf372ccf3bbb539d1a3d70e6ec9704cbeb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=conntrack-tools
pkgver=1.4.5
pkgrel=0
pkgdesc="Connection tracking userspace tools"
url="http://conntrack-tools.netfilter.org"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc $pkgname-openrc"
makedepends="linux-headers libnfnetlink-dev libnetfilter_conntrack-dev bison flex
	libmnl-dev libnetfilter_cttimeout-dev libnetfilter_cthelper-dev
	libnetfilter_queue-dev libtirpc-dev"
source="https://www.netfilter.org/projects/conntrack-tools/files/conntrack-tools-$pkgver.tar.bz2
	conntrackd.initd
	conntrackd.confd
	"

build() {
	cd "$builddir"
	export CFLAGS="$CFLAGS -D_GNU_SOURCE $(pkgconf --cflags libtirpc)"
	export LDFLAGS="$LDFLAGS $(pkgconf --libs libtirpc)"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

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

	install -Dm755 ../conntrackd.initd "$pkgdir"/etc/init.d/conntrackd
	install -Dm644 ../conntrackd.confd "$pkgdir"/etc/conf.d/conntrackd
	install -Dm644 doc/stats/conntrackd.conf \
		"$pkgdir"/etc/conntrackd/conntrackd.conf
}

sha512sums="480fe2cc4420bc8477a2ba67b3d052bcb39c6b3ec000cff27fc12db70b42ec94fa3b5fe12ee35d439e88d9a631a33cd12ae470b69dde6d371d4e53af62a2eed1  conntrack-tools-1.4.5.tar.bz2
1d8e6d6eec79233b276d12e78c5d184d356df85ede299bfa9f6967ace30987f3b2f8c8077a1e2f9123a817f2805fdb9bf8fa9ec441882a112d83cabf84932e16  conntrackd.initd
fd8cfab207867844db6671a8395efadca792d6085c3436381e574dc52f3b4e41d9526b3db6114dd98e534a5419ca19f291d21c091f8cf0426024d73d18133e6f  conntrackd.confd"