This file is indexed.

postinst is in xscreensaver 5.15-3ubuntu1.

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

set -e

#fix up our old screwup
if dpkg-divert --list  /usr/share/gnome/apps/Settings/Desktop/screensaver-properties.desktop | grep -q "diversion of /usr/share/gnome/apps/Settings/Desktop/screensaver-properties.desktop to /usr/share/gnome/apps/Settings/Desktop/screensaver-properties.desktop.orig by xscreensaver"; then
	rm -f /usr/share/gnome/apps/Settings/Desktop/screensaver-properties.desktop
	rm -f /usr/share/control-center/Desktop/screensaver-properties.desktop
	dpkg-divert --package xscreensaver --remove --rename --divert \
		/usr/share/gnome/apps/Settings/Desktop/screensaver-properties.desktop.orig \
		/usr/share/gnome/apps/Settings/Desktop/screensaver-properties.desktop
	dpkg-divert --package xscreensaver --remove --rename --divert \
		/usr/share/control-center/Desktop/screensaver-properties.desktop.orig \
		/usr/share/control-center/Desktop/screensaver-properties.desktop
fi

# remove old link if it exists
if [ -L /usr/X11R6/lib/X11/app-defaults/XScreenSaver ]; then
	rm /usr/X11R6/lib/X11/app-defaults/XScreenSaver
fi

# Use the correct app defaults
cd /etc/X11/app-defaults
if [ -f XScreenSaver-gl ]; then
	ln -sf XScreenSaver-gl  XScreenSaver
else
	ln -sf XScreenSaver-nogl XScreenSaver
fi

# Remove /usr/doc symlink
if [ -d /usr/doc -a -h /usr/doc/xscreensaver -a -d /usr/share/doc/xscreensaver ]; then
        rm -f /usr/doc/xscreensaver
fi

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section