This file is indexed.

config is in igtf-policy-slcs 1.88-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
# $1 = action ('configure' or 'reconfigure')
# $2 = current-installed-version
set -e

. /usr/share/debconf/confmodule

db_capb backup

# record the original value in case we need to clean up
# the old location

if db_get igtf-policy/location ; then
    oldloc="$RET"
    db_set igtf-policy/old-location "$oldloc" || true
fi

db_input low igtf-policy/location || true

db_go

db_get igtf-policy/location || true
location="$RET"

# substitute the configuration location
db_subst igtf-policy-slcs/install_profile location "$location" || true
db_subst igtf-policy-slcs/exclude_ca location "$location" || true
db_subst igtf-policy-slcs/include_ca location "$location" || true

db_input medium igtf-policy-slcs/install_profile || true

db_go

# bother with possible in/exclusions
# fetch the list of CAs to choose
AVAILABLE_CA=
for f in /usr/share/igtf-policy/slcs/*.pem ; do
    ca=`basename ${f%.*}` 
    AVAILABLE_CA="$AVAILABLE_CA, $ca"
done
# remove leading comma
AVAILABLE_CA=${AVAILABLE_CA#, }

# The mode of operation is either:
# yes: install all certificates with the exceptions listed in exclude_ca
# no: only install the certificates in include_ca.
db_get igtf-policy-slcs/install_profile
if [ "$RET" = true ]; then
    db_subst igtf-policy-slcs/exclude_ca exclude_ca "$AVAILABLE_CA"
    db_input medium igtf-policy-slcs/exclude_ca || true
else
    db_subst igtf-policy-slcs/include_ca include_ca "$AVAILABLE_CA"
    db_input high igtf-policy-slcs/include_ca || true
fi

db_go

db_stop