void-packages/srcpkgs/ebtables/template

35 lines
882 B
Bash
Raw Normal View History

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