ca-certificates: Make ca-certificates-java subpkg
This commit is contained in:
parent
0812ad2a2c
commit
b1e65b4d4f
@ -14,4 +14,22 @@ termux_step_make_install () {
|
|||||||
termux_download https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt \
|
termux_download https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt \
|
||||||
$CERTFILE \
|
$CERTFILE \
|
||||||
$CERTFILE_SHA256
|
$CERTFILE_SHA256
|
||||||
|
touch $CERTFILE
|
||||||
|
|
||||||
|
# Build java keystore which is split out into a ca-certificates-java subpackage:
|
||||||
|
local KEYUTIL_JAR=$TERMUX_PKG_CACHEDIR/keyutil-0.4.0.jar
|
||||||
|
termux_download \
|
||||||
|
https://github.com/use-sparingly/keyutil/releases/download/0.4.0/keyutil-0.4.0.jar \
|
||||||
|
$KEYUTIL_JAR \
|
||||||
|
18f1d2c82839d84949b1ad015343c509e81ef678c24db6112acc6c0761314610
|
||||||
|
|
||||||
|
local JAVA_KEYSTORE_DIR=$PREFIX/lib/jvm/openjdk-9/lib/security
|
||||||
|
mkdir -p $JAVA_KEYSTORE_DIR
|
||||||
|
|
||||||
|
java -jar $KEYUTIL_JAR \
|
||||||
|
--import \
|
||||||
|
--new-keystore $JAVA_KEYSTORE_DIR/jssecacerts \
|
||||||
|
--password changeit \
|
||||||
|
--force-new-overwrite \
|
||||||
|
--import-pem-file $CERTFILE
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
TERMUX_SUBPKG_INCLUDE="lib/jvm"
|
||||||
|
TERMUX_SUBPKG_DESCRIPTION="Common CA certificates (java keystore format)"
|
||||||
|
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true
|
Loading…
Reference in New Issue
Block a user