void-packages/srcpkgs/ebtables/template

37 lines
953 B
Plaintext
Raw Normal View History

2015-02-19 22:35:52 +01:00
# Template file for 'ebtables'
pkgname=ebtables
version=2.0.10_4
revision=2
2015-02-19 22:35:52 +01:00
build_style=gnu-makefile
short_desc="Filtering tool for a Linux-based bridging firewall"
maintainer="Enno Boland <eb@s01.de>"
license="GPL-2"
homepage="http://ebtables.netfilter.org/"
depends="perl"
distfiles="http://ftp.netfilter.org/pub/ebtables/${pkgname}-v${version/_/-}.tar.gz"
checksum=dc6f7b484f207dc712bfca81645f45120cb6aee3380e77a1771e9c34a9a4455d
wrksrc=${pkgname}-v${version/_/-}
make_build_args="CFLAGS+=-Wno-error=unused-but-set-variable"
make_install_args="
LIBDIR=/usr/lib \
MANDIR=/usr/share/man \
BINDIR=/usr/sbin \
2015-02-19 22:35:52 +01:00
INITDIR=/etc/rc.d \
SYSCONFIGDIR=/etc
"
conf_files=/etc/ebtables.conf
broken_as_needed=yes
2015-02-19 22:35:52 +01:00
pre_configure() {
sed -i -e "/install/s/-m [0-9]\{4\}//g" \
-e "/install/s/-o root//g" \
-e "/install/s/-g root//g" Makefile
}
post_install() {
rm -r $DESTDIR/etc/rc.d $DESTDIR/etc/ebtables-config
touch /etc/ebtables.conf
vsv ebtables
}