Changeset 987 in ProjectBuilder
- Timestamp:
- Feb 23, 2010, 8:21:51 AM (15 years ago)
- Location:
- devel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-doc/pb.conf.pod
r986 r987 305 305 Example: rbsb4pi centos = /home/rinse/bin/before-post-install.sh 306 306 307 =item B<rbspi> 308 309 Nature: Optional 310 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 311 Value: for mock it's not used. For rinse it's the script to call after doing installation for customization. For rpmbootstrap it's the script to call after doing installation for customization. 312 Conffile: ve 313 Example: pbrpi centos = /home/rinse/bin/post-install.sh 314 307 315 =item B<supfiles> 308 316 … … 341 349 Example: velogin default = pb 342 350 351 =item B<vemindep> 352 353 Nature: Optional 354 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). NB: a default value per OS family is interesting here. 355 Value: coma separated list of packages needed before pb can be run in the VE. Installed automatically in setupve phase. 356 Conffile: ve 357 Example: vemindep rpm = rpm-build,diffutils,ntpdate, vemindep deb = diff 358 343 359 =item B<ventp> 344 360 … … 359 375 =item B<vepath> 360 376 361 Nature: Optional377 Nature: Mandatory 362 378 Key: project (as defined in the -p option or PBPROJ environment variable) 363 379 Value: path where to find VEs. Ve will be created and used under that path. For each VE os-ver-arch, it will create a subdirectory tree os/ver/arch below that point. … … 365 381 Example: vepath default = /home/rpmbootstrap 366 382 367 =item B<vepi>368 =item B<vepkglist>369 383 =item B<verebuild> 384 385 Nature: Optional 386 Key: project (as defined in the -p option or PBPROJ environment variable) 387 Value: true|false. True means that the VE should be rebuild before usage. 388 Conffile: ve 389 Example: ventpcmd default = /usr/sbin/ntpdate 390 370 391 =item B<verpmtype> 392 393 Nature: Mandatory 394 Key: project (as defined in the -p option or PBPROJ environment variable) 395 Value: rpmbootstrap|rinse|mock (different tools to create a chroot environment for RPM based distributions. rpmbootstrap comes with pb. the 2 others are separate projects). 396 Conffile: ve 397 Example: verpmtype default = rpmbootstrap 398 371 399 =item B<vesnap> 372 400 =item B<vetmout> … … 383 411 384 412 =item B<vmlogin> 413 414 Nature: Mandatory 415 Key: project (as defined in the -p option or PBPROJ environment variable) 416 Value: account name to use in the VM to build packages. Communication is done with ssh. 417 Conffile: vm 418 Example: vmlogin default = pb 419 385 420 =item B<vmmonport> 386 421 =item B<vmntp> 422 423 Nature: Optional 424 Key: project (as defined in the -p option or PBPROJ environment variable) 425 Value: NTP server to contact for time accuracy with B<vmntpcmd> before building. 426 Conffile: vm 427 Example: vmntp default = 1.pool.ntp.org 428 387 429 =item B<vmntpcmd> 430 431 Nature: Optional 432 Key: project (as defined in the -p option or PBPROJ environment variable) 433 Value: NTP command to use to perform time synchronization with the B<vmntp> server. 434 Conffile: vm 435 Example: vmntpcmd default = /usr/sbin/ntpdate,vmntpcmd opensuse-11.0-i386 = sntp -P no -r 436 388 437 =item B<vmopt> 389 438 =item B<vmpath> 439 440 Nature: Mandatory 441 Key: project (as defined in the -p option or PBPROJ environment variable) 442 Value: path where to find VMs. They will be created and used under that path. For each VM os-ver-arch, it will create a os-ver-arch.qemu file below that point. 443 Conffile: vm 444 Example: vmpath default = /home/qemu 445 390 446 =item B<vmport> 391 447 =item B<vmsize> -
devel/pb/bin/pb
r986 r987 1157 1157 my $port = "sshport"; 1158 1158 my $conf = "sshconf"; 1159 my $rebuild = "sshrebuild";1160 1159 my $tmout = undef; 1161 1160 my $path = undef; … … 1163 1162 $login = "vmlogin"; 1164 1163 $dir = "pbdefdir"; 1165 $rebuild = "vmrebuild";1166 1164 # Specific VM 1167 1165 $tmout = "vmtmout"; … … 1175 1173 $path = "vepath"; 1176 1174 $conf = "rbsconf"; 1177 $rebuild = "verebuild";1178 1175 } elsif ($cmt eq "Web") { 1179 1176 $host = "websshhost"; … … 1249 1246 1250 1247 pb_log(0,"Sources handled ($cmt): $src\n"); 1251 pb_log(2,"values: ".Dumper(($host,$login,$dir,$port,$tmout,$ rebuild,$path,$conf))."\n");1248 pb_log(2,"values: ".Dumper(($host,$login,$dir,$port,$tmout,$path,$conf))."\n"); 1252 1249 my ($sshhost,$sshlogin,$sshdir,$sshport) = pb_conf_get($host,$login,$dir,$port); 1253 1250 # Not mandatory... 1254 my ($ vrebuild,$rbsconf,$testver) = pb_conf_get_if($rebuild,$conf,"testver");1251 my ($rbsconf,$testver) = pb_conf_get_if($conf,"testver"); 1255 1252 my ($vtmout,$vepath); 1256 1253 # ...Except those in virtual context … … 1261 1258 ($vtmout) = pb_conf_get($tmout); 1262 1259 } 1263 pb_log(2,"ssh: ".Dumper(($sshhost,$sshlogin,$sshdir,$sshport,$vtmout,$v rebuild,$vepath,$rbsconf))."\n");1260 pb_log(2,"ssh: ".Dumper(($sshhost,$sshlogin,$sshdir,$sshport,$vtmout,$vepath,$rbsconf))."\n"); 1264 1261 1265 1262 my $mac; … … 1742 1739 1743 1740 # Get VE context 1744 my ($ptr,$vetmout,$vepath,$ verebuild,$rbsconf) = pb_conf_get("vetype","vetmout","vepath","verebuild","rbsconf");1741 my ($ptr,$vetmout,$vepath,$rbsconf) = pb_conf_get("vetype","vetmout","vepath","rbsconf"); 1745 1742 my $vetype = $ptr->{$ENV{'PBPROJ'}}; 1746 1743 1747 1744 # We can probably only get those params now we have the distro context 1748 my ($rbsb4pi,$rbspi,$vesnap,$oscodename,$ vepkglist,$osmindep) = pb_conf_get_if("rbsb4pi","rbspi","vesnap","oscodename","vepkglist","osmindep");1745 my ($rbsb4pi,$rbspi,$vesnap,$oscodename,$osmindep,$verebuild) = pb_conf_get_if("rbsb4pi","rbspi","vesnap","oscodename","osmindep","verebuild"); 1749 1746 1750 1747 if (($vetype eq "chroot") || ($vetype eq "schroot")) { … … 1755 1752 1756 1753 my ($verpmtype,$vedebtype) = pb_conf_get("verpmtype","vedebtype"); 1757 if (($create != 0) || ( $verebuild->{$ENV{'PBPROJ'}} =~ /true/i) || ($pbforce == 1)) {1754 if (($create != 0) || ((defined $verebuild) && ($verebuild->{$ENV{'PBPROJ'}} =~ /true/i)) || ($pbforce == 1)) { 1758 1755 # We have to rebuild the chroot 1759 1756 if ($dtype eq "rpm") { … … 1775 1772 $postparam = ""; 1776 1773 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$osmindep); 1777 $postparam .= ","; 1778 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$vepkglist); 1779 if ($postparam eq ",") { 1774 if ($postparam eq "") { 1780 1775 $addpkgs = ""; 1781 1776 } else { … … 1810 1805 my $addpkgs; 1811 1806 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$osmindep); 1812 $postparam .= ","; 1813 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$vepkglist); 1814 if ($postparam eq ",") { 1807 if ($postparam eq "") { 1815 1808 $addpkgs = ""; 1816 1809 } else { … … 2225 2218 # once this is done, we can do what we want on the VM remotely 2226 2219 } elsif ($vtype eq "ve") { 2227 # We need to finish the setup of packages needed in the VE if needed2220 # We need to finish the setup of packages needed in the VE 2228 2221 # rinse/debootstrap at least needs it 2229 my ($ve pkglist,$osmindep) = pb_conf_get_if("vepkglist","osmindep");2222 my ($vemindep) = pb_conf_get_if("vemindep"); 2230 2223 2231 2224 my $postparam = ""; 2232 if (defined $osmindep) { 2233 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$osmindep); 2234 } 2235 if (defined $vepkglist) { 2236 $postparam .= " ".pb_distro_get_param($ddir,$dver,$darch,$vepkglist); 2225 if (defined $vemindep) { 2226 $postparam .= " ".pb_distro_get_param($ddir,$dver,$darch,$vemindep); 2237 2227 } 2238 2228 # Change the list of pkg in to a space separated list -
devel/rpmbootstrap/etc/.pbrc
r986 r987 16 16 # Special for rinse: script to launch before populating the VE 17 17 rbsb4pi centos = /home/rinse/bin/before-post-install.sh 18 # Additional packages to install 19 ve pkglist centos= rpm-build,diffutils,ntpdate20 ve pkglistdeb = diff18 # Additional packages to install for pb to build packages in VE 19 vemindep rpm = rpm-build,diffutils,ntpdate 20 vemindep deb = diff 21 21 22 22 verebuild default = false
Note:
See TracChangeset
for help on using the changeset viewer.