postinst is in masqmail 0.3.4-1build1.
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 | #!/bin/sh
set -e
dpkg-maintscript-helper rm_conffile \
/etc/ppp/ip-up.d/1masqmail "0.3.4-1~" -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/ppp/ip-down.d/99masqmail "0.3.4-1~" -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/network/if-up.d/1masqmail "0.3.4-1~" -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/network/if-down.d/99masqmail "0.3.4-1~" -- "$@"
case "$1" in
configure)
# Create spool and log directories.
install -d -omail -gmail /var/log/masqmail/
install -d -omail -gmail /var/spool/masqmail/
install -d -omail -gmail /var/spool/masqmail/input/
install -d -omail -gmail /var/spool/masqmail/lock/
# Generate /etc/mailname and set default-value
if [ ! -f /etc/mailname ]; then
hostname -f >/etc/mailname
fi
if ! grep -qs "\." /etc/mailname; then
echo "No FQDN in /etc/mailname." >&2
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
esac
# Automatically added by dh_installinit/11.1.6ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.d/masqmail" ]; then
update-rc.d masqmail defaults >/dev/null
invoke-rc.d masqmail start || exit 1
fi
fi
# End automatically added section
exit 0
|