config is in imapproxy 1.2.7-1.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 | #!/bin/sh
# config script for imapproxy
#
# by Jose Luis Tallon <jltallon@adv-solutions.net>
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
db_version 2.0
db_title "ImapProxy"
set -e
CONFIG=/etc/imapproxy.conf
case "$1" in
configure|reconfigure)
# preseed debconf with configured server_hostname if configured
if [ -f $CONFIG ]; then
SERVER="$(perl -ne '/^\s*server_hostname\s*(\S+)$/ && print $1' $CONFIG)"
[ -z "$SERVER" ] || db_set imapproxy/imap-server "$SERVER"
fi
db_input medium imapproxy/imap-server || true
db_go
;;
*)
echo "config called with unknown argument \$1'" >&2
exit 0
;;
esac
|