Mercurial > treepkg
annotate demo.cfg @ 296:ce7be2fb93ee
Make it easy to install extra binaries into subdirectories of extra-pkg.
This makes it easier to manage the extra-pkg directory when it contains
manually added packages and automatically added packages from one of the
package tracks by putting the automatically added packages into
extra-pkg/auto and manually added packages into extra-pkg/manual.
To this end, add parameter subdir to PBuilder.add_binaries_to_extra_pkg
method with default value "auto". Adapt the test case accordingly.
Also add the command line argument --subdir to bin/treepkgbuilder.py
add-binaries command, this time with default value "manual".
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 18 Nov 2009 18:11:22 +0000 |
parents | dcdf23dece2d |
children | e9d5b44f8f52 |
rev | line source |
---|---|
1 | 1 [DEFAULT] |
2 # the default section provides defaults for the other sections. Also, | |
3 # other sections can use the values here in interpolations. | |
4 | |
5 # The basedir to use for interpolations in other sections | |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
6 treepkg_dir: /home/builder/mill |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
7 |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
8 # basedir for the packager track subdirectories |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
9 tracks_dir: %(treepkg_dir)s/tracks |
1 | 10 |
11 # The command to use to gain the permissions to execute pbuilder. The | |
12 # default is sudo. The actual command line used to run pbuilder is | |
13 # root_cmd followed by the pbuilder command line. With the default it | |
14 # is something like | |
15 # | |
16 # sudo pbuilder build <name-of-dsc-file> | |
17 # | |
2
e6a9f4037f68
readconfig.py is smarter now about conversions and supports shlex
Bernhard Herzog <bh@intevation.de>
parents:
1
diff
changeset
|
18 # The value of this option is split into words with the python function |
e6a9f4037f68
readconfig.py is smarter now about conversions and supports shlex
Bernhard Herzog <bh@intevation.de>
parents:
1
diff
changeset
|
19 # shlex.split. See the python documentation for the precise semantics. |
103 | 20 # shlex.split works pretty much like a POSIX shell but it doesn't |
21 # perform any expansions. | |
1 | 22 # |
23 # Set an empty value to indicate that no special command is needed. | |
24 # | |
25 # You can override this in the pkg_ sections if you need package | |
26 # specific values | |
27 root_cmd: sudo | |
28 | |
47
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
29 # The pbuilder config file to use. It should be an absolute filename. |
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
30 # The script initpbuilder.py can create it and the rest of the pbuilder |
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
31 # files and directories. You can override this in the pkg_ sections for |
103 | 32 # individual packagers if necessary. You will have to adapt pbuilder |
47
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
33 # yourself, then, though. |
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
34 pbuilderrc: %(treepkg_dir)s/pbuilder/pbuilderrc |
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
35 |
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
36 |
1 | 37 # Email address and name to use as the packager in the debian packages. |
38 # You can override this in the pkg_ sections if you need package | |
39 # specific values | |
40 deb_email: packager@example.com | |
41 deb_fullname: Sample Packager | |
42 | |
294
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
43 # Template for the package revision. The template should include the |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
44 # specifier "%(pkg_revision)d" which will be replaced by the revision |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
45 # number of the package (usually 1). Note, that since the format used |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
46 # by the config file also uses %-based interpolation the %-character has |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
47 # to be doubled. |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
48 # E. g. with a prefix "treepkg%(pkg_revision)d", the default, a |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
49 # generated package might be named foo_1.0-treepkg1_all.deb |
295
dcdf23dece2d
Correct the update of the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
294
diff
changeset
|
50 pkg_revision_template: treepkg%%(pkg_revision)d |
93
73c67372c7f7
Make the prefix used in the debian revision number configurable.
Bernhard Herzog <bh@intevation.de>
parents:
92
diff
changeset
|
51 |
291 | 52 # Whether to handle dependencies between packagers. This is useful if |
53 # the tree packager is to build a library and a program using the | |
54 # library, each with their own debian source packages and repositories. | |
55 # With dependency handling the library will always be updated before the | |
133
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
56 # program and the binary packages of the library will be made available |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
57 # to the pbuilder instance, so that the program will be built against |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
58 # them. |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
59 # You can override this in the pkg_ sections if you need package |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
60 # specific values |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
61 handle_dependencies: False |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
62 |
1 | 63 |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
64 # Uncomment and insert the ID of the key with which to sign .dsc, .changes the |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
65 # Release file in the pbuilder's extra-pkg directory. |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
66 # You can override this in the pkg_ sections if you need package |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
67 # specific values |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
68 #signing_key_id: |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
69 |
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
70 |
1 | 71 [treepkg] |
72 # Section for general tree packager configuration | |
73 | |
74 # Interval in seconds between checks for updates | |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
75 check_interval: 3600 |
1 | 76 |
92
1c74e3b56a63
Add instructions_file setting to demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
47
diff
changeset
|
77 # file used to communicate instructions to a running tree packager |
1c74e3b56a63
Add instructions_file setting to demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
47
diff
changeset
|
78 instructions_file: %(treepkg_dir)s/instructions |
1c74e3b56a63
Add instructions_file setting to demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
47
diff
changeset
|
79 |
1 | 80 |
81 [pkg_kdepim] | |
82 # Sections with names starting with "pkg_" define the configuration for | |
83 # a package. | |
84 | |
3 | 85 # The SVN URL to check out for packaging. Will only be used for the |
86 # initial checkout | |
1 | 87 svn_url: svn://anonsvn.kde.org/home/kde/branches/kdepim/enterprise/kdepim |
88 | |
89 # The directory under which the packager directory structure will be | |
90 # created. | |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
91 base_dir: %(tracks_dir)s/kdepim |
1 | 92 |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
93 # The packager class defines how the packaging works. The |
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
94 # enterprise.kdepim class knows how to package the enterprise branch of |
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
95 # KDE-PIM. |
133
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
96 packager_class: recipes.kde_enterprise_3_5.kdepim |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
97 |
1 | 98 # Required fields for a pkg_ section inherited from the DEFAULT section |
99 # in this example: root_cmd deb_email deb_fullname | |
100 | |
101 # An additional option, name, is inferred from the section name. Its | |
102 # value is the part of the section name after the pkg_ prefix. | |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
103 |
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
104 |
104
c0c93d242438
Better default values for the kde-i18n section of demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
103
diff
changeset
|
105 [pkg_kde-i18n] |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
106 # Another packager. This one for the the localizations. This packager |
130
84a1716827f8
Fix typo in comment in demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
104
diff
changeset
|
107 # requires an additional parameter, orig_tarball. |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
108 svn_url: svn://anonsvn.kde.org/home/kde/branches/kdepim/enterprise/kde-l10n |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
109 base_dir: %(tracks_dir)s/kde-i18n |
104
c0c93d242438
Better default values for the kde-i18n section of demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
103
diff
changeset
|
110 orig_tarball: %(base_dir)s/kde-i18n-de-3.5.5.tar.bz2 |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
111 |
133
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
112 packager_class: recipes.kde_enterprise_3_5.kde_i18n |