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