# Contributor: Kaarle Ritvanen # Maintainer: Kaarle Ritvanen pkgname=ipset pkgver=6.31 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" } sha512sums="8a60f0a41df6b6c2be587928e34740fddca00858116ddedbd1f138b73585d7075e6f8d8578092337a8faf89f604021d709cb66b33f2709ab76b7c17335a732ed ipset-6.31.tar.bz2 73993eb882371f5ef605762c96ad33625b99680aa38c823ed908dfc43b1fa86eb7714fe3b6e4cd5547b7b0a9b1f4209d2541d60341548fcbbfa95244471cfc93 ipset.initd"