line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Sys::Info::Driver::Linux::OS::Distribution::Conf; |
2
|
|
|
|
|
|
|
$Sys::Info::Driver::Linux::OS::Distribution::Conf::VERSION = '0.7905'; |
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
46
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
46
|
|
5
|
2
|
|
|
2
|
|
9
|
use base qw( Exporter ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
173
|
|
6
|
2
|
|
|
2
|
|
1293
|
use Config::General (); |
|
2
|
|
|
|
|
27110
|
|
|
2
|
|
|
|
|
225
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our @EXPORT = qw( %CONF ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our %CONF = Config::General::ParseConfig( -String => <<'RAW' ); |
11
|
|
|
|
|
|
|
#Â Some parts of this data set was initially taken from Wikipedia |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
<adamantix> |
14
|
|
|
|
|
|
|
release_derived = adamantix_version |
15
|
|
|
|
|
|
|
</adamantix> |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
<arch> |
18
|
|
|
|
|
|
|
release = arch-release |
19
|
|
|
|
|
|
|
</arch> |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
<centos> |
22
|
|
|
|
|
|
|
manufacturer = Lance Davis |
23
|
|
|
|
|
|
|
release = redhat-release |
24
|
|
|
|
|
|
|
version_match = CentOS(?: Linux)? release (.*) \( |
25
|
|
|
|
|
|
|
</centos> |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
<conectiva> |
28
|
|
|
|
|
|
|
release_derived = conectiva-release |
29
|
|
|
|
|
|
|
</conectiva> |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
<debian> |
32
|
|
|
|
|
|
|
manufacturer = Debian Project |
33
|
|
|
|
|
|
|
version_match = (.+) |
34
|
|
|
|
|
|
|
release = debian_version |
35
|
|
|
|
|
|
|
release = debian_release |
36
|
|
|
|
|
|
|
<edition> |
37
|
|
|
|
|
|
|
1.1 = buzz |
38
|
|
|
|
|
|
|
1.2 = rex |
39
|
|
|
|
|
|
|
1.3 = bo |
40
|
|
|
|
|
|
|
2.0 = hamm |
41
|
|
|
|
|
|
|
2.1 = slink |
42
|
|
|
|
|
|
|
2.2 = potato |
43
|
|
|
|
|
|
|
3.0 = woody |
44
|
|
|
|
|
|
|
3.1 = sarge |
45
|
|
|
|
|
|
|
4.0 = etch |
46
|
|
|
|
|
|
|
5.0 = lenny |
47
|
|
|
|
|
|
|
6.0 = squeeze |
48
|
|
|
|
|
|
|
7.0 = wheezy |
49
|
|
|
|
|
|
|
</edition> |
50
|
|
|
|
|
|
|
# we get the version as "lenny/sid" for example |
51
|
|
|
|
|
|
|
<vfix> |
52
|
|
|
|
|
|
|
buzz = 1.1 |
53
|
|
|
|
|
|
|
rex = 1.2 |
54
|
|
|
|
|
|
|
bo = 1.3 |
55
|
|
|
|
|
|
|
hamm = 2.0 |
56
|
|
|
|
|
|
|
slink = 2.1 |
57
|
|
|
|
|
|
|
potato = 2.2 |
58
|
|
|
|
|
|
|
woody = 3.0 |
59
|
|
|
|
|
|
|
sarge = 3.1 |
60
|
|
|
|
|
|
|
etch = 4.0 |
61
|
|
|
|
|
|
|
lenny = 5.0 |
62
|
|
|
|
|
|
|
squeeze = 6.0 |
63
|
|
|
|
|
|
|
wheezy = 7.0 |
64
|
|
|
|
|
|
|
</vfix> |
65
|
|
|
|
|
|
|
</debian> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
<fedora> |
68
|
|
|
|
|
|
|
manufacturer = Fedora Project |
69
|
|
|
|
|
|
|
version_match = Fedora (?:Core )?release (\d+) \( |
70
|
|
|
|
|
|
|
release_derived = fedora-release |
71
|
|
|
|
|
|
|
<edition> |
72
|
|
|
|
|
|
|
1 = Yarrow |
73
|
|
|
|
|
|
|
2 = Tettnang |
74
|
|
|
|
|
|
|
3 = Heidelberg |
75
|
|
|
|
|
|
|
4 = Stentz |
76
|
|
|
|
|
|
|
5 = Bordeaux |
77
|
|
|
|
|
|
|
6 = Zod |
78
|
|
|
|
|
|
|
7 = Moonshine |
79
|
|
|
|
|
|
|
8 = Werewolf |
80
|
|
|
|
|
|
|
9 = Sulphur |
81
|
|
|
|
|
|
|
10 = Cambridge |
82
|
|
|
|
|
|
|
11 = Leonidas |
83
|
|
|
|
|
|
|
12 = Constantine |
84
|
|
|
|
|
|
|
13 = Goddard |
85
|
|
|
|
|
|
|
14 = Laughlin |
86
|
|
|
|
|
|
|
15 = Lovelock |
87
|
|
|
|
|
|
|
16 = Verne |
88
|
|
|
|
|
|
|
17 = Beefy Miracle |
89
|
|
|
|
|
|
|
</edition> |
90
|
|
|
|
|
|
|
</fedora> |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
<gentoo> |
93
|
|
|
|
|
|
|
manufacturer = Gentoo Foundation |
94
|
|
|
|
|
|
|
version_match = Gentoo Base System version (.*) |
95
|
|
|
|
|
|
|
release = gentoo-release |
96
|
|
|
|
|
|
|
</gentoo> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
<immunix> |
99
|
|
|
|
|
|
|
release_derived = immunix-release |
100
|
|
|
|
|
|
|
</immunix> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
<knoppix> |
103
|
|
|
|
|
|
|
manufacturer = Klaus Knopper |
104
|
|
|
|
|
|
|
release_derived = knoppix-version |
105
|
|
|
|
|
|
|
</knoppix> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
<libranet> |
108
|
|
|
|
|
|
|
release_derived = libranet_version |
109
|
|
|
|
|
|
|
</libranet> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
<mandrake> |
112
|
|
|
|
|
|
|
release = mandrake-release |
113
|
|
|
|
|
|
|
release = mandrakelinux-release |
114
|
|
|
|
|
|
|
</mandrake> |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
<mandriva> |
117
|
|
|
|
|
|
|
manufacturer = Mandriva |
118
|
|
|
|
|
|
|
<edition> |
119
|
|
|
|
|
|
|
5.1 = Venice |
120
|
|
|
|
|
|
|
5.2 = Leeloo |
121
|
|
|
|
|
|
|
5.3 = Festen |
122
|
|
|
|
|
|
|
6.0 = Venus |
123
|
|
|
|
|
|
|
6.1 = Helios |
124
|
|
|
|
|
|
|
7.0 = Air |
125
|
|
|
|
|
|
|
7.1 = Helium |
126
|
|
|
|
|
|
|
7.2 = Odyssey |
127
|
|
|
|
|
|
|
8.0 = Traktopel |
128
|
|
|
|
|
|
|
8.1 = Vitamin |
129
|
|
|
|
|
|
|
8.2 = Bluebird |
130
|
|
|
|
|
|
|
9.0 = Dolphin |
131
|
|
|
|
|
|
|
9.1 = Bamboo |
132
|
|
|
|
|
|
|
9.2 = FiveStar |
133
|
|
|
|
|
|
|
10.0 = Community |
134
|
|
|
|
|
|
|
10.1 = Community |
135
|
|
|
|
|
|
|
10.2 = Limited Edition 2005 |
136
|
|
|
|
|
|
|
2006.0 = 2006 |
137
|
|
|
|
|
|
|
2007 = 2007 |
138
|
|
|
|
|
|
|
2007.1 = 2007 Spring |
139
|
|
|
|
|
|
|
2008.0 = 2008 |
140
|
|
|
|
|
|
|
2008.1 = 2008 Spring |
141
|
|
|
|
|
|
|
2009.0 = 2009 |
142
|
|
|
|
|
|
|
2009.1 = 2009 Spring |
143
|
|
|
|
|
|
|
2010.0 = 2010 |
144
|
|
|
|
|
|
|
2010.1 = 2010 Spring |
145
|
|
|
|
|
|
|
2010.2 = 2010.2 |
146
|
|
|
|
|
|
|
2011.0 = Hydrogen |
147
|
|
|
|
|
|
|
</edition> |
148
|
|
|
|
|
|
|
</mandriva> |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
<redflag> |
151
|
|
|
|
|
|
|
version_match = Red Flag (?:Desktop|Linux) (?:release |\()(.*?)(?: \(.+)?\) |
152
|
|
|
|
|
|
|
release_derived = redflag-release |
153
|
|
|
|
|
|
|
</redflag> |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
<redhat> |
156
|
|
|
|
|
|
|
manufacturer = Red Hat, Inc. |
157
|
|
|
|
|
|
|
version_match = Red Hat (?:Enterprise )?Linux (?:Server )release (.*) \( |
158
|
|
|
|
|
|
|
release = redhat-release |
159
|
|
|
|
|
|
|
release = redhat_version |
160
|
|
|
|
|
|
|
use_codename_for_edition = 1 |
161
|
|
|
|
|
|
|
</redhat> |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
<pardus> |
164
|
|
|
|
|
|
|
version_match = \APardus (.+)\z |
165
|
|
|
|
|
|
|
release_derived = pardus-release |
166
|
|
|
|
|
|
|
</pardus> |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
<slackware> |
169
|
|
|
|
|
|
|
manufacturer = Patrick Volkerding |
170
|
|
|
|
|
|
|
version_match = \ASlackware (.+)\z |
171
|
|
|
|
|
|
|
release = slackware-version |
172
|
|
|
|
|
|
|
release = slackware-release |
173
|
|
|
|
|
|
|
</slackware> |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
<suse> |
176
|
|
|
|
|
|
|
name = SUSE |
177
|
|
|
|
|
|
|
manufacturer = Novell |
178
|
|
|
|
|
|
|
version_match = VERSION = (.*) |
179
|
|
|
|
|
|
|
release = SuSE-release |
180
|
|
|
|
|
|
|
</suse> |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
<tinysofa> |
183
|
|
|
|
|
|
|
release_derived = tinysofa-release |
184
|
|
|
|
|
|
|
</tinysofa> |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
<trustix> |
187
|
|
|
|
|
|
|
release_derived = trustix-release |
188
|
|
|
|
|
|
|
</trustix> |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
<turbolinux> |
191
|
|
|
|
|
|
|
release_derived = turbolinux-release |
192
|
|
|
|
|
|
|
</turbolinux> |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
<ubuntu> |
195
|
|
|
|
|
|
|
manufacturer = Canonical Ltd. / Ubuntu Foundation |
196
|
|
|
|
|
|
|
<edition> |
197
|
|
|
|
|
|
|
4.10 = Warty Warthog |
198
|
|
|
|
|
|
|
5.04 = Hoary Hedgehog |
199
|
|
|
|
|
|
|
5.10 = Breezy Badger |
200
|
|
|
|
|
|
|
6.06 = Dapper Drake |
201
|
|
|
|
|
|
|
6.10 = Edgy Eft |
202
|
|
|
|
|
|
|
7.04 = Feisty Fawn |
203
|
|
|
|
|
|
|
7.10 = Gutsy Gibbon |
204
|
|
|
|
|
|
|
8.04 = Hardy Heron |
205
|
|
|
|
|
|
|
8.10 = Intrepid Ibex |
206
|
|
|
|
|
|
|
9.04 = Jaunty Jackalope |
207
|
|
|
|
|
|
|
9.10 = Karmic Koala |
208
|
|
|
|
|
|
|
10.04 = Lucid Lynx |
209
|
|
|
|
|
|
|
10.10 = Maverick Meerkat |
210
|
|
|
|
|
|
|
11.04 = Natty Narwhal |
211
|
|
|
|
|
|
|
11.10 = Oneiric Ocelot |
212
|
|
|
|
|
|
|
12.04 = Precise Pangolin |
213
|
|
|
|
|
|
|
12.10 = Quantal Quetzal |
214
|
|
|
|
|
|
|
13.04 = Raring Ringtail |
215
|
|
|
|
|
|
|
13.10 = Saucy Salamander |
216
|
|
|
|
|
|
|
14.04 = Trusty Tahr |
217
|
|
|
|
|
|
|
14.10 = Utopic Unicorn |
218
|
|
|
|
|
|
|
15.04 = Vivid Vervet |
219
|
|
|
|
|
|
|
15.10 = Wily Werewolf |
220
|
|
|
|
|
|
|
16.04 = Xenial Xerus |
221
|
|
|
|
|
|
|
16.10 = Yakkety Yak |
222
|
|
|
|
|
|
|
17.04 = Zesty Zapus |
223
|
|
|
|
|
|
|
17.10 = Artful Aardvark |
224
|
|
|
|
|
|
|
18.04 = Bionic Beaver |
225
|
|
|
|
|
|
|
18.10 = Cosmic Cuttlefish |
226
|
|
|
|
|
|
|
19.04 = Disco Dingo |
227
|
|
|
|
|
|
|
</edition> |
228
|
|
|
|
|
|
|
</ubuntu> |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
<va-linux> |
231
|
|
|
|
|
|
|
release_derived = va-release |
232
|
|
|
|
|
|
|
</va-linux> |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
<yellowdog> |
235
|
|
|
|
|
|
|
release_derived = yellowdog-release |
236
|
|
|
|
|
|
|
</yellowdog> |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
<yoper> |
239
|
|
|
|
|
|
|
release_derived = yoper-release |
240
|
|
|
|
|
|
|
</yoper> |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
RAW |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
1; |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
__END__ |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=pod |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
=encoding UTF-8 |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
=head1 NAME |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
Sys::Info::Driver::Linux::OS::Distribution::Conf |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
=head1 VERSION |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
version 0.7905 |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=head1 SYNOPSIS |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
=head1 DESCRIPTION |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
=head1 NAME |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
Sys::Info::Driver::Linux::OS::Distribution::Conf - Distro configuration |
267
|
|
|
|
|
|
|
|
268
|
|
|
|
|
|
|
=head1 AUTHOR |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
Burak Gursoy <burak@cpan.org> |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
This software is copyright (c) 2006 by Burak Gursoy. |
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
277
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
=cut |