Linux-Distribution-0.23000755000000000000 012541204416 15540 5ustar00unknownunknown000000000000Linux-Distribution-0.23/Build.PL000444000000000000 122512541204272 17171 0ustar00unknownunknown000000000000use strict; use Module::Build; #created by eumm-migrate.pl unless (lc $^O eq "linux" || -d '.git') { die "OS unsupported\n"; } my $build = Module::Build->new( 'auto_configure_requires' => 0, 'dist_author' => 'Alexandr Ciornii ', 'module_name' => 'Linux::Distribution', 'meta_merge' => { 'resources' => { 'repository' => 'https://github.com/chorny/Linux-Distribution' } }, 'requires' => { 'perl' => '5.006', }, 'build_requires' => { 'Test::More' => 0, }, 'license' => 'perl', 'dist_version_from' => 'lib/Linux/Distribution.pm' ); $build->create_build_script(); Linux-Distribution-0.23/Changes000444000000000000 313212541203743 17171 0ustar00unknownunknown000000000000* 2015-06-20 version 0.23 CloudLinux added Handle fields in lsb-release being quoted * 2014-12-18 version 0.22 by Michiel Beijen Fixed version detection for CentOS 7 (RT#97638) Added OS and version detection for Amazon Linux. (RT#88412) * 2012-02-23 version 0.21 Added OS and version detection for Oracle Enterprise Linux Fixed version detection for Fedora (reported by tlhackqueATyahoo.com, RT#69671) Fixed OS and version detection for CentOS6 (RT#69847) Added version detection for Scientific Linux * 2010-12-05 version 0.20 Fixed version detection for Gentoo CentOS detection (modified patch from XSAWYERX) Start writing distribution-oriented tests Build.PL added * 2008-11-02 version 0.14_01 Remove bareword filehandles and 2-arg open Will not install if not on Linux Modernize Makefile.PL Fix for 5.10 Pardus support (by BURAK, RT#27357) Fix Fedora recognition (reported by sagarshahATsofthome.net, RT#11996) * 2005-02-16 Added support for Redflag. * 2006-01-16 Thanks to Judith Lebzelter now the module gets advantage of the LSB's /etc/lsb-release file. Added support for Ubuntu and version information retrieval for gentoo, debian, suse, fedora, redhat and slackware. * 2005-03-10 Added support for yoper, arch-linux and libranet. * 2005-03-09 Cleaned code. * 2005-03-08 Version 0.03. Added support for Adamantix and Trustix. * 2005-03-07 Reduced needed perl version to 5.6.0. Removed copyright line from pod documentation. * 2005-03-06 Version 0.02. * 2005-03-06 Added support for immunix, conectiva, tinysofa and va-linux. * 2005-03-06 Updated changelog * 2005-03-06 20:14:28 +0100 Version 0.01. Linux-Distribution-0.23/hacking000444000000000000 23312536477606 17223 0ustar00unknownunknown000000000000To add new Linux distribution, please send following files: /etc/lsb-release /etc/*-release /etc/*_version and output of: uname -a lsb_release -a Linux-Distribution-0.23/Makefile.PL000444000000000000 116011721517144 17651 0ustar00unknownunknown000000000000use 5.006000; use ExtUtils::MakeMaker; unless (lc $^O eq "linux") { die "OS unsupported\n"; } WriteMakefile( NAME => 'Linux::Distribution', VERSION_FROM => 'lib/Linux/Distribution.pm', # finds $VERSION PREREQ_PM => { 'Test::More' => 0, }, ABSTRACT_FROM => 'lib/Linux/Distribution.pm', # retrieve abstract from module AUTHOR => 'Alexandr Ciornii ', #Alberto Re ($ExtUtils::MakeMaker::VERSION ge '6.48'? ('LICENSE' => 'perl', 'MIN_PERL_VERSION' => 5.006,) : ()), PL_FILES => {}, ); Linux-Distribution-0.23/MANIFEST000444000000000000 172012536510131 17024 0ustar00unknownunknown000000000000Build.PL Changes hacking lib/Linux/Distribution.pm Makefile.PL MANIFEST This list of files META.json META.yml README t/amazon.t t/amazon/files t/amazon/system-release t/centos.t t/centos/files t/centos/redhat-release t/centos6.t t/centos6/centos-release t/centos6/files t/centos7.t t/centos7/centos-release t/centos7/files t/cloudlinux.t t/CloudLinux/CloudLinux-release t/CloudLinux/files t/CloudLinux/lsb_release-output t/CloudLinux/redhat-release t/debian7.t t/debian7/debian_version t/debian7/files t/fedora15.t t/fedora15/fedora-release t/fedora15/files t/fedora15/redhat-release t/Linux-Distribution.t t/oel6.t t/oel6/enterprise-release t/oel6/files t/oel6/redhat-release t/rhel6.t t/rhel6/files t/rhel6/redhat-release t/rhel7.t t/rhel7/files t/rhel7/redhat-release t/scientific6.t t/scientific6/files t/scientific6/redhat-release t/ubuntu1404.t t/ubuntu1404/debian_version t/ubuntu1404/files t/ubuntu1404/lsb-release Linux-Distribution-0.23/META.json000444000000000000 204212541204416 17314 0ustar00unknownunknown000000000000{ "abstract" : "Perl extension to detect on which Linux distribution we are running.", "author" : [ "Alexandr Ciornii " ], "dynamic_config" : 1, "generated_by" : "Module::Build version 0.4211", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Linux-Distribution", "prereqs" : { "build" : { "requires" : { "Test::More" : "0" } }, "runtime" : { "requires" : { "perl" : "5.006" } } }, "provides" : { "Linux::Distribution" : { "file" : "lib/Linux/Distribution.pm", "version" : "0.23" } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ], "repository" : { "url" : "https://github.com/chorny/Linux-Distribution" } }, "version" : "0.23" } Linux-Distribution-0.23/META.yml000444000000000000 122312541204416 17144 0ustar00unknownunknown000000000000--- abstract: Perl extension to detect on which Linux distribution we are running. author: - 'Alexandr Ciornii ' build_requires: Test::More: 0 dynamic_config: 1 generated_by: 'Module::Build version 0.4211, CPAN::Meta::Converter version 2.143240' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Linux-Distribution provides: Linux::Distribution: file: lib/Linux/Distribution.pm version: 0.23 requires: perl: 5.006 resources: license: http://dev.perl.org/licenses/ repository: https://github.com/chorny/Linux-Distribution version: 0.23 Linux-Distribution-0.23/README000444000000000000 250312541203650 16554 0ustar00unknownunknown000000000000Linux-Distribution version 0.23 =============================== This is a simple module that tries to detect on what linux distribution we are running by looking for release's files in /etc. It now looks for 'lsb-release' first as that should be the most cor- rect and adds ubuntu support. Secondly, it will look for the distro specific files. It currently recognizes slackware, debian, suse, fedora, redhat, turbolinux, yellowdog, knoppix, mandrake, conectiva, immunix, tinysofa, va-linux, trustix, adamantix, yoper, arch-linux, libranet, gentoo, ubuntu, scientific, oracle enterprise linux, and redflag. It has function to get the version for debian, suse, fedora, redhat, gentoo, slackware, scientific, oracle enterprise linux, redflag and ubuntu(lsb). People running unsupported distro's are greatly encouraged to submit patches :-) INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DEPENDENCIES This module has no dependencies. COPYRIGHT AND LICENCE Copyright (C) 2006 by Alberto Re (c) 2008-2015 Alexandr Ciornii This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available. Linux-Distribution-0.23/lib000755000000000000 012541204416 16306 5ustar00unknownunknown000000000000Linux-Distribution-0.23/lib/Linux000755000000000000 012541204416 17405 5ustar00unknownunknown000000000000Linux-Distribution-0.23/lib/Linux/Distribution.pm000444000000000000 1736312541203504 22606 0ustar00unknownunknown000000000000package Linux::Distribution; use 5.006000; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw( distribution_name distribution_version ); our $VERSION = '0.23'; our $release_files_directory='/etc'; our $standard_release_file = 'lsb-release'; our %release_files = ( 'gentoo-release' => 'gentoo', 'fedora-release' => 'fedora', 'centos-release' => 'centos', 'enterprise-release' => 'oracle enterprise linux', 'turbolinux-release' => 'turbolinux', 'mandrake-release' => 'mandrake', 'mandrakelinux-release' => 'mandrakelinux', 'debian_version' => 'debian', 'debian_release' => 'debian', 'SuSE-release' => 'suse', 'knoppix-version' => 'knoppix', 'yellowdog-release' => 'yellowdog', 'slackware-version' => 'slackware', 'slackware-release' => 'slackware', 'redflag-release' => 'redflag', 'redhat-release' => 'redhat', 'redhat_version' => 'redhat', 'conectiva-release' => 'conectiva', 'immunix-release' => 'immunix', 'tinysofa-release' => 'tinysofa', 'trustix-release' => 'trustix', 'adamantix_version' => 'adamantix', 'yoper-release' => 'yoper', 'arch-release' => 'arch', 'libranet_version' => 'libranet', 'va-release' => 'va-linux', 'pardus-release' => 'pardus', 'system-release' => 'amazon', 'CloudLinux-release' => 'CloudLinux', ); our %version_match = ( 'gentoo' => 'Gentoo Base System release (.*)', 'debian' => '(.+)', 'suse' => 'VERSION = (.*)', 'fedora' => 'Fedora(?: Core)? release (\d+) \(', 'redflag' => 'Red Flag (?:Desktop|Linux) (?:release |\()(.*?)(?: \(.+)?\)', 'redhat' => 'Red Hat(?: Enterprise)? Linux(?: Server)? release (.*) \(', 'oracle enterprise linux' => 'Enterprise Linux Server release (.+) \(', 'slackware' => '^Slackware (.+)$', 'pardus' => '^Pardus (.+)$', 'centos' => '^CentOS(?: Linux)? release (.+) \(', 'scientific' => '^Scientific Linux release (.+) \(', 'amazon' => 'Amazon Linux AMI release (.+)$', 'CloudLinux' => 'CloudLinux Server release (\S+)' ); if ($^O ne 'linux') { # require Carp; # Carp::croak('you are trying to use a linux specific module on a different OS'); } sub new { my %self = ( 'DISTRIB_ID' => '', 'DISTRIB_RELEASE' => '', 'DISTRIB_CODENAME' => '', 'DISTRIB_DESCRIPTION' => '', 'release_file' => '', 'pattern' => '' ); return bless \%self; } sub distribution_name { my $self = shift || new(); my $distro; if ($distro = $self->_get_lsb_info()){ return $distro if ($distro); } foreach (qw(enterprise-release fedora-release CloudLinux-release)) { if (-f "$release_files_directory/$_" && !-l "$release_files_directory/$_"){ if (-f "$release_files_directory/$_" && !-l "$release_files_directory/$_"){ $self->{'DISTRIB_ID'} = $release_files{$_}; $self->{'release_file'} = $_; return $self->{'DISTRIB_ID'}; } } } foreach (keys %release_files) { if (-f "$release_files_directory/$_" && !-l "$release_files_directory/$_"){ if (-f "$release_files_directory/$_" && !-l "$release_files_directory/$_"){ if ( $release_files{$_} eq 'redhat' ) { foreach my $rhel_deriv ('centos','scientific',) { $self->{'pattern'} = $version_match{$rhel_deriv}; $self->{'release_file'}='redhat-release'; if ( $self->_get_file_info() ) { $self->{'DISTRIB_ID'} = $rhel_deriv; $self->{'release_file'} = $_; return $self->{'DISTRIB_ID'}; } } $self->{'pattern'}=''; } $self->{'release_file'} = $_; $self->{'DISTRIB_ID'} = $release_files{$_}; return $self->{'DISTRIB_ID'}; } } } undef } sub distribution_version { my $self = shift || new(); my $release; return $release if ($release = $self->_get_lsb_info('DISTRIB_RELEASE')); if (! $self->{'DISTRIB_ID'}){ $self->distribution_name() or die 'No version because no distro.'; } $self->{'pattern'} = $version_match{$self->{'DISTRIB_ID'}}; $release = $self->_get_file_info(); $self->{'DISTRIB_RELEASE'} = $release; return $release; } sub _get_lsb_info { my $self = shift; my $field = shift || 'DISTRIB_ID'; my $tmp = $self->{'release_file'}; if ( -r "$release_files_directory/" . $standard_release_file ) { $self->{'release_file'} = $standard_release_file; $self->{'pattern'} = $field . '=["]?([^"]+)["]?'; my $info = $self->_get_file_info(); if ($info){ $self->{$field} = $info; return $info } } $self->{'release_file'} = $tmp; $self->{'pattern'} = ''; undef; } sub _get_file_info { my $self = shift; open my $fh, '<', "$release_files_directory/" . $self->{'release_file'} or die 'Cannot open file: '.$release_files_directory.'/' . $self->{'release_file'}; my $info = ''; local $_; while (<$fh>){ chomp $_; ($info) = $_ =~ m/$self->{'pattern'}/; return "\L$info" if $info; } undef; } 1; __END__ =head1 NAME Linux::Distribution - Perl extension to detect on which Linux distribution we are running. =head1 SYNOPSIS use Linux::Distribution qw(distribution_name distribution_version); if(my $distro = distribution_name) { my $version = distribution_version(); print "you are running $distro, version $version\n"; } else { print "distribution unknown\n"; } Or else do it OO: use Linux::Distribution qw(distribution_name distribution_version); my $linux = Linux::Distribution->new; if(my $distro = $linux->distribution_name()) { my $version = $linux->distribution_version(); print "you are running $distro, version $version\n"; } else { print "distribution unknown\n"; } =head1 DESCRIPTION This is a simple module that tries to guess on what linux distribution we are running by looking for release's files in /etc. It now looks for 'lsb-release' first as that should be the most correct and adds ubuntu support. Secondly, it will look for the distro specific files. It currently recognizes slackware, debian, suse, fedora, redhat, turbolinux, yellowdog, knoppix, mandrake, conectiva, immunix, tinysofa, va-linux, trustix, adamantix, yoper, arch-linux, libranet, gentoo, ubuntu, scientific, oracle enterprise linux, amazon linux and redflag. It has function to get the version for debian, suse, fedora, redhat, gentoo, slackware, scientific, oracle enterprise linux, amazon linux, redflag and ubuntu(lsb). People running unsupported distro's are greatly encouraged to submit patches :-) =head2 EXPORT None by default. =head1 TODO Add the capability of recognize the version of the distribution for all recognized distributions. =head1 AUTHORS Alexandr Ciornii Ealexchorny@gmail.comE, L Alberto Re, Ealberto@accidia.netE Judith Lebzelter, Ejudith@osdl.orgE =head1 COPYRIGHT AND LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available. =cut Linux-Distribution-0.23/t000755000000000000 012541204416 16003 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/amazon.t000444000000000000 53712224333257 17603 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/amazon/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'amazon'); my $version = $linux->distribution_version(); is ($version,'2013.09'); Linux-Distribution-0.23/t/centos.t000444000000000000 55111721515246 17606 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/centos/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'centos'); my $version = $linux->distribution_version(); is ($version,'5.5'); Linux-Distribution-0.23/t/centos6.t000444000000000000 55211721515246 17675 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/centos6/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'centos'); my $version = $linux->distribution_version(); is ($version,'6.0'); Linux-Distribution-0.23/t/centos7.t000444000000000000 54112444577057 17707 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/centos7/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'centos'); my $version = $linux->distribution_version(); is ($version,'7.0.1406'); Linux-Distribution-0.23/t/cloudlinux.t000444000000000000 54412536476243 20513 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/CloudLinux/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'CloudLinux'); my $version = $linux->distribution_version(); is ($version,'5.11'); Linux-Distribution-0.23/t/debian7.t000444000000000000 53412444577057 17640 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/debian7/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'debian'); my $version = $linux->distribution_version(); is ($version,'7.7'); Linux-Distribution-0.23/t/fedora15.t000444000000000000 55211721515246 17722 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/fedora15/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'fedora'); my $version = $linux->distribution_version(); is ($version,'15'); Linux-Distribution-0.23/t/Linux-Distribution.t000444000000000000 175112540543623 22112 0ustar00unknownunknown000000000000# Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl Linux-Distribution.t' ######################### # change 'tests => 1' to 'tests => last_test_to_print'; use strict; use Test::More tests => 2; BEGIN { use_ok('Linux::Distribution') }; if(isnt(Linux::Distribution::distribution_name(), undef, 'Checking your distro...')) { diag('It seems that we are running on '.Linux::Distribution::distribution_name.' version '.(Linux::Distribution::distribution_version || 'unknown')) } else { diag ('Please report your Linux dist to dist maintainer'); if (-e '/etc/lsb-release') { diag ('lsb-release exists') ; open my $fh,'<','/etc/lsb-release'; my $content=join('',<$fh>); diag($content); } } ######################### # Insert your test code below, the Test::More module is use()ed here so read # its man page ( perldoc Test::More ) for help writing this test script. Linux-Distribution-0.23/t/oel6.t000444000000000000 57011721515246 17161 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/oel6/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'oracle enterprise linux'); my $version = $linux->distribution_version(); is ($version,'5.6'); Linux-Distribution-0.23/t/rhel6.t000444000000000000 55011721515246 17332 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/rhel6/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'redhat'); my $version = $linux->distribution_version(); is ($version,'6.1'); Linux-Distribution-0.23/t/rhel7.t000444000000000000 53212444577057 17346 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/rhel7/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'redhat'); my $version = $linux->distribution_version(); is ($version,'7.0'); Linux-Distribution-0.23/t/scientific6.t000444000000000000 56211721515246 20523 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/scientific6/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'scientific'); my $version = $linux->distribution_version(); is ($version,'6.1'); Linux-Distribution-0.23/t/ubuntu1404.t000444000000000000 54112444577057 20160 0ustar00unknownunknown000000000000use 5.006000; use strict; use warnings; use Test::More tests => 2; use lib '../lib/'; use Linux::Distribution; local $Linux::Distribution::release_files_directory='t/ubuntu1404/'; my $linux = Linux::Distribution->new; my $distro = $linux->distribution_name(); is($distro,'ubuntu'); my $version = $linux->distribution_version(); is ($version,'14.04'); Linux-Distribution-0.23/t/amazon000755000000000000 012541204416 17270 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/amazon/files000444000000000000 5312224333257 20414 0ustar00unknownunknown000000000000exists: system-release do not: lsb-release Linux-Distribution-0.23/t/amazon/system-release000444000000000000 4112224333257 22251 0ustar00unknownunknown000000000000Amazon Linux AMI release 2013.09 Linux-Distribution-0.23/t/centos000755000000000000 012541204416 17276 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/centos/files000444000000000000 7711721515246 20431 0ustar00unknownunknown000000000000exists: redhat-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/centos/redhat-release000444000000000000 3411721515246 22205 0ustar00unknownunknown000000000000CentOS release 5.5 (Final) Linux-Distribution-0.23/t/centos6000755000000000000 012541204416 17364 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/centos6/centos-release000444000000000000 4211721515246 22316 0ustar00unknownunknown000000000000CentOS Linux release 6.0 (Final) Linux-Distribution-0.23/t/centos6/files000444000000000000 7711721515246 20517 0ustar00unknownunknown000000000000exists: centos-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/centos7000755000000000000 012541204416 17365 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/centos7/centos-release000444000000000000 4512444577057 22335 0ustar00unknownunknown000000000000CentOS Linux release 7.0.1406 (Core) Linux-Distribution-0.23/t/centos7/files000444000000000000 7212444577057 20526 0ustar00unknownunknown000000000000exists: centos-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/CloudLinux000755000000000000 012541204416 20071 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/CloudLinux/CloudLinux-release000444000000000000 6212536474511 23624 0ustar00unknownunknown000000000000CloudLinux Server release 5.11 (Vladislav Volkov) Linux-Distribution-0.23/t/CloudLinux/files000444000000000000 11612536474542 21246 0ustar00unknownunknown000000000000exists: CloudLinux-release redhat-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/CloudLinux/lsb_release-output000444000000000000 50012536474573 23763 0ustar00unknownunknown000000000000LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CloudLinuxServer Description: CloudLinux Server release 5.11 (Vladislav Volkov) Release: 5.11 Codename: VladislavVolkov Linux-Distribution-0.23/t/CloudLinux/redhat-release000444000000000000 6212536474511 23005 0ustar00unknownunknown000000000000CloudLinux Server release 5.11 (Vladislav Volkov) Linux-Distribution-0.23/t/debian7000755000000000000 012541204416 17314 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/debian7/debian_version000444000000000000 412444577057 22315 0ustar00unknownunknown0000000000007.7 Linux-Distribution-0.23/t/debian7/files000444000000000000 7212444577057 20455 0ustar00unknownunknown000000000000exists: debian_version do not: redhat_version lsb-release Linux-Distribution-0.23/t/fedora15000755000000000000 012541204416 17411 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/fedora15/fedora-release000444000000000000 3611721515246 22313 0ustar00unknownunknown000000000000Fedora release 15 (Lovelock) Linux-Distribution-0.23/t/fedora15/files000444000000000000 11711721515246 20557 0ustar00unknownunknown000000000000exists: redhat-release fedora-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/fedora15/redhat-release000444000000000000 3611721515246 22322 0ustar00unknownunknown000000000000Fedora release 15 (Lovelock) Linux-Distribution-0.23/t/oel6000755000000000000 012541204416 16650 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/oel6/enterprise-release000444000000000000 10111721515246 22503 0ustar00unknownunknown000000000000Enterprise Linux Enterprise Linux Server release 5.6 (Carthage) Linux-Distribution-0.23/t/oel6/files000444000000000000 12311721515246 20013 0ustar00unknownunknown000000000000exists: enterprise-release redhat-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/oel6/redhat-release000444000000000000 6711721515246 21565 0ustar00unknownunknown000000000000Red Hat Enterprise Linux Server release 5.6 (Tikanga) Linux-Distribution-0.23/t/rhel6000755000000000000 012541204416 17023 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/rhel6/files000444000000000000 7711721515246 20156 0ustar00unknownunknown000000000000exists: redhat-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/rhel6/redhat-release000444000000000000 7211721515246 21734 0ustar00unknownunknown000000000000Red Hat Enterprise Linux Server release 6.1 (Santiago) Linux-Distribution-0.23/t/rhel7000755000000000000 012541204416 17024 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/rhel7/files000444000000000000 7212444577057 20165 0ustar00unknownunknown000000000000exists: redhat-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/rhel7/redhat-release000444000000000000 6412444577057 21751 0ustar00unknownunknown000000000000Red Hat Enterprise Linux Server release 7.0 (Maipo) Linux-Distribution-0.23/t/scientific6000755000000000000 012541204416 20211 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/scientific6/files000444000000000000 7711721515246 21344 0ustar00unknownunknown000000000000exists: redhat-release do not: redhat_version lsb-release Linux-Distribution-0.23/t/scientific6/redhat-release000444000000000000 4711721515246 23124 0ustar00unknownunknown000000000000Scientific Linux release 6.1 (Carbon) Linux-Distribution-0.23/t/ubuntu1404000755000000000000 012541204416 17636 5ustar00unknownunknown000000000000Linux-Distribution-0.23/t/ubuntu1404/debian_version000444000000000000 1312444577057 22657 0ustar00unknownunknown000000000000jessie/sid Linux-Distribution-0.23/t/ubuntu1404/files000444000000000000 7212444577057 20777 0ustar00unknownunknown000000000000exists: debian_version lsb-release do not: redhat_version Linux-Distribution-0.23/t/ubuntu1404/lsb-release000444000000000000 15112444577057 22111 0ustar00unknownunknown000000000000DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"