summaryrefslogtreecommitdiff
path: root/community/arptables/PKGBUILD
blob: ac6942bcb1073c0c3de889b62c8d88e051bee53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 64145 2012-02-09 09:48:15Z 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=2
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() {
  # 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

  # install rc script
  install -D -m 0755 ../arptables.rc "$pkgdir/etc/rc.d/arptables"
}

# vim:set ts=2 sw=2 ft=sh et: