aboutsummaryrefslogtreecommitdiffstats
path: root/main/libcap-ng
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-09 12:13:34 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-09 12:13:34 +0000
commit42052fa4858f3a320230c65f0527f1aa901a260a (patch)
treee9d2cf1095654148c62eef732930915f82d9b375 /main/libcap-ng
parent8f74060778d77defafcd1f9b817d59910d0f94b5 (diff)
downloadaports-42052fa4858f3a320230c65f0527f1aa901a260a.tar.bz2
aports-42052fa4858f3a320230c65f0527f1aa901a260a.tar.xz
main/libcap-ng: fix musl build
Diffstat (limited to 'main/libcap-ng')
-rw-r--r--main/libcap-ng/APKBUILD17
-rw-r--r--main/libcap-ng/fix-includes.patch17
2 files changed, 31 insertions, 3 deletions
diff --git a/main/libcap-ng/APKBUILD b/main/libcap-ng/APKBUILD
index 1db2bd2618..f722a99491 100644
--- a/main/libcap-ng/APKBUILD
+++ b/main/libcap-ng/APKBUILD
@@ -10,14 +10,20 @@ depends=
makedepends="python"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
-source="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz"
+source="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz
+ fix-includes.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
- # apply patches here
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
build() {
@@ -45,4 +51,9 @@ utils() {
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
}
-md5sums="610afb774f80a8032b711281df126283 libcap-ng-0.7.3.tar.gz"
+md5sums="610afb774f80a8032b711281df126283 libcap-ng-0.7.3.tar.gz
+1fb40026b1439ff4cb6566c96f653775 fix-includes.patch"
+sha256sums="5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1 libcap-ng-0.7.3.tar.gz
+577db727f4918e89a2695de4035244a6dc3b5280a9338c1c80ad30567e7292c3 fix-includes.patch"
+sha512sums="f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2 libcap-ng-0.7.3.tar.gz
+a7ffa9b196b92398755c9409b28e966faa0143bdd115cdd7409eb65b87f09fcd6fec2937b5cc847a2eed895134fe6dd79c075cce652cb11f146eb3f0889bca59 fix-includes.patch"
diff --git a/main/libcap-ng/fix-includes.patch b/main/libcap-ng/fix-includes.patch
new file mode 100644
index 0000000000..8a52a4efb3
--- /dev/null
+++ b/main/libcap-ng/fix-includes.patch
@@ -0,0 +1,17 @@
+Only in libcap-ng-0.7.3: utils/.libs/filecap
+Only in libcap-ng-0.7.3: utils/.libs/netcap
+Only in libcap-ng-0.7.3: utils/filecap
+Only in libcap-ng-0.7.3: utils/netcap
+Only in libcap-ng-0.7.3: utils/netcap.o
+--- libcap-ng-0.7.3.orig/utils/proc-llist.h
++++ libcap-ng-0.7.3/utils/proc-llist.h
+@@ -25,7 +25,7 @@
+ #define PROC_HEADER
+
+ #include "config.h"
+-
++#include <sys/types.h>
+
+ /* This is the node of the linked list. Any data elements that are per
+ * record goes here. */
+Only in libcap-ng-0.7.3: utils/proc-llist.o