This file is indexed.

postinst is in rpcbind 0.2.1-2ubuntu1.

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
45
46
47
48
49
50
51
#!/bin/sh

set -e

if [ "$1" = configure ] ; then
	# /run transition (see #633035)
	if dpkg --compare-versions "$2" lt "0.2.0-7"; then
		if [ -f /lib/init/rw/sendsigs.omit.d/rpcbind ]; then
			mv /lib/init/rw/sendsigs.omit.d/rpcbind /run/rpcbind.pid
			ln -s /run/rpcbind.pid /run/sendsigs.omit.d/rpcbind
		fi
	fi
	if dpkg --compare-versions "$2" lt "0.2.0-8.1"; then
		update-rc.d -f rpcbind remove
	fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/rpcbind-boot" ]; then
	if [ ! -e "/etc/init/rpcbind-boot.conf" ]; then
		update-rc.d rpcbind-boot defaults >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f rpcbind-boot remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/portmap-wait" ]; then
	if [ ! -e "/etc/init/portmap-wait.conf" ]; then
		update-rc.d portmap-wait defaults >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f portmap-wait remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/rpcbind" ] || [ -e "/etc/init/rpcbind.conf" ]; then
	if [ ! -e "/etc/init/rpcbind.conf" ]; then
		update-rc.d rpcbind defaults >/dev/null
	fi
	invoke-rc.d rpcbind start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f rpcbind remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/init/portmap.conf /etc/init/rpcbind.conf 0.2.0-8ubuntu1 rpcbind -- "$@"
# End automatically added section