postinst is in libreoffice-common 1:5.1.2-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 | #!/bin/sh
set -e
validate_extensions() {
INSTDIR=`mktemp -d`
if HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg list --bundled >/dev/null 2>/dev/null; then
HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg validate -v --bundled
fi
}
make_lo_sync_extensions() {
touch /usr/lib/libreoffice/share/extensions
}
if [ "$1" = "triggered" ]; then
for triggername in $2; do
case "$triggername" in
# new "bundled" extensions (since 3.3)
"/usr/lib/libreoffice/share/extensions")
make_lo_sync_extensions
;;
esac
done
fi
if [ "$1" = "configure" ]; then
dpkg-maintscript-helper rm_conffile "/etc/bash_completion.d/ooffice.sh" 1:3.3.0~rc4-2 libreoffice-common -- "$@"
dpkg-maintscript-helper mv_conffile \
"/etc/openoffice/psprint.conf" "/etc/libreoffice/psprint.conf" "" libreoffice-common -- "$@"
dpkg-maintscript-helper mv_conffile \
"/etc/openoffice/sofficerc" "/etc/libreoffice/sofficerc" "" libreoffice-common -- "$@"
dpkg-maintscript-helper mv_conffile \
"/etc/openoffice/soffice.sh" "/etc/libreoffice/soffice.sh" "" libreoffice-common -- "$@"
# try to remove, hopefully empty now
rmdir /etc/openoffice 2>/dev/null || true
fi
# Automatically added by dh_icons
if which update-icon-caches >/dev/null 2>&1 ; then
update-icon-caches /usr/share/icons/locolor
fi
# End automatically added section
|