| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# |
|
2
|
|
|
|
|
|
|
# This file is part of Config-Model |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2005-2022 by Dominique Dumont. |
|
5
|
|
|
|
|
|
|
# |
|
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
|
7
|
|
|
|
|
|
|
# |
|
8
|
|
|
|
|
|
|
# The GNU Lesser General Public License, Version 2.1, February 1999 |
|
9
|
|
|
|
|
|
|
# |
|
10
|
3
|
|
|
3
|
|
1500
|
use strict; |
|
|
3
|
|
|
|
|
7
|
|
|
|
3
|
|
|
|
|
116
|
|
|
11
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
|
3
|
|
|
|
|
7
|
|
|
|
3
|
|
|
|
|
599
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return [ |
|
14
|
|
|
|
|
|
|
{ |
|
15
|
|
|
|
|
|
|
'author' => [ |
|
16
|
|
|
|
|
|
|
'Dominique Dumont' |
|
17
|
|
|
|
|
|
|
], |
|
18
|
|
|
|
|
|
|
'copyright' => [ |
|
19
|
|
|
|
|
|
|
'2010,2011 Dominique Dumont' |
|
20
|
|
|
|
|
|
|
], |
|
21
|
|
|
|
|
|
|
'element' => [ |
|
22
|
|
|
|
|
|
|
'PARTICIPATE', |
|
23
|
|
|
|
|
|
|
{ |
|
24
|
|
|
|
|
|
|
'description' => 'If you don\'t want to participate in the contest, say "no" and we won\'t send messages.', |
|
25
|
|
|
|
|
|
|
'type' => 'leaf', |
|
26
|
|
|
|
|
|
|
'upstream_default' => '0', |
|
27
|
|
|
|
|
|
|
'value_type' => 'boolean', |
|
28
|
|
|
|
|
|
|
'write_as' => [ |
|
29
|
|
|
|
|
|
|
'no', |
|
30
|
|
|
|
|
|
|
'yes' |
|
31
|
|
|
|
|
|
|
] |
|
32
|
|
|
|
|
|
|
}, |
|
33
|
|
|
|
|
|
|
'ENCRYPT', |
|
34
|
|
|
|
|
|
|
{ |
|
35
|
|
|
|
|
|
|
'choice' => [ |
|
36
|
|
|
|
|
|
|
'no', |
|
37
|
|
|
|
|
|
|
'maybe', |
|
38
|
|
|
|
|
|
|
'yes' |
|
39
|
|
|
|
|
|
|
], |
|
40
|
|
|
|
|
|
|
'description' => 'encrypt popcon submission. Eventually, this feature will be enabled by default.', |
|
41
|
|
|
|
|
|
|
'help' => { |
|
42
|
|
|
|
|
|
|
'maybe' => 'encrypt if gpg is available', |
|
43
|
|
|
|
|
|
|
'yes' => 'try to encrypt and fail if gpg is not available' |
|
44
|
|
|
|
|
|
|
}, |
|
45
|
|
|
|
|
|
|
'summary' => 'support for encrypted submissions', |
|
46
|
|
|
|
|
|
|
'type' => 'leaf', |
|
47
|
|
|
|
|
|
|
'upstream_default' => 'no', |
|
48
|
|
|
|
|
|
|
'value_type' => 'enum' |
|
49
|
|
|
|
|
|
|
}, |
|
50
|
|
|
|
|
|
|
'MAILTO', |
|
51
|
|
|
|
|
|
|
{ |
|
52
|
|
|
|
|
|
|
'description' => 'Specifies the address to e-mail statistics to each week.', |
|
53
|
|
|
|
|
|
|
'summary' => 'survey e-mail', |
|
54
|
|
|
|
|
|
|
'type' => 'leaf', |
|
55
|
|
|
|
|
|
|
'upstream_default' => 'survey@popcon.debian.org', |
|
56
|
|
|
|
|
|
|
'value_type' => 'uniline' |
|
57
|
|
|
|
|
|
|
}, |
|
58
|
|
|
|
|
|
|
'MAILFROM', |
|
59
|
|
|
|
|
|
|
{ |
|
60
|
|
|
|
|
|
|
'description' => 'MAILFROM is the forged sender email address you want to use in email submitted to the popularity-contest. If this is commented out, no From: or Sender: lines will be added to the outgoing mail, and it will be your MTA\'s job to add them. This is usually what you want. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
If your MTA is misconfigured or impossible to configure correctly, and it always generates invalid From: and/or Sender: lines, you can force different results by setting MAILFROM here. This can cause problems with spam bouncers, so most people should leave it commented out.', |
|
63
|
|
|
|
|
|
|
'summary' => 'forged sender email address', |
|
64
|
|
|
|
|
|
|
'type' => 'leaf', |
|
65
|
|
|
|
|
|
|
'value_type' => 'uniline' |
|
66
|
|
|
|
|
|
|
}, |
|
67
|
|
|
|
|
|
|
'SUBMITURLS', |
|
68
|
|
|
|
|
|
|
{ |
|
69
|
|
|
|
|
|
|
'description' => 'Space separated list of where to submit popularity-contest reports using http.', |
|
70
|
|
|
|
|
|
|
'summary' => 'list of urls to submit data to', |
|
71
|
|
|
|
|
|
|
'type' => 'leaf', |
|
72
|
|
|
|
|
|
|
'upstream_default' => 'http://popcon.debian.org/cgi-bin/popcon.cgi', |
|
73
|
|
|
|
|
|
|
'value_type' => 'uniline' |
|
74
|
|
|
|
|
|
|
}, |
|
75
|
|
|
|
|
|
|
'USEHTTP', |
|
76
|
|
|
|
|
|
|
{ |
|
77
|
|
|
|
|
|
|
'description' => 'enables http reporting. Set this to \'yes\' to enable it.', |
|
78
|
|
|
|
|
|
|
'type' => 'leaf', |
|
79
|
|
|
|
|
|
|
'upstream_default' => '1', |
|
80
|
|
|
|
|
|
|
'value_type' => 'boolean', |
|
81
|
|
|
|
|
|
|
'write_as' => [ |
|
82
|
|
|
|
|
|
|
'no', |
|
83
|
|
|
|
|
|
|
'yes' |
|
84
|
|
|
|
|
|
|
] |
|
85
|
|
|
|
|
|
|
}, |
|
86
|
|
|
|
|
|
|
'HTTP_PROXY', |
|
87
|
|
|
|
|
|
|
{ |
|
88
|
|
|
|
|
|
|
'description' => 'Allows one to specify an HTTP proxy server, the syntax is "http://proxy:port". This overrides the environment variable http_proxy.', |
|
89
|
|
|
|
|
|
|
'type' => 'leaf', |
|
90
|
|
|
|
|
|
|
'value_type' => 'uniline' |
|
91
|
|
|
|
|
|
|
}, |
|
92
|
|
|
|
|
|
|
'MY_HOSTID', |
|
93
|
|
|
|
|
|
|
{ |
|
94
|
|
|
|
|
|
|
'description' => 'Secret number that the popularity-contest receiver uses to keep track of your submissions. Whenever you send in a new entry, it overwrites the last one that had the same HOSTID. |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This key was generated automatically so you should normally just leave it alone. ', |
|
97
|
|
|
|
|
|
|
'type' => 'leaf', |
|
98
|
|
|
|
|
|
|
'value_type' => 'uniline' |
|
99
|
|
|
|
|
|
|
}, |
|
100
|
|
|
|
|
|
|
'DAY', |
|
101
|
|
|
|
|
|
|
{ |
|
102
|
|
|
|
|
|
|
'description' => 'Only run on the given day, to spread the load on the server a bit. 0 is Sunday, 6 is Saturday. ', |
|
103
|
|
|
|
|
|
|
'max' => '6', |
|
104
|
|
|
|
|
|
|
'summary' => 'day of week', |
|
105
|
|
|
|
|
|
|
'type' => 'leaf', |
|
106
|
|
|
|
|
|
|
'value_type' => 'integer' |
|
107
|
|
|
|
|
|
|
} |
|
108
|
|
|
|
|
|
|
], |
|
109
|
|
|
|
|
|
|
'license' => 'LGPL2', |
|
110
|
|
|
|
|
|
|
'name' => 'PopCon', |
|
111
|
|
|
|
|
|
|
'rw_config' => { |
|
112
|
|
|
|
|
|
|
'backend' => 'ShellVar', |
|
113
|
|
|
|
|
|
|
'config_dir' => '/etc', |
|
114
|
|
|
|
|
|
|
'file' => 'popularity-contest.conf' |
|
115
|
|
|
|
|
|
|
} |
|
116
|
|
|
|
|
|
|
} |
|
117
|
|
|
|
|
|
|
] |
|
118
|
|
|
|
|
|
|
; |
|
119
|
|
|
|
|
|
|
|