aboutsummaryrefslogblamecommitdiffstats
path: root/community/java-cacerts/APKBUILD
blob: 917bd773b0af7d9c0966d8a8725ca529ed7a7102 (plain) (tree)
1
2
3
4
5
6
7
8




                                                   
                                                                    
             
                                           







                                               
                  





                
                      










                                                                          
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=java-cacerts
pkgver=1.0
pkgrel=0
pkgdesc="Script to update java cacerts store"
url="https://git.alpinelinux.org/cgit/aports/community/java-cacerts"
arch="noarch"
options="!check"  # Simple script, no tests
license="MIT"
depends="p11-kit p11-kit-trust ca-certificates"
depends_dev=""
makedepends="$depends_dev"
install="$pkgname.post-deinstall"
subpackages=""
source=""

builddir="$srcdir"

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
}