summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-07 13:27:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-07 13:27:40 +0000
commitf7900a9fcc96a8cc8c3244399f46110d261a09b7 (patch)
tree3b8022a0e8ff33311bc6d7fa26c4825030a64288
parent3a59681f21a5870c3f26060ece2794817ce3e81e (diff)
downloadaports-f7900a9fcc96a8cc8c3244399f46110d261a09b7.tar.bz2
aports-f7900a9fcc96a8cc8c3244399f46110d261a09b7.tar.xz
testing/libcap-ng: new aport
posix capabilities library http://people.redhat.com/sgrubb/libcap-ng/index.html fixes #95
-rw-r--r--testing/libcap-ng/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/libcap-ng/APKBUILD b/testing/libcap-ng/APKBUILD
new file mode 100644
index 000000000..3abe2e231
--- /dev/null
+++ b/testing/libcap-ng/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libcap-ng
+pkgver=0.6.4
+pkgrel=0
+pkgdesc="posix capabilities library"
+url="http://people.redhat.com/sgrubb/libcap-ng/index.html"
+license="GPL"
+depends=
+makedepends="python"
+install=
+subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
+source="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+utils() {
+ pkgdesc="posix capabilities utils"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
+}
+
+md5sums="ae817cd585ca11db257330b392003ed6 libcap-ng-0.6.4.tar.gz"