Commit 13bf149a authored by Natanael Copa's avatar Natanael Copa Committed by Natanael Copa

community/java-cacerts: backport from edge

parent 5d476014
# 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
}
#!/bin/sh
exec rm -f /etc/ssl/certs/java/cacerts
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment