aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnetfilter_cttimeout/APKBUILD
blob: 82369b8858d58ec86e25df5b65645483e444cc3f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnetfilter_cttimeout
pkgver=1.0.0
pkgrel=0
pkgdesc="Library for the connection tracking timeout infrastructure"
url="http://www.netfilter.org/projects/libnetfilter_cttimeout/"
arch="all"
license="GPLv2"
depends=""
depends_dev="libmnl-dev"
makedepends="linux-headers $depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://www.netfilter.org/projects/libnetfilter_cttimeout/files/libnetfilter_cttimeout-$pkgver.tar.bz2"

_builddir="$srcdir"/libnetfilter_cttimeout-$pkgver
prepare() {
	local i
	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 \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="d64f592be022d02b6e6627470f9aed75114b0c7177012d31d868ee7eb39fca330a7638c9a209ff489d4a8c0549b8fcfd33582c6d36ee519b920cf27429301c85  libnetfilter_cttimeout-1.0.0.tar.bz2"