diff options
Diffstat (limited to 'community/arptables/PKGBUILD')
-rw-r--r-- | community/arptables/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/arptables/PKGBUILD b/community/arptables/PKGBUILD new file mode 100644 index 000000000..172baf2bd --- /dev/null +++ b/community/arptables/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 59644 2011-11-29 01:04:59Z seblu $ +# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net +# Contributor: Daniel Micay <danielmicay@gmail.com> +# Contributor: Michal Soltys <soltys@ziu.info> + +pkgname=arptables +pkgver=0.0.3_4 +pkgrel=1 +pkgdesc='ARP filtering utility' +arch=('i686' 'x86_64') +url='http://ebtables.sourceforge.net/' +license=('GPL') +source=("http://downloads.sourceforge.net/ebtables/$pkgname-v${pkgver//_/-}.tar.gz" 'arptables.rc') +md5sums=('1d4ab05761f063b0751645d8f2b8f8e5' + 'f8c0ecad9151a16347c133e043232d4a') + +build() { + cd $pkgname-v${pkgver//_/-} + make +} + +package() { + # install rc script + install -D -m 0755 arptables.rc "$pkgdir/etc/rc.d/arptables" + + # setup arptables + cd $pkgname-v${pkgver//_/-} + make install \ + DESTDIR="$pkgdir" \ + PREFIX=/usr \ + LIBDIR=/usr/lib/arptables \ + BINDIR=/usr/sbin \ + MANDIR=/usr/share/man \ + INITDIR=/etc/rc.d \ + SYSCONFIGDIR=/etc/arptables +} + +# vim:set ts=2 sw=2 ft=sh et: |