Changeset 888


Ignore:
Timestamp:
Oct 26, 2009, 10:46:02 AM (10 years ago)
Author:
bruno
Message:

Begin to adapt setup_v for a Solaris guest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r883 r888  
    23032303# pb has to be added to portage group on gentoo
    23042304
     2305# We need to have that pb_distro_init function
     2306# Get it from Project-Builder::Distribution
     2307my ($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch) = pb_distro_init();
     2308print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $arch))."\n";
     2309
    23052310# Adapt sudoers
    2306 $file="/etc/sudoers";
     2311# sudo is not default on Solaris and needs to be installed first
     2312# from http://www.sunfreeware.com/programlistsparc10.html#sudo
     2313if ($dtype eq "pkg") {
     2314    $file="/usr/local/etc/sudoers";
     2315} else {
     2316    $file="/etc/sudoers";
     2317}
    23072318open(PBFILE,$file) || die "Unable to open $file";
    23082319open(PBOUT,"> $file.new") || die "Unable to open $file.new";
     
    24352446
    24362447print {$SCRIPT} << 'EOF';
    2437 # We need to have that pb_distro_init function
    2438 # Get it from Project-Builder::Distribution
    2439 my ($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch) = pb_distro_init();
    2440 print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $arch))."\n";
    2441 
    24422448# We may need a proxy configuration. Get it from the local env
    24432449EOF
     
    24762482        pb_distro_installdeps(undef,$dtype,$pbupd,pb_distro_only_deps_needed($dtype,"rpm-build wget patch ntp sudo perl-DateManip perl-ExtUtils-MakeMaker perl-File-MimeInfo perl-Mail-Sendmail"));
    24772483    }
     2484} elsif ($dtype eq "pkg") {
     2485    pb_distro_installdeps(undef,$dtype,$pbupd,pb_distro_only_deps_needed($dtype,"make wget ntp"));
     2486    pb_system("$insmb","$cmtmb");
     2487    pb_system("$insdm","$cmtdm");
     2488    pb_system("$insfm","$cmtfm");
     2489    pb_system("$insfb","$cmtfb");
     2490    pb_system("$insms","$cmtms");
    24782491} elsif ($ddir eq "asianux") {
    24792492    pb_system("yum clean all","Cleaning yum env");
Note: See TracChangeset for help on using the changeset viewer.