updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / arptables / PKGBUILD
blob0c17a15449e3fc7f4076bdd4242c36e56ddbde9d
1 # Maintainer: Daniel Micay <danielmicay@gmail.com>
2 # Contributor: Michal Soltys <soltys@ziu.info>
3 pkgname=arptables
4 pkgver=0.0.3.4
5 _realver='v0.0.3-4'
6 pkgrel=1
7 pkgdesc="ARP filtering utility."
8 arch=(i686 x86_64)
9 backup=(etc/conf.d/arptables)
10 url="http://ebtables.sourceforge.net/"
11 depends=('glibc' 'perl')
12 license=('GPL')
13 source=(http://downloads.sourceforge.net/ebtables/$pkgname-$_realver.tar.gz
14         arptables.sh)
16 md5sums=('1d4ab05761f063b0751645d8f2b8f8e5'
17          'b2e57fcd9d96a4a0978db5ac6f655b13')
19 build() {
20   cd "$srcdir/$pkgname-$_realver"
21   make
24 package() {
25   cd "$srcdir/$pkgname-$_realver"
26   mkdir -p "$pkgdir/etc/rc.d"
27   mkdir -p "$pkgdir/etc/arptables"
28   make install \
29     DESTDIR="$pkgdir" \
30     PREFIX=/usr \
31     LIBDIR=/usr/lib/arptables \
32     BINDIR=/usr/sbin \
33     MANDIR=/usr/share/man \
34     INITDIR=/etc/rc.d \
35     SYSCONFIGDIR=/etc/arptables
36   # use adjusted script
37   install -o root -m0755 -D ../arptables.sh "$pkgdir/etc/rc.d/arptables"