From 6c71a0ada6bd7e29b7fd7dfcaaf920237632c982 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sat, 13 Feb 2016 18:11:59 +0100 Subject: [PATCH] New package: libnetfilter_queue-1.0.2 --- common/shlibs | 1 + srcpkgs/libnetfilter_queue-devel | 1 + srcpkgs/libnetfilter_queue/template | 31 +++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 120000 srcpkgs/libnetfilter_queue-devel create mode 100644 srcpkgs/libnetfilter_queue/template diff --git a/common/shlibs b/common/shlibs index c06e0fe9d4b..93b17119c6f 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2348,3 +2348,4 @@ libtolua.so tolua-5.2.0_1 libhwloc.so.5 libhwloc-1.11.2_1 libnetfilter_cttimeout.so.1 libnetfilter_cttimeout-1.0.0_1 libnetfilter_cthelper.so.0 libnetfilter_cthelper-1.0.0_1 +libnetfilter_queue.so.1 libnetfilter_queue-1.0.2_1 diff --git a/srcpkgs/libnetfilter_queue-devel b/srcpkgs/libnetfilter_queue-devel new file mode 120000 index 00000000000..ff12558142d --- /dev/null +++ b/srcpkgs/libnetfilter_queue-devel @@ -0,0 +1 @@ +libnetfilter_queue \ No newline at end of file diff --git a/srcpkgs/libnetfilter_queue/template b/srcpkgs/libnetfilter_queue/template new file mode 100644 index 00000000000..03463a6e784 --- /dev/null +++ b/srcpkgs/libnetfilter_queue/template @@ -0,0 +1,31 @@ +# Template file for 'libnetfilter_queue' +pkgname=libnetfilter_queue +version=1.0.2 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="libnfnetlink-devel libmnl-devel" +short_desc="An API to packets that have been queued by the kernel packet filter" +maintainer="Michael Gehring " +license="GPL-2" +homepage="http://www.netfilter.org/projects/libnetfilter_queue/index.html" +distfiles="http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${version}.tar.bz2" +checksum=838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32 + +CFLAGS="-D_GNU_SOURCE" + +pre_configure() { + sed -i '15i#include ' include/libnetfilter_queue/libnetfilter_queue.h + sed -i 's/u_int\([0-9]*\)_t/uint\1_t/g' $(find -name '*.[ch]') +} + +libnetfilter_queue-devel_package() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} +