Changeset 507


Ignore:
Timestamp:
Aug 7, 2008, 2:07:41 AM (12 years ago)
Author:
Bruno Cornec
Message:

Update pb to install VMs correctly with new perl deps (Locale-gettext)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r500 r507  
    17771777my $insfb = "rm -rf File-Basedir* ; wget http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/File-BaseDir-0.03.tar.gz ; tar xvfz File-BaseDir-0.03.tar.gz ; cd File-BaseDir* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf File-BaseDir*";
    17781778my $insms = "rm -rf Mail-Sendmail* ; wget http://search.cpan.org/CPAN/authors/id/M/MI/MIVKOVIC/Mail-Sendmail-0.79.tar.gz ; tar xvfz Mail-Sendmail-0.79.tar.gz ; cd Mail-Sendmail* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf Mail-Sendmail*";
     1779my $inslg = "rm -rf gettext* ; wget http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-1.05.tar.gz ; tar xvfz gettext-1.05.tar.gz ; cd gettext* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf gettext*";
    17791780my $cmtdm = "Installing Date-Manip perl module";
    17801781my $cmtmb = "Installing Module-Build perl module";
     
    17821783my $cmtfb = "Installing File-Basedir perl module";
    17831784my $cmtms = "Installing Perl-Sendmail perl module";
     1785my $cmtlg = "Installing Perl-Locale-gettext perl module";
    17841786my $cmtall = "Installing required modules";
    17851787
     
    17941796    }
    17951797
    1796     pb_system("yum -y $opt install rpm-build wget patch ntp sudo perl-DateManip perl-File-MimeInfo perl-ExtUtils-MakeMaker perl-Mail-Sendmail",$cmtall);
     1798    pb_system("yum -y $opt install rpm-build wget patch ntp sudo perl-DateManip perl-File-MimeInfo perl-ExtUtils-MakeMaker perl-Mail-Sendmail perl-Locale-gettext",$cmtall);
    17971799    if ($dver eq 4) {
    17981800        pb_system("$insmb","$cmtmb");
    17991801        pb_system("$insfm","$cmtfm");
    18001802        pb_system("$insfb","$cmtfb");
     1803        pb_system("$inslg","$cmtlg");
    18011804    }
    18021805} elsif (( $dfam eq "rh" ) || ($ddir eq "sles") || (($ddir eq "suse") && (($dver eq "10.1") || ($dver eq "10.0"))) || ($ddir eq "slackware")) {
     
    18081811    pb_system("$insfb","$cmtfb");
    18091812    pb_system("$insms","$cmtms");
     1813    pb_system("$inslg","$cmtlg");
    18101814} elsif ($ddir eq "suse") {
    18111815    # New OpenSuSE
     
    18131817    pb_system("$insfm","$cmtfm");
    18141818    pb_system("$insfb","$cmtfb");
    1815     pb_system("export TERM=linux ; liste=\"\" ; for i in make wget patch sudo perl-DateManip perl-File-HomeDir perl-Mail-Sendmail xntp; do rpm -q \$i 1> /dev/null 2> /dev/null ; if [ \$\? != 0 ]; then liste=\"\$liste \$i\"; fi; done; echo \"Liste: \$liste\" ; if [ \"\$liste\" != \"\" ]; then yast2 -i \$liste ; fi","$cmtall");
     1819    pb_system("export TERM=linux ; liste=\"\" ; for i in make wget patch sudo perl-DateManip perl-File-HomeDir perl-Mail-Sendmail perl-Locale-gettext xntp; do rpm -q \$i 1> /dev/null 2> /dev/null ; if [ \$\? != 0 ]; then liste=\"\$liste \$i\"; fi; done; echo \"Liste: \$liste\" ; if [ \"\$liste\" != \"\" ]; then yast2 -i \$liste ; fi","$cmtall");
    18161820} elsif ( $dfam eq "md" ) {
    1817         pb_system("urpmi.update -a ; urpmi --auto rpm-build wget sudo patch ntp-client perl-File-MimeInfo perl-Mail-Sendmail","$cmtall");
     1821        pb_system("urpmi.update -a ; urpmi --auto rpm-build wget sudo patch ntp-client perl-File-MimeInfo perl-Mail-Sendmail perl-Locale-gettext","$cmtall");
    18181822        if (($ddir eq "mandrake") && ($dver eq "10.1")) {
    18191823            pb_system("$insdm","$cmtdm");
     1824            pb_system("$inslg","$cmtlg");
    18201825        } else {
    18211826            pb_system("urpmi --auto perl-DateManip","$cmtdm");
     1827            pb_system("urpmi --auto perl-Locale-gettext","$cmtdm");
    18221828        }
    18231829} elsif ( $dfam eq "du" ) {
     
    18261832        pb_system("$insfb","$cmtfb");
    18271833        pb_system("$insfm","$cmtfm");
    1828         pb_system("apt-get -y install wget patch ssh sudo debian-builder dh-make fakeroot ntpdate libmodule-build-perl libdate-manip-perl libmail-sendmail-perl","$cmtall");
     1834        pb_system("apt-get -y install wget patch ssh sudo debian-builder dh-make fakeroot ntpdate libmodule-build-perl libdate-manip-perl libmail-sendmail-perl liblocale-gettext-perl","$cmtall");
    18291835    } else  {
    1830         pb_system("apt-get update; apt-get -y install wget patch openssh-server dpkg-dev sudo debian-builder dh-make fakeroot ntpdate libfile-mimeinfo-perl libmodule-build-perl libdate-manip-perl libmail-sendmail-perl","$cmtall");
     1836        pb_system("apt-get update; apt-get -y install wget patch openssh-server dpkg-dev sudo debian-builder dh-make fakeroot ntpdate libfile-mimeinfo-perl libmodule-build-perl libdate-manip-perl libmail-sendmail-perl liblocale-gettext-perl","$cmtall");
    18311837    }
    18321838} elsif ( $dfam eq "gen" ) {
    18331839        #system "emerge -u system";
    1834         pb_system("emerge wget sudo ntp DateManip File-MimeInfo Mail-Sendmail","$cmtall");
     1840        pb_system("emerge wget sudo ntp DateManip File-MimeInfo Mail-Sendmail Locale-gettext","$cmtall");
    18351841} else {
    18361842    pb_log(0,"No pkg to install\n");
Note: See TracChangeset for help on using the changeset viewer.