summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-24 19:31:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-24 19:54:29 +0000
commit0ae0f839c4f2558983a493c7067fc8f9f7e80a6b (patch)
tree132b2e4687f9055b777f79c249c47d01098cae52 /testing
parent9edcf6dad4ec052978a787db19b998d918bea10e (diff)
downloadaports-0ae0f839c4f2558983a493c7067fc8f9f7e80a6b.tar.bz2
aports-0ae0f839c4f2558983a493c7067fc8f9f7e80a6b.tar.xz
testing/keyutils: new aport
Linux Key Management Utilities http://people.redhat.com/~dhowells/keyutils/
Diffstat (limited to 'testing')
-rw-r--r--testing/keyutils/APKBUILD58
-rw-r--r--testing/keyutils/keyutils-no-key.dns_resolver.patch27
2 files changed, 85 insertions, 0 deletions
diff --git a/testing/keyutils/APKBUILD b/testing/keyutils/APKBUILD
new file mode 100644
index 000000000..8a004e38d
--- /dev/null
+++ b/testing/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"
diff --git a/testing/keyutils/keyutils-no-key.dns_resolver.patch b/testing/keyutils/keyutils-no-key.dns_resolver.patch
new file mode 100644
index 000000000..512b04da6
--- /dev/null
+++ b/testing/keyutils/keyutils-no-key.dns_resolver.patch
@@ -0,0 +1,27 @@
+--- ./Makefile.orig
++++ ./Makefile
+@@ -84,7 +84,7 @@
+ # Normal build rule
+ #
+ ###############################################################################
+-all: $(DEVELLIB) keyctl request-key key.dns_resolver
++all: $(DEVELLIB) keyctl request-key
+
+ ###############################################################################
+ #
+@@ -150,7 +150,6 @@
+ $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
+ $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
+ $(INSTALL) -D request-key-debug.sh $(DESTDIR)$(SHAREDIR)/request-key-debug.sh
+- $(INSTALL) -D key.dns_resolver $(DESTDIR)$(SBINDIR)/key.dns_resolver
+ $(INSTALL) -D -m 0644 request-key.conf $(DESTDIR)$(ETCDIR)/request-key.conf
+ $(INSTALL) -D -m 0644 keyctl.1 $(DESTDIR)$(MAN1)/keyctl.1
+ $(INSTALL) -D -m 0644 keyctl_chown.3 $(DESTDIR)$(MAN3)/keyctl_chown.3
+@@ -180,7 +179,6 @@
+ $(LNS) recursive_key_scan.3 $(DESTDIR)$(MAN3)/recursive_session_key_scan.3
+ $(INSTALL) -D -m 0644 request-key.conf.5 $(DESTDIR)$(MAN5)/request-key.conf.5
+ $(INSTALL) -D -m 0644 request-key.8 $(DESTDIR)$(MAN8)/request-key.8
+- $(INSTALL) -D -m 0644 key.dns_resolver.8 $(DESTDIR)$(MAN8)/key.dns_resolver.8
+ $(INSTALL) -D -m 0644 keyutils.h $(DESTDIR)$(INCLUDEDIR)/keyutils.h
+
+ ###############################################################################