~ubuntu-branches/ubuntu/precise/atftp/precise

« back to all changes in this revision

Viewing changes to debian/atftpd.config

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Drolez
  • Date: 2004-12-28 19:11:57 UTC
  • Revision ID: james.westby@ubuntu.com-20041228191157-1jpr39ppvw3xzc6o
Tags: 0.7-4
* updated all po-debconf translations. Closes: #281561
* polish debconf translation added. Thanks to Bartosz Fenski.
* added debconf support for setting the multicast TTL value
* default mcast subnet changed to 239.239.239.0/24 since some routers
  do not seem to like 239.255.0.0/24

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
. /usr/share/debconf/confmodule
4
4
db_version 2.0
5
5
 
6
 
# BUG: If you upgrade atftp and you previously configured it with debconf,
7
 
#      that is, the atftpd/configure value in the database is set to true,
8
 
#      then the config script will overwrite the config in inetd.conf with
9
 
#      all values from the database. This could be avoided (or so I thought)
10
 
#      by setting the atftpd/configure value to false in the event db_input
11
 
#      had returned false but this causes the config value to be ignored if
12
 
#      the package is being preconfigured. In such a case, the config script
13
 
#      is called twice, the first time it shows the question and returns
14
 
#      true but the second it doesn't show the question and would return
15
 
#      false, which results in the atftpd/configure value being set to false
16
 
#      and makes the config value being ignore despite the fact the user
17
 
#      answered them (#93398). I didn't find any better way to work around
18
 
#      this. Sorry.
19
 
 
20
 
db_beginblock
21
 
db_input high atftpd/configure || true
22
 
db_endblock
23
 
db_go
24
 
 
25
 
db_get atftpd/configure
26
 
if [ "$RET" = "true" ]; then
 
6
# Do not ask if you need to configure atftp (Bug#266329)
 
7
 
 
8
#db_beginblock
 
9
#db_input high atftpd/configure || true
 
10
#db_endblock
 
11
#db_go
 
12
 
 
13
#db_get atftpd/configure
 
14
#if [ "$RET" = "true" ]; then
27
15
 
28
16
    db_beginblock
29
17
    db_input medium atftpd/use_inetd || true
34
22
 
35
23
    if [ "$RET" = "true" ]; then
36
24
        db_beginblock
37
 
        db_input medium atftpd/tftpd-timeout || true
 
25
        db_input low atftpd/tftpd-timeout || true
38
26
        db_endblock
39
27
        db_go
40
28
    fi
41
29
 
42
30
    db_beginblock
43
 
    db_input medium atftpd/port || true
44
 
    db_input medium atftpd/retry-timeout || true
45
 
    db_input medium atftpd/maxthread || true
46
 
    db_input medium atftpd/timeout || true
47
 
    db_input medium atftpd/tsize || true
48
 
    db_input medium atftpd/blksize || true
49
 
    db_input medium atftpd/multicast || true
 
31
    db_input low atftpd/port || true
 
32
    db_input low atftpd/retry-timeout || true
 
33
    db_input low atftpd/maxthread || true
 
34
    db_input low atftpd/timeout || true
 
35
    db_input low atftpd/tsize || true
 
36
    db_input low atftpd/blksize || true
 
37
    db_input low atftpd/multicast || true
50
38
    db_endblock
51
39
    db_go
52
40
 
53
41
    db_get atftpd/multicast
54
42
    if [ "$RET" = "true" ]; then
55
43
        db_beginblock
56
 
        db_input medium atftpd/mcast_port || true
 
44
        db_input low atftpd/mcast_port || true
57
45
        db_input medium atftpd/mcast_addr || true
 
46
        db_input medium atftpd/ttl || true
58
47
        db_endblock
59
48
        db_go
60
49
    fi
61
50
 
62
51
    db_beginblock
63
 
    db_input medium atftpd/verbosity || true
 
52
    db_input low atftpd/verbosity || true
64
53
    db_input medium atftpd/basedir || true
65
 
    db_input medium atftpd/logtofile || true
 
54
    db_input low atftpd/logtofile || true
66
55
    db_endblock
67
56
    db_go
68
57
    
69
58
    db_get  atftpd/logtofile
70
59
    if [ "$RET" = "true" ]; then
71
60
        db_beginblock
72
 
        db_input medium atftpd/logfile || true
 
61
        db_input low atftpd/logfile || true
73
62
        db_endblock
74
63
        db_go
75
64
    fi
76
 
fi
 
65
#fi