diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-27 09:09:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-27 09:09:32 +0000 |
commit | 5ff2656a5a02a9c34fdb8e9b1dfc5a45fedeb7c6 (patch) | |
tree | 42ef5b030e2012a237d36c9e0ce3b7bf901f4504 /testing | |
parent | 03b7961d6fe06bfc1cfa06915e79f48a441f2347 (diff) | |
download | aports-5ff2656a5a02a9c34fdb8e9b1dfc5a45fedeb7c6.tar.bz2 aports-5ff2656a5a02a9c34fdb8e9b1dfc5a45fedeb7c6.tar.xz |
testing/libnetfilter_cttimeout: new aport
Library for the connection tracking timeout infrastructure
http://www.netfilter.org/projects/libnetfilter_cttimeout/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libnetfilter_cttimeout/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/libnetfilter_cttimeout/APKBUILD b/testing/libnetfilter_cttimeout/APKBUILD new file mode 100644 index 0000000000..7c63f0cdf9 --- /dev/null +++ b/testing/libnetfilter_cttimeout/APKBUILD @@ -0,0 +1,45 @@ +# 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="$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" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --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 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="7697437fc9ebb6f6b83df56a633db7f9 libnetfilter_cttimeout-1.0.0.tar.bz2" |