diff options
author | James Meyer <james.meyer@operamail.com> | 2012-11-01 20:49:39 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-11-01 20:49:39 (GMT) |
commit | 1563ce5b39f113386cc32140754dfa4eafa1a597 (patch) | |
tree | a5b2f0c57fc098d85ef7ff8416252cf2d3ed671e /abs/extra/ca-certificates-java/ca-certificates-java.install | |
parent | bd569bc5aed964cff7aca693255e515b999c98f4 (diff) | |
download | linhes_pkgbuild-1563ce5b39f113386cc32140754dfa4eafa1a597.zip linhes_pkgbuild-1563ce5b39f113386cc32140754dfa4eafa1a597.tar.gz linhes_pkgbuild-1563ce5b39f113386cc32140754dfa4eafa1a597.tar.bz2 |
ca-certificates-java: added for rhino, which is needed for zoneminder
refs #857
Diffstat (limited to 'abs/extra/ca-certificates-java/ca-certificates-java.install')
-rw-r--r-- | abs/extra/ca-certificates-java/ca-certificates-java.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/extra/ca-certificates-java/ca-certificates-java.install b/abs/extra/ca-certificates-java/ca-certificates-java.install new file mode 100644 index 0000000..f5ce35e --- /dev/null +++ b/abs/extra/ca-certificates-java/ca-certificates-java.install @@ -0,0 +1,18 @@ +post_install() { + if [ ! -f etc/ssl/certs/java/cacerts ]; then + if which java >/dev/null 2>&1; then + usr/sbin/init-jks-keystore + fi + fi +} + +post_upgrade() { + if [ $(vercmp $2 20110426-2) -lt 0 ]; then + mv etc/ssl/certs/java/cacerts etc/ssl/certs/java/cacerts.pacsave + fi + post_install +} + +post_remove() { + rm -rf etc/ssl/certs/java +} |