kiesel/xp-build-system — pull request #4 by ohinckel (2012-03-08 14:59:07+00:00)
Title: Feature dpkg

This will extend the build system by building a Debian package using dpkg-deb utility.

To be able to create such a package you will also need to setup the Debian package related files:

* `debian/control` - where the meta information will be placed
* `debian/postinst` - script to execute after installation
* `debian/postrm` - script to execute after uninstall

The scripts `preinst` and `prerm` are optional. Addtionally to the files listed above, a configuration file named `build.properties` can also be put into the `debian` directory. This will have the following settings:

* `root` - specifies the root path of the application to put into (e.g. `root=/usr/local/app`)
* `copy.XYZ` - specifies an additional copy task to copy files from the application to another directory and doing some keyword replacements (e.g. `copy.config=etc/config.ini:/etc/config`)

The replacement will use the following keywords:

* `module` - the name of the module
* `version` - the version number
* `organisation` - the organisation string
* `size` - the calculated total size of all application files
* `BASEPATH` - maps to the application's root path
* `MODULENAME` - maps to the module name