source: trunk/debathena/config/ssl-certificates/debian/debathena-ssl-certificates.prerm @ 24964

Revision 24964, 1.4 KB checked in by achernya, 14 years ago (diff)
Package the CSAIL CA (Trac: #740).
Line 
1#!/bin/sh
2# prerm script for debathena-ssl-certificates
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#        * <prerm> `remove'
10#        * <old-prerm> `upgrade' <new-version>
11#        * <new-prerm> `failed-upgrade' <old-version>
12#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13#        * <deconfigured's-prerm> `deconfigure' `in-favour'
14#          <package-being-installed> <version> `removing'
15#          <conflicting-package> <version>
16# for details, see http://www.debian.org/doc/debian-policy/ or
17# the debian-policy package
18
19
20case "$1" in
21    remove|deconfigure)
22        perl -0pe '
23s/^### BEGIN debathena-ssl-certificates\n.*?^### END debathena-ssl-certificates\n//msg;
24s/\n?$/\n### BEGIN debathena-ssl-certificates
25# This section is automatically added by the debathena-ssl-certificates
26# package.
27!mit.edu\/mitCAclient.crt
28!mit.edu\/mitCA.crt
29!csail.mit.edu\/csailCA.crt
30### END debathena-ssl-certificates
31/;
32' -i /etc/ca-certificates.conf
33        update-ca-certificates
34        perl -0pe '
35s/^### BEGIN debathena-ssl-certificates\n.*?^### END debathena-ssl-certificates\n//msg;
36' -i /etc/ca-certificates.conf
37    ;;
38
39    upgrade|failed-upgrade)
40    ;;
41
42    *)
43        echo "prerm called with unknown argument \`$1'" >&2
44        exit 1
45    ;;
46esac
47
48# dh_installdeb will replace this with shell code automatically
49# generated by other debhelper scripts.
50
51#DEBHELPER#
52
53exit 0
Note: See TracBrowser for help on using the repository browser.