don't rely on distribution gpg keys package for our keys

This commit is contained in:
Louis Abel 2024-04-15 09:26:57 -07:00
parent d695aad455
commit cb3e2b449b
Signed by: label
GPG Key ID: 2A6975660E424560
7 changed files with 37 additions and 21 deletions

View File

@ -3,3 +3,5 @@
This repo contains mock configs (in templated form) for Rocky Linux and its This repo contains mock configs (in templated form) for Rocky Linux and its
build roots. The use of these require a system that has mock installed from EPEL build roots. The use of these require a system that has mock installed from EPEL
or Fedora. or Fedora.
To deploy to your home directory, just run `bash deploy.sh`

View File

@ -13,6 +13,20 @@ RED_QUARTZ_ARCH=(x86_64 aarch64 ppc64le s390x)
# vars # vars
MOCK_DIR="${HOME}/.config/mock" MOCK_DIR="${HOME}/.config/mock"
# funcs
function is_in_path() {
builtin type -P "${1}"
}
is_in_path mock &> /dev/null
ret_val=$?
if [ "$ret_val" -ne "0" ]; then
echo "Mock was not found. Is it installed?"
echo "Please install using your package manager."
exit 34
fi
mkdir -p "${MOCK_DIR}/templates" mkdir -p "${MOCK_DIR}/templates"
cp etc/mock/templates/*.tpl "${MOCK_DIR}/templates" cp etc/mock/templates/*.tpl "${MOCK_DIR}/templates"

View File

@ -24,6 +24,6 @@ name=Rocky Linux $releasever - Devel (WARNING: UNSUPPORTED - FOR BUILDROOT USE O
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/Devel/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/Devel/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
""" """

View File

@ -24,34 +24,34 @@ name=Rocky Linux $releasever - Devel (WARNING: UNSUPPORTED - FOR BUILDROOT USE O
baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/Devel/$basearch/os/ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/Devel/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[baseos] [baseos]
name=Rocky Linux $releasever - BaseOS name=Rocky Linux $releasever - BaseOS
baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[appstream] [appstream]
name=Rocky Linux $releasever - AppStream name=Rocky Linux $releasever - AppStream
baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[powertools] [powertools]
name=Rocky Linux $releasever - PowerTools name=Rocky Linux $releasever - PowerTools
baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/PowerTools/$basearch/os/ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/PowerTools/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[extras] [extras]
name=Rocky Linux $releasever - Extras name=Rocky Linux $releasever - Extras
baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/os/ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
""" """

View File

@ -24,34 +24,34 @@ name=Rocky Linux $releasever - Devel (WARNING: UNSUPPORTED - FOR BUILDROOT USE O
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/Devel/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/Devel/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[baseos] [baseos]
name=Rocky Linux $releasever - BaseOS name=Rocky Linux $releasever - BaseOS
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/BaseOS/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[appstream] [appstream]
name=Rocky Linux $releasever - AppStream name=Rocky Linux $releasever - AppStream
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/AppStream/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/AppStream/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[powertools] [powertools]
name=Rocky Linux $releasever - PowerTools name=Rocky Linux $releasever - PowerTools
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/PowerTools/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/PowerTools/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
[extras] [extras]
name=Rocky Linux $releasever - Extras name=Rocky Linux $releasever - Extras
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/extras/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/extras/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r8/SOURCES/RPM-GPG-KEY-rockyofficial
""" """

View File

@ -24,7 +24,7 @@ name=Rocky Linux $releasever - Devel WARNING! FOR BUILDROOT ONLY DO NOT LEAVE EN
baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/devel/$basearch/os/ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/devel/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[baseos] [baseos]
name=Rocky Linux $releasever - BaseOS name=Rocky Linux $releasever - BaseOS
@ -32,7 +32,7 @@ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[appstream] [appstream]
name=Rocky Linux $releasever - AppStream name=Rocky Linux $releasever - AppStream
@ -40,7 +40,7 @@ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[crb] [crb]
name=Rocky Linux $releasever - CRB name=Rocky Linux $releasever - CRB
@ -48,7 +48,7 @@ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[extras] [extras]
name=Rocky Linux $releasever - Extras name=Rocky Linux $releasever - Extras
@ -56,6 +56,6 @@ baseurl=http://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
""" """

View File

@ -24,7 +24,7 @@ name=Rocky Linux $releasever - Devel WARNING! FOR BUILDROOT ONLY DO NOT LEAVE EN
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/devel/$basearch/os/ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/devel/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=1 enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[baseos] [baseos]
name=Rocky Linux $releasever - BaseOS name=Rocky Linux $releasever - BaseOS
@ -32,7 +32,7 @@ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[appstream] [appstream]
name=Rocky Linux $releasever - AppStream name=Rocky Linux $releasever - AppStream
@ -40,7 +40,7 @@ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/AppStream/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[crb] [crb]
name=Rocky Linux $releasever - CRB name=Rocky Linux $releasever - CRB
@ -48,7 +48,7 @@ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/CRB/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
[extras] [extras]
name=Rocky Linux $releasever - Extras name=Rocky Linux $releasever - Extras
@ -56,6 +56,6 @@ baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/extras/$basearch/os/
gpgcheck=1 gpgcheck=1
enabled=0 enabled=0
metadata_expire=6h metadata_expire=6h
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r9/SOURCES/RPM-GPG-KEY-Rocky-9
""" """