source: config-package-dev/examples/EXAMPLES @ 0fc8ba0

Revision 0fc8ba0, 1.8 KB checked in by Geoffrey Thomas <geofft@…>, 9 years ago (diff)
Rename Debian to lib/Debian to make case-insensitive filesystems happy
  • Property mode set to 100644
Line 
1This directory contains example packages using the config-package-dev
2system that you can start from in designing your own packages.
3
4debathena-conffile-example-1.0:
5    Displaces a configuration file and provides different configuration
6debathena-conffile-example-1.1:
7    Transforms a configuration file if it exists at build time
8debathena-bin-example-1.0:
9    Displaces a binary and provides a wrapper script
10debathena-bin-example-1.1:
11    Upgrades debathena-bin-example-1.0 undoing one of the displacements
12debathena-transform-example-1.0:
13    Transforms a configuration file
14debathena-cron-example-1.0:
15    Hides a cron job
16
17Both CDBS and Debhelper 7+ versions are provided, in the cdbs/ and
18debhelper/ directories, respectively.
19
20
21If you are trying to build these packages out of a config-package-dev
22source tree (e.g., because you are hacking on config-package-dev), note
23that you will need to set a few environment variables to make things
24work. For debuild, e.g., try the command
25
26debuild -e PERL5LIB=../../../lib -e DH_AUTOSCRIPTDIR=../../.. --prepend-path=../../..
27
28This trick will not work for CDBS, since debian/rules hard-codes an
29absolute path to CDBS class and rules files.
30
31
32For the CDBS examples, note that if you want the control files to be
33regenerated from the control.in files, you need to add
34
35DEB_AUTO_UPDATE_DEBIAN_CONTROL=1
36
37to the debian/rules files (or e.g. set it in your environment).
38
39We do not include DEB_AUTO_UPDATE_DEBIAN_CONTROL=1 in these example
40rules files because option is banned in official Debian packages (see
41the CDBS section of <http://ftp-master.debian.org/REJECT-FAQ.html>).
42
43
44config-package-dev supports older versions of debhelper, although
45examples are not given.  You can use it in your own packages by adding
46dh_configpackage into the list of dh_* commands in debian/rules, before
47dh_link.
Note: See TracBrowser for help on using the repository browser.