void-packages/srcpkgs/ebtables/template

30 lines
821 B
Bash

# Template file for 'ebtables'
pkgname=ebtables
version=2.0.10.4
_version=${version%.*}-${version##*.}
revision=2
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 \
INITDIR=/etc/rc.d \
SYSCONFIGDIR=/etc
"
broken_as_needed=yes
post_install() {
rm -r $DESTDIR/etc/rc.d $DESTDIR/etc/ebtables-config
touch /etc/ebtables.conf
vsv ebtables
}