File Coverage

blib/lib/Sys/Info/Driver/Linux/OS/Distribution/Conf.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


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