Changes between Initial Version and Version 1 of BufferExample


Ignore:
Timestamp:
May 30, 2008, 2:08:02 AM (16 years ago)
Author:
Bruno Cornec
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BufferExample

    v1 v1  
     1= Example of pb usage with the buffer project =
     2
     3Buffer is a tool used by the MondoRescue project and I needed to create packages for it, in order to ease the installation of mondo on distributions as they require it.
     4
     5The first step is to create the project structure with the newproj command. For that to work you first need to edit your $HOME/.pbrc configuration file and add in it the following:
     6{{{
     7pbconfurl buffer = svn+ssh://svn.mondorescue.org/mondo/svn/pb/projects/buffer/pbconf
     8}}}
     9
     10Of course replace that reference by a reference to which you really have access in your case.
     11Once done, ask pb to generate its structure, jst giving the name of the project (-p) and the release you're packaging (-r):
     12{{{
     13pb -p buffer -r 1.19 newproj
     14Adding /users/bruno/pb/projects/buffer to SVN... A         /users/bruno/pb/projects/buffer
     15OK
     16Updating /users/bruno/pb/projects/buffer... À la révision 456.
     17OK
     18Adding /users/bruno/pb/projects/buffer/pbconf to SVN... A         /users/bruno/pb/projects/buffer/pbconf
     19A         /users/bruno/pb/projects/buffer/pbconf/1.19
     20A         /users/bruno/pb/projects/buffer/pbconf/1.19/buffer.pb
     21A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1
     22A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/rpm
     23A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/rpm/pkg1.spec
     24A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb
     25A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/changelog
     26A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/control
     27A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/pkg1.dirs
     28A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/pkg1.docs
     29A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/compat
     30A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/rules
     31A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/deb/copyright
     32A         /users/bruno/pb/projects/buffer/pbconf/1.19/pkg1/pbfilter
     33A         /users/bruno/pb/projects/buffer/pbconf/1.19/pbfilter
     34A         /users/bruno/pb/projects/buffer/pbconf/1.19/pbfilter/novell.pbf
     35A         /users/bruno/pb/projects/buffer/pbconf/1.19/pbfilter/rpm.pbf
     36A         /users/bruno/pb/projects/buffer/pbconf/1.19/pbfilter/all.pbf
     37A         /users/bruno/pb/projects/buffer/pbconf/1.19/pbfilter/deb.pbf
     38A         /users/bruno/pb/projects/buffer/pbconf/1.19/pbfilter/md.pbf
     39OK
     40Updating /users/bruno/pb/projects/buffer/pbconf... À la révision 456.
     41OK
     42Checking in /users/bruno/pb/projects/buffer... Ajout          buffer
     43Ajout          buffer/pbconf
     44Ajout          buffer/pbconf/1.19
     45Ajout          buffer/pbconf/1.19/buffer.pb
     46Ajout          buffer/pbconf/1.19/pbfilter
     47Ajout          buffer/pbconf/1.19/pbfilter/all.pbf
     48Ajout          buffer/pbconf/1.19/pbfilter/deb.pbf
     49Ajout          buffer/pbconf/1.19/pbfilter/md.pbf
     50Ajout          buffer/pbconf/1.19/pbfilter/novell.pbf
     51Ajout          buffer/pbconf/1.19/pbfilter/rpm.pbf
     52Ajout          buffer/pbconf/1.19/pkg1
     53Ajout          buffer/pbconf/1.19/pkg1/deb
     54Ajout          buffer/pbconf/1.19/pkg1/deb/changelog
     55Ajout          buffer/pbconf/1.19/pkg1/deb/compat
     56Ajout          buffer/pbconf/1.19/pkg1/deb/control
     57Ajout          buffer/pbconf/1.19/pkg1/deb/copyright
     58Ajout          buffer/pbconf/1.19/pkg1/deb/pkg1.dirs
     59Ajout          buffer/pbconf/1.19/pkg1/deb/pkg1.docs
     60Ajout          buffer/pbconf/1.19/pkg1/deb/rules
     61Ajout          buffer/pbconf/1.19/pkg1/pbfilter
     62Ajout          buffer/pbconf/1.19/pkg1/rpm
     63Ajout          buffer/pbconf/1.19/pkg1/rpm/pkg1.spec
     64Transmission des données ..............
     65Révision 457 propagée.
     66OK
     67Updating /users/bruno/pb/projects/buffer... À la révision 457.
     68OK
     69Project: buffer
     70Action: newproj
     71}}}
     72
     73Now you "just" need to edit those configuration files to review them and prepare your build of packages.
     74{{{
     75grep -Ev '^#|^$' buffer/pbconf/1.19/buffer.pb
     76pburl buffer = http://hello-penguin.com/software/buffer/buffer-1.19.tar.gz
     77pbrepo buffer = ftp://ftp.mondorescue.org
     78pbwf buffer = 1
     79pbpackager buffer = Bruno Cornec <bruno@project-builder.org>
     80sshhost buffer = www.mondorescue.org
     81sshlogin buffer = buffer
     82sshdir buffer = /mondo/ftp
     83sshport buffer = 22
     84projver buffer = 1.19
     85projtag buffer = 1
     86testver buffer = true
     87defpkgdir buffer = dir-buffer
     88}}}
     89
     90pbrepo indicates where the resulting packages will be available for download. pbwf indicates whether the tar file is well-formed (it should contain a directory with name-verion). The ssh* variables indicates where will packages be uploaded at the end of the build. And the name of the directory for defpkgdir is not important as we do not dal with a local CMS.
     91