This file is indexed.

postinst is in heroes-sdl 0.21-8.1.

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
#!/bin/sh
#
#  The heroes postinst has to do some update-alternatives magic.
#  SDL is set higher-priority than GGI by default because it works better on
# average.

if [ "$1" = configure ]; then
  update-alternatives --install /usr/games/heroes heroes /usr/games/heroes-sdl 60

  # dpkg doesn't like to replace a directory with a symlink
  if [ -d /usr/share/doc/heroes-sdl ]; then
    rm -fr /usr/share/doc/heroes-sdl
    ln -s heroes-common /usr/share/doc/heroes-sdl
  fi
fi

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section