From eeefafa7cf4ef012042fc46ff261b82de368a461 Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Tue, 15 Jan 2008 15:39:56 -0600 Subject: the great config file rename. --- etc/mock/defaults.cfg | 94 --------------------------------------- etc/mock/epel-4-i386.cfg | 42 +++++++++++++++++ etc/mock/epel-4-ppc.cfg | 42 +++++++++++++++++ etc/mock/epel-4-x86_64.cfg | 46 +++++++++++++++++++ etc/mock/epel-5-i386.cfg | 42 +++++++++++++++++ etc/mock/epel-5-ppc.cfg | 42 +++++++++++++++++ etc/mock/epel-5-x86_64.cfg | 46 +++++++++++++++++++ etc/mock/fedora-4-i386-epel.cfg | 42 ----------------- etc/mock/fedora-4-ppc-epel.cfg | 42 ----------------- etc/mock/fedora-4-x86_64-epel.cfg | 46 ------------------- etc/mock/fedora-5-i386-epel.cfg | 42 ----------------- etc/mock/fedora-5-ppc-epel.cfg | 42 ----------------- etc/mock/fedora-5-x86_64-epel.cfg | 46 ------------------- etc/mock/site-defaults.cfg | 94 +++++++++++++++++++++++++++++++++++++++ 14 files changed, 354 insertions(+), 354 deletions(-) delete mode 100644 etc/mock/defaults.cfg create mode 100644 etc/mock/epel-4-i386.cfg create mode 100644 etc/mock/epel-4-ppc.cfg create mode 100644 etc/mock/epel-4-x86_64.cfg create mode 100644 etc/mock/epel-5-i386.cfg create mode 100644 etc/mock/epel-5-ppc.cfg create mode 100644 etc/mock/epel-5-x86_64.cfg delete mode 100644 etc/mock/fedora-4-i386-epel.cfg delete mode 100644 etc/mock/fedora-4-ppc-epel.cfg delete mode 100644 etc/mock/fedora-4-x86_64-epel.cfg delete mode 100644 etc/mock/fedora-5-i386-epel.cfg delete mode 100644 etc/mock/fedora-5-ppc-epel.cfg delete mode 100644 etc/mock/fedora-5-x86_64-epel.cfg create mode 100644 etc/mock/site-defaults.cfg (limited to 'etc') diff --git a/etc/mock/defaults.cfg b/etc/mock/defaults.cfg deleted file mode 100644 index f47ebbf..0000000 --- a/etc/mock/defaults.cfg +++ /dev/null @@ -1,94 +0,0 @@ -# mock defaults -# vim:tw=0:ts=4:sw=4:et: -# -# This config file is for site-specific default values that apply across all -# configurations. Options specified in this config file can be overridden in -# the individual mock config files. -# -# The defaults.cfg delivered by default has NO options set. Only set options -# here if you want to override the defaults. -# -# Entries in this file follow the same format as other mock config files. -# config_opts['foo'] = bar - -############################################################################# -# -# Things that we recommend you set in defaults.cfg: -# -# config_opts['basedir'] = '/var/lib/mock/' -# config_opts['cache_topdir'] = '/var/lib/mock/cache' -# config_opts['rpmbuild_timeout'] = 0 -# config_opts['use_host_resolv'] = True - -# You can configure log format to pull from logging.ini formats of these names: -# config_opts['build_log_fmt_name'] = "unadorned" -# config_opts['root_log_fmt_name'] = "detailed" -# config_opts['state_log_fmt_name'] = "state" -# -# mock will normally set up a minimal chroot /dev. -# If you want to use a pre-configured /dev, disable this and use the bind-mount -# plugin to mount your special /dev -# config_opts['internal_dev_setup'] = True -# -# internal_setarch defaults to 'True' if the python 'ctypes' package is -# available. It is in the python std lib on >= python 2.5. On older versions, -# it is available as an addon. On systems w/o ctypes, it will default to -# 'False' -# config_opts['internal_setarch'] = False -# -# the cleanup_on_* options allow you to automatically clean and remove the -# mock build directory, but only take effect if --resultdir is used. -# config_opts provides fine-grained control. cmdline only has big hammer -# -# config_opts['cleanup_on_success'] = 1 -# config_opts['cleanup_on_failure'] = 1 - -############################################################################# -# -# plugin related. Below are the defaults. Change to suit your site -# policy. defaults.cfg is a good place to do this. -# -# NOTE: Some of the caching options can theoretically affect build -# reproducability. Change with care. -# -# config_opts['plugin_conf']['ccache_enable'] = True -# config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G' -# config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/" -# config_opts['plugin_conf']['yum_cache_enable'] = True -# config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30 -# config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/" -# config_opts['plugin_conf']['root_cache_enable'] = True -# config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15 -# config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/" -# -# bind mount plugin is enabled by default but has no configured directories to mount -# config_opts['plugin_conf']['bind_mount_enable'] = True -# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' )) -# -# config_opts['plugin_conf']['tmpfs_enable'] = False -# config_opts['plugin_conf']['tmpfs_opts'] = {'required_ram_mb': 1024} - -############################################################################# -# -# Things that you can change, but we dont recommend it: -# config_opts['chroothome'] = '/builddir' -# config_opts['clean'] = True - -############################################################################# -# -# Things that are best suited for individual chroot config files: -# -# MUST SET (in individual chroot cfg file): -# config_opts['root'] = 'name-of-yum-build-dir' -# config_opts['target_arch'] = 'i386' -# config_opts['yum.conf'] = '' -# -# CAN SET, defaults usually work ok: -# config_opts['chroot_setup_cmd'] = 'install buildsys-build' -# config_opts['log_config_file'] = 'logging.ini' -# config_opts['more_buildreqs']['srpm_name-version-release'] = 'dependencies' -# config_opts['macros']['Add_your_macro_name_here'] = "add macro value here" -# config_opts['files']['path/name/no/leading/slash'] = "put file contents here." -# config_opts['chrootuid'] = os.getuid() -# config_opts['chrootgid'] = grp.getgrnam("mock")[2] -# config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s' # Fedora/RedHat diff --git a/etc/mock/epel-4-i386.cfg b/etc/mock/epel-4-i386.cfg new file mode 100644 index 0000000..223350c --- /dev/null +++ b/etc/mock/epel-4-i386.cfg @@ -0,0 +1,42 @@ +config_opts['root'] = 'epel-4-i386' +config_opts['target_arch'] = 'i386' +config_opts['chroot_setup_cmd'] = 'install buildsys-build' +config_opts['dist'] = 'el4' # only useful for --resultdir variable subst + +# ccache not available on epel4 +config_opts['plugin_conf']['ccache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +logfile=/var/log/yum.log +reposdir=/dev/null +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 + +# repos + +[core] +name=base +mirrorlist=http://mirrorlist.centos.org/?release=4&arch=i386&repo=os + +[update] +name=updates +mirrorlist=http://mirrorlist.centos.org/?release=4&arch=i386&repo=updates + +[groups] +name=groups +baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/i386/ + +[extras] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=i386 + +[local] +name=local +baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-4-epel/ + +""" diff --git a/etc/mock/epel-4-ppc.cfg b/etc/mock/epel-4-ppc.cfg new file mode 100644 index 0000000..0e18db9 --- /dev/null +++ b/etc/mock/epel-4-ppc.cfg @@ -0,0 +1,42 @@ +config_opts['root'] = 'epel-4-ppc' +config_opts['target_arch'] = 'ppc' +config_opts['chroot_setup_cmd'] = 'install buildsys-build' +config_opts['dist'] = 'el4' # only useful for --resultdir variable subst + +# ccache not available on epel4 +config_opts['plugin_conf']['ccache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +logfile=/var/log/yum.log +reposdir=/dev/null +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 + +# repos + +[core] +name=base +mirrorlist=http://mirrorlist.centos.org/?release=4&arch=ppc&repo=os + +[update] +name=updates +mirrorlist=http://mirrorlist.centos.org/?release=4&arch=ppc&repo=updates + +[groups] +name=groups +baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/ppc/ + +[extras] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=ppc + +[local] +name=local +baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-4-epel/ + +""" diff --git a/etc/mock/epel-4-x86_64.cfg b/etc/mock/epel-4-x86_64.cfg new file mode 100644 index 0000000..5819ad7 --- /dev/null +++ b/etc/mock/epel-4-x86_64.cfg @@ -0,0 +1,46 @@ +config_opts['root'] = 'epel-4-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['chroot_setup_cmd'] = 'install buildsys-build' +config_opts['dist'] = 'el4' # only useful for --resultdir variable subst + +# ccache not available on epel4 +config_opts['plugin_conf']['ccache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +logfile=/var/log/yum.log +reposdir=/dev/null +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all +# .i?86 packages except these. +exclude=[!g]*.i*86 g[!l]*.i?86 gl[!i]*.i?86 gli[!b]*.i?86 glib[!c]*.i?86 + +# repos + +[core] +name=base +mirrorlist=http://mirrorlist.centos.org/?release=4&arch=x86_64&repo=os + +[update] +name=updates +mirrorlist=http://mirrorlist.centos.org/?release=4&arch=x86_64&repo=updates + +[groups] +name=groups +baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/x86_64/ + +[extras] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=x86_64 + +[local] +name=local +baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-4-epel/ +exclude=*.i386 *.ppc + +""" diff --git a/etc/mock/epel-5-i386.cfg b/etc/mock/epel-5-i386.cfg new file mode 100644 index 0000000..f76ca8e --- /dev/null +++ b/etc/mock/epel-5-i386.cfg @@ -0,0 +1,42 @@ +config_opts['root'] = 'epel-5-i386' +config_opts['target_arch'] = 'i386' +config_opts['chroot_setup_cmd'] = 'install buildsys-build' +config_opts['dist'] = 'el5' # only useful for --resultdir variable subst + +# ccache not available on epel5 +config_opts['plugin_conf']['ccache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +logfile=/var/log/yum.log +reposdir=/dev/null +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 + +# repos + +[core] +name=base +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os + +[update] +name=updates +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates + +[groups] +name=groups +baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/ + +[extras] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=i386 + +[local] +name=local +baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-5-epel/ + +""" diff --git a/etc/mock/epel-5-ppc.cfg b/etc/mock/epel-5-ppc.cfg new file mode 100644 index 0000000..a0a4b22 --- /dev/null +++ b/etc/mock/epel-5-ppc.cfg @@ -0,0 +1,42 @@ +config_opts['root'] = 'epel-5-ppc' +config_opts['target_arch'] = 'ppc' +config_opts['chroot_setup_cmd'] = 'install buildsys-build' +config_opts['dist'] = 'el5' # only useful for --resultdir variable subst + +# ccache not available on epel5 +config_opts['plugin_conf']['ccache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +logfile=/var/log/yum.log +reposdir=/dev/null +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 + +# repos + +[core] +name=base +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=ppc&repo=os + +[update] +name=updates +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=ppc&repo=updates + +[groups] +name=groups +baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/ppc/ + +[extras] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=ppc + +[local] +name=local +baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-5-epel/ + +""" diff --git a/etc/mock/epel-5-x86_64.cfg b/etc/mock/epel-5-x86_64.cfg new file mode 100644 index 0000000..559e2a4 --- /dev/null +++ b/etc/mock/epel-5-x86_64.cfg @@ -0,0 +1,46 @@ +config_opts['root'] = 'epel-5-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['chroot_setup_cmd'] = 'install buildsys-build' +config_opts['dist'] = 'el5' # only useful for --resultdir variable subst + +# ccache not available on epel5 +config_opts['plugin_conf']['ccache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +logfile=/var/log/yum.log +reposdir=/dev/null +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all +# .i?86 packages except these. +exclude=[!g]*.i*86 g[!l]*.i?86 gl[!i]*.i?86 gli[!b]*.i?86 glib[!c]*.i?86 + +# repos + +[core] +name=base +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os + +[update] +name=updates +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates + +[groups] +name=groups +baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/ + +[extras] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 + +[local] +name=local +baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-5-epel/ +exclude=*.i386 *.ppc + +""" diff --git a/etc/mock/fedora-4-i386-epel.cfg b/etc/mock/fedora-4-i386-epel.cfg deleted file mode 100644 index 223350c..0000000 --- a/etc/mock/fedora-4-i386-epel.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'epel-4-i386' -config_opts['target_arch'] = 'i386' -config_opts['chroot_setup_cmd'] = 'install buildsys-build' -config_opts['dist'] = 'el4' # only useful for --resultdir variable subst - -# ccache not available on epel4 -config_opts['plugin_conf']['ccache_enable'] = False - -config_opts['yum.conf'] = """ -[main] -cachedir=/var/cache/yum -debuglevel=1 -logfile=/var/log/yum.log -reposdir=/dev/null -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 - -# repos - -[core] -name=base -mirrorlist=http://mirrorlist.centos.org/?release=4&arch=i386&repo=os - -[update] -name=updates -mirrorlist=http://mirrorlist.centos.org/?release=4&arch=i386&repo=updates - -[groups] -name=groups -baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/i386/ - -[extras] -name=epel -mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=i386 - -[local] -name=local -baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-4-epel/ - -""" diff --git a/etc/mock/fedora-4-ppc-epel.cfg b/etc/mock/fedora-4-ppc-epel.cfg deleted file mode 100644 index 0e18db9..0000000 --- a/etc/mock/fedora-4-ppc-epel.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'epel-4-ppc' -config_opts['target_arch'] = 'ppc' -config_opts['chroot_setup_cmd'] = 'install buildsys-build' -config_opts['dist'] = 'el4' # only useful for --resultdir variable subst - -# ccache not available on epel4 -config_opts['plugin_conf']['ccache_enable'] = False - -config_opts['yum.conf'] = """ -[main] -cachedir=/var/cache/yum -debuglevel=1 -logfile=/var/log/yum.log -reposdir=/dev/null -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 - -# repos - -[core] -name=base -mirrorlist=http://mirrorlist.centos.org/?release=4&arch=ppc&repo=os - -[update] -name=updates -mirrorlist=http://mirrorlist.centos.org/?release=4&arch=ppc&repo=updates - -[groups] -name=groups -baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/ppc/ - -[extras] -name=epel -mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=ppc - -[local] -name=local -baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-4-epel/ - -""" diff --git a/etc/mock/fedora-4-x86_64-epel.cfg b/etc/mock/fedora-4-x86_64-epel.cfg deleted file mode 100644 index 5819ad7..0000000 --- a/etc/mock/fedora-4-x86_64-epel.cfg +++ /dev/null @@ -1,46 +0,0 @@ -config_opts['root'] = 'epel-4-x86_64' -config_opts['target_arch'] = 'x86_64' -config_opts['chroot_setup_cmd'] = 'install buildsys-build' -config_opts['dist'] = 'el4' # only useful for --resultdir variable subst - -# ccache not available on epel4 -config_opts['plugin_conf']['ccache_enable'] = False - -config_opts['yum.conf'] = """ -[main] -cachedir=/var/cache/yum -debuglevel=1 -logfile=/var/log/yum.log -reposdir=/dev/null -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all -# .i?86 packages except these. -exclude=[!g]*.i*86 g[!l]*.i?86 gl[!i]*.i?86 gli[!b]*.i?86 glib[!c]*.i?86 - -# repos - -[core] -name=base -mirrorlist=http://mirrorlist.centos.org/?release=4&arch=x86_64&repo=os - -[update] -name=updates -mirrorlist=http://mirrorlist.centos.org/?release=4&arch=x86_64&repo=updates - -[groups] -name=groups -baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/x86_64/ - -[extras] -name=epel -mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=x86_64 - -[local] -name=local -baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-4-epel/ -exclude=*.i386 *.ppc - -""" diff --git a/etc/mock/fedora-5-i386-epel.cfg b/etc/mock/fedora-5-i386-epel.cfg deleted file mode 100644 index f76ca8e..0000000 --- a/etc/mock/fedora-5-i386-epel.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'epel-5-i386' -config_opts['target_arch'] = 'i386' -config_opts['chroot_setup_cmd'] = 'install buildsys-build' -config_opts['dist'] = 'el5' # only useful for --resultdir variable subst - -# ccache not available on epel5 -config_opts['plugin_conf']['ccache_enable'] = False - -config_opts['yum.conf'] = """ -[main] -cachedir=/var/cache/yum -debuglevel=1 -logfile=/var/log/yum.log -reposdir=/dev/null -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 - -# repos - -[core] -name=base -mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os - -[update] -name=updates -mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates - -[groups] -name=groups -baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/ - -[extras] -name=epel -mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=i386 - -[local] -name=local -baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-5-epel/ - -""" diff --git a/etc/mock/fedora-5-ppc-epel.cfg b/etc/mock/fedora-5-ppc-epel.cfg deleted file mode 100644 index a0a4b22..0000000 --- a/etc/mock/fedora-5-ppc-epel.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'epel-5-ppc' -config_opts['target_arch'] = 'ppc' -config_opts['chroot_setup_cmd'] = 'install buildsys-build' -config_opts['dist'] = 'el5' # only useful for --resultdir variable subst - -# ccache not available on epel5 -config_opts['plugin_conf']['ccache_enable'] = False - -config_opts['yum.conf'] = """ -[main] -cachedir=/var/cache/yum -debuglevel=1 -logfile=/var/log/yum.log -reposdir=/dev/null -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 - -# repos - -[core] -name=base -mirrorlist=http://mirrorlist.centos.org/?release=5&arch=ppc&repo=os - -[update] -name=updates -mirrorlist=http://mirrorlist.centos.org/?release=5&arch=ppc&repo=updates - -[groups] -name=groups -baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/ppc/ - -[extras] -name=epel -mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=ppc - -[local] -name=local -baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-5-epel/ - -""" diff --git a/etc/mock/fedora-5-x86_64-epel.cfg b/etc/mock/fedora-5-x86_64-epel.cfg deleted file mode 100644 index 559e2a4..0000000 --- a/etc/mock/fedora-5-x86_64-epel.cfg +++ /dev/null @@ -1,46 +0,0 @@ -config_opts['root'] = 'epel-5-x86_64' -config_opts['target_arch'] = 'x86_64' -config_opts['chroot_setup_cmd'] = 'install buildsys-build' -config_opts['dist'] = 'el5' # only useful for --resultdir variable subst - -# ccache not available on epel5 -config_opts['plugin_conf']['ccache_enable'] = False - -config_opts['yum.conf'] = """ -[main] -cachedir=/var/cache/yum -debuglevel=1 -logfile=/var/log/yum.log -reposdir=/dev/null -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all -# .i?86 packages except these. -exclude=[!g]*.i*86 g[!l]*.i?86 gl[!i]*.i?86 gli[!b]*.i?86 glib[!c]*.i?86 - -# repos - -[core] -name=base -mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os - -[update] -name=updates -mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates - -[groups] -name=groups -baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/ - -[extras] -name=epel -mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 - -[local] -name=local -baseurl=http://buildsys.fedoraproject.org/plague-results/fedora-5-epel/ -exclude=*.i386 *.ppc - -""" diff --git a/etc/mock/site-defaults.cfg b/etc/mock/site-defaults.cfg new file mode 100644 index 0000000..f47ebbf --- /dev/null +++ b/etc/mock/site-defaults.cfg @@ -0,0 +1,94 @@ +# mock defaults +# vim:tw=0:ts=4:sw=4:et: +# +# This config file is for site-specific default values that apply across all +# configurations. Options specified in this config file can be overridden in +# the individual mock config files. +# +# The defaults.cfg delivered by default has NO options set. Only set options +# here if you want to override the defaults. +# +# Entries in this file follow the same format as other mock config files. +# config_opts['foo'] = bar + +############################################################################# +# +# Things that we recommend you set in defaults.cfg: +# +# config_opts['basedir'] = '/var/lib/mock/' +# config_opts['cache_topdir'] = '/var/lib/mock/cache' +# config_opts['rpmbuild_timeout'] = 0 +# config_opts['use_host_resolv'] = True + +# You can configure log format to pull from logging.ini formats of these names: +# config_opts['build_log_fmt_name'] = "unadorned" +# config_opts['root_log_fmt_name'] = "detailed" +# config_opts['state_log_fmt_name'] = "state" +# +# mock will normally set up a minimal chroot /dev. +# If you want to use a pre-configured /dev, disable this and use the bind-mount +# plugin to mount your special /dev +# config_opts['internal_dev_setup'] = True +# +# internal_setarch defaults to 'True' if the python 'ctypes' package is +# available. It is in the python std lib on >= python 2.5. On older versions, +# it is available as an addon. On systems w/o ctypes, it will default to +# 'False' +# config_opts['internal_setarch'] = False +# +# the cleanup_on_* options allow you to automatically clean and remove the +# mock build directory, but only take effect if --resultdir is used. +# config_opts provides fine-grained control. cmdline only has big hammer +# +# config_opts['cleanup_on_success'] = 1 +# config_opts['cleanup_on_failure'] = 1 + +############################################################################# +# +# plugin related. Below are the defaults. Change to suit your site +# policy. defaults.cfg is a good place to do this. +# +# NOTE: Some of the caching options can theoretically affect build +# reproducability. Change with care. +# +# config_opts['plugin_conf']['ccache_enable'] = True +# config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G' +# config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/" +# config_opts['plugin_conf']['yum_cache_enable'] = True +# config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30 +# config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/" +# config_opts['plugin_conf']['root_cache_enable'] = True +# config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15 +# config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/" +# +# bind mount plugin is enabled by default but has no configured directories to mount +# config_opts['plugin_conf']['bind_mount_enable'] = True +# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' )) +# +# config_opts['plugin_conf']['tmpfs_enable'] = False +# config_opts['plugin_conf']['tmpfs_opts'] = {'required_ram_mb': 1024} + +############################################################################# +# +# Things that you can change, but we dont recommend it: +# config_opts['chroothome'] = '/builddir' +# config_opts['clean'] = True + +############################################################################# +# +# Things that are best suited for individual chroot config files: +# +# MUST SET (in individual chroot cfg file): +# config_opts['root'] = 'name-of-yum-build-dir' +# config_opts['target_arch'] = 'i386' +# config_opts['yum.conf'] = '' +# +# CAN SET, defaults usually work ok: +# config_opts['chroot_setup_cmd'] = 'install buildsys-build' +# config_opts['log_config_file'] = 'logging.ini' +# config_opts['more_buildreqs']['srpm_name-version-release'] = 'dependencies' +# config_opts['macros']['Add_your_macro_name_here'] = "add macro value here" +# config_opts['files']['path/name/no/leading/slash'] = "put file contents here." +# config_opts['chrootuid'] = os.getuid() +# config_opts['chrootgid'] = grp.getgrnam("mock")[2] +# config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s' # Fedora/RedHat -- cgit