File: PopCon.pl

package info (click to toggle)
libconfig-model-perl 2.021-3%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,104 kB
  • sloc: perl: 20,550; makefile: 11
file content (102 lines) | stat: -rw-r--r-- 3,461 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# This file is part of Config-Model
#
# This software is Copyright (c) 2012 by Dominique Dumont, Krzysztof Tyszecki.
#
# This is free software, licensed under:
#
#   The GNU Lesser General Public License, Version 2.1, February 1999
#
[
  {
    'read_config' => [
      {
        'file' => 'popularity-contest.conf',
        'backend' => 'ShellVar',
        'config_dir' => '/etc'
      }
    ],
    'name' => 'PopCon',
    'copyright' => [
      '2010,2011 Dominique Dumont'
    ],
    'author' => [
      'Dominique Dumont'
    ],
    'license' => 'LGPL2',
    'element' => [
      'PARTICIPATE',
      {
        'value_type' => 'enum',
        'upstream_default' => 'no',
        'type' => 'leaf',
        'description' => 'If you don\'t want to participate in the contest, say "no" and we won\'t send messages.',
        'choice' => [
          'no',
          'yes'
        ]
      },
      'MAILTO',
      {
        'value_type' => 'uniline',
        'summary' => 'survey e-mail',
        'upstream_default' => 'survey@popcon.debian.org',
        'type' => 'leaf',
        'description' => 'Specifies the address to e-mail statistics to each week.'
      },
      'MAILFROM',
      {
        'value_type' => 'uniline',
        'summary' => 'forged sender email address',
        'type' => 'leaf',
        '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.

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.'
      },
      'SUBMITURLS',
      {
        'value_type' => 'uniline',
        'summary' => 'list of urls to submit data to',
        'upstream_default' => 'http://popcon.debian.org/cgi-bin/popcon.cgi',
        'type' => 'leaf',
        'description' => 'Space separated list of where to submit popularity-contest reports using http.'
      },
      'USEHTTP',
      {
        'value_type' => 'enum',
        'upstream_default' => 'yes',
        'type' => 'leaf',
        'description' => 'enables http reporting. Set this to \'yes\' to enable it.',
        'choice' => [
          'no',
          'yes'
        ]
      },
      'HTTP_PROXY',
      {
        'value_type' => 'uniline',
        'type' => 'leaf',
        'description' => 'Allows one to specify an HTTP proxy server, the syntax is "http://proxy:port". This overrides the environment variable http_proxy.'
      },
      'MY_HOSTID',
      {
        'value_type' => 'uniline',
        'experience' => 'master',
        'type' => 'leaf',
        '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.

This key was generated automatically so you should normally just leave it alone. '
      },
      'DAY',
      {
        'value_type' => 'integer',
        'summary' => 'day of week',
        'max' => '6',
        'type' => 'leaf',
        'description' => 'Only run on the given day, to spread the load on the server a bit. 0 is Sunday, 6 is Saturday. '
      }
    ]
  }
]
;