File: Approx.pl

package info (click to toggle)
libconfig-model-approx-perl 1.004-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 104 kB
  • sloc: perl: 206; makefile: 2
file content (138 lines) | stat: -rw-r--r-- 4,713 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[
  {
    'class_description' => 'Configuration model to edit C</etc/approc/approx.conf>. This file can be edited with the following command:

 config-edit -application approx

',
    'read_config' => [
      {
        'file' => 'approx.conf',
        'backend' => 'custom',
        'class' => 'Config::Model::Approx',
        'config_dir' => '/etc/approx'
      }
    ],
    'name' => 'Approx',
    'copyright' => [
      '2011, Dominique Dumont'
    ],
    'author' => [
      'Dominique Dumont'
    ],
    'license' => 'LGPL-2.1+',
    'element' => [
      'cache',
      {
        'value_type' => 'uniline',
        'summary' => 'approx cache directory',
        'upstream_default' => '/var/cache/approx',
        'experience' => 'advanced',
        'type' => 'leaf',
        'description' => 'Specifies the location of the approx cache directory (default: /var/cache/approx). It and all its subdirectories must be owned by the approx server (see also the $user and $group parameters, below.)'
      },
      'interval',
      {
        'value_type' => 'integer',
        'summary' => 'file cache expiration in minutes',
        'upstream_default' => '720',
        'experience' => 'advanced',
        'type' => 'leaf',
        'description' => 'Specifies the time in minutes after which a cached file will be considered too old to deliver without first checking with the remote repository for a newer version'
      },
      'max_rate',
      {
        'value_type' => 'uniline',
        'summary' => 'maximum download rate from remote repositories',
        'type' => 'leaf',
        'description' => "Specifies the maximum download rate from remote repositories, in bytes per second (default: unlimited). The value may be suf\x{2010} fixed with \"K\", \"M\", or \"G\" to indicate kilobytes, megabytes, or gigabytes per second, respectively."
      },
      'max_redirects',
      {
        'value_type' => 'integer',
        'summary' => 'maximum number of HTTP redirections',
        'upstream_default' => '5',
        'type' => 'leaf',
        'description' => 'Specifies the maximum number of HTTP redirections that will be followed when downloading a remote file'
      },
      'user',
      {
        'value_type' => 'uniline',
        'summary' => 'user that owns the files in the approx cache',
        'upstream_default' => 'approx',
        'type' => 'leaf'
      },
      'group',
      {
        'value_type' => 'uniline',
        'summary' => 'group that owns the files in the approx cache',
        'upstream_default' => 'approx',
        'type' => 'leaf'
      },
      'syslog',
      {
        'value_type' => 'uniline',
        'summary' => 'syslog(3) facility to use when logging',
        'upstream_default' => 'daemon',
        'type' => 'leaf'
      },
      'pdiffs',
      {
        'value_type' => 'boolean',
        'summary' => 'support IndexFile diffs',
        'upstream_default' => '1',
        'type' => 'leaf'
      },
      'offline',
      {
        'value_type' => 'boolean',
        'summary' => 'use cached files when offline',
        'upstream_default' => '0',
        'type' => 'leaf',
        'description' => 'Specifies whether to deliver (possibly out-of-date) cached files when they cannot be downloaded from remote repositories'
      },
      'max_wait',
      {
        'value_type' => 'integer',
        'summary' => 'max wait for concurrent file download',
        'upstream_default' => '10',
        'type' => 'leaf',
        'description' => 'Specifies how many seconds an approx(8) process will wait for a concurrent download of a file to complete, before attempting to download the file itself'
      },
      'verbose',
      {
        'value_type' => 'boolean',
        'upstream_default' => '0',
        'type' => 'leaf',
        'description' => 'Specifies whether informational messages should be printed in the log'
      },
      'debug',
      {
        'value_type' => 'boolean',
        'upstream_default' => '0',
        'type' => 'leaf',
        'description' => 'Specifies whether debug messages should be printed in the log'
      },
      'distributions',
      {
        'level' => 'important',
        'cargo' => {
          'value_type' => 'uniline',
          'type' => 'leaf'
        },
        'summary' => 'remote repositories',
        'type' => 'hash',
        'description' => 'The other name/value pairs are used to map distribution names to remote repositories. For example,

  debian     =>   http://ftp.debian.org/debian
  security   =>   http://security.debian.org/debian-security

Use the distribution name as the key of the hash element and the URL as the value
',
        'index_type' => 'string'
      }
    ]
  }
]
;