3 . /usr/share/debconf/confmodule
8 if [ "$1" = configure ] \
9 && dpkg --compare-versions "$2" lt "$DEBIAN_VERSION"; then
10 # Installing for the first time or upgrading.
11 # To comply with the Ion trademark licence terms, we must ensure
12 # that this version is up-to-date or that the user acknowledges
13 # it is not. I freely admit that this is a horrible abuse of
14 # debconf, but it seems slightly less unpleasant than maintaining
15 # a renamed version. - benh
16 uscan_output="$(uscan 2>&1 --no-conf --report-status \
17 --package ion3 --upstream-version "$UPSTREAM_VERSION" \
18 --watchfile /usr/share/ion3/debian/watch \
20 case "$uscan_output" in
25 question=ion3/acknowledge-outdated
28 question=ion3/acknowledge-maybe-outdated
31 if [ -n "$question" ]; then
32 db_fset $question seen false
33 db_subst $question version $UPSTREAM_VERSION
34 db_input high $question || true
37 if [ "$RET" != true ]; then
38 db_input high ion3/did-not-acknowledge-outdated || true
45 if [ -h /etc/X11/ion3/draw.lua ]; then
46 rm -f /etc/X11/ion3/draw.lua
49 ln -s look_clean.lua /etc/X11/ion3/draw.lua
51 update-alternatives --install /usr/bin/ion ion /usr/bin/ion3 29 \
52 --slave /usr/share/man/man1/ion.1.gz ion.1.gz \
53 /usr/share/man/man1/ion3.1.gz
55 update-alternatives --install \
56 /usr/bin/x-window-manager x-window-manager /usr/bin/ion3 49 \
57 --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
58 /usr/share/man/man1/ion3.1.gz
60 update-alternatives --install \
61 /usr/bin/x-window-manager x-window-manager /usr/bin/pwm3 48 \
62 --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
63 /usr/share/man/man1/pwm3.1.gz
66 inst=/etc/menu-methods/ion3-i18n
71 # Initialise extra configuration file list if missing
72 [ -f /etc/X11/ion3/cfg_debian_ext.lua ] || >/etc/X11/ion3/cfg_debian_ext.lua
76 # Remove the old now-renamed generated Debian menu
77 rm -f /var/lib/ion3/debian-menus.lua