- Timestamp:
- Oct 26, 2009, 10:46:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r883 r888 2303 2303 # pb has to be added to portage group on gentoo 2304 2304 2305 # We need to have that pb_distro_init function 2306 # Get it from Project-Builder::Distribution 2307 my ($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch) = pb_distro_init(); 2308 print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $arch))."\n"; 2309 2305 2310 # 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 2313 if ($dtype eq "pkg") { 2314 $file="/usr/local/etc/sudoers"; 2315 } else { 2316 $file="/etc/sudoers"; 2317 } 2307 2318 open(PBFILE,$file) || die "Unable to open $file"; 2308 2319 open(PBOUT,"> $file.new") || die "Unable to open $file.new"; … … 2435 2446 2436 2447 print {$SCRIPT} << 'EOF'; 2437 # We need to have that pb_distro_init function2438 # Get it from Project-Builder::Distribution2439 my ($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch) = pb_distro_init();2440 print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $arch))."\n";2441 2442 2448 # We may need a proxy configuration. Get it from the local env 2443 2449 EOF … … 2476 2482 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")); 2477 2483 } 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"); 2478 2491 } elsif ($ddir eq "asianux") { 2479 2492 pb_system("yum clean all","Cleaning yum env");
Note:
See TracChangeset
for help on using the changeset viewer.