summaryrefslogtreecommitdiff
path: root/community/ebtables
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-05 00:07:38 -0800
committerroot <root@rshg054.dnsready.net>2013-02-05 00:07:38 -0800
commitb91dca65217b7c35be84df053692c9fd1b012560 (patch)
tree1ab70184cb03b2ac7a5123daed51de63f9df742b /community/ebtables
parent3e78397cb031dee2b5874f1c0c9e4c9977f0dbb7 (diff)
Tue Feb 5 00:07:38 PST 2013
Diffstat (limited to 'community/ebtables')
-rw-r--r--community/ebtables/PKGBUILD22
-rw-r--r--community/ebtables/ebtables.systemd3
2 files changed, 9 insertions, 16 deletions
diff --git a/community/ebtables/PKGBUILD b/community/ebtables/PKGBUILD
index ffc3b451b..1430af343 100644
--- a/community/ebtables/PKGBUILD
+++ b/community/ebtables/PKGBUILD
@@ -1,27 +1,24 @@
-# $Id: PKGBUILD 71322 2012-05-26 15:04:32Z seblu $
-# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
+# $Id: PKGBUILD 83705 2013-02-04 14:45:58Z seblu $
+# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Michal Soltys <soltys@ziu.info>
pkgname=ebtables
pkgver=2.0.10_4
-pkgrel=2
+pkgrel=3
pkgdesc='Ethernet bridge filtering utilities'
arch=('i686' 'x86_64')
url='http://ebtables.sourceforge.net/'
+depends=('perl' 'bash')
license=('GPL2')
-backup=("etc/$pkgname.conf" "etc/conf.d/$pkgname")
+backup=("etc/$pkgname.conf")
# ebtables segfault with --as-needed
options=('!buildflags')
install=$pkgname.install
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-v${pkgver/_/-}.tar.gz"
- "$pkgname.conf"
- "$pkgname.rc"
"$pkgname.systemd"
"$pkgname.service")
md5sums=('506742a3d44b9925955425a659c1a8d0'
- 'c6f0838de4429af68d21b4d61f00db59'
- 'd0e340f2cefe91b1569c0e87c2a1288f'
- '5a49ea09af202cb438c8a1b15abf9147'
+ 'b4c329060809e5b290ae49fbd0ad61f2'
'baf923443c3b16277e50d60d2e68f534')
build() {
@@ -41,10 +38,7 @@ package() {
popd
# rm package ebtables rc.d scripts
rm "$pkgdir/etc/ebtables-config"
- # install initscripts
- install -Dm 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
- install -Dm 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
- # install systemd service
+ # systemd
install -Dm 755 $pkgname.systemd \
"$pkgdir/usr/lib/systemd/scripts/$pkgname"
install -Dm 644 $pkgname.service \
@@ -53,4 +47,4 @@ package() {
install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
}
-# vim:set ts=2 sw=2 ft=sh et:
+# vim:set ts=2 sw=2 et:
diff --git a/community/ebtables/ebtables.systemd b/community/ebtables/ebtables.systemd
index 4c51e9b6f..7c21ff967 100644
--- a/community/ebtables/ebtables.systemd
+++ b/community/ebtables/ebtables.systemd
@@ -1,13 +1,12 @@
#!/bin/bash
-. /etc/conf.d/ebtables
+CONFIG_FILE='/etc/ebtables.conf'
case $1 in
start)
ebtables-restore < "$CONFIG_FILE"
;;
stop)
- [[ $SAVE_ON_STOP =~ [yY][eE][sS] ]] && $0 save
ebtables -F
;;
save)