void-packages/srcpkgs/ebtables/template
2016-03-08 10:24:54 +01:00

34 lines
882 B
Bash

# Template file for 'ebtables'
pkgname=ebtables
version=2.0.10.4
revision=5
_version=${version%.*}-${version##*.}
build_style=gnu-makefile
conf_files="/etc/ebtables.conf"
short_desc="Filtering tool for a Linux-based bridging firewall"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2"
homepage="http://ebtables.netfilter.org/"
depends="perl iptables"
distfiles="http://ftp.netfilter.org/pub/ebtables/${pkgname}-v${_version}.tar.gz"
checksum=dc6f7b484f207dc712bfca81645f45120cb6aee3380e77a1771e9c34a9a4455d
wrksrc=${pkgname}-v${_version}
make_install_args="
MANDIR=/usr/share/man \
BINDIR=/usr/bin \
INITDIR=/etc/rc.d \
SYSCONFIGDIR=/etc
"
LDFLAGS="-Wl,--no-as-needed"
pre_build() {
rm include/linux/if_ether.h
}
post_install() {
rm -r $DESTDIR/etc/rc.d $DESTDIR/etc/ebtables-config
touch $DESTDIR/etc/ebtables.conf
vsv ebtables
rm $DESTDIR/etc/ethertypes
}