annotate debian/config @ 493:4d3a1597813a noffle

[svn] updated FSF address
author godisch
date Sun, 16 Apr 2006 07:20:58 +0100
parents 14b909051b8d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
427
14b909051b8d [svn] changed noffle/port to priority medium
godisch
parents: 425
diff changeset
2 # $Id: config 570 2003-06-20 16:54:49Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
359
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
5 . /usr/share/debconf/confmodule
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
6 db_version 2.0
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
7 db_capb backup
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 310
diff changeset
9 # for backward compatibility < 1.1.2-1
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10 if dpkg --compare-versions "$2" lt-nl 1.1.2; then
360
a23b37308063 [svn] || true cleanup
godisch
parents: 359
diff changeset
11 db_get noffle/fetchmode
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
12 case "$RET" in
360
a23b37308063 [svn] || true cleanup
godisch
parents: 359
diff changeset
13 'via dialup') db_set noffle/fetchmode ppp;;
a23b37308063 [svn] || true cleanup
godisch
parents: 359
diff changeset
14 'via permanent connection') db_set noffle/fetchmode cron;;
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 esac
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
16 fi
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
17
359
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
18 # input configuration using backup capability, see debconf-devel(8)
362
c036f2b55576 [svn] cleanup
godisch
parents: 361
diff changeset
19 state=1
425
c2fd00030991 [svn] added preliminary ucf support
godisch
parents: 424
diff changeset
20 while [ "$state" -ge 1 -a "$state" -le 7 ]; do
359
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
21 case "$state" in
427
14b909051b8d [svn] changed noffle/port to priority medium
godisch
parents: 425
diff changeset
22 1) db_input medium noffle/port || :
364
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
23 ;;
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
24 2) db_input high noffle/server || :
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
25 ;;
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
26 3) db_input medium noffle/username || :
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
27 ;;
363
014146ed83bf [svn] cleanup
godisch
parents: 362
diff changeset
28 4) db_get noffle/username
364
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
29 [ "$RET" ] && db_input medium noffle/password || :
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
30 ;;
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
31 5) db_input medium noffle/fetchmode || :
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
32 ;;
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
33 6) db_input medium noffle/maxfetch || :
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
34 ;;
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
35 7) db_input low noffle/default-expire || :
36296f2b60e6 [svn] changed debconf backup
godisch
parents: 363
diff changeset
36 ;;
359
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
37 esac
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
38 if db_go; then
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
39 state=$(($state + 1))
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
40 else
425
c2fd00030991 [svn] added preliminary ucf support
godisch
parents: 424
diff changeset
41 state=$(($state - 1))
359
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
42 fi
d1007cf6a49c [svn] added preliminary debconf backup capability
godisch
parents: 341
diff changeset
43 done
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
44
333
47ba9cbc7b75 [svn] added db_stop
godisch
parents: 324
diff changeset
45 db_stop
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
46 exit 0