| 1 |
#!/bin/sh -e |
| 2 |
|
| 3 |
#DEBHELPER# |
| 4 |
|
| 5 |
# All below is only cleaning up deprecated files from old package versions. |
| 6 |
|
| 7 |
# |
| 8 |
# Policy 11.7.3 (templates), since 0.29.103-10 |
| 9 |
# |
| 10 |
# dpkg would not delete dir share/doc/gom/examples/default, and, when installing files, would not |
| 11 |
# overwrite it with a symlink to share/gom/default. Rather a dpkg bug, afaik. |
| 12 |
# This fixes this simply and hopefully sanely. |
| 13 |
|
| 14 |
# This is no longer dir, but symlink to share/gom/default |
| 15 |
old_default_cfg="/usr/share/doc/gom/examples/default" |
| 16 |
if [ -d "${old_default_cfg}" ]; then |
| 17 |
rm -rf ${old_default_cfg} |
| 18 |
fi |
| 19 |
|
| 20 |
case "$1" in |
| 21 |
upgrade|install) |
| 22 |
rcboot_file=/etc/rc.boot/gom |
| 23 |
if [ -e ${rcboot_file} ]; then |
| 24 |
. /usr/share/debconf/confmodule |
| 25 |
db_input critical gom/remove_obsolete_rcboot || true |
| 26 |
db_go || true |
| 27 |
db_get gom/remove_obsolete_rcboot || true |
| 28 |
if [ "$RET" = true ]; then |
| 29 |
rm -f ${rcboot_file} |
| 30 |
fi |
| 31 |
fi |
| 32 |
;; |
| 33 |
esac |
| 34 |
|
| 35 |
# All support for alternatives dropped, always remove |
| 36 |
update-alternatives --remove gom /usr/bin/gom-c |
| 37 |
update-alternatives --remove gom /usr/bin/gom-ct |
| 38 |
update-alternatives --remove gom /usr/bin/gom-ctx |