wiki:DistributionPackaging

Version 3 (modified by bruno, 13 years ago) (diff)

more explanations on how to build from SVN

SVN repository Management

First you need to get the content of the SVN repository:

    # cd /to/desired/path 
    # svn checkout svn://svn.mondorescue.org/mondorescue/branches/stable

or

    # svn checkout svn://svn.mondorescue.org/mondorescue/trunk

Then depending on your distribution you'll have to follow one of the following recipe:

Debian

(Note from Bruno: Andree, it's probably outdate, and I think the RPM procedure also works here)

  1. for mondo package, cd into mondo directory and run ./bootstrap
  2. rename package directory: <package>-<latest release><branch><yymmdd>
    Note: <branch> = 'bt' for berlios trunk and 'bb' for berlios branch
  3. create tarball: tar cvzf <package>_<latest release><branch><yymmdd>.orig.tar.gz <package>-<latest release><branch><yymmdd>
  4. create new directory <package>-<latest release><branch><yymmdd>-1
  5. copy tarball in new directory and unpack there
  6. cd into tarball directory
  7. copy debian directory from last package
  8. dch --newversion <latest release><branch><yymmdd>-1
  9. build ;-)

RPM Based Distributions

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

From the sources rpm packages the nearest from your distro (that you can get from ftp://ftp.mondorescue.org), you may build packages for your target distribution by doing:

# rpm -ivh mindi*.src.rpm mondo*.src.rpm 
# rpmbuild -ba /usr/src/*/SPECS/mondo.spec 
# rpmbuild -ba /usr/src/*/SPECS/mindi.spec 
# rpm -ivh /usr/src/*/RPMS/i?86/mondo*.i?86.rpm /usr/src/*/RPMS/i?86/mindi*.i?86.rpm 

Or from the stable SVN tree extracted:

# tools/svn2build 

which will create for you a build directory (under $HOME/mondo/build/stable-1) with the tar files containing the version expanded

then you can call

# tools/build2pkg 

in order to produce local packages for your distribution.

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:

# tools/build2qemu 

to produce packages for all supported distros (in tools/DISTROS)

Location of mondo and mindi Files

DistributionsFile base install
/usr/sbin/mindi/usr/local/sbin/mindi
/usr/sbin/analyze-my-lvm/usr/local/sbin/analyze-my-lvm
/usr/sbin/mondoarchive/usr/local/sbin/mondoarchive
/usr/sbin/mondorestore/usr/local/sbin/mondorestore
/etc/m?nd?/usr/local/etc/m?nd?
/usr/share/doc/m?nd?*/usr/local/share/doc/m?nd?*
/usr/share/man/man8/m?nd?*.8/usr/local/share/man/man8/m?nd?*.8
/usr/lib/mindi/usr/local/lib/mindi
/usr/share/mondo/usr/local/share/mondo