This file is indexed.

postrm is in libreoffice-common 1:6.0.3-0ubuntu1.

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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh

set -e


case "$1" in
	remove|abort-install|abort-upgrade)
		rm -rf /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/share/prereg/bundled
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/share/prereg/ || true
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/share/ || true
		# this belongs to -core, but won't work until we have -common stuff removed, too, so try here again
		# in adduition to -core
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/program/ || true
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g` || true
		# and try to remove /@OOBRANDDIR@ itself
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g` || true
	;;
	purge)
		rm -f /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/share/config/javasettingsunopkginstall.xml
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/share/config || true
		rmdir /`echo usr/lib/libreoffice | sed -e s,usr/,var/,g`/share || true
	;;
esac

# Automatically added by dh_installdeb/11.1.6ubuntu1
dpkg-maintscript-helper mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.oosplash /etc/apparmor.d/usr.lib.libreoffice.program.oosplash 1:5.4.4-0ubuntu1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.senddoc /etc/apparmor.d/usr.lib.libreoffice.program.senddoc 1:5.4.4-0ubuntu1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.soffice.bin /etc/apparmor.d/usr.lib.libreoffice.program.soffice.bin 1:5.4.4-0ubuntu1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.xpdfimport /etc/apparmor.d/usr.lib.libreoffice.program.xpdfimport 1:5.4.4-0ubuntu1 -- "$@"
# End automatically added section
# Automatically added by dh_apparmor/2.12-4ubuntu4
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.lib.libreoffice.program.xpdfimport" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.lib.libreoffice.program.xpdfimport" || true
    rm -f "/etc/apparmor.d/force-complain/usr.lib.libreoffice.program.xpdfimport" || true
    rm -f "/etc/apparmor.d/local/usr.lib.libreoffice.program.xpdfimport" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor/2.12-4ubuntu4
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.lib.libreoffice.program.soffice.bin" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.lib.libreoffice.program.soffice.bin" || true
    rm -f "/etc/apparmor.d/force-complain/usr.lib.libreoffice.program.soffice.bin" || true
    rm -f "/etc/apparmor.d/local/usr.lib.libreoffice.program.soffice.bin" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor/2.12-4ubuntu4
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.lib.libreoffice.program.senddoc" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.lib.libreoffice.program.senddoc" || true
    rm -f "/etc/apparmor.d/force-complain/usr.lib.libreoffice.program.senddoc" || true
    rm -f "/etc/apparmor.d/local/usr.lib.libreoffice.program.senddoc" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor/2.12-4ubuntu4
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.lib.libreoffice.program.oosplash" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.lib.libreoffice.program.oosplash" || true
    rm -f "/etc/apparmor.d/force-complain/usr.lib.libreoffice.program.oosplash" || true
    rm -f "/etc/apparmor.d/local/usr.lib.libreoffice.program.oosplash" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_icons/11.1.6ubuntu1
if which update-icon-caches >/dev/null 2>&1 ; then
	update-icon-caches /usr/share/icons/locolor
fi
# End automatically added section