aboutsummaryrefslogtreecommitdiffstats
path: root/community/java-cacerts/APKBUILD
blob: 2d91f5fdcc7cecc3c12c4889ef1a9c953ed77ca5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=java-cacerts
pkgver=1.0
pkgrel=1
pkgdesc="Script to update java cacerts store"
url="https://git.alpinelinux.org/aports/tree/community/java-cacerts"
arch="noarch"
options="!check"  # Simple script, no tests
license="MIT"
depends="p11-kit p11-kit-trust ca-certificates"
install="$pkgname.post-deinstall"

package() {
	mkdir -p "$pkgdir"/etc/ca-certificates/update.d \
		"$pkgdir"/etc/ssl/certs/java
	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
}