This file is indexed.

preinst is in inn2 2.5.3-3ubuntu1.

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
#!/bin/sh -e

upgrade_quirks() {
  # $2 is non-empty when installing from the "config-files" state
  [ "$2" ] || return 0

  if dpkg --compare-versions $2 lt 2.3.1-2; then
  if dpkg --compare-versions $2 eq 2.3.0-1; then
    echo 'Upgrading from 2.3.0-1 to >= 2.3.999+20030125-4 is not supported.'
    exit 1
  fi

  # remove any remaining symlinks under /usr/lib/news/bin/filter, then remove
  # the directory if it's empty
  if [ -d /usr/lib/news/bin/filter ]; then
    find /usr/lib/news/bin/filter -type l -exec rm {} \;
    rmdir /usr/lib/news/bin/filter 2> /dev/null || true
  fi

  fi # 2.3.1-2
}

# #690128: if the old MOTD file has been amended by the admin from default,
# then copy it to the new non-conffile nnrpd MOTD file.
# If not then remove the old MOTD conffile, being sure to cater for rollback.
dpkg-maintscript-helper rm_conffile /etc/news/motd.news 2.5.3-1~ -- "$@"

case "$1" in
    install|upgrade)
    upgrade_quirks "$@"
esac



exit 0