/usr/share/perl5/Config/Model/models/Dpkg/Copyright.pl is in libconfig-model-dpkg-perl 2.076.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | [
{
'accept' => [
'.*',
{
'type' => 'leaf',
'value_type' => 'string'
}
],
'author' => [
'Dominique Dumont'
],
'class' => 'Config::Model::Dpkg::Copyright',
'class_description' => 'Machine-readable debian/copyright. Parameters from former version
of DEP-5 are flagged as deprecated. The idea is to enable migration from older
specs to CANDIDATE spec.
To edit a copyright file, go into your package development directory and run:
cme edit dpkg-copyright
To check you file run:
cme check dpkg-copyright
To upgrade your file from an old spec, run:
cme migrate dpkg-copyright
',
'copyright' => [
'2010,2011 Dominique Dumont'
],
'element' => [
'Format',
{
'default' => 'https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/',
'description' => 'URI of the format specification.',
'mandatory' => '1',
'match' => '^https?://',
'type' => 'leaf',
'value_type' => 'uniline',
'warn_unless_match' => {
'^https?://www.debian.org/doc/packaging-manuals/copyright-format/1\\.0/?$' => {
'fix' => '$_ = undef;',
'msg' => 'Format does not match the recommended URL for DEP-5'
}
}
},
'Upstream-Name',
{
'description' => 'The name upstream uses for the software.',
'migrate_from' => {
'formula' => '$name',
'variables' => {
'name' => '- Name'
}
},
'type' => 'leaf',
'value_type' => 'uniline'
},
'Upstream-Contact',
{
'cargo' => {
'type' => 'leaf',
'value_type' => 'uniline'
},
'description' => 'The preferred address(es) to reach the upstream project. May be free-form text, but by convention will usually be written as a list of RFC5822 addresses or URIs.',
'migrate_values_from' => '- Upstream-Maintainer',
'type' => 'list'
},
'Source',
{
'description' => 'An explanation from where the upstream source came from. Typically this would be a URL, but it might be a free-form explanation. The Debian Policy, 12.5 requires this information unless there are no upstream sources, which is mainly the case for native Debian packages. If the upstream source has been modified to remove non-free parts, that should be explained in this field.',
'migrate_from' => {
'formula' => '$old || $older ;',
'undef_is' => '\'\'',
'use_eval' => '1',
'variables' => {
'old' => '- Upstream-Source',
'older' => '- Original-Source-Location'
}
},
'type' => 'leaf',
'value_type' => 'string'
},
'Disclaimer',
{
'description' => 'This field can be used in the case of non-free and contrib packages (see [Policy 12.5]( http://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile))',
'type' => 'leaf',
'value_type' => 'string',
'warn_if_match' => {
'dh-make-perl' => {
'fix' => '$_ = undef ;',
'msg' => 'Disclaimer contains dh-make-perl boilerplate'
}
}
},
'Comment',
{
'description' => 'This field can provide additional information. For example, it might quote an e-mail from upstream justifying why the license is acceptable to the main archive, or an explanation of how this version of the package has been forked from a version known to be DFSG-free, even though the current upstream version is not.',
'migrate_from' => {
'formula' => '$old',
'variables' => {
'old' => '- X-Comment'
}
},
'type' => 'leaf',
'value_type' => 'string'
},
'Copyright',
{
'description' => 'Copyright information for the package as a whole, which may be different or simplified from a combination of all the per-file copyright information. See also Copyright below in the Files paragraph section.',
'type' => 'leaf',
'value_type' => 'string'
},
'Files',
{
'cargo' => {
'config_class_name' => 'Dpkg::Copyright::Content',
'type' => 'node'
},
'description' => 'Patterns indicating files having the same license and sharing copyright holders.
See L<files pattern documentation|https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#files-field> for details.',
'index_type' => 'string',
'ordered' => '1',
'type' => 'hash',
'warn_if_key_match' => '[\\[\\]\\|]'
},
'Files-Excluded',
{
'description' => 'White space separated list of file patterns to exclude from the package. This field is only used by L<uscan>. Example: C<*/Makefile.in aclocal.m4>. See also L<UscanEnhancements|https://wiki.debian.org/UscanEnhancements> and the L<files pattern documentation|https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#files-field>.',
'type' => 'leaf',
'value_type' => 'string',
'warn_if_match' => {
'\\/(\\s|$)' => {
'fix' => 's!/(?=\\s|$)!!g;',
'msg' => 'directory entries should not have a trailing slash'
}
}
},
'Global-License',
{
'config_class_name' => 'Dpkg::Copyright::GlobalLicense',
'type' => 'node'
},
'Format-Specification',
{
'status' => 'deprecated',
'type' => 'leaf',
'value_type' => 'uniline'
},
'Name',
{
'status' => 'deprecated',
'type' => 'leaf',
'value_type' => 'uniline'
},
'Maintainer',
{
'cargo' => {
'type' => 'leaf',
'value_type' => 'uniline'
},
'description' => 'Line(s) containing the preferred address(es) to reach current upstream maintainer(s). May be free-form text, but by convention will usually be written as a list of RFC2822 addresses or URIs.',
'status' => 'deprecated',
'type' => 'list'
},
'Upstream-Maintainer',
{
'cargo' => {
'type' => 'leaf',
'value_type' => 'uniline'
},
'migrate_values_from' => '- Maintainer',
'status' => 'deprecated',
'type' => 'list'
},
'Upstream-Source',
{
'status' => 'deprecated',
'type' => 'leaf',
'value_type' => 'string'
},
'Original-Source-Location',
{
'status' => 'deprecated',
'type' => 'leaf',
'value_type' => 'string'
},
'License',
{
'cargo' => {
'config_class_name' => 'Dpkg::Copyright::LicenseSpec',
'type' => 'node'
},
'index_type' => 'string',
'type' => 'hash'
},
'X-Comment',
{
'status' => 'deprecated',
'type' => 'leaf',
'value_type' => 'string'
}
],
'license' => 'LGPL2',
'name' => 'Dpkg::Copyright',
'read_config' => [
{
'auto_create' => '1',
'backend' => 'Dpkg::Copyright',
'config_dir' => 'debian',
'file' => 'copyright'
}
]
}
]
;
|