aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-04 23:43:40 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-05 18:59:35 +0000
commit6f880fa5fe8ec8eb45a1f43d0db22c787e318c09 (patch)
tree29d8b0394987e279c46b379d1d62a4f79ce11247
parent2a6071335139030baffa365bf37fd67f1b47d403 (diff)
downloadaports-6f880fa5fe8ec8eb45a1f43d0db22c787e318c09.tar.gz
aports-6f880fa5fe8ec8eb45a1f43d0db22c787e318c09.tar.bz2
aports-6f880fa5fe8ec8eb45a1f43d0db22c787e318c09.tar.xz
main/libcap: upgrade to 2.27
- Fix license - Enable check - Fix permissions on the library - Split -static package
-rw-r--r--main/libcap/APKBUILD41
1 files changed, 29 insertions, 12 deletions
diff --git a/main/libcap/APKBUILD b/main/libcap/APKBUILD
index 1a99140204..8dd33d3b60 100644
--- a/main/libcap/APKBUILD
+++ b/main/libcap/APKBUILD
@@ -1,29 +1,46 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap
-pkgver=2.26
+pkgver=2.27
pkgrel=0
pkgdesc="POSIX 1003.1e capabilities"
+options="checkroot"
arch="all"
-license="GPL"
+license="BSD-3-Clause OR GPL-2.0-only"
url="http://www.friedhoff.org/posixfilecaps.html"
-options="!check"
-depends=
depends_dev="linux-headers"
makedepends_build="linux-headers perl"
makedepends_host="$depends_dev attr-dev"
makedepends="$makedepends_build $makedepends_host"
+checkdepends="bash"
source="https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.xz"
-subpackages="$pkgname-doc $pkgname-dev"
+subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
+builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir"/$pkgname-$pkgver
-build ()
-{
- cd "$_builddir"
+build() {
+ cd "$builddir"
make BUILD_CC=gcc CC="${CC:-gcc}" lib=lib prefix=/usr DESTDIR="$pkgdir"
}
+check() {
+ cd "$builddir"
+ # Running make test runs the command below but with sudo
+ cd progs && ./quicktest.sh
+}
+
package() {
- cd "$_builddir"
- make lib=/lib prefix=/usr RAISE_SETFCAP=no DESTDIR="$pkgdir" install
+ cd "$builddir"
+ make lib=lib prefix=/usr RAISE_SETFCAP=no DESTDIR="$pkgdir" install
+ # Fix perms
+ chmod -v 0755 "$pkgdir"/usr/lib/libcap.so.${pkgver}
+}
+
+static() {
+ depends=""
+ pkgdesc="$pkgdesc (static library)"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}
-sha512sums="1c2d59f007226405a924950b2c2090393527e06f0692a84e6463e33915a070df61a9070b8f30a624d5630ddd39290eac117e5d440577d1edd48510195b9d12f0 libcap-2.26.tar.xz"
+
+sha512sums="e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6 libcap-2.27.tar.xz"