aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipset
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-09-06 19:22:24 -0300
committerTimo Teräs <timo.teras@iki.fi>2017-09-07 08:31:58 +0000
commitc739761c10a8bc087f03fa2e6cc0639c973bc365 (patch)
treede0d9cdec8873b3d67e9c23d5e2abc4e5ea27359 /main/ipset
parent2e8993d237eda91f8465465a9119f76631a9d905 (diff)
downloadaports-c739761c10a8bc087f03fa2e6cc0639c973bc365.tar.bz2
aports-c739761c10a8bc087f03fa2e6cc0639c973bc365.tar.xz
main/ipset: modernize APKBUILD
Diffstat (limited to 'main/ipset')
-rw-r--r--main/ipset/APKBUILD25
1 files changed, 7 insertions, 18 deletions
diff --git a/main/ipset/APKBUILD b/main/ipset/APKBUILD
index 0b3c758fed..071d964c95 100644
--- a/main/ipset/APKBUILD
+++ b/main/ipset/APKBUILD
@@ -4,7 +4,7 @@ pkgname=ipset
pkgver=6.32
pkgrel=3
pkgdesc="Manage Linux IP sets"
-url=http://ipset.netfilter.org/
+url="http://ipset.netfilter.org/"
arch="all"
license="GPL2"
depends_dev="libmnl-dev"
@@ -13,31 +13,20 @@ 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
-}
-
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--with-kmod=no \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
}
package() {
- cd "$_builddir"
- make install DESTDIR=$pkgdir || return
+ cd "$builddir"
+ make install DESTDIR=$pkgdir
mkdir -p "$pkgdir/etc/init.d" \
"$pkgdir/etc/ipset.d"