3 . /usr/share/debconf/confmodule
7 if [ "$1" = configure -a "$2" = "" ]; then
8 # Installing for the first time (or after a purge).
9 # To comply with the Ion trademark licence terms, we must ensure
10 # that this version is up-to-date or that the user acknowledges
11 # it is not. I freely admit that this is a horrible abuse of
12 # debconf, but it seems slightly less unpleasant than maintaining
13 # a renamed version. - benh
14 uscan_output=$(uscan 2>&1 --no-conf --report-status \
15 --package ion3 --upstream-version "$UPSTREAM_VERSION" \
16 --watchfile /usr/share/ion3/debian/watch)
17 case "$uscan_output" in
22 question=ion3/acknowledge-outdated
25 question=ion3/acknowledge-maybe-outdated
28 if [ -n "$question" ]; then
29 db_fset $question seen false
30 db_subst $question version $UPSTREAM_VERSION
31 db_input high $question || true
34 if [ "$RET" != true ]; then
35 db_input high ion3/did-not-acknowledge-outdated || true
42 if [ -h /etc/X11/ion3/draw.lua ]; then
43 rm -f /etc/X11/ion3/draw.lua
46 ln -s look_clean.lua /etc/X11/ion3/draw.lua
48 update-alternatives --install /usr/bin/ion ion /usr/bin/ion3 29 \
49 --slave /usr/share/man/man1/ion.1.gz ion.1.gz \
50 /usr/share/man/man1/ion3.1.gz
52 update-alternatives --install \
53 /usr/bin/x-window-manager x-window-manager /usr/bin/ion3 49 \
54 --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
55 /usr/share/man/man1/ion3.1.gz
57 update-alternatives --install \
58 /usr/bin/x-window-manager x-window-manager /usr/bin/pwm3 48 \
59 --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
60 /usr/share/man/man1/pwm3.1.gz
63 inst=/etc/menu-methods/ion3-i18n
70 # Remove the old now-renamed generated Debian menu
71 rm -f /var/lib/ion3/debian-menus.lua