prerm is in mini-buildd 1.0.33.
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 | #!/bin/sh -e
if [ "${1}" = "remove" ]; then
# Prepared Chroot models may have made extra changes to the
# system. We need to properly run 'unprepare' to all of them
# to not leave artefacts (i.e., /etc/schroot/chroot.d/*.conf
# plus backend-related cruft like LVM setups).
# (We cannot do it in postrm/purge as we need mini-buildd still installed for that.)
su mini-buildd -c "/usr/sbin/mini-buildd --foreground --verbose --remove-system-artifacts" || true
fi
# Automatically added by dh_installdeb/11ubuntu1
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/mini-buildd.bash-completion -- "$@"
# End automatically added section
# Automatically added by dh_installinit/11ubuntu1
if [ -x "/etc/init.d/mini-buildd" ] && [ "$1" = remove ]; then
invoke-rc.d mini-buildd stop || exit $?
fi
# End automatically added section
exit 0
|