# $Id: PKGBUILD 70556 2012-05-11 12:51:57Z seblu $ # Maintainer: Sébastien Luttringer pkgname=ipset pkgver=6.12.1 pkgrel=1 pkgdesc='Administration tool for IP sets' arch=('i686' 'x86_64') url='http://ipset.netfilter.org' license=('GPL2') depends=('libmnl') backup=('etc/ipset.conf' "etc/conf.d/$pkgname") options=('!libtool') source=("http://ipset.netfilter.org/$pkgname-$pkgver.tar.bz2" "$pkgname.conf" "$pkgname.rc" "$pkgname.systemd" "$pkgname.service") md5sums=('80df500a4d93cb14e1373ae290716cda' '61963bda45c002fb37977e58bb5b829c' '888bf1eadffcc076b9e97de02e2147c8' 'c5f38e5f3027066c1491a563e734796e' 'b9ff3bd7b959cb1b97b8c492b52b8377') build() { cd $pkgname-$pkgver ./configure --prefix=/usr --with-kmod=no make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install # install doc install -dm755 "$pkgdir/usr/share/doc/$pkgname" install -m644 README UPGRADE ChangeLog "$pkgdir/usr/share/doc/$pkgname" # install initscripts cd .. 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: