summaryrefslogtreecommitdiff
path: root/community/arptables
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-25 00:06:28 -0800
committerroot <root@rshg054.dnsready.net>2013-01-25 00:06:28 -0800
commitef71629a65f6e8052d66775f07b079bf08322476 (patch)
treeedd2ad98fa5697fc7a95e3eed0a8902656e55fde /community/arptables
parent570e3637e2a4ba372dabbbbb8953d7b4ccdcaa39 (diff)
Fri Jan 25 00:06:28 PST 2013
Diffstat (limited to 'community/arptables')
-rw-r--r--community/arptables/PKGBUILD27
-rw-r--r--community/arptables/arptables.systemd3
2 files changed, 12 insertions, 18 deletions
diff --git a/community/arptables/PKGBUILD b/community/arptables/PKGBUILD
index 40eba2685..c87d046bd 100644
--- a/community/arptables/PKGBUILD
+++ b/community/arptables/PKGBUILD
@@ -1,26 +1,22 @@
-# $Id: PKGBUILD 71317 2012-05-26 14:59:39Z seblu $
+# $Id: PKGBUILD 82774 2013-01-24 11:14:44Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Michal Soltys <soltys@ziu.info>
pkgname=arptables
-pkgver=0.0.3_4
-pkgrel=3
+pkgver=0.0.4
+pkgrel=1
pkgdesc='ARP filtering utility'
arch=('i686' 'x86_64')
url='http://ebtables.sourceforge.net/'
+depends=('glibc' 'perl' 'bash')
license=('GPL')
-backup=("etc/$pkgname.conf" "etc/conf.d/$pkgname")
-install=$pkgname.install
+backup=("etc/$pkgname.conf")
source=("http://downloads.sourceforge.net/ebtables/$pkgname-v${pkgver//_/-}.tar.gz"
- "$pkgname.conf"
- "$pkgname.rc"
"$pkgname.systemd"
"$pkgname.service")
-md5sums=('1d4ab05761f063b0751645d8f2b8f8e5'
- '00bfb5bd8a83a5b466c650ee5d8f86f3'
- '60e0319b55b1ef9e13d9ac03dd98c8d4'
- '65a9ed0b866f727184a87e4d480975bd'
+md5sums=('c2e99c3aa9d78c9dfa30710ca3168182'
+ 'e54342a833c52b2bc67e7985e8f8fdfd'
'b26771191e52905d8aea6333c26cb1c3')
build() {
@@ -39,16 +35,15 @@ package() {
INITDIR=/etc/rc.d \
SYSCONFIGDIR=/etc
popd
- # 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 \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
# default config file
install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
+ # remove upstream rc
+ rm -rf "$pkgdir/etc/rc.d"
}
-# vim:set ts=2 sw=2 ft=sh et:
+# vim:set ts=2 sw=2 et:
diff --git a/community/arptables/arptables.systemd b/community/arptables/arptables.systemd
index bc5acdbcf..6a4019257 100644
--- a/community/arptables/arptables.systemd
+++ b/community/arptables/arptables.systemd
@@ -1,13 +1,12 @@
#!/bin/bash
-. /etc/conf.d/arptables
+CONFIG_FILE='/etc/arptables.conf'
case $1 in
start)
arptables-restore < "$CONFIG_FILE"
;;
stop)
- [[ $SAVE_ON_STOP =~ [yY][eE][sS] ]] && $0 save
arptables-restore < /dev/null
;;
save)