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