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