| 1 | == SVN repository Management == |
| 2 | |
| 3 | First you need to get the content of the SVN repository: |
| 4 | |
| 5 | {{{ |
| 6 | # cd /to/desired/path |
| 7 | # svn checkout ????? |
| 8 | }}} |
| 9 | |
| 10 | or |
| 11 | |
| 12 | {{{ |
| 13 | # svn checkout ????? |
| 14 | }}} |
| 15 | |
| 16 | Then depending on your distribution you'll have to follow one of the following recipe: |
| 17 | |
| 18 | == Debian == |
| 19 | |
| 20 | 1. for mondo package, cd into mondo directory and run ./bootstrap |
| 21 | 2. rename package directory: <package>-<latest release><branch><yymmdd>[[BR]] |
| 22 | '''Note:''' <branch> = 'bt' for berlios trunk and 'bb' for berlios branch |
| 23 | 3. create tarball: tar cvzf <package>_<latest release><branch><yymmdd>.orig.tar.gz <package>-<latest release><branch><yymmdd> |
| 24 | 4. create new directory <package>-<latest release><branch><yymmdd>-1 |
| 25 | 5. copy tarball in new directory and unpack there |
| 26 | 6. cd into tarball directory |
| 27 | 7. copy debian directory from last package |
| 28 | 8. dch --newversion <latest release><branch><yymmdd>-1 |
| 29 | 9. build ;-) |
| 30 | |
| 31 | == RPM Based Distributions == |
| 32 | |
| 33 | This has currently only be tested with !RedHat Enterprise Linux 3 and 4, Fedora Core 4/5, SLES 9, OpenSuSE 10 and Mandriva 10.2/2005 and 2006.0 |
| 34 | |
| 35 | From the sources rpm packages the nearest from your distro, you may build packages for your target distribution by doi,g: |
| 36 | |
| 37 | {{{ |
| 38 | # rpm -ivh mindi*.src.rpm mondo*.src.rpm |
| 39 | # rpmbuild -ba /usr/src/*/SPECS/mondo.spec |
| 40 | # rpmbuild -ba /usr/src/*/SPECS/mindi.spec |
| 41 | # rpm -ivh /usr/src/*/RPMS/i?86/mondo*.i?86.rpm /usr/src/*/RPMS/i?86/mindi*.i?86.rpm |
| 42 | }}} |
| 43 | |
| 44 | Or from the SVN tree extracted: |
| 45 | |
| 46 | {{{ |
| 47 | # tools/svn2build |
| 48 | }}} |
| 49 | |
| 50 | which will create for you a build directory with all files expanded |
| 51 | |
| 52 | then you can call |
| 53 | |
| 54 | {{{ |
| 55 | # tools/build2pkg |
| 56 | }}} |
| 57 | |
| 58 | in order to produce local packages for your distribution. |
| 59 | |
| 60 | If you have virtual machines of other distributions that you want to generate packages for, then after setting them up following the documentation under tools/qemu-vm.txt you can call: |
| 61 | |
| 62 | {{{ |
| 63 | # tools/build2qemu |
| 64 | }}} |
| 65 | |
| 66 | to produce packages for all supported distros (in tools/DISTROS) |
| 67 | |
| 68 | Location of mondo and mindi files |