aboutsummaryrefslogtreecommitdiffstats
path: root/main/keyutils/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-24 19:38:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-24 19:54:29 +0000
commit56b8f0872d43b4935c14ede010ceeefee3499734 (patch)
treec8dd203f99938d7af6564d09e7266a5db01bd619 /main/keyutils/APKBUILD
parenta23ec43e7bfd9f15490d3954a16df8ffa94e7e31 (diff)
downloadaports-56b8f0872d43b4935c14ede010ceeefee3499734.tar.bz2
aports-56b8f0872d43b4935c14ede010ceeefee3499734.tar.xz
main/keyutils: move from testing
Diffstat (limited to 'main/keyutils/APKBUILD')
-rw-r--r--main/keyutils/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/main/keyutils/APKBUILD b/main/keyutils/APKBUILD
new file mode 100644
index 0000000000..8a004e38da
--- /dev/null
+++ b/main/keyutils/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=keyutils
+pkgver=1.5.2
+pkgrel=0
+pkgdesc="Linux Key Management Utilities"
+url="http://people.redhat.com/~dhowells/keyutils/"
+arch="all"
+license="GPLv2+ LGPLv2+"
+depends=""
+makedepends=""
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="http://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2
+ keyutils-no-key.dns_resolver.patch"
+
+_builddir="$srcdir"/keyutils-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make -j1 \
+ NO_ARLIB=1 \
+ LIBDIR=/lib \
+ USRLIBDIR=/usr/lib \
+ VERSION=$pkgver \
+ RELEASE=-r$pkgrel \
+ CFLAGS="$CFLAGS" \
+ NO_GLIBC_KEYERR=1 \
+ || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" \
+ NO_ARLIB=1 \
+ LIBDIR=/lib \
+ USRLIBDIR=/usr/lib \
+ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+libs() {
+ pkgdesc="Key utilities library"
+ mkdir -p "$subpkgdir"
+ mv "$pkgdir"/lib "$subpkgdir"/
+}
+
+md5sums="19811ee31f683058a9aae3e6a3a23a7f keyutils-1.5.2.tar.bz2
+5884b0e3fa9609d484ad6f073810b21a keyutils-no-key.dns_resolver.patch"