This file is indexed.

preinst is in calendarserver 2.4.dfsg-7.

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

set -e

# Backup configuration file for upgrading NSS users and groups data directories in postinst
if [ \( "$1" = "install" -o "$1" = "upgrade" \) -a "`echo $2 | cut -d - -f 1`" = "1.2.dfsg" ]; then
	if [ -f /etc/caldavd/caldavd.plist -a ! -e /etc/caldavd/caldavd.plist.upgrade.nss.tmp ]; then
		cp -a /etc/caldavd/caldavd.plist /etc/caldavd/caldavd.plist.upgrade.nss.tmp
	fi
fi

# Automatically added by dh_pycentral
case "$1" in
    install|upgrade)
	mkdir -p /var/lib/pycentral
	echo '# the presence of this file allows calling pkgremove on upgrade' \
	    > /var/lib/pycentral/calendarserver.pkgremove
esac
# End automatically added section