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