postinst is in asterisk-prompt-fr-proformatique 20070706-1.4-2.
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 | #!/bin/sh
set -e
case "$1" in
configure)
if dpkg --compare-versions "$2" lt 20070706-1.4-2; then
for d in dictate digits letters phonetic; do
for e in "/usr/share/asterisk/sounds/${d}/fr" "/usr/share/asterisk/sounds/fr/${d}"; do
if ! [ -L "${e}" ] && [ -d "${e}" ]; then
rmdir --ignore-fail-on-non-empty "${e}"
fi
done
done
for d in dictate digits letters phonetic; do
if ! [ -e "/usr/share/asterisk/sounds/fr/${d}" ]; then
ln -s "../${d}/fr" "/usr/share/asterisk/sounds/fr/${d}"
fi
done
fi
;;
esac
exit 0
|