Changeset 181


Ignore:
Timestamp:
Oct 8, 2007, 12:33:09 PM (12 years ago)
Author:
bruno
Message:

Fixes for SLES/SUSE support

Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/contrib/pbsetupqemu

    r179 r181  
    2121chmod 0644,$file;
    2222
    23     system "userdel pb";
    2423$file="/etc/passwd";
    2524open(PBFILE,$file) || die "Unable to open $file";
     
    109108        system "yum -y $opt install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs ntp perl-AppConfig perl-DateManip";
    110109    }
    111 } elsif (( $dfam eq "rh" ) || ($ddir eq "sles") || (($ddir eq "suse") && (($dver eq "10.1") || ($dver eq "10.2") || ($dver eq "10.0"))) || (($ddir eq "mandrake") && ($dver eq "10.1"))) {
     110} elsif (($ddir eq "suse") && (($dver eq "10.2") || ($dver eq "10.3"))) {
     111    system "yast2 -i neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs ntp perl-AppConfig perl-DateManip";
     112} elsif (( $dfam eq "rh" ) || ($ddir eq "sles") || (($ddir eq "suse") && (($dver eq "10.1") || ($dver eq "10.0"))) || (($ddir eq "mandrake") && ($dver eq "10.1"))) {
    112113    # Suppose pkg are installed already
    113114    system "rm -rf AppConfig-* ; wget http://search.cpan.org/CPAN/authors/id/A/AB/ABW/AppConfig-1.66.tar.gz ; tar xvfz AppConfig-1.66.tar.gz ; cd AppConfig* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf DateManip* ; wget http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/Date-Manip-5.46.tar.gz ; tar xvfz Date-Manip-5.46.tar.gz ; cd Date-Manip* ; perl Makefile.PL ; make ; make install ; cd .. ";
  • devel/pb/lib/ProjectBuilder/Distribution.pm

    r171 r181  
    107107    'fedora'            =>  'fedora-release',       # >= 4
    108108    'vmware'            =>  'vmware-release',       # >= 3
    109     'sles'              =>  'sles-release',         # ???
     109    'sles'              =>  'sles-release',         # Doesn't exist as of 10
    110110# Untested
    111111    'knoppix'           =>  'knoppix_version',      #
     
    167167    'centos'                => '.*CentOS .*release (.+) ',
    168168    'redhat'                => 'Red Hat Linux release (.+) \(',
    169     'sles'                  => '.* Enterprise .*\nVERSION = (.+)',
    170     'suse'                  => '.* [^Enterpis] .*\nVERSION = (.+)',
     169    'sles'                  => 'SUSE .* Enterprise Server (.+)',
     170    'suse'                  => '(?:open|)SUSE(?: LINUX|) (\d.+)',
    171171    'lsb'                   => '.*[^Ubunt].*\nDISTRIB_RELEASE=(.+)',
    172172    'ubuntu'                => '.*Ubuntu.*\nDISTRIB_RELEASE=(.+)',
Note: See TracChangeset for help on using the changeset viewer.