[814] | 1 | Demo of project-builder.org
|
---|
| 2 | ===========================
|
---|
| 3 |
|
---|
| 4 | # First demonstrate the way of working for pb itself
|
---|
[1101] | 5 | cd ~/local/pb|~/pb
|
---|
[814] | 6 | # Show the various versions available in this SVK exported dir
|
---|
| 7 | ls
|
---|
| 8 | # get the current tag of the SVK repository
|
---|
[1101] | 9 | svk info|svn info
|
---|
[814] | 10 |
|
---|
| 11 | # get the current version of project-builder
|
---|
| 12 | rpm -q project-builder
|
---|
[817] | 13 | pb --help
|
---|
[814] | 14 |
|
---|
| 15 | # Decide to build a package for project-builder based on that devel version
|
---|
| 16 | # to replace the one currently installed
|
---|
[1288] | 17 | pb -p pb -r devel sbx|cms2build
|
---|
[814] | 18 |
|
---|
| 19 | # Show the upstream part
|
---|
| 20 | tar tvfz /home/bruno/local/pb/delivery/project-builder-devel.tar.gz
|
---|
| 21 |
|
---|
| 22 | # Show the pb specific part
|
---|
| 23 | tar tvfz /home/bruno/local/pb/delivery/project-builder-devel.pbconf.tar.gz
|
---|
| 24 |
|
---|
| 25 | # Now make the packages
|
---|
| 26 | pb -p pb build2pkg
|
---|
| 27 |
|
---|
| 28 | # Look at the latest pckges created
|
---|
| 29 | ls -altrg /home/bruno/local/pb/build/RPMS/noarch
|
---|
| 30 |
|
---|
| 31 | # Install the generated packages
|
---|
| 32 | sudo urpmi /home/bruno/local/pb/build/RPMS/noarch/*.rpm
|
---|
| 33 |
|
---|
| 34 | # Check that it's the right one
|
---|
[816] | 35 | rpm -q project-builder
|
---|
[817] | 36 | pb --help
|
---|
[814] | 37 |
|
---|
[817] | 38 | # Now show how easy it's to build for another distro in a VM
|
---|
[1101] | 39 | ls /home/qemu
|
---|
[1288] | 40 | pb -p pb -m ubuntu-10.10-i386 build2vm
|
---|
[817] | 41 | # Now show how easy it's to build for another distro in a VE
|
---|
[1288] | 42 | ls /home/rpmbootstrap
|
---|
| 43 | pb -p pb -m centos-5-x86_64 build2ve
|
---|
[816] | 44 |
|
---|
[817] | 45 | # Now show how easy it's to build for another project for which I'm upstream
|
---|
[1288] | 46 | pb -p mondorescue -m centos-5-x86_64 cms2ve
|
---|
| 47 |
|
---|
[817] | 48 | # Now show how easy it's to build for another project for which I'm not upstream with patches
|
---|
[1288] | 49 | pb -p afio -r 2.5 -m centos-5-x86_64 cms2ve
|
---|
[816] | 50 |
|
---|
[1101] | 51 | # Look at conf files
|
---|
| 52 | cat ~/.pbrc
|
---|
[1288] | 53 | cat /home/rpmbootstrap/.pbrc
|
---|
| 54 | cat ~/local/pb/projects/afio/pbconf/2.5/afio.pb
|
---|
| 55 | ls -R ~/local/pb/projects/afio/pbconf/2.5/
|
---|
| 56 |
|
---|
| 57 | # Short Lab
|
---|
| 58 | # in pblab account
|
---|
| 59 | # prepa
|
---|
| 60 | # As root
|
---|
| 61 | rm -rf /prj/svn
|
---|
| 62 | svnadmin create /prj/svn
|
---|
| 63 | cat >> /prj/svn/conf/authz << EOF
|
---|
| 64 | [/]
|
---|
| 65 | pblab = rw
|
---|
| 66 | * = r
|
---|
| 67 | EOF
|
---|
| 68 | cat >> /prj/svn/conf/passwd << EOF
|
---|
| 69 | pblab = pblab
|
---|
| 70 | EOF
|
---|
| 71 | cat > /prj/svn/conf/svnserve.conf << EOF
|
---|
| 72 | [general]
|
---|
| 73 | password-db = passwd
|
---|
| 74 | authz-db = authz
|
---|
| 75 | [sasl]
|
---|
| 76 | EOF
|
---|
| 77 | killall svnserve
|
---|
| 78 | ~pblab/bin/rc.local
|
---|
| 79 |
|
---|
| 80 | # as pblab
|
---|
| 81 | rm -rf pb .pbrc
|
---|
| 82 | cat > afio.pb.add << EOF
|
---|
| 83 | defpkgdir afio = dummy
|
---|
| 84 | pbpackager default = Big Chief <bigchief@hp.com>
|
---|
| 85 | projver afio = 2.5
|
---|
| 86 | projtag afio = 1
|
---|
| 87 | pburl afio = ftp://localhost/src/afio-2.5.tar.gz
|
---|
| 88 | pbrepo afio = ftp://localhost
|
---|
| 89 | EOF
|
---|
| 90 |
|
---|
| 91 | pb -p afio clean
|
---|
| 92 | cat ~/.pbrc
|
---|
| 93 | cat >> ~/.pbrc << EOF
|
---|
| 94 | pbconfurl afio = svn://localhost/pb/afio/pbconf
|
---|
| 95 | EOF
|
---|
| 96 | echo "pbdefdir default = \$ENV{'HOME'}/pb" >> ~/.pbrc
|
---|
| 97 | mkdir pb
|
---|
| 98 | svn import pb svn://localhost/pb -m "Initial creation of pb repo"
|
---|
| 99 | # passwd asked here
|
---|
| 100 |
|
---|
| 101 | cd pb
|
---|
| 102 | svn co svn://localhost/pb .
|
---|
| 103 | pb -p afio newproj afio
|
---|
| 104 | # passwd asked here
|
---|
| 105 |
|
---|
| 106 | cat ~/afio.pb.add >> afio/pbconf/afio.pb
|
---|
| 107 | pb -p afio sbx2build
|
---|
| 108 |
|
---|
| 109 | # with Ubuntu CD
|
---|
| 110 | cat >> ~/.pbrc << EOF
|
---|
| 111 | vmpath default = /home/qemu
|
---|
| 112 | EOF
|
---|
| 113 |
|
---|