« blib/lib/Config/Model/models/Fstab/VfatOpt.pl
↑ Summary
wr_root/annotation/config-model/Master-note.pl »
| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 3 | ▶ | use v5.20; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 3 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | return [ | ||
| 16 | { | ||
| 17 | 3 | 'author' => [ | |
| 18 | 'Dominique Dumont' | ||
| 19 | ], | ||
| 20 | 'copyright' => [ | ||
| 21 | '2010,2011 Dominique Dumont' | ||
| 22 | ], | ||
| 23 | 'element' => [ | ||
| 24 | 'PARTICIPATE', | ||
| 25 | { | ||
| 26 | 'description' => 'If you don\'t want to participate in the contest, say "no" and we won\'t send messages.', | ||
| 27 | 'type' => 'leaf', | ||
| 28 | 'upstream_default' => '0', | ||
| 29 | 'value_type' => 'boolean', | ||
| 30 | 'write_as' => [ | ||
| 31 | 'no', | ||
| 32 | 'yes' | ||
| 33 | ] | ||
| 34 | }, | ||
| 35 | 'ENCRYPT', | ||
| 36 | { | ||
| 37 | 'choice' => [ | ||
| 38 | 'no', | ||
| 39 | 'maybe', | ||
| 40 | 'yes' | ||
| 41 | ], | ||
| 42 | 'description' => 'encrypt popcon submission. Eventually, this feature will be enabled by default.', | ||
| 43 | 'help' => { | ||
| 44 | 'maybe' => 'encrypt if gpg is available', | ||
| 45 | 'yes' => 'try to encrypt and fail if gpg is not available' | ||
| 46 | }, | ||
| 47 | 'summary' => 'support for encrypted submissions', | ||
| 48 | 'type' => 'leaf', | ||
| 49 | 'upstream_default' => 'no', | ||
| 50 | 'value_type' => 'enum' | ||
| 51 | }, | ||
| 52 | 'MAILTO', | ||
| 53 | { | ||
| 54 | 'description' => 'Specifies the address to e-mail statistics to each week.', | ||
| 55 | 'summary' => 'survey e-mail', | ||
| 56 | 'type' => 'leaf', | ||
| 57 | 'upstream_default' => 'survey@popcon.debian.org', | ||
| 58 | 'value_type' => 'uniline' | ||
| 59 | }, | ||
| 60 | 'MAILFROM', | ||
| 61 | { | ||
| 62 | '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. | ||
| 63 | |||
| 64 | 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.', | ||
| 65 | 'summary' => 'forged sender email address', | ||
| 66 | 'type' => 'leaf', | ||
| 67 | 'value_type' => 'uniline' | ||
| 68 | }, | ||
| 69 | 'SUBMITURLS', | ||
| 70 | { | ||
| 71 | 'description' => 'Space separated list of where to submit popularity-contest reports using http.', | ||
| 72 | 'summary' => 'list of urls to submit data to', | ||
| 73 | 'type' => 'leaf', | ||
| 74 | 'upstream_default' => 'http://popcon.debian.org/cgi-bin/popcon.cgi', | ||
| 75 | 'value_type' => 'uniline' | ||
| 76 | }, | ||
| 77 | 'USEHTTP', | ||
| 78 | { | ||
| 79 | 'description' => 'enables http reporting. Set this to \'yes\' to enable it.', | ||
| 80 | 'type' => 'leaf', | ||
| 81 | 'upstream_default' => '1', | ||
| 82 | 'value_type' => 'boolean', | ||
| 83 | 'write_as' => [ | ||
| 84 | 'no', | ||
| 85 | 'yes' | ||
| 86 | ] | ||
| 87 | }, | ||
| 88 | 'HTTP_PROXY', | ||
| 89 | { | ||
| 90 | 'description' => 'Allows one to specify an HTTP proxy server, the syntax is "http://proxy:port". This overrides the environment variable http_proxy.', | ||
| 91 | 'type' => 'leaf', | ||
| 92 | 'value_type' => 'uniline' | ||
| 93 | }, | ||
| 94 | 'MY_HOSTID', | ||
| 95 | { | ||
| 96 | '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. | ||
| 97 | |||
| 98 | This key was generated automatically so you should normally just leave it alone. ', | ||
| 99 | 'type' => 'leaf', | ||
| 100 | 'value_type' => 'uniline' | ||
| 101 | }, | ||
| 102 | 'DAY', | ||
| 103 | { | ||
| 104 | 'description' => 'Only run on the given day, to spread the load on the server a bit. 0 is Sunday, 6 is Saturday. ', | ||
| 105 | 'max' => '6', | ||
| 106 | 'summary' => 'day of week', | ||
| 107 | 'type' => 'leaf', | ||
| 108 | 'value_type' => 'integer' | ||
| 109 | } | ||
| 110 | ], | ||
| 111 | 'license' => 'LGPL2', | ||
| 112 | 'name' => 'PopCon', | ||
| 113 | 'rw_config' => { | ||
| 114 | 'backend' => 'ShellVar', | ||
| 115 | 'config_dir' => '/etc', | ||
| 116 | 'file' => 'popularity-contest.conf' | ||
| 117 | } | ||
| 118 | } | ||
| 119 | ] | ||
| 120 | ; | ||