source: config-package-dev/examples/EXAMPLES @ 8fd1f27

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