diff options
Diffstat (limited to 'main/nftables')
-rw-r--r-- | main/nftables/APKBUILD | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/main/nftables/APKBUILD b/main/nftables/APKBUILD index 4b701cb8d7..8224af55d7 100644 --- a/main/nftables/APKBUILD +++ b/main/nftables/APKBUILD @@ -7,32 +7,22 @@ pkgdesc="Netfilter tables userspace tools" url="http://netfilter.org/projects/nftables/" arch="all" license="GPL2" -depends="" -depends_dev="" makedepends="libmnl-dev libnftnl-dev gmp-dev readline-dev ncurses-dev bison flex docbook2x" -install="" subpackages="$pkgname-doc" source="http://netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2 nftables.confd nftables.initd" +builddir="$srcdir/$pkgname-$pkgver" -_builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$_builddir" - sed -i '1i#include "config.h"' \ - src/proto.c || return 1 - - local i= - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare + sed -i '1i#include "config.h"' "$builddir"/src/proto.c } build() { - cd "$_builddir" + cd "$builddir" + CONFIG_MAN=y DB2MAN=docbook2x-man ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -40,27 +30,19 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + + make DESTDIR="$pkgdir" install - install -Dm755 "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - install -Dm644 "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname || return 1 + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } -md5sums="4c005e76a15a029afaba71d7db21d065 nftables-0.7.tar.bz2 -52273a548f7cbfe17ba9ba97b10cf685 nftables.confd -15a168de8e5aa18cb1d2a84c90850ad7 nftables.initd" -sha256sums="fe639239d801ce5890397f6f4391c58a934bfc27d8b7d5ef922692de5ec4ed43 nftables-0.7.tar.bz2 -8f09ab3f86f326d3b78dca50db0bfdde2d8bf5e5d45e3495a836edebe99ec2ff nftables.confd -3b51a516d419f0d003c7a0131525ce1cec33793eb13d3afafb9b61060fbaf62e nftables.initd" sha512sums="42fd03aabcc25fe7539102dea3937d6885d62cd2fe0f75412794142f9f5684b17f04257721ada7472b65ec7170fe629741ba411fa06528191b5701c5085bb069 nftables-0.7.tar.bz2 f709e203d949380dce8ffdaed616c047280d3fe7448bb024a6f6c01a17c11bf7caaa5f67b412bc90c9bff4ce91a6fd5e5270d259dc30fdcda81dd2f6221ad0d8 nftables.confd 40a91ef2cff9a8fd5b88888fc601cfbdf30ab0d16bb37997ebee53b7b528de7adc26eca1adfd885fa5b17cc7abf7d4fd30a40385002042d6796aea9c820c3bc6 nftables.initd" |