#!/bin/bash

        # Repositories definition only usable with redpesk OS
        
cat << EOF > /etc/yum.repos.d/redpesk-bsp-renesas-gen3--redpesk-lts-arz-1.1.1-build.repo
[redpesk-bsp-renesas-gen3--redpesk-lts-arz-1.1.1-build]
name=redpesk-bsp-renesas-gen3--redpesk-lts-arz-1.1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-bsp-renesas-gen3/redpesk-lts-arz-1.1.1-release/latest/\$basearch/os
priority=1
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-lts-arz-1.1.1-build.repo
[redpesk-lts-arz-1.1.1-build]
name=redpesk-lts-arz-1.1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-lts-arz-1.1.1-release/latest/\$basearch/os
priority=2
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-config-build.repo
[redpesk-config-build]
name=redpesk-config-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-config-release/latest/\$basearch/os
priority=3
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF
