# Contributor: Kaarle Ritvanen # Maintainer: Kaarle Ritvanen pkgname=ipset pkgver=6.25.1 pkgrel=0 pkgdesc="Manage Linux IP sets" url=http://ipset.netfilter.org/ arch="all" license="GPL2" depends_dev="libmnl-dev" makedepends="$depends_dev automake autoconf libtool linux-headers" subpackages="$pkgname-dev $pkgname-doc" source="http://ipset.netfilter.org/ipset-$pkgver.tar.bz2 ipset.initd" _builddir=$srcdir/ipset-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --with-kmod=no \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make install DESTDIR=$pkgdir || return mkdir -p "$pkgdir/etc/init.d" \ "$pkgdir/etc/ipset.d" install -m 755 "$startdir/ipset.initd" "$pkgdir/etc/init.d/ipset" } md5sums="e58262af2d53bda271f43883eebc8d54 ipset-6.25.1.tar.bz2 14be64266379ee174a1ec05cc0dd1cfe ipset.initd" sha256sums="658e15d0d0d6a7160137ef1c2bc2c8669cfee996eb9e049df8d7313e34795e7b ipset-6.25.1.tar.bz2 0740ecf458b3eed921805b105b246a38bae49c2d3f04f8bc93e3d1f6f56c5e2f ipset.initd" sha512sums="b0ba9d477c4a7ffb0753306dee90d090e3a098b59e57ded873feb0b90bb0612376245d87df9de2e95a65d62805403cd545fce2e1d985e55889374c584990130f ipset-6.25.1.tar.bz2 01db7b2ce10e6253ca050e4f49746cbdfb62744efc80aa68b28735d2c17551cec27b97c992be621f505aa772a137b12b4f189e63113854a5f4c1477571d254cc ipset.initd"