Changes between Version 18 and Version 19 of WikiStart


Ignore:
Timestamp:
11/16/07 00:13:14 (6 years ago)
Author:
bruno
Comment:

Adds a netperf example (I)

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v18 v19  
    1313= Technical ideas around the project-builder.org (aka pb) project = 
    1414 
    15  * use perl. It makes coding so more efficient, powerful and also fun 
     15 * use perl. It makes coding so much more efficient, powerful and also fun 
    1616 * use AppConfig. A lot of information is managed under a configuration file format and AppConfig makes it trivial to handle them. BTW look at that [http://trac.project-builder.org/browser/devel/pb-doc/AppConfig%3A%3AFile.patch patch] as the versions of AppConfig from 1.63 and up to 1.66 at least have a bug for handling hashes correctly this fixes. Cf: http://rt.cpan.org/Ticket/Display.html?id=28766 
    1717 
    18 = Example of use on LinuxCOE = 
     18= Example of use on netperf (simple example) = 
     19 
     20As an example of how easy (or not :-) Project-Builder is to use, I decide to write that tutorial as a gift for another project which deserves it, the [www.netperf.org NetPerf] project . 
     21 
     22You first have to create a .pbrc configuration file in your home directory, which will setup things globally: 
     23 
     24{{{ 
     25$ cat > ~/.pbrc << EOF 
     26# 
     27# Root of the temp file used to store info on the project 
     28# Is also used to determine the root directory of the project 
     29# No default option allowed here as they need to be all different 
     30# 
     31pbrc netperf = $ENV{'HOME'}/netperf/src 
     32EOF 
     33}}} 
     34 
     35Then get the bits of the project you want to package. It could be using a SVN or CVS access if there is such a thing, or by downloading (at worse) the tar file of the project. Then extract that under a newly created directory that you referenced in your project configuration file: 
     36 
     37{{{ 
     38$ cd /tmp 
     39$ wget ftp://ftp.netperf.org/netperf/netperf-2.4.4.tar.bz2 
     40$ mkdir $HOME/netperf/src 
     41$ cd $HOME/netperf/src 
     42$ tar xvfj /tmp/netperf-2.4.4.tar.bz2 
     43}}} 
     44 
     45= Example of use on LinuxCOE (more complex example) = 
    1946 
    2047When the project was mature enough to package correctly mondorescue and itself, I then decided it was time to try it on another unrelated project to see how difficult it could be and document that experience so that others could also begin to use pb for their own project. 
    2148 
    22 You first have to create a .pbrc configuration file in your home directory, which will setup things globally. 
     49You first have to edit your .pbrc configuration file in your home directory, which will setup things globally. 
    2350 
    2451Here are my .pbrc LinuxCOE relative entries: