checking in more of the rpm build system (is that it?)
[freeside.git] / rpm / build / mock / site-defaults.cfg
1 # mock defaults
2 # vim:tw=0:ts=4:sw=4:et:
3 #
4 # This config file is for site-specific default values that apply across all
5 # configurations. Options specified in this config file can be overridden in
6 # the individual mock config files.
7 #
8 # The defaults.cfg delivered by default has NO options set. Only set options
9 # here if you want to override the defaults.
10 #
11 # Entries in this file follow the same format as other mock config files.
12 # config_opts['foo'] = bar
13
14 #############################################################################
15 #
16 # Things that we recommend you set in defaults.cfg:
17 #
18 # config_opts['basedir'] = '/var/lib/mock/'
19 # config_opts['cache_topdir'] = '/var/cache/mock'
20 #  Note: the path pointed to by basedir and cache_topdir must be owned 
21 #        by group 'mock' and must have mode: g+rws
22 # config_opts['rpmbuild_timeout'] = 0
23 # config_opts['use_host_resolv'] = True
24
25 # You can configure log format to pull from logging.ini formats of these names:
26 # config_opts['build_log_fmt_name'] = "unadorned"
27 # config_opts['root_log_fmt_name']  = "detailed"
28 # config_opts['state_log_fmt_name'] = "state"
29 #
30 # mock will normally set up a minimal chroot /dev.
31 # If you want to use a pre-configured /dev, disable this and use the bind-mount
32 # plugin to mount your special /dev
33 # config_opts['internal_dev_setup'] = True
34 #
35 # internal_setarch defaults to 'True' if the python 'ctypes' package is
36 #  available. It is in the python std lib on >= python 2.5. On older versions,
37 #  it is available as an addon. On systems w/o ctypes, it will default to
38 #  'False'
39 # config_opts['internal_setarch'] = False
40 #
41 # the cleanup_on_* options allow you to automatically clean and remove the
42 # mock build directory, but only take effect if --resultdir is used.
43 # config_opts provides fine-grained control. cmdline only has big hammer
44 #
45 # config_opts['cleanup_on_success'] = 1
46 # config_opts['cleanup_on_failure'] = 1
47
48 #############################################################################
49 #
50 # plugin related. Below are the defaults. Change to suit your site
51 # policy. defaults.cfg is a good place to do this.
52 #
53 # NOTE: Some of the caching options can theoretically affect build
54 #  reproducability. Change with care.
55 #
56 # config_opts['plugin_conf']['ccache_enable'] = True
57 # config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G'
58 # config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/"
59 # config_opts['plugin_conf']['yum_cache_enable'] = True
60 # config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30
61 # config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/"
62 # config_opts['plugin_conf']['root_cache_enable'] = True
63 # config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15
64 # config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/"
65 # config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip"
66 # config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
67 #
68 # bind mount plugin is enabled by default but has no configured directories to mount
69 # config_opts['plugin_conf']['bind_mount_enable'] = True
70 # config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' ))
71 #
72 # config_opts['plugin_conf']['tmpfs_enable'] = False
73 # config_opts['plugin_conf']['tmpfs_opts'] = {'required_ram_mb': 1024}
74
75 #############################################################################
76 #
77 # Things that you can change, but we dont recommend it:
78 # config_opts['chroothome'] = '/builddir'
79 # config_opts['clean'] = True
80
81 #############################################################################
82 #
83 # Things that are best suited for individual chroot config files:
84 #
85 # MUST SET (in individual chroot cfg file):
86 # config_opts['root'] = 'name-of-yum-build-dir'
87 # config_opts['target_arch'] = 'i386'
88 # config_opts['yum.conf'] = ''
89 #
90 # CAN SET, defaults usually work ok:
91 # config_opts['chroot_setup_cmd'] = 'install buildsys-build'
92 # config_opts['log_config_file'] = 'logging.ini'
93 # config_opts['more_buildreqs']['srpm_name-version-release'] = 'dependencies'
94 # config_opts['macros']['Add_your_macro_name_here'] = "add macro value here"
95 # config_opts['files']['path/name/no/leading/slash'] = "put file contents here."
96 # config_opts['chrootuid'] = os.getuid()
97 # config_opts['chrootgid'] = grp.getgrnam("mock")[2]
98 # config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s' # Fedora/RedHat