This file is indexed.

postinst is in afterstep 2.2.12-6.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
set -e
# Automatically added by debian/scripts/fix_conffiles

cfgdir="/etc/menu-methods"
ucfdir="/usr/share/afterstep/ucf"
cfgfiles="afterstep.menu-method"
package="afterstep"

if [ "$1" = "configure" ] ; then
   ucfforce=""
   if dpkg --compare-versions "$2" le 2.2.11-2~; then
      ucfforce="--force"
   fi

   for f in $cfgfiles; do
      uf="$ucfdir/$f"
      cf="$cfgdir/${f%.menu-method}"
      ucf --three-way "$uf" "$cf"
      ucfr $ucfforce "$package" "$cf"
   done
fi

# End automatically added section
# Automatically added by dh_installmenu
inst=/etc/menu-methods/afterstep
if [ -f $inst ]; then
	chmod a+x $inst
	if [ -x "`which update-menus 2>/dev/null`" ]; then
		update-menus
	fi
fi
# End automatically added section
# Automatically added by dh_installwm
if [ "$1" = "configure" ]; then
	update-alternatives --install /usr/bin/x-window-manager \
		x-window-manager /usr/bin/afterstep 50 \
		--slave /usr/share/man/man1/x-window-manager.1.gz \
		x-window-manager.1.gz /usr/share/man/man1/afterstep.1x.gz
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/afterstep /usr/share/doc/afterstep-data 2.2.12-4~ -- "$@"
# End automatically added section