From 3a471b9750d3222413826ab6277b9c03f4f563a1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 27 Jun 2012 09:10:08 +0000 Subject: main/libnetfilter_cttimeout: moved from testing --- main/libnetfilter_cttimeout/APKBUILD | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 main/libnetfilter_cttimeout/APKBUILD (limited to 'main') diff --git a/main/libnetfilter_cttimeout/APKBUILD b/main/libnetfilter_cttimeout/APKBUILD new file mode 100644 index 0000000000..7c63f0cdf9 --- /dev/null +++ b/main/libnetfilter_cttimeout/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +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" -- cgit v1.2.3