1 |
commit: 6d85d2ef9272f19ee193a3ee58c1a72ae03c647d |
2 |
Author: André Erdmann <dywi <AT> mailerd <DOT> de> |
3 |
AuthorDate: Fri Jul 6 22:18:38 2012 +0000 |
4 |
Commit: André Erdmann <dywi <AT> mailerd <DOT> de> |
5 |
CommitDate: Fri Jul 6 22:18:38 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=6d85d2ef |
7 |
|
8 |
documentation: config files |
9 |
|
10 |
modified: README |
11 |
new file: config/R-overlay.conf |
12 |
renamed: description_fields.conf -> config/description_fields.conf |
13 |
new file: config/repo.list |
14 |
renamed: simple-deprules.conf -> config/simple-deprules.conf |
15 |
typechange: description_fields.conf |
16 |
|
17 |
--- |
18 |
README | 43 +--- |
19 |
config/R-overlay.conf | 321 ++++++++++++++++++++ |
20 |
.../description_fields.conf | 0 |
21 |
config/repo.list | 103 +++++++ |
22 |
.../simple-deprules.conf | 0 |
23 |
description_fields.conf | 160 +---------- |
24 |
6 files changed, 431 insertions(+), 196 deletions(-) |
25 |
|
26 |
diff --git a/README b/README |
27 |
index 64a1f47..542fa30 100644 |
28 |
--- a/README |
29 |
+++ b/README |
30 |
@@ -5,55 +5,24 @@ R overlay -- README |
31 |
There is currently no "R overlay" script, only modules that implement functionality. |
32 |
|
33 |
=== Running tests === |
34 |
+# <TODO> write this section |
35 |
|
36 |
Real tests are scheduled for July 10 - July 30. |
37 |
|
38 |
-In the meantime, there are some test scripts (run_<something>.py, |
39 |
-test_<something>.sh) and a Makefile that provide basic testing. |
40 |
- |
41 |
-To run them you need to create a directory <root>/examples/packages and |
42 |
-put some R packages into it (expected suffix is .tar.gz), |
43 |
-where <root> is the directory containing this README file. |
44 |
-Some scripts expect the seewave (seewave_1.6.3.tar.gz) package in there. |
45 |
- |
46 |
-You can then run: |
47 |
- ./run_config.py <config files> |
48 |
- |
49 |
- * reads config files and prints the config |
50 |
- |
51 |
- ./run_overlaycreation.py [--help|-h|?] [--show] [--write] [<R packages>] |
52 |
- |
53 |
- * creates an overlay with ebuilds for the given R packages (or seewave if left out) |
54 |
- |
55 |
- * parameters: |
56 |
- ** --help -- prints a short usage info (does not create ebuilds/...) |
57 |
- ** --show -- prints the created ebuilds/metadata to console, |
58 |
- does not create Manifest files |
59 |
- |
60 |
- ** --write -- writes the created ebuilds/metadata to the overlay, including |
61 |
- Manifest files (see R-overlay.conf for the overlay dir) |
62 |
- |
63 |
- make <target>, where target is |
64 |
- |
65 |
- * seewave, test-seewave -- runs './run_overlaycreation --show examples/packages/seewave_*.tar.gz' |
66 |
- * clean-log -- removes log files in ./log/ |
67 |
- * test-nop -- run './nop.py' which does nothing but 'import roverlay' |
68 |
+A main script is available. See ./main.py --help for usage. |
69 |
|
70 |
|
71 |
== Configuration == |
72 |
|
73 |
* main configuration |
74 |
-shell-like syntax (using shlex), TODO - roverlay/config/entrymap could be |
75 |
-helpful in the meantime |
76 |
+see config/R-overlay.conf |
77 |
|
78 |
* repo configuration (CRAN,...) |
79 |
-to be clarified; either part of the main config as tuple |
80 |
-<name>;<local dir or empty>;<rsync uri>;<src uri> in the main config file |
81 |
-or in a separate file using ConfigParser syntax. |
82 |
+see config/repo.list |
83 |
|
84 |
* description field configuration |
85 |
-ConfigParser syntax, please see 'description_fields.conf' in this directory. |
86 |
+see config/description_fields.conf |
87 |
|
88 |
* dependency rules configuration |
89 |
-simple dependency rules: see simple-deprules.conf |
90 |
+see config/simple-deprules.conf |
91 |
|
92 |
|
93 |
diff --git a/config/R-overlay.conf b/config/R-overlay.conf |
94 |
new file mode 100644 |
95 |
index 0000000..dd160b3 |
96 |
--- /dev/null |
97 |
+++ b/config/R-overlay.conf |
98 |
@@ -0,0 +1,321 @@ |
99 |
+# R-overlay.conf |
100 |
+# This file explains how to write a R overlay main config, |
101 |
+# it can also be used as config file. |
102 |
+# |
103 |
+# -- Table of contents -- |
104 |
+# |
105 |
+# 1 -- config value types and file syntax |
106 |
+# 2 -- config quickstart (basic overview of options to set) |
107 |
+# 3 -- config entries |
108 |
+# a -- misc |
109 |
+# b -- overlay |
110 |
+# c -- other config files |
111 |
+# d -- logging |
112 |
+# e -- other (debugging, testing, ...) |
113 |
+# |
114 |
+# -- end of ToC -- |
115 |
+ |
116 |
+# = config value types and file syntax = |
117 |
+ |
118 |
+# This file is parsed using shlex (shell-like syntax) |
119 |
+# * '#' is the comment char |
120 |
+# * variables ("${X}") are not supported |
121 |
+# * whitespace is ignored (in most cases) |
122 |
+# => whitespace in file paths is generally not supported, |
123 |
+# but may work with some restrictions |
124 |
+# * quotes are optional, but allow to span long values over multiple lines, |
125 |
+# e.g. << |
126 |
+# SIMPLE_RULES_FILE="<path to first rule file> |
127 |
+# <another one> |
128 |
+# " |
129 |
+# >> |
130 |
+# |
131 |
+# |
132 |
+# some options have value type restrictions, |
133 |
+# |
134 |
+# special value types used in this config ("* allowed values: <type>"): |
135 |
+# |
136 |
+# log level -- choose from {DEBUG, INFO, WARN, WARNING, ERROR, CRITICAL} |
137 |
+# bool -- string that represents a boolean value, |
138 |
+# true := {y,yes,on,1,true,enabled} |
139 |
+# false := {n,no,off,0,false,disabled} |
140 |
+# other values are not allowed |
141 |
+# |
142 |
+# |
143 |
+# implicit value types: |
144 |
+# |
145 |
+# list -- option has multiple values separated by whitespace, |
146 |
+# use quotes to specify more than one value |
147 |
+# |
148 |
+# file, dir -- value will be expanded ( ~ => ${HOME}, x => ${PWD}/x etc.), |
149 |
+# value has to be a file (or dir) if it exists |
150 |
+# |
151 |
+# <empty> -- often leads to errors (in case of value type restrictions), |
152 |
+# just comment out config entries |
153 |
+# |
154 |
+# |
155 |
+# |
156 |
+# "*** NOT IN USE ***" means that an option is read and integrated into |
157 |
+# the config tree, but never used (normal entry in config/entrymap). |
158 |
+# => value will be validated |
159 |
+# |
160 |
+# "*** <option> is not available> ***" means that an option is read, but |
161 |
+# ignored ("None" entry in config/entrymap). |
162 |
+# => value won't be validated |
163 |
+ |
164 |
+ |
165 |
+# = config quick start = |
166 |
+# This is a listing of options to consider |
167 |
+# |
168 |
+# options that are required: |
169 |
+# OVERLAY_NAME, |
170 |
+# OVERLAY_DIR, (or use --overlay <OVERLAY>) |
171 |
+# DISTFILES, (or use --distroot <DISTROOT>) |
172 |
+# REPO_CONFIG, (or use --repo-config <file>) # FIXME: required? |
173 |
+# FIELD_DEFINITION (or use --field-definition <file>) |
174 |
+# |
175 |
+# options that are optional but essential for a usable result: |
176 |
+# OVERLAY_ECLASS, |
177 |
+# SIMPLE_RULES_FILE (or use --deprule-file <file>) |
178 |
+# |
179 |
+# some options for logging: |
180 |
+# LOG_CONSOLE, |
181 |
+# LOG_FILE, |
182 |
+# LOG_LEVEL, |
183 |
+# LOG_LEVEL_FILE, |
184 |
+# LOG_LEVEL_CONSOLE |
185 |
+# |
186 |
+# some options for debugging and testing: |
187 |
+# LOG_FILE_UNRESOLVABLE, |
188 |
+# DESCRIPTION_DIR |
189 |
+# |
190 |
+ |
191 |
+ |
192 |
+# = config starts here = |
193 |
+ |
194 |
+# == misc options == |
195 |
+ |
196 |
+# DISTFILES_ROOT |
197 |
+# the root directory of repo distdirs |
198 |
+# Repos will create their distdirs in this directory unless |
199 |
+# they specify another location. |
200 |
+# * alias: DISTDIR, DISTFILES |
201 |
+# * defaults to <unset> (but required!) |
202 |
+#DISTFILES_ROOT = "distfiles-root" |
203 |
+ |
204 |
+ |
205 |
+# == overlay options == |
206 |
+ |
207 |
+# OVERLAY_NAME |
208 |
+# name of the overlay |
209 |
+# * defaults to <unset> (but required!) |
210 |
+#OVERLAY_NAME = "ROverlay" |
211 |
+ |
212 |
+# OVERLAY_DIR |
213 |
+# overlay root directory |
214 |
+# This is the directory where the overlay content, e.g. ebuilds and |
215 |
+# profiles/repo_name will be written into. |
216 |
+# * defaults to <unset> (but required!) |
217 |
+#OVERLAY_DIR = "overlay-root" |
218 |
+ |
219 |
+# OVERLAY_ECLASS |
220 |
+# eclass files to import into the overlay and us in ebuilds |
221 |
+# Note that overlay creation fails if importing any of the |
222 |
+# specified eclass files fails. |
223 |
+# * accepted values: a list of files that end with '.eclass' or |
224 |
+# don't have an extension |
225 |
+# * defaults to <unset> (empty list) - this is NOT useful |
226 |
+# * alias: ECLASS |
227 |
+#OVERLAY_ECLASS = "eclass/R-packages.eclass" |
228 |
+ |
229 |
+# OVERLAY_CATEGORY |
230 |
+# overlay category of the created ebuilds |
231 |
+# * accepted values: no restrictions made, but don't insert a '/'! |
232 |
+# * defaults to sci-R |
233 |
+#OVERLAY_CATEGORY = 'dev-R' |
234 |
+ |
235 |
+# EBUILD_HEADER |
236 |
+# ebuild header file that will be included in all created ebuilds |
237 |
+# *** NOT IN USE *** |
238 |
+#EBUILD_HEADER = "ebuild_header.txt" |
239 |
+ |
240 |
+# == other config files == |
241 |
+ |
242 |
+# some config options are split from this file for various reasons: |
243 |
+# * no need to be modifed by users (in most cases) |
244 |
+# -> FIELD_DEFINITION |
245 |
+# * special syntax that is not compatible with this file |
246 |
+# -> SIMPLE_RULES_FILE |
247 |
+# * special syntax that eases adding/reading entries (-> all) |
248 |
+# * config is independent from this file |
249 |
+# -> e.g. per-repo script runs using the same main config ("-R <file>" option) |
250 |
+ |
251 |
+ |
252 |
+# FIELD_DEFINITION |
253 |
+# path to the config file that controls DESCRIPTION file reading |
254 |
+# * defaults to <unset> (but required!) |
255 |
+# * alias: FIELD_DEFINITION_FILE |
256 |
+#FIELD_DEFINITION = "description_fields.conf" |
257 |
+ |
258 |
+# REPO_CONFIG |
259 |
+# path to the repo config file |
260 |
+# Please see the example file for file format. |
261 |
+# * defaults to <unset> (but required!) |
262 |
+# * alias: REPO_CONFIG_FILE, REPO_CONFIG_FILES |
263 |
+#REPO_CONFIG = "repo.list" |
264 |
+ |
265 |
+# SIMPLE_RULES_FILE |
266 |
+# list of (simple) dependency rule files |
267 |
+# Please see the rule example file for file format. |
268 |
+# * defaults to <unset>, which effectively disables dependency resolution |
269 |
+# since no other dependency resolution methods are available. |
270 |
+# This gives poor results! |
271 |
+# * alias: SIMPLE_RULES_FILES |
272 |
+# *** TODO-note: accept directories as value *** |
273 |
+#SIMPLE_RULES_FILE = "simple-deprules.d/R" |
274 |
+ |
275 |
+# == logging == |
276 |
+ |
277 |
+# LOG_ENABLED |
278 |
+# enable/disable logging (globally) |
279 |
+# * accepted values: bool |
280 |
+# * defaults to enabled => use per-log target settings, e.g. LOG_CONSOLE |
281 |
+#LOG_ENABLED = "no" |
282 |
+ |
283 |
+# LOG_LEVEL |
284 |
+# the default log level |
285 |
+# Choices are DEBUG, INFO, WARN, WARNING, ERROR, CRITICAL. |
286 |
+# * defaults to <unset>, which causes console/file logging |
287 |
+# to use their own defaults |
288 |
+#LOG_LEVEL = DEBUG |
289 |
+ |
290 |
+# LOG_DATE_FORMAT |
291 |
+# date format used in logging |
292 |
+# * defaults to '%F %H:%M:%S'. |
293 |
+#LOG_DATE_FORMAT = '%a, %H:%M' |
294 |
+ |
295 |
+# *** LOG_FORMAT is not available *** |
296 |
+ |
297 |
+ |
298 |
+# === console logging === |
299 |
+ |
300 |
+# LOG_CONSOLE |
301 |
+# enable/disable logging to console |
302 |
+# * accepted values: bool |
303 |
+# * defaults to enabled |
304 |
+# * alias: LOG_CONSOLE_ENABLED |
305 |
+#LOG_CONSOLE = "no" |
306 |
+ |
307 |
+# LOG_FORMAT_CONSOLE |
308 |
+# log format used in console logging |
309 |
+# * defaults to '%(levelname)-8s %(name)-14s: %(message)s' |
310 |
+# * alias: LOG_CONSOLE_FORMAT |
311 |
+#LOG_FORMAT_CONSOLE = '[%(name)s] %(message)s' |
312 |
+ |
313 |
+# LOG_LEVEL_CONSOLE |
314 |
+# log level for console logging, see LOG_LEVEL |
315 |
+# * accepted values: a log level |
316 |
+# * defaults to INFO |
317 |
+# * alias: LOG_CONSOLE_LEVEL |
318 |
+#LOG_LEVEL_CONSOLE = "DEBUG" |
319 |
+ |
320 |
+# *** LOG_CONSOLE_STREAM is not available *** |
321 |
+ |
322 |
+ |
323 |
+# === file logging === |
324 |
+ |
325 |
+# LOG_FILE |
326 |
+# log file to write |
327 |
+# File logging will be disabled if left blank / commented out. |
328 |
+# * defaults to <unset> |
329 |
+#LOG_FILE = "" |
330 |
+ |
331 |
+# LOG_LEVEL_FILE |
332 |
+# log level used in file logging |
333 |
+# * accepted values: a log level, see LOG_LEVEL |
334 |
+# * defaults to: WARNING |
335 |
+# * alias: LOG_FILE_LEVEL |
336 |
+#LOG_LEVEL_FILE = "ERROR" |
337 |
+ |
338 |
+# LOG_FORMAT_FILE |
339 |
+# log format used in file logging |
340 |
+# * defaults to '%(asctime)s %(levelname)-8s %(name)-10s: %(message)s' |
341 |
+# * alias: LOG_FILE_FORMAT |
342 |
+#LOG_FORMAT_FILE = '%(asctime)s $(levelname)s [%(name)s]: %(message)s' |
343 |
+ |
344 |
+# LOG_FILE_ROTATE |
345 |
+# enable/disable log file rotation |
346 |
+# The log file will be rotated on every script run. |
347 |
+# * accepted values: bool |
348 |
+# * defaults to disabled |
349 |
+#LOG_FILE_ROTATE = "yes" |
350 |
+ |
351 |
+# LOG_FILE_ROTATE_COUNT |
352 |
+# number of rotated log files to keep |
353 |
+# Only used when log file rotation is enabled. |
354 |
+# * accepted values: int (make sure it's >= 0) |
355 |
+# * defaults to 3 |
356 |
+#LOG_FILE_ROTATE_COUNT = 10 |
357 |
+ |
358 |
+# LOG_FILE_BUFFERED |
359 |
+# buffer log entries in memory before writing them to the log file |
360 |
+# This should reduce I/O blocking when using low log levels with threads. |
361 |
+# * accepted values: bool |
362 |
+# * defaults to enabled |
363 |
+#LOG_FILE_BUFFERED = "no" |
364 |
+ |
365 |
+# LOG_FILE_BUFFER_COUNT |
366 |
+# max number of log entries to buffer |
367 |
+# Only used when log entry buffering is enabled. |
368 |
+# * accepted values: integer (make sure that the value is >= 1) |
369 |
+# * defaults to 250 |
370 |
+# * alias: LOG_FILE_BUFFER_CAPACITY |
371 |
+#LOG_FILE_BUFFER_COUNT = 50 |
372 |
+ |
373 |
+# LOG_FILE_ENABLED |
374 |
+# enable/disable logging to file |
375 |
+# * accepted values: bool |
376 |
+# * defaults to enabled (which grants LOG_FILE control over this setting) |
377 |
+#LOG_FILE_ENABLED = "no" |
378 |
+ |
379 |
+ |
380 |
+# == options for debugging, (manual) dependency rule creation, testing, ... == |
381 |
+ |
382 |
+# LOG_FILE_UNRESOLVABLE |
383 |
+# file where unresolved dependency strings will be written to |
384 |
+# Useful if you want to create new rules, |
385 |
+# run -> read unresolvable file -> create rules -> rerun. |
386 |
+# Comment out to disable. |
387 |
+# * defaults to <unset> |
388 |
+#LOG_FILE_UNRESOLVABLE = "log/dep_unresolvable.log" |
389 |
+ |
390 |
+# LOG_FILE_RESOLVED |
391 |
+# file where resolved dep strings will be written to |
392 |
+# *** NOT IN USE *** |
393 |
+#LOG_FILE_RESOLVED = "" |
394 |
+ |
395 |
+# DESCRIPTION_DIR |
396 |
+# directory where description files will be written into |
397 |
+# If enabled: write all read description files to |
398 |
+# <descfiles dir>/<R package name>_<R package version>.desc |
399 |
+# Comment out to disable. |
400 |
+# * defaults to <unset> |
401 |
+# * alias: DESCRIPTION_DESCFILES_DIR |
402 |
+#DESCRIPTION_DIR = "desc-files" |
403 |
+ |
404 |
+# EBUILD_PROG |
405 |
+# name of/path to the ebuild executable |
406 |
+# * accepted values: no restrictions made, |
407 |
+# but overlay writing will fail if the value is invalid, |
408 |
+# which is a huge time loss since ebuilds have been created before writing. |
409 |
+# * defaults to "ebuild" |
410 |
+#EBUILD_PROG = "/usr/local/bin/ebuild" |
411 |
+ |
412 |
+# RSYNC_BWLIMIT |
413 |
+# set a max. average rsync bandwidth usage (in kilobytes/second) |
414 |
+# This is a per-"rsync command" setting using rsync's "--bwlimit" option |
415 |
+# Note: you can set per-repo bwlimit's in the repo config file |
416 |
+# TODO-note: ^ make sure that this option doesn't interfere |
417 |
+# * accepted values: int (>0 expected) |
418 |
+# * defaults to <unset> |
419 |
+#RSYNC_BWLIMIT = 10000 |
420 |
|
421 |
diff --git a/description_fields.conf b/config/description_fields.conf |
422 |
similarity index 100% |
423 |
copy from description_fields.conf |
424 |
copy to config/description_fields.conf |
425 |
|
426 |
diff --git a/config/repo.list b/config/repo.list |
427 |
new file mode 100644 |
428 |
index 0000000..f389fd7 |
429 |
--- /dev/null |
430 |
+++ b/config/repo.list |
431 |
@@ -0,0 +1,103 @@ |
432 |
+# repo.list |
433 |
+# This file explains how to write repo config files. |
434 |
+ |
435 |
+# This file is parsed used ConfigParser syntax (known from .ini files). |
436 |
+ |
437 |
+# A repo entry describes |
438 |
+# * where to find R packages that will be used for overlay creation, |
439 |
+# and optionally where and how to get the R packages (using repo types) |
440 |
+# * how ebuilds can download the R packages (=> SRC_URI) |
441 |
+ |
442 |
+# Each repository is introduced with [<section name>] and has to declare |
443 |
+# some options. |
444 |
+# |
445 |
+# general options are: |
446 |
+# |
447 |
+# * required: |
448 |
+# |
449 |
+# src_uri -- this is used to determine the SRC_URI in ebuilds |
450 |
+# (SRC_URI=<src_uri>/<package file name>) |
451 |
+# FIXME note: check that subdirs are handled correctly |
452 |
+# |
453 |
+# * optional: |
454 |
+# |
455 |
+# name -- name of the repository |
456 |
+# optional, defaults to <section name> |
457 |
+# type -- the type of this repo, see below |
458 |
+# optional, defaults to rsync |
459 |
+# directory -- the local package directory, |
460 |
+# optional, defaults to <DISTFILES ROOT (from config)>/<name> |
461 |
+# |
462 |
+# (base_uri -- don't use, to be removed) |
463 |
+# |
464 |
+# |
465 |
+# There are two types of repos, "rsync" and "local" ones: |
466 |
+# |
467 |
+# * Local repo; |
468 |
+# A Local repo represents a directory with R packages in it. |
469 |
+# It will never be modified (i.e. synced) and has no special options. |
470 |
+# |
471 |
+# * Rsync repo: |
472 |
+# An Rsync repo uses a local directory to sync with a remote. |
473 |
+# Its directory will be modified whenever syncing (using the rsync program). |
474 |
+# Behaves like a local repo if syncing is disabled. |
475 |
+# |
476 |
+# default rsync options (always passed to rsync): |
477 |
+# --links, --safe-links, --times, --compress, --dirs, --prune-empty-dirs, |
478 |
+# --force, --delete, --human-readable, --stats, --chmod=ugo=r,u+w,Dugo+x |
479 |
+# |
480 |
+# This type has special options: |
481 |
+# |
482 |
+# rsync_uri -- required, rsync uri |
483 |
+# recursive -- optional, passes '--recursive' to rsync |
484 |
+# if this option is set to 'yes' |
485 |
+# extra_rsync_opts -- optional options to pass to rsync, this |
486 |
+# can be used to exclude/include files, |
487 |
+# show progress while syncing etc. |
488 |
+# Note: options cannot contain whitespace! (#FIXME note: this could be allowed if useful) |
489 |
+# |
490 |
+# |
491 |
+ |
492 |
+ |
493 |
+# == Repo entry examples == |
494 |
+ |
495 |
+# a local directory with packages in /var/www/R_packages |
496 |
+# |
497 |
+#[local_packages] |
498 |
+#type = local |
499 |
+#src_uri = http://localhost/R_packages |
500 |
+#directory = /var/www/R_packages |
501 |
+ |
502 |
+ |
503 |
+# a local directory with packages manually downloaded from CRAN |
504 |
+# * directory will be automatically set to <DISTROOT>/CRAN/selected |
505 |
+# |
506 |
+#[CRAN/selected] |
507 |
+#type = local |
508 |
+#src_uri = http://cran.r-project.org/src/contrib |
509 |
+ |
510 |
+# CRAN rsync repo |
511 |
+# * type will be set to rsync |
512 |
+# * directory will be set to <DISTROOT>/CRAN/all |
513 |
+# * rsync progress will be shown during transfer |
514 |
+# * not recursive, the package archive and R release won't be fetched |
515 |
+# * this needs about 2.5G disk space |
516 |
+# |
517 |
+#[CRAN/all] |
518 |
+#src_uri = http://cran.r-project.org/src/contrib |
519 |
+#rsync_uri = cran.r-project.org::CRAN/src/contrib |
520 |
+#extra_rsync_opts = --progress |
521 |
+ |
522 |
+# CRAN rsync repo (selective transfer) |
523 |
+# * type is explicitly set to rsync |
524 |
+# * only packages starting with "r" or "R" will be fetched |
525 |
+# * directory will be set to <DISTROOT>/CRAN/only_letter_R |
526 |
+# * rsync progress will be shown during transfer |
527 |
+# * not recursive |
528 |
+# * this needs about 300M disk space |
529 |
+# |
530 |
+#[CRAN/only_letter_R] |
531 |
+#type = rsync |
532 |
+#src_uri = http://cran.r-project.org/src/contrib |
533 |
+#rsync_uri = cran.r-project.org::CRAN/src/contrib |
534 |
+#extra_rsync_opts = --include=r* --include=R* --exclude=* --progress |
535 |
|
536 |
diff --git a/simple-deprules.conf b/config/simple-deprules.conf |
537 |
similarity index 100% |
538 |
rename from simple-deprules.conf |
539 |
rename to config/simple-deprules.conf |
540 |
|
541 |
diff --git a/description_fields.conf b/description_fields.conf |
542 |
deleted file mode 100644 |
543 |
index 0705798..0000000 |
544 |
--- a/description_fields.conf |
545 |
+++ /dev/null |
546 |
@@ -1,159 +0,0 @@ |
547 |
-# R overlay -- description field definition |
548 |
-# Copyright 2006-2012 Gentoo Foundation |
549 |
-# Distributed under the terms of the GNU General Public License v2 |
550 |
-# |
551 |
- |
552 |
-# ---------------------------------------------------------------------------- |
553 |
-# |
554 |
-# This file controls how DESCRIPTION fields are used |
555 |
-# It is read in raw mode so that strings like '%var' are not interpolated. |
556 |
-# A per-field section is introduced with [<field name>] and |
557 |
-# contains flags and options. |
558 |
-# |
559 |
-# |
560 |
-# known field options are: |
561 |
-# |
562 |
-# default_value = <some value> |
563 |
-# -- set the default value for this field, |
564 |
-# which implies that any read description data |
565 |
-# will contain this field (with value either |
566 |
-# from the description file or the default one). |
567 |
-# 'Disables' the mandatory flag. |
568 |
-# |
569 |
-# allowed_value = <some value> |
570 |
-# -- declares that this field has a value |
571 |
-# whitelist and adds <some value> to this list. |
572 |
-# |
573 |
-# allowed_values = <some values> |
574 |
-# -- same as allowed_value but witj multiple values |
575 |
-# |
576 |
-# alias_withcase = <aliases>, |
577 |
-# alias = <aliases> |
578 |
-# -- declares case-sensitive field name aliases |
579 |
-# aliases can be used to fix typos as well as |
580 |
-# to remap/merge fields (e.g. Title -> Description) |
581 |
-# |
582 |
-# alias_nocase = <aliases> |
583 |
-# -- declares case-insenstivite field names aliases |
584 |
-# |
585 |
-# |
586 |
-# flags = <flags> |
587 |
-# -- add flags to this field; note that any value-less |
588 |
-# option is interpreted as flag |
589 |
-# |
590 |
-# options with multiple values are read as a <value>[, <value>]* list |
591 |
-# |
592 |
-# and known field flags are: |
593 |
-# joinValues |
594 |
-# -- declares that the field's value is one string even if it |
595 |
-# spans over multiple lines (the lines will be joined with ' ') |
596 |
-# The default behavior is to join lines with ''. |
597 |
-# isList |
598 |
-# -- declares that the field's value is a list |
599 |
-# (the default regex for splitting the values is '\s*[,;]{1}\s*') |
600 |
-# |
601 |
-# isWhitespaceList |
602 |
-# -- declares that the field's value is a list |
603 |
-# separated by whitespace. Has no effect if 'isList' is set. |
604 |
-# mandatory |
605 |
-# -- declares that this field has to have an value that evaluates |
606 |
-# to True (value is set and not empty). |
607 |
-# This flag is (effectively) useless in conjunction with |
608 |
-# default_value unless the default value evaluates to False. |
609 |
-# |
610 |
-# ignore |
611 |
-# -- ignore this field entirely |
612 |
-# |
613 |
-# |
614 |
-# Flags are always case-insensitive. |
615 |
-# Note that it is not checked whether a flag is known or not, |
616 |
-# which means you can add anything here. |
617 |
-# |
618 |
-# ---------------------------------------------------------------------------- |
619 |
- |
620 |
- |
621 |
-[Description] |
622 |
-joinValues |
623 |
- |
624 |
-[Title] |
625 |
-joinValues |
626 |
- |
627 |
-[Package] |
628 |
-joinValues |
629 |
- |
630 |
-# not used |
631 |
-ignore |
632 |
- |
633 |
-[License] |
634 |
-isList |
635 |
- |
636 |
-# not used |
637 |
-ignore |
638 |
- |
639 |
-[Version] |
640 |
-joinValues |
641 |
- |
642 |
-# not used |
643 |
-ignore |
644 |
-## else |
645 |
-#mandatory |
646 |
- |
647 |
-[Suggests] |
648 |
-alias_nocase = Suggests, Suggest, %Suggests, Suggets, Recommends |
649 |
-isList |
650 |
- |
651 |
-[Depends] |
652 |
-alias_nocase = Depends, Dependencies, Dependes, %Depends, Depents, Require, Requires |
653 |
-isList |
654 |
- |
655 |
-[Imports] |
656 |
-alias_nocase = Imports, Import |
657 |
-isList |
658 |
- |
659 |
-[LinkingTo] |
660 |
-alias_nocase = LinkingTo, LinkingdTo, LinkinTo |
661 |
-isList |
662 |
- |
663 |
-[SystemRequirements] |
664 |
-alias_nocase = SystemRequirements, SystemRequirement |
665 |
-isList |
666 |
- |
667 |
-[OS_Type] |
668 |
-alias_nocase = OS_TYPE |
669 |
-allowed_values = unix |
670 |
- |
671 |
-[Author] |
672 |
-ignore |
673 |
- |
674 |
-[Date] |
675 |
-ignore |
676 |
- |
677 |
-[Date/Publication] |
678 |
-ignore |
679 |
- |
680 |
-[Encoding] |
681 |
-ignore |
682 |
- |
683 |
-[Maintainer] |
684 |
-ignore |
685 |
- |
686 |
-[Packaged] |
687 |
-ignore |
688 |
- |
689 |
-[Repository] |
690 |
-ignore |
691 |
- |
692 |
-[Type] |
693 |
-ignore |
694 |
- |
695 |
-[URL] |
696 |
-ignore |
697 |
- |
698 |
-[Webpage] |
699 |
-ignore |
700 |
- |
701 |
-[ZipData] |
702 |
-ignore |
703 |
- |
704 |
-[LazyLoad] |
705 |
-ignore |
706 |
|
707 |
diff --git a/description_fields.conf b/description_fields.conf |
708 |
new file mode 120000 |
709 |
index 0000000..514f8d7 |
710 |
--- /dev/null |
711 |
+++ b/description_fields.conf |
712 |
@@ -0,0 +1 @@ |
713 |
+config/description_fields.conf |
714 |
\ No newline at end of file |