postinst is in spambayes 1.1b1-1.
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 | #!/bin/sh
set -e
# transitional bw compatibility links (1.0.4-6)
SCRIPTS="sb_xmlrpcserver sb_server sb_bnfilter sb_mailsort \
sb_unheader sb_client sb_filter sb_mboxtrain sb_bnserver \
sb_chkopts sb_upload sb_dbexpimp sb_imapfilter \
sb_notesfilter sb_evoscore"
if [ "$1" = configure ] ; then
for f in ${SCRIPTS}
do
ln -fs /usr/bin/${f} /usr/bin/${f}.py
done
fi
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p spambayes
fi
# End automatically added section
|