aboutsummaryrefslogtreecommitdiff
path: root/openssl/trunk/crypto/rc5/rc5_ecb.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/trunk/crypto/rc5/rc5_ecb.c')
0 files changed, 0 insertions, 0 deletions
postinst?id=93943765d3a6c4ade1ad2b118fc31cca546e7f6d'>93943765
def95e42
93943765


8ada38e2
78391207
f25b1a9a










93943765
4e9ce178
93943765
bab399d2
def95e42
4e9ce178
93943765
















93943765
def95e42
8ada38e2
f25b1a9a
93943765


















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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84






                             
                
                                                             

 








                                                                                      
        
                                                          


      
             
                                                                               










                                
              
                                                                                                                                                         
                                            
                                                                                    
                                                                                    
                                          
















                                                                       
                    
                    
                 
                  


















                                                               
#!/bin/sh
# postinst script for rpki-ca
#
# see: dh_installdeb(1)

set -e

setup_apache() {
    /usr/lib/rpki/rpkigui-apache-conf-gen --install --verbose
}

setup_config() {

    rpki-confgen --read-xml /etc/rpki/rpki.rp.xml			\
	--set myrpki::run_rpkid=yes					\
	--set myrpki::run_pubd=yes					\
	--write-xml  /etc/rpki/rpki.ca.xml				\
	--write-conf /etc/rpki/rpki.ca.sample.conf

    if test ! -f /etc/rpki.conf || cmp -s /etc/rpki.conf /etc/rpki/rpki.rp.sample.conf
    then
	cp -p /etc/rpki/rpki.ca.conf.sample /etc/rpki.conf
    fi
}

setup_sql() {
    rpki-sql-setup --debug --verbose --postgresql-root-username postgres create
}

setup_bpki() {
    rpkic initialize_server_bpki
}

setup_django() {
    rpki-manage syncdb --noinput
    rpki-manage migrate app
}

setup_cron() {
    t=$(hexdump -n 1 -e '"%u"' /dev/urandom) && echo "$(($t % 60)) */2 * * * nobody /usr/lib/rpki/rpkigui-import-routes" > /etc/cron.d/rpkigui-routeviews
    chmod 644 /etc/cron.d/rpkigui-routeviews
    ln -sf /usr/lib/rpki/rpkigui-check-expired /etc/cron.daily/rpkigui-check-expired
    echo "30 3 * * * rpki /usr/sbin/rpkic update_bpki" >/etc/cron.d/rpki-update-bpki
    chmod 644 /etc/cron.d/rpki-update-bpki
}

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <postinst> `abort-remove'
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    configure)
	setup_apache
	setup_config
	setup_sql
	setup_bpki
	setup_django
	setup_cron
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0