summaryrefslogtreecommitdiff
path: root/community/arptables/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/arptables/PKGBUILD')
-rw-r--r--community/arptables/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/arptables/PKGBUILD b/community/arptables/PKGBUILD
new file mode 100644
index 000000000..edc4066e8
--- /dev/null
+++ b/community/arptables/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 90489 2013-05-12 22:21:54Z seblu $
+# Maintainer: Sébastien Luttringer
+# Contributor: Daniel Micay <danielmicay@gmail.com>
+# Contributor: Michal Soltys <soltys@ziu.info>
+
+pkgname=arptables
+pkgver=0.0.4
+pkgrel=2
+pkgdesc='ARP filtering utility'
+arch=('i686' 'x86_64')
+url='http://ebtables.sourceforge.net/'
+depends=('glibc' 'perl' 'bash')
+license=('GPL')
+backup=("etc/$pkgname.conf")
+source=("http://downloads.sourceforge.net/ebtables/$pkgname-v${pkgver//_/-}.tar.gz"
+ "$pkgname.systemd"
+ "$pkgname.service")
+md5sums=('c2e99c3aa9d78c9dfa30710ca3168182'
+ 'e54342a833c52b2bc67e7985e8f8fdfd'
+ 'b26771191e52905d8aea6333c26cb1c3')
+
+build() {
+ cd $pkgname-v${pkgver//_/-}
+ make
+}
+
+package() {
+ pushd $pkgname-v${pkgver//_/-}
+ make install \
+ DESTDIR="$pkgdir" \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib/arptables \
+ BINDIR=/usr/bin \
+ MANDIR=/usr/share/man \
+ INITDIR=/etc/rc.d \
+ SYSCONFIGDIR=/etc
+ popd
+ # 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 et: