hhorak / centos / cbs-tools

Forked from centos/cbs-tools 4 years ago
Clone

Blame scripts/bootstrap.sh

Thomas Oulevey a6f36a
#!/bin/bash
Thomas Oulevey a6f36a
Thomas Oulevey a6f36a
# Create external-repos
Thomas Oulevey a6f36a
Thomas Oulevey de8c41
koji add-external-repo centos6-os "http://mirror.centos.org/centos/6/os/\$arch/"
Thomas Oulevey a6f36a
koji add-external-repo centos6-updates "http://mirror.centos.org/centos/6/updates/\$arch/"
Thomas Oulevey a6f36a
koji add-external-repo centos6-extras "http://mirror.centos.org/centos/6/extras/\$arch/"
Thomas Oulevey a6f36a
Thomas Oulevey de8c41
koji add-external-repo centos7-os "http://mirror.centos.org/centos/7/os/\$arch/"
Thomas Oulevey a6f36a
koji add-external-repo centos7-updates "http://mirror.centos.org/centos/7/updates/\$arch/"
Thomas Oulevey a6f36a
koji add-external-repo centos7-extras "http://mirror.centos.org/centos/7/extras/\$arch/"
Thomas Oulevey a6f36a
koji add-external-repo centos7-cr "http://mirror.centos.org/centos/7/cr/\$arch/"
Thomas Oulevey a6f36a
Thomas Oulevey a6f36a
# Create buildsys tags
Thomas Oulevey a6f36a
Thomas Oulevey a6f36a
koji add-tag buildsys6
Thomas Oulevey a6f36a
koji add-tag --arches "x86_64" buildsys6-build
Thomas Oulevey a6f36a
koji add-external-repo --tag=buildsys6-build centos6-updates
Thomas Oulevey a6f36a
koji add-external-repo --tag=buildsys6-build centos6-os
Thomas Oulevey a6f36a
koji add-group  buildsys6-build build
Thomas Oulevey a6f36a
koji add-group  buildsys6-build srpm-build
Thomas Oulevey a6f36a
koji add-group-pkg buildsys6-build build bash bzip2 coreutils cpio diffutils redhat-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which tar buildsys-tools
Thomas Oulevey a6f36a
koji add-group-pkg buildsys6-build srpm-build srpm-build bash buildsys-macros curl cvs redhat-release gnupg make redhat-rpm-config rpm-build shadow-utils tar buildsys-tools
Thomas Oulevey a6f36a
koji add-target buildsys6 buildsys6-build buildsys6
Thomas Oulevey a6f36a
Thomas Oulevey a6f36a
Thomas Oulevey a6f36a
koji add-tag buildsys7
Thomas Oulevey a6f36a
koji add-tag --arches "x86_64" buildsys7-build
Thomas Oulevey a6f36a
koji add-external-repo --tag=buildsys7-build centos7-updates
Thomas Oulevey a6f36a
koji add-external-repo --tag=buildsys7-build centos7-os
Thomas Oulevey a6f36a
koji add-group  buildsys7-build build
Thomas Oulevey a6f36a
koji add-group  buildsys7-build srpm-build
Thomas Oulevey a6f36a
koji add-group-pkg buildsys7-build build bash bzip2 coreutils cpio diffutils redhat-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which tar buildsys-tools
Thomas Oulevey a6f36a
koji add-group-pkg buildsys7-build srpm-build srpm-build bash buildsys-macros curl cvs redhat-release gnupg make redhat-rpm-config rpm-build shadow-utils tar buildsys-tools
Thomas Oulevey a6f36a
koji add-target buildsys7 buildsys7-build buildsys7
Thomas Oulevey a6f36a
Thomas Oulevey de8c41
# Whitelist buildsys-macros packages
Thomas Oulevey de8c41
Thomas Oulevey de8c41
koji add-pkg --owner=koji buildsys7 buildsys-macros-el7
Thomas Oulevey de8c41
koji add-pkg --owner=koji buildsys7 buildsys-macros-el7.centos
Thomas Oulevey de8c41
koji add-pkg --owner=koji buildsys6 buildsys-macros-el6
Thomas Oulevey de8c41
koji add-pkg --owner=koji buildsys6 buildsys-macros-el6.centos
Thomas Oulevey de8c41
Thomas Oulevey a6f36a
# Create fake sigs
Thomas Oulevey a6f36a
Thomas Oulevey a6f36a
/opt/cbs-tools/scripts/create_sig.sh -s oranges -p test -r 10 -d 6 -t el6 -x
Thomas Oulevey a6f36a
/opt/cbs-tools/scripts/create_sig.sh -s oranges -p test -r 10 -d 7 -t el7 -x
Thomas Oulevey a6f36a
Thomas Oulevey e530c7
echo "Please now add a builder with a createrepo channel:"
Thomas Oulevey e530c7
echo "e.g : koji add-host <host>.centos.org x86_64 i386"
Thomas Oulevey e530c7
echo "      koji add-host-to-channel <host>.centos.org createrepo"