This file is indexed.

postinst is in fp-compiler-2.4.4 2.4.4-3.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
31
32
33
34
35
36
37
38
#! /bin/sh

set -e

# Load debconf
. /usr/share/debconf/confmodule

CFG_FILE='/etc/fpc.cfg'

if test -f "${CFG_FILE}" && ! test -L "${CFG_FILE}"
then
	db_get fp-compiler-2.4.4/rename_cfg
	if test "${RET}" = "true"
	then
		mv "${CFG_FILE}" "${CFG_FILE}.bak"
	fi
fi

# add alternatives
update-alternatives \
    --install /usr/bin/fpc fpc /usr/bin/fpc-2.4.4 244 \
    --slave /usr/bin/ppcx64 ppcx64 /usr/lib/fpc/2.4.4/ppcx64 \
    --slave /usr/bin/fpc-depends fpc-depends /usr/bin/fpc-depends-2.4.4 \
	--slave /usr/bin/fpcres fpcres /usr/bin/fpcres-2.4.4 \
    --slave /usr/share/man/man1/ppcx64.1.gz ppcx64.1.gz /usr/share/man/man1/ppcx64-2.4.4.1.gz \
    --slave /usr/share/man/man1/fpc.1.gz fpc.1.gz /usr/share/man/man1/fpc-2.4.4.1.gz \
    --slave /usr/share/man/man1/fpc-depends.1.gz fpc-depends.1.gz /usr/share/man/man1/fpc-depends-2.4.4.1.gz \
	--slave /usr/share/man/man1/fpcres.1.gz fpcres.1.gz /usr/share/man/man1/fpcres-2.4.4.1.gz
update-alternatives \
    --install /usr/bin/pc pc /usr/bin/fpc-2.4.4 20 \
    --slave /usr/share/man/man1/pc.1.gz pc.1.gz /usr/share/man/man1/fpc-2.4.4.1.gz

# Configuration file is a special case as it is backward compatible and is
# likely to be handled as a special alternative pointing to the latest release
update-alternatives \
	--install ${CFG_FILE} fpc.cfg /etc/fpc-2.4.4.cfg 244\

# Debhelper code