32 lines
1,013 B
Bash
32 lines
1,013 B
Bash
|
# 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 <mg@ebfe.org>"
|
||
|
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 <sys/time.h>' 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
|
||
|
}
|
||
|
}
|
||
|
|