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

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