aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-08-07 11:32:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-08-07 11:32:09 +0000
commit8fefc3efa34f8f298587ab8be439797ade3a080a (patch)
tree765a041c63133c77f6390ba76d60a0e602e061a3
parent09cd686bf2e8f50b058ddedc17c9e7521ba25234 (diff)
downloadaports-8fefc3efa34f8f298587ab8be439797ade3a080a.tar.gz
aports-8fefc3efa34f8f298587ab8be439797ade3a080a.tar.bz2
aports-8fefc3efa34f8f298587ab8be439797ade3a080a.tar.xz
main/libmnl: build -static subpackage, enable check
-rw-r--r--main/libmnl/APKBUILD25
-rw-r--r--main/libmnl/musl-fix-headers.patch13
2 files changed, 26 insertions, 12 deletions
diff --git a/main/libmnl/APKBUILD b/main/libmnl/APKBUILD
index 853f319694..194a407df3 100644
--- a/main/libmnl/APKBUILD
+++ b/main/libmnl/APKBUILD
@@ -2,31 +2,32 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libmnl
pkgver=1.0.4
-pkgrel=0
+pkgrel=1
pkgdesc="Library for minimalistic netlink"
url="http://www.netfilter.org/projects/libmnl/"
arch="all"
license="GPL"
-depends=
depends_dev="linux-headers"
-makedepends="$depends_dev"
-install=""
-subpackages="$pkgname-dev"
-source="https://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"
-builddir="$srcdir"/$pkgname-$pkgver
+makedepends="$depends_dev bsd-compat-headers"
+subpackages="$pkgname-static $pkgname-dev"
+source="https://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2
+ musl-fix-headers.patch"
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- || return 1
+ --enable-static
+}
+
+check() {
+ make check
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
-sha512sums="e2bbfb688fe41913d53c74ba7ec95b4e88ee2c52b556b8608185f2fcbd629665423a3b37f877f84426ba257cf6040fa701539d67166b00b8e3e2dfde6831a2f9 libmnl-1.0.4.tar.bz2"
+sha512sums="e2bbfb688fe41913d53c74ba7ec95b4e88ee2c52b556b8608185f2fcbd629665423a3b37f877f84426ba257cf6040fa701539d67166b00b8e3e2dfde6831a2f9 libmnl-1.0.4.tar.bz2
+984307f6a40bdd1231cf97ac84719eefaf436544bcad3a52f8590ab73676ac3064f44af65b57dfb7920aa3c84a44977e385410faf354a0a64efc5364b4314496 musl-fix-headers.patch"
diff --git a/main/libmnl/musl-fix-headers.patch b/main/libmnl/musl-fix-headers.patch
new file mode 100644
index 0000000000..f3338b1035
--- /dev/null
+++ b/main/libmnl/musl-fix-headers.patch
@@ -0,0 +1,13 @@
+diff --git a/examples/netfilter/nfct-daemon.c b/examples/netfilter/nfct-daemon.c
+index a97c2ec..e3bb17a 100644
+--- a/examples/netfilter/nfct-daemon.c
++++ b/examples/netfilter/nfct-daemon.c
+@@ -20,6 +20,8 @@
+ #include <linux/netfilter/nfnetlink_conntrack.h>
+
+ #include <sys/queue.h>
++#include <sys/time.h>
++#include <sys/select.h>
+
+ struct nstats {
+ LIST_ENTRY(nstats) list;