diff options
Diffstat (limited to 'community/arptables/PKGBUILD')
-rw-r--r-- | community/arptables/PKGBUILD | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/community/arptables/PKGBUILD b/community/arptables/PKGBUILD index ac6942bcb..40eba2685 100644 --- a/community/arptables/PKGBUILD +++ b/community/arptables/PKGBUILD @@ -1,18 +1,27 @@ -# $Id: PKGBUILD 64145 2012-02-09 09:48:15Z seblu $ +# $Id: PKGBUILD 71317 2012-05-26 14:59:39Z 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 +pkgrel=3 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') +backup=("etc/$pkgname.conf" "etc/conf.d/$pkgname") +install=$pkgname.install +source=("http://downloads.sourceforge.net/ebtables/$pkgname-v${pkgver//_/-}.tar.gz" + "$pkgname.conf" + "$pkgname.rc" + "$pkgname.systemd" + "$pkgname.service") md5sums=('1d4ab05761f063b0751645d8f2b8f8e5' - 'f8c0ecad9151a16347c133e043232d4a') + '00bfb5bd8a83a5b466c650ee5d8f86f3' + '60e0319b55b1ef9e13d9ac03dd98c8d4' + '65a9ed0b866f727184a87e4d480975bd' + 'b26771191e52905d8aea6333c26cb1c3') build() { cd $pkgname-v${pkgver//_/-} @@ -20,8 +29,7 @@ build() { } package() { - # setup arptables - cd $pkgname-v${pkgver//_/-} + pushd $pkgname-v${pkgver//_/-} make install \ DESTDIR="$pkgdir" \ PREFIX=/usr \ @@ -29,10 +37,18 @@ package() { 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" + 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 + 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" } # vim:set ts=2 sw=2 ft=sh et: |