1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
from DeComp.definitions import DECOMPRESSOR_XATTR_SEARCH_ORDER
# these should never be touched
required_build_targets = ["targetbase", "generic_stage_target"]
# new build types should be added here
valid_build_targets = ["stage1_target", "stage2_target", "stage3_target",
"stage4_target", "grp_target", "livecd_stage1_target", "livecd_stage2_target",
"embedded_target", "tinderbox_target", "snapshot_target", "netboot_target",
"netboot2_target"
]
required_config_file_values = ["storedir", "sharedir", "distdir", "portdir"]
valid_config_file_values = required_config_file_values[:]
valid_config_file_values.extend([ "distcc", "envscript",
"options", "DEBUG", "VERBOSE",
"snapshot_cache", "hash_function", "digests", "contents"
"compression_mode", "decompressor_search_order",
])
confdefaults={
"archdir": "%(PythonDir)s/arch",
"compression_mode": 'lbzip2_x',
"decompressor_search_order": DECOMPRESSOR_XATTR_SEARCH_ORDER,
"distdir": "/usr/portage/distfiles",
"hash_function": "crc32",
"icecream": "/var/cache/icecream",
"local_overlay": "/usr/local/portage",
"port_conf": "/etc/portage",
"make_conf": "%(port_conf)s/make.conf",
"options": set(),
"packagedir": "/usr/portage/packages",
"portdir": "/usr/portage",
"port_tmpdir": "/var/tmp/portage",
"PythonDir": "./catalyst",
"repo_basedir": "/usr",
"repo_name": "portage",
"sharedir": "/usr/share/catalyst",
"shdir": "/usr/share/catalyst/targets/",
"snapshot_cache": "/var/tmp/catalyst/snapshot_cache",
"snapshot_name": "portage-",
"source_matching": "strict",
"storedir": "/var/tmp/catalyst",
}
DEFAULT_CONFIG_FILE = '/etc/catalyst/catalyst.conf'
PORT_LOGDIR_CLEAN = \
'find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +30 -delete'
TARGET_MOUNT_DEFAULTS = {
"ccache": "/var/tmp/ccache",
"dev": "/dev",
"devpts": "/dev/pts",
"distdir": "/usr/portage/distfiles",
"icecream": "/usr/lib/icecc/bin",
"kerncache": "/tmp/kerncache",
"packagedir": "/usr/portage/packages",
"portdir": "/usr/portage",
"port_tmpdir": "/var/tmp/portage",
"port_logdir": "/var/log/portage",
"proc": "/proc",
"shm": "/dev/shm",
}
SOURCE_MOUNT_DEFAULTS = {
"dev": "/dev",
"devpts": "/dev/pts",
"distdir": "/usr/portage/distfiles",
"portdir": "/usr/portage",
"port_tmpdir": "tmpfs",
"proc": "/proc",
"shm": "shmfs",
}
# legend: key: message
option_messages = {
"autoresume": "Autoresuming support enabled.",
"ccache": "Compiler cache support enabled.",
"clear-autoresume": "Cleaning autoresume flags support enabled.",
#"compress": "Compression enabled.",
"distcc": "Distcc support enabled.",
"icecream": "Icecream compiler cluster support enabled.",
"kerncache": "Kernel cache support enabled.",
"pkgcache": "Package cache support enabled.",
"purge": "Purge support enabled.",
"seedcache": "Seed cache support enabled.",
"snapcache": "Snapshot cache support enabled.",
#"tarball": "Tarball creation enabled.",
}
|