summaryrefslogtreecommitdiffstats
path: root/abs/core/ca-certificates/ca-certificates-utils.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-09-23 00:04:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-09-23 00:04:27 (GMT)
commit4b74af3a1a584a48b2aa6cb866137e2509a89706 (patch)
treea709dabd354d18bb9283c77a9431f82c8aa0ed32 /abs/core/ca-certificates/ca-certificates-utils.install
parentf23f97abfd157cc02be0f088ea6c248953f9bb1f (diff)
downloadlinhes_pkgbuild-4b74af3a1a584a48b2aa6cb866137e2509a89706.zip
linhes_pkgbuild-4b74af3a1a584a48b2aa6cb866137e2509a89706.tar.gz
linhes_pkgbuild-4b74af3a1a584a48b2aa6cb866137e2509a89706.tar.bz2
ca-certificates: update
Diffstat (limited to 'abs/core/ca-certificates/ca-certificates-utils.install')
-rw-r--r--abs/core/ca-certificates/ca-certificates-utils.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/core/ca-certificates/ca-certificates-utils.install b/abs/core/ca-certificates/ca-certificates-utils.install
new file mode 100644
index 0000000..bf18c7f
--- /dev/null
+++ b/abs/core/ca-certificates/ca-certificates-utils.install
@@ -0,0 +1,29 @@
+export LC_ALL=C
+
+post_install() {
+ usr/bin/update-ca-trust
+}
+
+pre_upgrade() {
+ if (( $(vercmp $2 20140923-2) < 0 )); then
+ find /etc/ssl/certs -type l -print | while read symlink; do
+ case $(readlink $symlink) in
+ /usr/share/ca-certificates*) rm -f $symlink;;
+ esac
+ done
+ find /etc/ssl/certs -type l -print | while read symlink; do
+ test -f $symlink || rm -f $symlink
+ done
+ rm -f /etc/ssl/certs/ca-certificates.crt
+ fi
+}
+
+post_upgrade() {
+ usr/bin/update-ca-trust
+}
+
+pre_remove() {
+ usr/bin/update-ca-trust
+}
+
+# vim:set noet ts=8 sw=8: