source: devel/pb-doc/pb-demo @ 1407

Last change on this file since 1407 was 1407, checked in by bruno, 7 years ago

r4510@cabanilles: bruno | 2012-02-05 01:14:35 +0100

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