From 33e221634db1dedc594d0796bdf944a4b24aaa56 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 19 Feb 2015 22:35:52 +0100 Subject: [PATCH] New package: ebtables-2.0.10_4 --- srcpkgs/ebtables/files/ebtables/finish | 2 ++ srcpkgs/ebtables/files/ebtables/run | 3 +++ srcpkgs/ebtables/template | 34 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100755 srcpkgs/ebtables/files/ebtables/finish create mode 100755 srcpkgs/ebtables/files/ebtables/run create mode 100644 srcpkgs/ebtables/template diff --git a/srcpkgs/ebtables/files/ebtables/finish b/srcpkgs/ebtables/files/ebtables/finish new file mode 100755 index 00000000000..441589a0477 --- /dev/null +++ b/srcpkgs/ebtables/files/ebtables/finish @@ -0,0 +1,2 @@ +#!/bin/sh +ebtables-save > /etc/ebtables.conf diff --git a/srcpkgs/ebtables/files/ebtables/run b/srcpkgs/ebtables/files/ebtables/run new file mode 100755 index 00000000000..636136fa5da --- /dev/null +++ b/srcpkgs/ebtables/files/ebtables/run @@ -0,0 +1,3 @@ +#!/bin/sh +ebtables-restore < "/etc/ebtables.conf" +exec chpst -b ebtables pause diff --git a/srcpkgs/ebtables/template b/srcpkgs/ebtables/template new file mode 100644 index 00000000000..0c37fa22eac --- /dev/null +++ b/srcpkgs/ebtables/template @@ -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 " +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 +}