Mercurial > treepkg
annotate demo.cfg @ 570:44c0f8404983
Refactor git pull command out of update
Tag MUST NOT use update because therefore it always changes the current local branch!
For listing the tags it's enough to pull the latest repo changes
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 11:46:29 +0000 |
parents | 5fda6768bef6 |
children |
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 | |
380
2995f3042f82
Added a comment in the demo.cfg about the builder_cls option to switch the
Andre Heinecke <aheinecke@intevation.de>
parents:
344
diff
changeset
|
29 # The builder class to use. With this option you can configure the |
2995f3042f82
Added a comment in the demo.cfg about the builder_cls option to switch the
Andre Heinecke <aheinecke@intevation.de>
parents:
344
diff
changeset
|
30 # "build-backend" to be used. Currently supported are pbuilder and |
2995f3042f82
Added a comment in the demo.cfg about the builder_cls option to switch the
Andre Heinecke <aheinecke@intevation.de>
parents:
344
diff
changeset
|
31 # sdbmock. |
2995f3042f82
Added a comment in the demo.cfg about the builder_cls option to switch the
Andre Heinecke <aheinecke@intevation.de>
parents:
344
diff
changeset
|
32 # Default is PBuilder |
2995f3042f82
Added a comment in the demo.cfg about the builder_cls option to switch the
Andre Heinecke <aheinecke@intevation.de>
parents:
344
diff
changeset
|
33 # builder_cls: sdbmock |
2995f3042f82
Added a comment in the demo.cfg about the builder_cls option to switch the
Andre Heinecke <aheinecke@intevation.de>
parents:
344
diff
changeset
|
34 |
344
f06f707d9fda
merged branches/scratchbox into trunk
Bjoern Ricks <bricks@intevation.de>
parents:
298
diff
changeset
|
35 # The builder config file to use. It should be an absolute filename. |
47
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
36 # 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
|
37 # files and directories. You can override this in the pkg_ sections for |
344
f06f707d9fda
merged branches/scratchbox into trunk
Bjoern Ricks <bricks@intevation.de>
parents:
298
diff
changeset
|
38 # individual packagers if necessary. You will have to adapt e.g. pbuilder |
47
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
39 # yourself, then, though. |
344
f06f707d9fda
merged branches/scratchbox into trunk
Bjoern Ricks <bricks@intevation.de>
parents:
298
diff
changeset
|
40 builderconfig: %(treepkg_dir)s/pbuilder/pbuilderrc |
47
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
41 |
2802be410156
add config options pbuilderrc and use it when calling pbuilder
Bernhard Herzog <bh@intevation.de>
parents:
6
diff
changeset
|
42 |
1 | 43 # Email address and name to use as the packager in the debian packages. |
44 # You can override this in the pkg_ sections if you need package | |
45 # specific values | |
46 deb_email: packager@example.com | |
47 deb_fullname: Sample Packager | |
48 | |
298
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
49 # specify debian build options. The value specified here will be passed |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
50 # through to the build process in the environment variable |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
51 # DEB_BUILD_OPTIONS. You can override the value in the pkg_ sections. |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
52 # |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
53 # For example, you can use the following setting to indicate to the |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
54 # build process that make should use two processes in parallel when |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
55 # building the software: |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
56 # |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
57 # deb_build_options: parallel=2 |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
58 # |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
59 # Note: When using pbuilder via sudo (see root_cmd option) make sure |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
60 # that sudo does not strip DEB_BUILD_OPTIONS and DEB_BUILD_PARALLEL from |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
61 # the environment (the latter variable is needed for packages that use |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
62 # cdbs, it's automatically set by the tree packager). |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
63 #deb_build_options: |
e9d5b44f8f52
Add a paragraph about the new option deb_build_options to demo.cfg.
Bernhard Herzog <bh@intevation.de>
parents:
295
diff
changeset
|
64 |
294
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
65 # Template for the package revision. The template should include the |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
66 # 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
|
67 # 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
|
68 # 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
|
69 # to be doubled. |
aed96809160c
Update the sample configuration
Bernhard Herzog <bh@intevation.de>
parents:
291
diff
changeset
|
70 # 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
|
71 # 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
|
72 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
|
73 |
291 | 74 # Whether to handle dependencies between packagers. This is useful if |
75 # the tree packager is to build a library and a program using the | |
76 # library, each with their own debian source packages and repositories. | |
77 # 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
|
78 # 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
|
79 # 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
|
80 # them. |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
81 # 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
|
82 # specific values |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
83 handle_dependencies: False |
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
84 |
1 | 85 |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
86 # 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
|
87 # 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
|
88 # 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
|
89 # specific values |
464
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
90 #signing_key_id: |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
91 |
464
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
92 # Use the status_hook vaiable to set a command you want to execute once |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
93 # the status of a treepkg has changed |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
94 # The envrionment variables set before this hook is called: |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
95 # TREEPKG_TRACK - The name of the track currently on |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
96 # TREEPKG_BASE_DIR - The name of the base directory of the current build |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
97 # TREEPKG_STATE - The state in which the track is currently (e.g. error) |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
98 # TREEPKG_STATENAME - The name of the current state |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
99 # (e.g. creating_binary_package) |
5fda6768bef6
Enable a status_hook to be set and executed on status changes
Andre Heinecke <aheinecke@intevation.de>
parents:
380
diff
changeset
|
100 # status_hook: |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
101 |
1 | 102 [treepkg] |
103 # Section for general tree packager configuration | |
104 | |
105 # 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
|
106 check_interval: 3600 |
1 | 107 |
92
1c74e3b56a63
Add instructions_file setting to demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
47
diff
changeset
|
108 # 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
|
109 instructions_file: %(treepkg_dir)s/instructions |
1c74e3b56a63
Add instructions_file setting to demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
47
diff
changeset
|
110 |
1 | 111 |
112 [pkg_kdepim] | |
113 # Sections with names starting with "pkg_" define the configuration for | |
114 # a package. | |
115 | |
3 | 116 # The SVN URL to check out for packaging. Will only be used for the |
117 # initial checkout | |
1 | 118 svn_url: svn://anonsvn.kde.org/home/kde/branches/kdepim/enterprise/kdepim |
119 | |
120 # The directory under which the packager directory structure will be | |
121 # created. | |
180
12e4efd5cc74
Update demo.cfg with better defaults and a new paragraph for the
Bernhard Herzog <bh@intevation.de>
parents:
133
diff
changeset
|
122 base_dir: %(tracks_dir)s/kdepim |
1 | 123 |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
124 # 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
|
125 # 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
|
126 # KDE-PIM. |
133
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
127 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
|
128 |
1 | 129 # Required fields for a pkg_ section inherited from the DEFAULT section |
130 # in this example: root_cmd deb_email deb_fullname | |
131 | |
132 # An additional option, name, is inferred from the section name. Its | |
133 # 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
|
134 |
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
135 |
104
c0c93d242438
Better default values for the kde-i18n section of demo.cfg
Bernhard Herzog <bh@intevation.de>
parents:
103
diff
changeset
|
136 [pkg_kde-i18n] |
6
38330d45047f
Adapt demo.cfg to the new packager classes
Bernhard Herzog <bh@intevation.de>
parents:
3
diff
changeset
|
137 # 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
|
138 # 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
|
139 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
|
140 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
|
141 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
|
142 |
133
a13850c3be85
Update demo.cfg: add option for dependency handling, adapt
Bernhard Herzog <bh@intevation.de>
parents:
130
diff
changeset
|
143 packager_class: recipes.kde_enterprise_3_5.kde_i18n |