This file is indexed.

postinst is in wine1.6 1:1.6.2-0ubuntu4.

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

# Remove obsolete conf files
dpkg-maintscript-helper rm_conffile /etc/sysctl.d/wine.sysctl.conf -- "$@"
dpkg-maintscript-helper rm_conffile /etc/sysctl.d/30-wine.conf -- "$@"
dpkg-maintscript-helper rm_conffile /etc/sysctl.d/31-wine.conf -- "$@"


if [ "$1" = "configure" ] ; then
    if [ -x /usr/sbin/update-binfmts ]; then
        /usr/sbin/update-binfmts --import wine || true
    fi
fi


if [ "$1" = "upgrade" ] ; then
    if ps -C wineserver > /dev/null && test -d /var/lib/update-notifier/user.d/ ; then
        cp -f /usr/share/wine/wineserver-restart-required.update-notifier /var/lib/update-notifier/user.d/wineserver-restart-required
    fi
fi