]> git.donarmstrong.com Git - ca-certificates.git/blobdiff - debian/postinst
Import Debian version 20090708
[ca-certificates.git] / debian / postinst
index 4d6804bd24414edc5b9f438160912694b7e7d219..ca6aab06b1c7de96b7f0212efcb2babe46bf5741 100644 (file)
@@ -38,10 +38,15 @@ delca() {
 
 case "$1" in
     configure)
-        if dpkg --compare-versions "$2" lt 20030414; then
-           # remove old *.pem files that ca-certificates installed 
-           (cd /etc/ssl/certs; rm -f $(cat /usr/share/doc/ca-certificates/oldpemfiles))
-       fi
+        if [ ! -e /usr/local/share/ca-certificates ]
+        then
+            if mkdir /usr/local/share/ca-certificates 2>/dev/null
+            then
+                chown root:staff /usr/local/share/ca-certificates
+                chmod 2775 /usr/local/share/ca-certificates
+            fi
+        fi
+
         . /usr/share/debconf/confmodule
        db_version 2.0
        db_capb multiselect
@@ -51,6 +56,9 @@ case "$1" in
        CERTS_ENABLED="$RET"
        # XXX unmark seen for next configuration
        db_fset ca-certificates/new_crts seen false
+       # We should clean up this value now, as everyone will have
+       # upgraded to a fixed version.
+       db_fset ca-certificates/enable_crts asked_pt_br_question false
        db_stop || true
        if test -f /etc/ca-certificates.conf; then
          # XXX: while in subshell?
@@ -104,13 +112,13 @@ case "$1" in
          # new file
          cat > /etc/ca-certificates.conf <<EOF
 # This file lists certificates that you wish to use or to ignore to be
-# installed in /etc/ssl/certs. 
+# installed in /etc/ssl/certs.
 # update-ca-certificates(8) will update /etc/ssl/certs by reading this file.
-# 
+#
 # This is autogenerated by dpkg-reconfigure ca-certificates.
-# certificates shoule be installed under /usr/share/ca-certificates
+# Certificates should be installed under /usr/share/ca-certificates
 # and files with extension '.crt' is recognized as available certs.
-# 
+#
 # line begins with # is comment.
 # line begins with ! is certificate filename to be deselected.
 #