Changeset 2251 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Env.pm
- Timestamp:
- Aug 30, 2017, 5:07:30 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Env.pm
r2214 r2251 79 79 open(PBRC, "> $ENV{'PBETC'}") || die "Unable to create $ENV{'PBETC'}"; 80 80 print PBRC << "EOF"; 81 --- 81 82 # 82 83 # Define for each project the URL of its pbconf repository … … 420 421 open(CONF,"> $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb") || die "Unable to create $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb"; 421 422 print CONF << "EOF"; 423 --- 422 424 # 423 425 # Project Builder configuration file … … 426 428 # \$Id\$ 427 429 # 428 429 430 # 430 431 # What is the project URL 431 432 # 432 #pburl $ENV{'PBPROJ'} = svn://svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 433 #pburl $ENV{'PBPROJ'} = svn+ssh://user\@svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 434 #pburl $ENV{'PBPROJ'} = git+ssh//user\@git.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 435 #pburl $ENV{'PBPROJ'} = cvs://cvs.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 436 #pburl $ENV{'PBPROJ'} = http://www.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz 437 #pburl $ENV{'PBPROJ'} = ftp://ftp.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz 438 #pburl $ENV{'PBPROJ'} = file:///src/$ENV{'PBPROJ'}-devel.tar.gz 439 #pburl $ENV{'PBPROJ'} = dir:///src/$ENV{'PBPROJ'}-devel 440 433 # pburl: 434 # $ENV{'PBPROJ'}: svn://svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 435 # $ENV{'PBPROJ'}: svn+ssh://user\@svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 436 # $ENV{'PBPROJ'}: git+ssh//user\@git.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 437 # $ENV{'PBPROJ'}: cvs://cvs.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel 438 # $ENV{'PBPROJ'}: http://www.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz 439 # $ENV{'PBPROJ'}: ftp://ftp.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz 440 # $ENV{'PBPROJ'}: file:///src/$ENV{'PBPROJ'}-devel.tar.gz 441 # $ENV{'PBPROJ'}: dir:///src/$ENV{'PBPROJ'}-devel 442 # 441 443 # Repository 442 #pbrepo $ENV{'PBPROJ'} = ftp://ftp.$ENV{'PBPROJ'}.org 443 #pbml $ENV{'PBPROJ'} = $ENV{'PBPROJ'}-announce\@lists.$ENV{'PBPROJ'}.org 444 #pbsmtp $ENV{'PBPROJ'} = localhost 445 #pbgpgcheck $ENV{'PBPROJ'} = 1 444 # pbrepo: 445 # $ENV{'PBPROJ'}: ftp://ftp.$ENV{'PBPROJ'}.org 446 # pbml: 447 # $ENV{'PBPROJ'}: $ENV{'PBPROJ'}-announce\@lists.$ENV{'PBPROJ'}.org 448 # pbsmtp: 449 # $ENV{'PBPROJ'}: localhost 450 # pbgpgcheck: 451 # $ENV{'PBPROJ'}: 1 446 452 # For distro supporting it, which area is used 447 #projcomponent $ENV{'PBPROJ'} = main 448 453 # projcomponent: 454 # $ENV{'PBPROJ'}: main 455 # 449 456 # Check whether project is well formed 450 457 # when downloading from ftp/http/... 451 458 # (containing already a directory with the project-version name) 452 #pbwf $ENV{'PBPROJ'} = 1 453 459 # pbwf: 460 # $ENV{'PBPROJ'}: 1 461 # 454 462 # Do we check GPG keys 455 #pbgpgcheck $ENV{'PBPROJ'} = 1 456 463 # pbgpgcheck: 464 # $ENV{'PBPROJ'}: 1 465 # 457 466 # 458 467 # Packager label 459 468 # 460 #pbpackager $ENV{'PBPROJ'} = William Porte <bill\@$ENV{'PBPROJ'}.org> 461 # 462 469 # pbpackager: 470 # $ENV{'PBPROJ'}: William Porte <bill\@$ENV{'PBPROJ'}.org> 471 # 472 # 463 473 # For delivery to a machine by SSH (potentially the FTP server) 464 474 # Needs hostname, account and directory 465 475 # 466 #sshhost $ENV{'PBPROJ'} = www.$ENV{'PBPROJ'}.org 467 #sshlogin $ENV{'PBPROJ'} = bill 468 #sshdir $ENV{'PBPROJ'} = /$ENV{'PBPROJ'}/ftp 469 #sshport $ENV{'PBPROJ'} = 22 470 476 # sshhost: 477 # $ENV{'PBPROJ'}: www.$ENV{'PBPROJ'}.org 478 # sshlogin: 479 # $ENV{'PBPROJ'}: bill 480 # sshdir: 481 # $ENV{'PBPROJ'}: /$ENV{'PBPROJ'}/ftp 482 # sshport: 483 # $ENV{'PBPROJ'}: 22 484 # 471 485 # 472 486 # For Virtual machines management … … 477 491 # a QEMU rhel-3-i286 here means that the VM will be named rhel-3-i386.qemu 478 492 # 479 #vmlist $ENV{'PBPROJ'} = asianux-2-i386,asianux-3-i386,centos-7-x86_64,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,mandriva-2008.1-i386,mandriva-2009.0-i386,mandriva-2009.1-i386,mandriva-2010.0-i386,mandriva-2010.1-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,fedora-9-i386,fedora-10-i386,fedora-11-i386,fedora-12-i386,fedora-13-i386,fedora-14-i386,fedora-15-i386,fedora-16-i386,fedora-17-i386,fedora-18-i386,fedora-19-i386,fedora-20-i386,fedora-21-i386,rhel-2-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,rhel-6-i386,suse-10.0-i386,suse-10.1-i386,opensuse-10.2-i386,opensuse-10.3-i386,opensuse-11.0-i386,opensuse-11.1-i386,opensuse-11.2-i386,opensuse-11.3-i386,opensuse-11.4-i386,opensuse-12.1-i386,opensuse-12.2-i386,opensuse-12.3-i386,opensuse-13.1-i386,opensuse-13.2-i386,sles-9-i386,sles-10-i386,sles-11-i386,gentoo-nover-i386,debian-3-i386,debian-4-i386,debian-5-i386,debian-6-i386,debian-7-i386,debian-8-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,ubuntu-8.04-i386,ubuntu-8.10-i386,ubuntu-9.04-i386,ubuntu-9.10-i386,ubuntu-10.04-i386,ubuntu-10.10-i386,ubuntu-11.04-i386,ubuntu-11.10-i386,ubuntu-12.04-i386,ubuntu-12.10-i386,ubuntu-13.04-i386,ubuntu-13.10-i386,ubuntu-14.04-i386,ubuntu-14.10-i386,ubuntu-15.04-i386,ubuntu-15.10-i386,ubuntu-16.04-i386,solaris-10-i386,asianux-2-x86_64,asianux-3-x86_64,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,mandriva-2008.1-x86_64,mandriva-2009.0-x86_64,mandriva-2009.1-x86_64,mandriva-2010.0-x86_64,mandriva-2010.1-x86_64,mageia-1-i386,mageia-2-i386,mageia-3-i386,mageia-4-i386,mageia-5-i386,mageia-1-x86_64,mageia-2-x86_64,mageia-3-x86_64,mageia-4-x86_64,mageia-5-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,fedora-9-x86_64,fedora-10-x86_64,fedora-11-x86_64,fedora-12-x86_64,fedora-13-x86_64,fedora-14-x86_64,fedora-15-x86_64,fedora-16-x86_64,fedora-17-x86_64,fedora-18-x86_64,fedora-19-x86_64,fedora-20-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,rhel-3-x86_64,rhel-4-x86_64,rhel-5-x86_64,rhel-6-x86_64,rhel-7-x86_64,opensuse-10.2-x86_64,opensuse-10.3-x86_64,opensuse-11.0-x86_64,opensuse-11.1-x86_64,opensuse-11.2-x86_64,opensuse-11.3-x86_64,opensuse-11.4-x86_64,opensuse-12.1-x86_64,opensuse-12.2-x86_64,opensuse-12.3-x86_64,opensuse-13.1-x86_64,opensuse-13.2-x86_64,sles-10-x86_64,sles-11-x86_64,sles-12-x86_64,gentoo-nover-x86_64,debian-4-x86_64,debian-5-x86_64,debian-6-x86_64,debian-7-x86_64,debian-8-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64,ubuntu-8.04-x86_64,ubuntu-8.10-x86_64,ubuntu-9.04-x86_64,ubuntu-9.10-x86_64,ubuntu-10.04-x86_64,ubuntu-10.10-x86_64,ubuntu-11.04-x86_64,ubuntu-11.10-x86_64,ubuntu-12.04-x86_64,ubuntu-12.10-x86_64,ubuntu-13.04-x86_64,ubuntu-13.10-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64 480 493 # vmlist: 494 # $ENV{'PBPROJ'}: asianux-2-i386,asianux-3-i386,centos-7-x86_64,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,mandriva-2008.1-i386,mandriva-2009.0-i386,mandriva-2009.1-i386,mandriva-2010.0-i386,mandriva-2010.1-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,fedora-9-i386,fedora-10-i386,fedora-11-i386,fedora-12-i386,fedora-13-i386,fedora-14-i386,fedora-15-i386,fedora-16-i386,fedora-17-i386,fedora-18-i386,fedora-19-i386,fedora-20-i386,fedora-21-i386,rhel-2-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,rhel-6-i386,suse-10.0-i386,suse-10.1-i386,opensuse-10.2-i386,opensuse-10.3-i386,opensuse-11.0-i386,opensuse-11.1-i386,opensuse-11.2-i386,opensuse-11.3-i386,opensuse-11.4-i386,opensuse-12.1-i386,opensuse-12.2-i386,opensuse-12.3-i386,opensuse-13.1-i386,opensuse-13.2-i386,sles-9-i386,sles-10-i386,sles-11-i386,gentoo-nover-i386,debian-3-i386,debian-4-i386,debian-5-i386,debian-6-i386,debian-7-i386,debian-8-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,ubuntu-8.04-i386,ubuntu-8.10-i386,ubuntu-9.04-i386,ubuntu-9.10-i386,ubuntu-10.04-i386,ubuntu-10.10-i386,ubuntu-11.04-i386,ubuntu-11.10-i386,ubuntu-12.04-i386,ubuntu-12.10-i386,ubuntu-13.04-i386,ubuntu-13.10-i386,ubuntu-14.04-i386,ubuntu-14.10-i386,ubuntu-15.04-i386,ubuntu-15.10-i386,ubuntu-16.04-i386,solaris-10-i386,asianux-2-x86_64,asianux-3-x86_64,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,mandriva-2008.1-x86_64,mandriva-2009.0-x86_64,mandriva-2009.1-x86_64,mandriva-2010.0-x86_64,mandriva-2010.1-x86_64,mageia-1-i386,mageia-2-i386,mageia-3-i386,mageia-4-i386,mageia-5-i386,mageia-1-x86_64,mageia-2-x86_64,mageia-3-x86_64,mageia-4-x86_64,mageia-5-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,fedora-9-x86_64,fedora-10-x86_64,fedora-11-x86_64,fedora-12-x86_64,fedora-13-x86_64,fedora-14-x86_64,fedora-15-x86_64,fedora-16-x86_64,fedora-17-x86_64,fedora-18-x86_64,fedora-19-x86_64,fedora-20-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,rhel-3-x86_64,rhel-4-x86_64,rhel-5-x86_64,rhel-6-x86_64,rhel-7-x86_64,opensuse-10.2-x86_64,opensuse-10.3-x86_64,opensuse-11.0-x86_64,opensuse-11.1-x86_64,opensuse-11.2-x86_64,opensuse-11.3-x86_64,opensuse-11.4-x86_64,opensuse-12.1-x86_64,opensuse-12.2-x86_64,opensuse-12.3-x86_64,opensuse-13.1-x86_64,opensuse-13.2-x86_64,sles-10-x86_64,sles-11-x86_64,sles-12-x86_64,gentoo-nover-x86_64,debian-4-x86_64,debian-5-x86_64,debian-6-x86_64,debian-7-x86_64,debian-8-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64,ubuntu-8.04-x86_64,ubuntu-8.10-x86_64,ubuntu-9.04-x86_64,ubuntu-9.10-x86_64,ubuntu-10.04-x86_64,ubuntu-10.10-x86_64,ubuntu-11.04-x86_64,ubuntu-11.10-x86_64,ubuntu-12.04-x86_64,ubuntu-12.10-x86_64,ubuntu-13.04-x86_64,ubuntu-13.10-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64 495 # 481 496 # 482 497 # Valid values for vmtype are 483 498 # qemu, (vmware, xen, ... TBD) 484 #vmtype $ENV{'PBPROJ'} = qemu 485 499 # vmtype: 500 # $ENV{'PBPROJ'}: qemu 501 # 486 502 # Hash for VM stuff on vmtype 487 #vmntp default = pool.ntp.org 488 503 # vmntp: 504 # default: pool.ntp.org 505 # 489 506 # We suppose we can commmunicate with the VM through SSH 490 #vmhost $ENV{'PBPROJ'} = localhost 491 #vmlogin $ENV{'PBPROJ'} = pb 492 #vmport $ENV{'PBPROJ'} = 2222 493 507 # vmhost: 508 # $ENV{'PBPROJ'}: localhost 509 # vmlogin: 510 # $ENV{'PBPROJ'}: pb 511 # vmport: 512 # $ENV{'PBPROJ'}: 2222 513 # 494 514 # Timeout to wait when VM is launched/stopped 495 #vmtmout default = 120 496 515 # vmtmout: 516 # default: 120 517 # 497 518 # per VMs needed paramaters 498 #vmopt $ENV{'PBPROJ'} = -m 384 -daemonize 499 #vmpath $ENV{'PBPROJ'} = /home/qemu 500 #vmsize $ENV{'PBPROJ'} = 5G 501 519 # vmopt: 520 # $ENV{'PBPROJ'}: -m 384 -daemonize 521 # vmpath: 522 # $ENV{'PBPROJ'}: /home/qemu 523 # vmsize: 524 # $ENV{'PBPROJ'}: 5G 525 # 502 526 # 503 527 # For Virtual environment management … … 508 532 # a chroot rhel-3-i286 here means that the VE will be named rhel-3-i386.chroot 509 533 # 510 #velist $ENV{'PBPROJ'} = debian-7-x86_64,debian-8-x86_64,centos-5-x86_64,centos-6-x86_64,centos-7-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,fedora-24-x86_64,fedora-25-x86_64,ubuntu-12.04-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64,ubuntu-16.10-x86_64,opensuse-42.1-x86_64,opensuse-42.2-x86_64,opensuse-13.2-x86_64,opensuse-13.1-x86_64,mageia-4-x86_64,mageia-5-x86_64 511 534 # velist: 535 # $ENV{'PBPROJ'}: debian-7-x86_64,debian-8-x86_64,centos-5-x86_64,centos-6-x86_64,centos-7-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,fedora-24-x86_64,fedora-25-x86_64,ubuntu-12.04-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64,ubuntu-16.10-x86_64,opensuse-42.1-x86_64,opensuse-42.2-x86_64,opensuse-13.2-x86_64,opensuse-13.1-x86_64,mageia-4-x86_64,mageia-5-x86_64 536 # 512 537 # VE params 513 #vetype $ENV{'PBPROJ'} = docker 514 #ventp default = pool.ntp.org 515 #velogin $ENV{'PBPROJ'} = pb 516 #vepath $ENV{'PBPROJ'} = /var/cache/rpmbootstrap 517 #rbsconf $ENV{'PBPROJ'} = /etc/mock 518 #verebuild $ENV{'PBPROJ'} = false 519 538 # vetype: 539 # $ENV{'PBPROJ'}: docker 540 # ventp: 541 # default: pool.ntp.org 542 # velogin: 543 # $ENV{'PBPROJ'}: pb 544 # vepath: 545 # $ENV{'PBPROJ'}: /var/cache/rpmbootstrap 546 # rbsconf: 547 # $ENV{'PBPROJ'}: /etc/mock 548 # verebuild: 549 # $ENV{'PBPROJ'}: false 550 # 520 551 # 521 552 # Global version/tag for the project 522 553 # 523 #projver $ENV{'PBPROJ'} = devel 524 #projtag $ENV{'PBPROJ'} = 1 525 554 # projver: 555 # $ENV{'PBPROJ'}: devel 556 # projtag: 557 # $ENV{'PBPROJ'}: 1 558 # 526 559 # Hash of valid version names 527 #version $ENV{'PBPROJ'} = devel,stable 528 560 # version: 561 # $ENV{'PBPROJ'}: devel,stable 562 # 529 563 # Is it a test version or a production version 530 testver $ENV{'PBPROJ'} = true 564 # testver: 565 # $ENV{'PBPROJ'}: true 531 566 # Which upper target dir for delivery 532 delivery $ENV{'PBPROJ'} = test 533 567 # delivery: 568 # $ENV{'PBPROJ'}: test 569 # 534 570 # Additional repository to add at build time 535 # addrepo centos-5-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo 536 # addrepo centos-4-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/4/pb.repo 537 571 # addrepo: 572 # centos-5-x86_64: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo 573 # centos-4-x86_64: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/4/pb.repo 574 # 538 575 # Adapt to your needs: 539 576 # Optional if you need to overwrite the global values above … … 543 580 foreach my $pp (@pkgs) { 544 581 print CONF << "EOF"; 545 #pkgver $pp = stable 546 #pkgtag $pp = 3 582 # pkgver: 583 # $pp : stable 584 # pkgtag: 585 # $pp : 3 547 586 EOF 548 587 } … … 550 589 print CONF << "EOF"; 551 590 # Hash of default package/package directory 552 #defpkgdir $pp = dir-$pp 591 # defpkgdir: 592 # $pp: dir-$pp 553 593 EOF 554 594 } … … 556 596 print CONF << "EOF"; 557 597 # Hash of additional package/package directory 558 #extpkgdir minor-pkg = dir-minor-pkg 559 598 # extpkgdir: 599 # minor-pkg: dir-minor-pkg 600 # 560 601 # List of files per pkg on which to apply filters 561 602 # Files are mentioned relatively to pbroot/defpkgdir … … 563 604 foreach my $pp (@pkgs) { 564 605 print CONF << "EOF"; 565 #filteredfiles $pp = Makefile.PL,configure.in,install.sh,$pp.8 566 #supfiles $pp = $pp.init 606 # filteredfiles: 607 # $pp: Makefile.PL,configure.in,install.sh,$pp.8 608 # supfiles: 609 # $pp: $pp.init 567 610 568 611 # For perl modules, names are different depending on distro 569 612 # Here perl-xxx for RPMs, libxxx-perl for debs, ... 570 613 # So the package name is indeed virtual 571 #namingtype $pp = perl 614 # namingtype: 615 # $pp: perl 572 616 EOF 573 617 } 574 618 close(CONF); 575 619 pb_mkdir_p("$ENV{'PBROOTDIR'}/pbfilter"); 576 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/all. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/all.pbf";620 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/all.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/all.yml"; 577 621 print CONF << "EOF"; 622 --- 578 623 # 579 624 # \$Id\$ … … 582 627 # 583 628 # 629 filter: 584 630 # PBREPO is replaced by the root URL to access the repository 585 filter PBREPO =\$pb->{'repo'}586 631 PBREPO: \$pb->{'repo'} 632 # 587 633 # PBSRC is replaced by the source package location after the repo 588 filter PBSRC =src/%{srcname}-%{version}\$pb->{'extdir'}.tar.gz589 634 PBSRC: src/%{srcname}-%{version}\$pb->{'extdir'}.tar.gz 635 # 590 636 # PBVER is replaced by the version (\$pb->{'ver'} in code) 591 filter PBVER =\$pb->{'ver'}592 637 PBVER: \$pb->{'ver'} 638 # 593 639 # PBDATE is replaced by the date (\$pb->{'date'} in code) 594 filter PBDATE =\$pb->{'date'}595 640 PBDATE: \$pb->{'date'} 641 # 596 642 # PBEXTDIR is replaced by the testdir extension if needed (\$pb->{'extdir'} in code) 597 filter PBEXTDIR =\$pb->{'extdir'}598 643 PBEXTDIR: \$pb->{'extdir'} 644 # 599 645 # PBPATCHSRC is replaced by the patches names if value is yes. Patches are located under the pbpatch dir of the pkg. 600 # filter PBPATCHSRC =yes601 646 # PBPATCHSRC: yes 647 # 602 648 # PBPATCHCMD is replaced by the patches commands if value is yes 603 # filter PBPATCHCMD =yes604 649 # PBPATCHCMD: yes 650 # 605 651 # PBMULTISRC is replaced by the sources names if value is yes. Sources are located under the pbsrc dir of the pkg. 606 # filter PBMULTISRC =yes607 652 # PBMULTISRC: yes 653 # 608 654 # PBTAG is replaced by the tag (\$pb->{'tag'} in code) 609 filter PBTAG =\$pb->{'tag'}610 655 PBTAG: \$pb->{'tag'} 656 # 611 657 # PBREV is replaced by the revision (\$pb->{'rev'} in code) 612 filter PBREV =\$pb->{'rev'}613 658 PBREV: \$pb->{'rev'} 659 # 614 660 # PBREALPKG is replaced by the package name (\$pb->{'realpkg'} in code) 615 filter PBREALPKG =\$pb->{'realpkg'}616 661 PBREALPKG: \$pb->{'realpkg'} 662 # 617 663 # PBPKG is replaced by the package name (\$pb->{'pkg'} in code) 618 filter PBPKG =\$pb->{'pkg'}619 664 PBPKG: \$pb->{'pkg'} 665 # 620 666 # PBPROJ is replaced by the project name (\$pb->{'proj'} in code) 621 filter PBPROJ =\$pb->{'proj'}622 667 PBPROJ: \$pb->{'proj'} 668 # 623 669 # PBPACKAGER is replaced by the packager name (\$pb->{'packager'} in code) 624 filter PBPACKAGER =\$pb->{'packager'}625 670 PBPACKAGER: \$pb->{'packager'} 671 # 626 672 # PBDESC contains the description of the package 627 # filter PBDESC =Bla-Bla \673 # PBDESC: Bla-Bla \ 628 674 # with a trailing \, the variable can be multi-line. \ 629 675 # only the trailing \'s will be removed, the leading spaces, \ … … 631 677 # last line. You can use dollar slash as a way to introduce carraige \ 632 678 # return (perl syntax). \ 633 # You can use transform e.g. in rpm. pbfto adjust spaces634 679 # You can use transform e.g. in rpm.yml to adjust spaces 680 # 635 681 # PBSUMMARY contains a short single line description of the package 636 # filter PBSUMMARY =Bla637 682 # PBSUMMARY: Bla 683 # 638 684 # PBURL contains the URL of the Web site of the project 639 # filter PBURL =http://www.$ENV{'PBPROJ'}.org640 685 # PBURL: http://www.$ENV{'PBPROJ'}.org 686 # 641 687 # PBLOG is replaced by the changelog if value is yes 642 688 # and should be last as when used we need the %pb hash filled 643 #filter PBLOG = yes 644 689 # PBLOG: yes 645 690 EOF 646 691 close(CONF); 647 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/rpm. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/rpm.pbf";692 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/rpm.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/rpm.yml"; 648 693 print CONF << "EOF"; 694 --- 649 695 # 650 696 # \$Id\$ … … 652 698 # Filter for rpm build 653 699 # 654 655 700 # PBGRP is replaced by the RPM group of apps 656 # filter PBGRP =Applications/Archiving657 701 # PBGRP: Applications/Archiving 702 # 658 703 # PBLIC is replaced by the license of the application 659 # filter PBLIC =GPL660 704 # PBLIC: GPL 705 # 661 706 # PBDEP is replaced by the list of dependencies 662 # filter PBDEP =663 707 # PBDEP: 708 # 664 709 # PBBDEP is replaced by the list of build dependencies 665 # filter PBBDEP =666 710 # PBBDEP: 711 # 667 712 # PBSUF is replaced by the package suffix (\$pb->{'suf'} in code) 668 filter PBSUF =\$pb->{'suf'}669 713 PBSUF: \$pb->{'suf'} 714 # 670 715 # PBOBS is replaced by the Obsolete line 671 # filter PBOBS =672 716 # PBOBS: 717 # 673 718 # transform a variable from the key on the right to the key on the left using the perl expression 674 719 # after the input key name. Useful for taking multi-line documentation and removing trailing spaces 675 720 # or leading spaces. 676 # transform PBDESC = PBDESC_raw s/\\s+\\n/\\n/go;677 721 # transform: 722 # PBDESC: PBDESC_raw s/\\s+\\n/\\n/go; 678 723 EOF 679 724 close(CONF); 680 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora.pbf";725 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora.yml"; 681 726 print CONF << "EOF"; 727 --- 682 728 # 683 729 # \$Id\$ … … 685 731 # Filter for rpm build 686 732 # 687 688 733 # PBGRP is replaced by the RPM group of apps 689 734 # Cf: http://fedoraproject.org/wiki/RPMGroups 690 #filter PBGRP = Applications/Archiving 691 735 # filter: 736 # PBGRP: Applications/Archiving 737 # 692 738 # PBLIC is replaced by the license of the application 693 739 # Cf: http://fedoraproject.org/wiki/Licensing 694 # filter PBLIC =GPLv2+695 740 # PBLIC: GPLv2+ 741 # 696 742 # PBDEP is replaced by the list of dependencies 697 # filter PBDEP =698 743 # PBDEP: 744 # 699 745 # PBBDEP is replaced by the list of build dependencies 700 # filter PBBDEP =701 746 # PBBDEP: 747 # 702 748 # PBSUF is replaced by the package suffix (\$pb->{'suf'} in code) 703 filter PBSUF =%{dist}704 749 PBSUF: %{dist} 750 # 705 751 # PBOBS is replaced by the Obsolete line 706 #filter PBOBS = 707 752 # PBOBS: 708 753 EOF 709 754 close(CONF); 710 755 foreach my $i (1..7) { 711 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.pbf"; 712 print CONF << "EOF"; 756 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.yml"; 757 print CONF << "EOF"; 758 --- 713 759 # 714 760 # \$Id\$ … … 716 762 # Filter for old fedora build 717 763 # 718 719 764 # PBSUF is replaced by the package suffix (\$pb->{'suf'} in code) 720 filter PBSUF = \$pb->{'suf'} 721 765 filter: 766 PBSUF: \$pb->{'suf'} 722 767 EOF 723 768 close(CONF); 724 769 } 725 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/deb. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/deb.pbf";770 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/deb.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/deb.yml"; 726 771 print CONF << "EOF"; 772 --- 727 773 # 728 774 # \$Id\$ … … 731 777 # 732 778 # PBGRP is replaced by the group of apps 733 filter PBGRP = utils 734 779 filter: 780 PBGRP: utils 781 # 735 782 # PBLIC is replaced by the license of the application 736 783 # Cf: http://www.debian.org/legal/licenses/ 737 # filter PBLIC =GPL738 784 # PBLIC: GPL 785 # 739 786 # PBDEP is replaced by the list of dependencies 740 # filter PBDEP =741 787 # PBDEP: 788 # 742 789 # PBBDEP is replaced by the list of build dependencies 743 # filter PBBDEP =744 790 # PBBDEP: 791 # 745 792 # PBSUG is replaced by the list of suggestions 746 # filter PBSUG =747 793 # PBSUG: 794 # 748 795 # PBREC is replaced by the list of recommandations 749 #filter PBREC = 750 796 # PBREC: 751 797 EOF 752 798 close(CONF); 753 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-3.1. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.pbf";799 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.yml"; 754 800 print CONF << "EOF"; 801 --- 755 802 # 756 803 # \$Id\$ … … 759 806 # 760 807 # PBDEBSTD is replaced by the Debian standard version 761 filter PBDEBSTD = 3.6.1 762 808 filter: 809 PBDEBSTD: 3.6.1 810 # 763 811 # PBDEBCOMP is replaced by the Debian Compatibility value 764 filter PBDEBCOMP = 4 765 812 PBDEBCOMP: 4 766 813 EOF 767 814 close(CONF); 768 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-4.0. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.pbf";815 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.yml"; 769 816 print CONF << "EOF"; 817 --- 770 818 # 771 819 # \$Id\$ … … 774 822 # 775 823 # PBDEBSTD is replaced by the Debian standard version 776 filter PBDEBSTD = 3.6.1 777 824 filter: 825 PBDEBSTD: 3.6.1 826 # 778 827 # PBDEBCOMP is replaced by the Debian Compatibility value 779 filter PBDEBCOMP = 5 780 828 PBDEBCOMP: 5 781 829 EOF 782 830 close(CONF); 783 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-5.0. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.pbf";831 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.yml"; 784 832 print CONF << "EOF"; 833 --- 785 834 # 786 835 # \$Id\$ … … 789 838 # 790 839 # PBDEBSTD is replaced by the Debian standard version 791 filter PBDEBSTD = 3.8.0 792 840 filter: 841 PBDEBSTD: 3.8.0 842 # 793 843 # PBDEBCOMP is replaced by the Debian Compatibility value 794 filter PBDEBCOMP = 7 795 844 PBDEBCOMP: 7 796 845 EOF 797 846 close(CONF); 798 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-6.0. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.pbf";847 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.yml"; 799 848 print CONF << "EOF"; 849 --- 800 850 # 801 851 # \$Id\$ … … 804 854 # 805 855 # PBDEBSTD is replaced by the Debian standard version 806 filter PBDEBSTD = 3.8.0 807 856 filter: 857 PBDEBSTD: 3.8.0 858 # 808 859 # PBDEBCOMP is replaced by the Debian Compatibility value 809 filter PBDEBCOMP = 7 810 860 PBDEBCOMP: 7 811 861 EOF 812 862 close(CONF); 813 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian.pbf";863 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian.yml"; 814 864 print CONF << "EOF"; 865 --- 815 866 # 816 867 # \$Id\$ … … 819 870 # 820 871 # PBDEBSTD is replaced by the Debian standard version 821 filter PBDEBSTD = 3.9.4 822 872 filter: 873 PBDEBSTD: 3.9.4 874 # 823 875 # PBDEBCOMP is replaced by the Debian Compatibility value 824 filter PBDEBCOMP = 9 825 876 PBDEBCOMP: 9 826 877 EOF 827 878 close(CONF); 828 foreach my $ubv ("ubuntu-6.06. pbf","ubuntu-7.04.pbf","ubuntu-7.10.pbf") {879 foreach my $ubv ("ubuntu-6.06.yml","ubuntu-7.04.yml","ubuntu-7.10.yml") { 829 880 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 830 881 print CONF << "EOF"; 882 --- 831 883 # 832 884 # \$Id\$ … … 835 887 # 836 888 # PBDEBSTD is replaced by the Debian standard version 837 filter PBDEBSTD = 3.6.2 838 889 filter: 890 PBDEBSTD: 3.6.2 891 # 839 892 # PBDEBCOMP is replaced by the Debian Compatibility value 840 filter PBDEBCOMP = 4 841 893 PBDEBCOMP: 4 842 894 EOF 843 895 close(CONF); 844 896 } 845 foreach my $ubv ("ubuntu-8.04. pbf","ubuntu-8.10.pbf") {897 foreach my $ubv ("ubuntu-8.04.yml","ubuntu-8.10.yml") { 846 898 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 847 899 print CONF << "EOF"; 900 --- 848 901 # 849 902 # \$Id\$ … … 852 905 # 853 906 # PBDEBSTD is replaced by the Debian standard version 854 filter PBDEBSTD = 3.7.3 855 907 filter: 908 PBDEBSTD: 3.7.3 909 # 856 910 # PBDEBCOMP is replaced by the Debian Compatibility value 857 filter PBDEBCOMP = 4 858 911 PBDEBCOMP: 4 859 912 EOF 860 913 close(CONF); 861 914 } 862 foreach my $ubv ("ubuntu-9.04. pbf") {915 foreach my $ubv ("ubuntu-9.04.yml") { 863 916 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 864 917 print CONF << "EOF"; 918 --- 865 919 # 866 920 # \$Id\$ … … 869 923 # 870 924 # PBDEBSTD is replaced by the Debian standard version 871 filter PBDEBSTD = 3.8.0 872 925 filter: 926 PBDEBSTD: 3.8.0 927 # 873 928 # PBDEBCOMP is replaced by the Debian Compatibility value 874 filter PBDEBCOMP = 4 875 929 PBDEBCOMP: 4 876 930 EOF 877 931 close(CONF); 878 932 } 879 933 # 9.10+ 880 foreach my $ubv ("ubuntu. pbf") {934 foreach my $ubv ("ubuntu.yml") { 881 935 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 882 936 print CONF << "EOF"; 937 --- 883 938 # 884 939 # \$Id\$ … … 887 942 # 888 943 # PBDEBSTD is replaced by the Debian standard version 889 filter PBDEBSTD = 3.8.3 890 944 filter: 945 PBDEBSTD: 3.8.3 946 # 891 947 # PBDEBCOMP is replaced by the Debian Compatibility value 892 filter PBDEBCOMP = 7 893 948 PBDEBCOMP: 7 894 949 EOF 895 950 close(CONF); 896 951 } 897 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/md. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/md.pbf";952 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/md.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/md.yml"; 898 953 print CONF << "EOF"; 954 --- 955 # 956 # \$Id\$ 957 # 899 958 # Specific group for Mandriva for $ENV{'PBPROJ'} 900 959 # Cf: http://wiki.mandriva.com/en/Development/Packaging/Groups 901 #filter PBGRP = Archiving/Backup 902 960 # filter: 961 # PBGRP: Archiving/Backup 962 # 903 963 # PBLIC is replaced by the license of the application 904 964 # Cf: http://wiki.mandriva.com/en/Development/Packaging/Licenses 905 # filter PBLIC = GPL906 965 # filter: 966 # PBLIC: GPL 907 967 EOF 908 968 close(CONF); 909 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/novell. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/novell.pbf";969 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/novell.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/novell.yml"; 910 970 print CONF << "EOF"; 971 --- 972 # 973 # \$Id\$ 974 # 911 975 # Specific group for SuSE for $ENV{'PBPROJ'} 912 976 # Cf: http://en.opensuse.org/SUSE_Package_Conventions/RPM_Groups 913 #filter PBGRP = Productivity/Archiving/Backup 914 977 # filter: 978 # PBGRP: Productivity/Archiving/Backup 979 # 915 980 # PBLIC is replaced by the license of the application 916 981 # Cf: http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Style#1.6._License_Tag 917 # filter PBLIC = GPL918 982 # filter: 983 # PBLIC: GPL 919 984 EOF 920 985 close(CONF); … … 1195 1260 EOF 1196 1261 close(CONF); 1197 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/pkg. pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/pkg.pbf";1262 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/pkg.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/pkg.yml"; 1198 1263 print CONF << "EOF"; 1199 1264 #
Note:
See TracChangeset
for help on using the changeset viewer.