Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2 # postinst script for fvwm
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <postinst> `configure' <most-recently-configured-version>
10 # * <old-postinst> `abort-upgrade' <new version>
11 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12 # <new-version>
13 # * <postinst> `abort-remove'
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15 # <failed-install-package> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20
21 case "$1" in
22 configure)
23 # Setup alternatives to work with fvwm3
24 update-alternatives \
25 --install /usr/bin/fvwm fvwm /usr/bin/fvwm2 200 \
26 --slave /usr/share/man/man1/fvwm.1.gz fvwm.1.gz \
27 /usr/share/man/man1/fvwm2.1.gz
28 update-alternatives \
29 --install /usr/bin/FvwmCommand FvwmCommand /usr/bin/Fvwm2Command 200 \
30 --slave /usr/share/man/man1/FvwmCommand.1.gz FvwmCommand.1.gz \
31 /usr/share/man/man1/Fvwm2Command.1.gz
32 update-alternatives \
33 --install /usr/bin/fvwm-root fvwm-root /usr/bin/fvwm2-root 200 \
34 --slave /usr/share/man/man1/fvwm-root.1.gz fvwm-root.1.gz \
35 /usr/share/man/man1/fvwm2-root.1.gz
36 update-alternatives \
37 --install /usr/bin/fvwm-menu-desktop fvwm-menu-desktop /usr/bin/fvwm2-menu-desktop 200 \
38 --slave /usr/share/man/man1/fvwm-menu-desktop.1.gz fvwm-menu-desktop.1.gz \
39 /usr/share/man/man1/fvwm2-menu-desktop.1.gz
40 update-alternatives \
41 --install /usr/bin/fvwm-menu-directory fvwm-menu-directory /usr/bin/fvwm2-menu-directory 200 \
42 --slave /usr/share/man/man1/fvwm-menu-directory.1.gz fvwm-menu-directory.1.gz \
43 /usr/share/man/man1/fvwm2-menu-directory.1.gz
44 update-alternatives \
45 --install /usr/bin/fvwm-perllib fvwm-perllib /usr/bin/fvwm2-perllib 200 \
46 --slave /usr/share/man/man1/fvwm-perllib.1.gz fvwm-perllib.1.gz \
47 /usr/share/man/man1/fvwm2-perllib.1.gz
48 # From debian-policy as of 2024-07-25, sec. 11.8.4.
49 # Priority: 40 + 40 (complies with The Window Manager
50 # Specification Project) + 10 (defaults to permitting X
51 # session to be restarted with different window manager
52 # without killing X server) = 90
53 update-alternatives \
54 --install /usr/bin/x-window-manager x-window-manager /usr/bin/fvwm2 90 \
55 --slave /usr/share/man/man1/x-window-manager.1.gz \
56 x-window-manager.1.gz /usr/share/man/man1/fvwm2.1.gz
57 ;;
58
59 abort-upgrade|abort-remove|abort-deconfigure)
60 ;;
61
62 *)
63 echo "postinst called with unknown argument \`$1'" >&2
64 exit 1
65 ;;
66 esac
67
68 # dh_installdeb will replace this with shell code automatically
69 # generated by other debhelper scripts.
70
71 #DEBHELPER#
72
73 exit 0