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
|
#!/bin/sh
set -e
# This maintainer script can be called the following ways:
#
# * new-postinst "configure" [$most_recently_configured_version]
# The package is unpacked; all dependencies are unpacked and, when there
# are no circular dependencies, configured.
#
# * old-postinst "abort-upgrade" $new_version
# * old-postinst "abort-remove"
# * conflictors-postinst "abort-remove" "in-favour" $new_package
# $new_version
# * deconfigureds-postinst "abort-deconfigure" "in-favour"
# $failed_install_package $fip_version # new-package
# ["removing" $conflicting_package $cp_version] # old-package
# The package is unpacked; all dependencies are at least Half-Installed,
# previously been configured, and not removed. In some error situations,
# dependencies may not be even fully unpacked.
#
# * postinst "triggered" "${triggers[*]}"
# For trigger-only calls, i.e. if "configure" is not called.
#
# * new-postinst "reconfigure" [$most_recently_configured_version](?)
# Treat this as just like "configure" for a future extension by debconf.
case $1 in
(configure|reconfigure|abort-upgrade|abort-remove|abort-deconfigure)
# avoid adequate warnings due to broken symlinks
# also points the admin to soundfont install location
mkdir -p \
/usr/share/sounds/sf2 /usr/share/sounds/sf3 /usr/share/sounds/sfz
;;
(triggered)
;;
(*)
echo >&2 "E: postinst called with unknown subcommand '$1'"
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
|