Mercurial > notdcc
comparison debian/dcc-common.preinst @ 2:f6716cb00029
Replace buggy stuff in deb dir, never make phone calls while working
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 14:29:12 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:9b8d79ac0dc3 | 2:f6716cb00029 |
---|---|
1 #! /bin/sh | |
2 # preinst script for dcc-common | |
3 # | |
4 # see: dh_installdeb(1) | |
5 | |
6 set -e | |
7 | |
8 | |
9 # summary of how this script can be called: | |
10 # * <new-preinst> `install' | |
11 # * <new-preinst> `install' <old-version> | |
12 # * <new-preinst> `upgrade' <old-version> | |
13 # * <old-preinst> `abort-upgrade' <new-version> | |
14 # | |
15 # for details, see http://www.debian.org/doc/debian-policy/ or | |
16 # the debian-policy package | |
17 # | |
18 | |
19 case "$1" in | |
20 install|upgrade) | |
21 if [ "$1" = "upgrade" ]; then | |
22 # if the following two files are real file (and no | |
23 # symlinks), do | |
24 ! test -L /var/lib/dcc/map.txt && mv /var/lib/dcc/map.txt /etc/dcc | |
25 ! test -L /var/lib/dcc/ids && mv /var/lib/dcc/ids /etc/dcc | |
26 if [ -f /etc/dcc/dcc_conf ]; then | |
27 rm -f /etc/dcc/dcc_conf | |
28 fi | |
29 fi | |
30 ;; | |
31 | |
32 abort-upgrade) | |
33 ;; | |
34 | |
35 *) | |
36 echo "preinst called with unknown argument \`$1'" >&2 | |
37 exit 1 | |
38 ;; | |
39 esac | |
40 | |
41 # dh_installdeb will replace this with shell code automatically | |
42 # generated by other debhelper scripts. | |
43 | |
44 #DEBHELPER# | |
45 | |
46 exit 0 | |
47 | |
48 |