New package: ebtables-2.0.10_4

This commit is contained in:
Enno Boland 2015-02-19 22:35:52 +01:00
parent ecb1833be3
commit 33e221634d
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
ebtables-save > /etc/ebtables.conf

View file

@ -0,0 +1,3 @@
#!/bin/sh
ebtables-restore < "/etc/ebtables.conf"
exec chpst -b ebtables pause

34
srcpkgs/ebtables/template Normal file
View file

@ -0,0 +1,34 @@
# Template file for 'ebtables'
pkgname=ebtables
version=2.0.10_4
revision=1
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/bin \
INITDIR=/etc/rc.d \
SYSCONFIGDIR=/etc
"
conf_files=/etc/ebtables.conf
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
}