This file is indexed.

preinst is in pkgconf 0.9.12-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
#!/bin/sh

set -e

if [ "$1" = "install" ] || [ "$1" = "upgrade" ]
then
    dpkg-divert --package pkgconf --divert /usr/bin/pkg-config.real --rename /usr/bin/pkg-config
    dpkg-divert --package pkgconf --divert /usr/share/aclocal/pkg.real.m4 --rename /usr/share/aclocal/pkg.m4
    dpkg-divert --package pkgconf --divert /usr/share/man/man1/pkg-config.real.1.gz --rename /usr/share/man/man1/pkg-config.1.gz
    if [ -d /usr/share/pkg-config-crosswrapper ]
    then
        echo Moving bogus pkg-config-crosswrapper directory out of way ...
        mv /usr/share/pkg-config-crosswrapper /usr/share/pkg-config-crosswrapper.pkgconf
        if [ -f /usr/share/pkg-config-crosswrapper.pkgconf/pkg-config-crosswrapper ]
        then
            echo Moving pkg-config-crosswrapper to /usr/share ...
            mv /usr/share/pkg-config-crosswrapper.pkgconf/pkg-config-crosswrapper /usr/share/pkg-config-crosswrapper
        fi
        rmdir /usr/share/pkg-config-crosswrapper.pkgconf || echo Failed to remove old directory: /usr/share/pkg-config-crosswrapper.pkgconf >&2
    fi
    dpkg-divert --package pkgconf --divert /usr/share/pkg-config-crosswrapper.real --rename /usr/share/pkg-config-crosswrapper
fi