This file is indexed.

preinst is in dpm-name-server-postgres 1.10.0-2.

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

set -e

# Version 1.10.0 starts using defaults-disabled
# Remove rc.d links if upgrading from an older version and the service is
# disabled in /etc/default

if [ -n "$2" ] ; then
	if dpkg --compare-versions "$2" "<<" "1.10.0" ; then
		[ -r /etc/default/dpnsdaemon ] && . /etc/default/dpnsdaemon
		if [ "${RUN_DPNSDAEMON}" != "yes" ] ; then
			update-rc.d -f dpnsdaemon remove >/dev/null
		fi
	fi
fi