This file is indexed.

postinst is in hardening-wrapper 1.36ubuntu1.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
22
23
24
25
26
27
28
29
30
#!/bin/sh -e

undiv()
{
	dpkg-divert --package hardening-wrapper \
		--rename --remove /usr/bin/"$1" || true
}

# Clean up old diversions
if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.2"; then
	for i in gcc g++
	do
		undiv "$i"
	done

	eval $(dpkg-architecture -a)
	for i in gcc g++
	do
		undiv "${DEB_BUILD_GNU_TYPE}-$i"
	done
fi

if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.21"; then
	undiv ld
fi

if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.32"; then
	undiv gcc-4.1
	undiv g++-4.1
fi