aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-01-14 10:51:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-01-14 10:57:33 +0000
commit4da7af6e0184065bc8e6f1fad917cd8eab52eda5 (patch)
tree23f2ff2fa2c0bb86eb1ecf7b8d710a7ee8e18993 /testing
parentfebc87f0569a6cc0e688991108c60a1c7d88f81e (diff)
downloadaports-4da7af6e0184065bc8e6f1fad917cd8eab52eda5.tar.gz
aports-4da7af6e0184065bc8e6f1fad917cd8eab52eda5.tar.bz2
aports-4da7af6e0184065bc8e6f1fad917cd8eab52eda5.tar.xz
testing/java-cacerts: new aport
Script to update java cacerts store http://git.alpinelinux.org/cgit/aports/community/java-cacerts
Diffstat (limited to 'testing')
-rw-r--r--testing/java-cacerts/APKBUILD43
-rw-r--r--testing/java-cacerts/java-cacerts.post-deinstall2
2 files changed, 45 insertions, 0 deletions
diff --git a/testing/java-cacerts/APKBUILD b/testing/java-cacerts/APKBUILD
new file mode 100644
index 0000000000..eee10281ca
--- /dev/null
+++ b/testing/java-cacerts/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=java-cacerts
+pkgver=1.0
+pkgrel=0
+pkgdesc="Script to update java cacerts store"
+url="http://git.alpinelinux.org/cgit/aports/community/java-cacerts"
+arch="noarch"
+license="MIT"
+depends="p11-kit p11-kit-trust ca-certificates"
+depends_dev=""
+makedepends="$depends_dev"
+install="$pkgname.post-deinstall"
+subpackages=""
+source=""
+
+_builddir="$srcdir"
+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() {
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/etc/ca-certificates/update.d \
+ "$pkgdir"/etc/ssl/certs/java || return 1
+ cat > "$pkgdir"/etc/ca-certificates/update.d/java-cacerts <<EOF
+#!/bin/sh
+exec trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
+ --purpose server-auth /etc/ssl/certs/java/cacerts
+EOF
+ chmod +x "$pkgdir"/etc/ca-certificates/update.d/java-cacerts
+}
+
+
diff --git a/testing/java-cacerts/java-cacerts.post-deinstall b/testing/java-cacerts/java-cacerts.post-deinstall
new file mode 100644
index 0000000000..de859d92a6
--- /dev/null
+++ b/testing/java-cacerts/java-cacerts.post-deinstall
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec rm -f /etc/ssl/certs/java/cacerts