Created
July 15, 2017 07:36
-
-
Save stephdl/670ce8d5f4ab596de69f5d054138359a to your computer and use it in GitHub Desktop.
ns6 mock configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lsd@leo nethserver-php-scl]$ cat /etc/mock/nethserver-6-x86_64.cfg | |
# | |
# NethServer mock configuration | |
# | |
import string | |
config_opts['target_arch'] = 'x86_64' | |
config_opts['legal_host_arches'] = ('x86_64',) | |
config_opts['root'] = 'nethserver-6-x86_64' | |
config_opts['chroot_setup_cmd'] = ('install', '@buildsys-build') | |
config_opts['plugin_conf']['ccache_enable'] = False | |
config_opts['macros']['%url_prefix'] = 'http://dev.nethserver.org/projects/nethserver/wiki' | |
config_opts['macros']['%vendor'] = 'NethServer' | |
config_opts['macros']['%dist'] = '.ns6.sdl' | |
# Substitute $releasever and $basearch: | |
config_opts['yum.conf'] = string.Template(""" | |
[main] | |
cachedir=/var/cache/yum | |
debuglevel=1 | |
logfile=/var/log/yum.log | |
reposdir=/dev/null | |
retries=20 | |
obsoletes=1 | |
gpgcheck=0 | |
assumeyes=1 | |
plugins=1 | |
ui_repoid_vars=1 | |
http_caching=none | |
[sogo] | |
name=mock-updates | |
baseurl=file:///home/lsd/dev/git_work/SOGo-spec | |
[base] | |
name=CentOS-$releasever Base | |
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=stock | |
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
enabled=1 | |
enablegroups=0 | |
#exclude=filesystem | |
[updates] | |
name=CentOS-$releasever Updates | |
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=stock | |
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
enabled=1 | |
enablegroups=0 | |
[nethserver-base] | |
name=NethServer $releasever base | |
mirrorlist=http://mirrorlist.nethserver.org/$releasever/nethserver?release=$releasever&repo=base&arch=$basearch | |
#baseurl=http://mirror.nethserver.org/nethserver/$releasever/base/$basearch/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6 | |
enabled=1 | |
enablegroups=0 | |
[nethserver-updates] | |
name=NethServer $releasever updates | |
mirrorlist=http://mirrorlist.nethserver.org/$releasever/nethserver?release=$releasever&repo=updates&arch=$basearch | |
#baseurl=http://mirror.nethserver.org/nethserver/$releasever/updates/$basearch/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6 | |
enabled=1 | |
enablegroups=1 | |
[nethserver-testing] | |
name=NethServer $releasever testing | |
mirrorlist=http://mirrorlist.nethserver.org/$releasever/nethserver?release=$releasever&repo=testing&arch=$basearch | |
#baseurl=http://mirror.nethserver.org/nethserver/$releasever/testing/$basearch/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6 | |
enabled=0 | |
enablegroups=0 | |
#[epel] | |
#name=Extra Packages for Enterprise Linux $releasever - $basearch | |
##baseurl=http://download.fedoraproject.org/pub/epel/$releasever/$basearch | |
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch | |
#failovermethod=priority | |
#enabled=1 | |
#exclude=gnustep-* | |
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever | |
#[sogo-nightly] | |
#name=sogo nightly $releasever - $basearch | |
##baseurl=http://download.fedoraproject.org/pub/epel/$releasever/$basearch | |
#baseurl=https://packages.inverse.ca/SOGo/nightly/3/rhel/6/x86_64 | |
#failovermethod=priority | |
#enabled=1 | |
#enablegroups=1 | |
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever | |
""").substitute(releasever='6', basearch=config_opts['target_arch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment