summaryrefslogtreecommitdiff
path: root/user/keyutils
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 21:21:41 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 21:21:41 -0500
commit290af696d71e2575b4e5c5e796b0e969a08e736d (patch)
treeac7ecde15cc70b1439fa3a77c65b84c46aaec060 /user/keyutils
parent64a2abccf959f57c4b2de36459c8cd61b3163b52 (diff)
downloadpackages-290af696d71e2575b4e5c5e796b0e969a08e736d.tar.gz
packages-290af696d71e2575b4e5c5e796b0e969a08e736d.tar.bz2
packages-290af696d71e2575b4e5c5e796b0e969a08e736d.tar.xz
packages-290af696d71e2575b4e5c5e796b0e969a08e736d.zip
user/keyutils: pull in, fix license, use HTTPS, modernise
Diffstat (limited to 'user/keyutils')
-rw-r--r--user/keyutils/APKBUILD45
-rw-r--r--user/keyutils/fix-includes.patch10
2 files changed, 55 insertions, 0 deletions
diff --git a/user/keyutils/APKBUILD b/user/keyutils/APKBUILD
new file mode 100644
index 000000000..4696cafef
--- /dev/null
+++ b/user/keyutils/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=keyutils
+pkgver=1.5.10
+pkgrel=1
+pkgdesc="Linux key management utilities"
+url="https://people.redhat.com/~dhowells/keyutils/"
+arch="all"
+options="!check" # Test suite requires RPM.
+license="GPL-2.0+ AND LGPL-2.1+"
+depends=""
+makedepends="file linux-headers"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="https://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2
+ fix-includes.patch
+ "
+
+build() {
+ cd "$builddir"
+ make -j1 \
+ NO_ARLIB=1 \
+ LIBDIR=/lib \
+ USRLIBDIR=/usr/lib \
+ VERSION=$pkgver \
+ RELEASE=-r$pkgrel \
+ CFLAGS="$CFLAGS"
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" \
+ NO_ARLIB=1 \
+ LIBDIR=/lib \
+ USRLIBDIR=/usr/lib \
+ install
+}
+
+libs() {
+ pkgdesc="Key utilities library"
+ mkdir -p "$subpkgdir"
+ mv "$pkgdir"/lib "$subpkgdir"/
+}
+
+sha512sums="7f6f956c7e76cdc2aeb52e74fe670b20a5f9a5d9b543fd2ce971d80c48745f37d05235a42f0a8f152b1128a109c7d8bf07e751282a20d2d3f433a99a5308ae8d keyutils-1.5.10.tar.bz2
+e7a913c97c4116e5f4b7fdf4d071835dcf05a7aa4ce782fd717e4694414023fb3ed88b8a15710b15869545046e99f706fe8476f9d4fe6578d2eae571e1ed8103 fix-includes.patch"
diff --git a/user/keyutils/fix-includes.patch b/user/keyutils/fix-includes.patch
new file mode 100644
index 000000000..df0e7ddf7
--- /dev/null
+++ b/user/keyutils/fix-includes.patch
@@ -0,0 +1,10 @@
+--- keyutils-1.5.8.orig/key.dns_resolver.c
++++ keyutils-1.5.8/key.dns_resolver.c
+@@ -56,6 +56,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <time.h>
++#include <limits.h>
+
+ static const char *DNS_PARSE_VERSION = "1.0";
+ static const char prog[] = "key.dns_resolver";