Changeset 1597 in ProjectBuilder for devel/pb-modules
- Timestamp:
- May 26, 2012, 2:13:12 AM (12 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r1594 r1597 628 628 pbusesshagent default = false 629 629 630 # Do you want to see detailed sudo commands or just the summary of them 631 # Useful for security concerns, nice to have it as a parameter 632 pbshowsudo default = false 633 630 634 # How do you want to install pb in your VM/VE (pkg or file) 631 635 pbinstalltype default = pkg -
devel/pb-modules/etc/pb.conf.pod
r1556 r1597 552 552 Example: pbrepo mondorescue = ftp://ftp.mondorescue.org 553 553 554 =item B<pbshowsudo> 555 556 Nature: Optional 557 Key: project (as defined in the -p option or PBPROJ environment variable) 558 Value: false (by default), meaning that sudo commands executed with pb_system won't be shown in details, but that the associated comment will be used. For security cncerns, you may want to turn it to true in order to see what pb does with sudo to be safe. Turned on by debug flag. 559 Conffile: home 560 Example: pbshowsudo mondorescue = true 561 554 562 =item B<pbsmtp> 555 563 -
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1595 r1597 157 157 158 158 # If sudo used, then be more verbose 159 pb_log(0,"Executing $cmd\n") if (($pbdebug < 1) && ($cmd =~ /^\s*\S*sudo/o) );159 pb_log(0,"Executing $cmd\n") if (($pbdebug < 1) && ($cmd =~ /^\s*\S*sudo/o) && (defined $Global::pb_show_sudo) && ($Global::pb_show_sudo =~ /true/oi)); 160 160 161 161 system("$cmd $redir"); -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r1596 r1597 450 450 pb_log(1, "INFO: missing dependency $p\n"); 451 451 } elsif ($pbos->{'type'} eq "deb") { 452 my $res = pb_system("dpkg -L $p"," ","mayfail");452 my $res = pb_system("dpkg -L $p","Looking for $p","mayfail"); 453 453 next if ($res eq 0); 454 454 open(CMD,"dpkg -l $p |") or die "Unable to run dpkg -l $p: $!"; -
devel/pb-modules/lib/ProjectBuilder/Env.pm
r1584 r1597 983 983 INSTALL_PROGRAM += -s 984 984 endif 985 985 986 config.status: configure 986 987 dh_testdir 987 988 988 989 # Configure the package. 989 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr 990 --mandir=\$${prefix}/share/man 990 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man 991 991 992 992 # Build both architecture dependent and independent -
devel/pb-modules/lib/ProjectBuilder/VE.pm
r1596 r1597 248 248 } 249 249 } 250 251 # Fix modes to allow access to the VE for pb user252 my $command = pb_check_req("chmod",0);253 pb_system("$sudocmd $command 755 $root/$pbos->{'name'} $root/$pbos->{'name'}/$pbos->{'version'} $root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}","Fixing permissions");254 250 255 251 # Test if an existing snapshot exists and use it if appropriate … … 265 261 pb_system("$sudocmd $cmd1 -rf $root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'} ; $sudocmd $cmd2 -p $root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'} ; $sudocmd $cmd3 xz -C $root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'} -f $root/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}.tar.gz","Extracting snapshot of $pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}.tar.gz under $root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}"); 266 262 } 263 264 # Fix modes to allow access to the VE for pb user 265 my $command = pb_check_req("chmod",0); 266 pb_system("$sudocmd $command 755 $root/$pbos->{'name'} $root/$pbos->{'name'}/$pbos->{'version'} $root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}","Fixing permissions"); 267 267 268 # Nothing more to do for VE. No real launch 268 269 } else {
Note:
See TracChangeset
for help on using the changeset viewer.