config is in slrnpull 1.0.2-4build1.
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 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
# Load in defaults file if it exists, and use it to set defaults of debconf
# questions.
if [ -f /etc/default/slrnpull ]; then
. /etc/default/slrnpull || true
fi
if [ ! -z "$RUNFROM" ]; then
db_set slrnpull/run_from "$RUNFROM"
fi
db_beginblock
# Note this oode block is duplicated in slrn's config script.
if [ ! -s /etc/news/server ]; then
# No news server file currently exists (or it's empty).
db_get shared/news/server
SERVER="$RET"
# If there is no server set, try to guess a good value.
if [ -z "$SERVER" ]; then
NETNAME="`hostname -d`"
if [ ! -z "$NETNAME" ]; then
db_set shared/news/server "news.$NETNAME"
fi
fi
else
# Reconfiguring the package, or a news server file already exists.
# Still ask the question, though it may or may not be seen. Just
# use the first line now as the default answer.
db_set shared/news/server "`head -n 1 /etc/news/server`"
# Effectively, the question is seen -- since the file is set up..
db_fset shared/news/server seen true
fi
db_input medium shared/news/server || true
db_input high slrnpull/run_from || true
db_endblock
db_go || true
|