source: ProjectBuilder/devel/pb-doc/pb-demo@ 1288

Last change on this file since 1288 was 1288, checked in by Bruno Cornec, 13 years ago

r4371@localhost: bruno | 2011-03-30 23:59:59 +0200

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