Rebuild script : use SWH permalink
This commit is contained in:
parent
1c7676940f
commit
44a60168bc
|
@ -7,7 +7,7 @@ type -P docker >/dev/null && DOCKER=$(which docker)
|
|||
type -P podman >/dev/null && DOCKER=$(which podman)
|
||||
|
||||
ICINGA2_VERSION=2.13.7
|
||||
ICINGA2_SPECSOURCE='https://git.icinga.com/packaging/rpm-icinga2/-/raw/master/icinga2.spec'
|
||||
ICINGA2_SPECSOURCE='https://archive.softwareheritage.org/browse/content/sha1_git:6ad9b69b021045c50ada3f1b19f746bbeb51d949/raw/?filename=icinga2.spec'
|
||||
ICINGA_SELINUX_COMMON_SOURCE='https://packages.icinga.com/fedora/36/release/src/icinga-selinux-common/icinga-selinux-common-1.0.0-1.fc36.icinga.src.rpm'
|
||||
|
||||
ARCH=$(${DOCKER} run --rm docker.io/library/rockylinux:8 uname -i)
|
||||
|
@ -24,7 +24,7 @@ useradd -m dontbuildasroot -s /bin/bash
|
|||
runuser -l dontbuildasroot -c 'mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}'
|
||||
runuser -l dontbuildasroot -c 'rpm2cpio ${ICINGA_SELINUX_COMMON_SOURCE} | cpio -idmvD ~/rpmbuild/SPECS/'
|
||||
runuser -l dontbuildasroot -c 'curl -sSL -o ~/rpmbuild/SPECS/icinga2.spec ${ICINGA2_SPECSOURCE}'
|
||||
runuser -l dontbuildasroot -c 'sed -i "s|Version: 2.11.4|Version: ${ICINGA2_VERSION}|g" ~/rpmbuild/SPECS/icinga2.spec'
|
||||
runuser -l dontbuildasroot -c 'sed -i "s|Version: 2.13.5|Version: ${ICINGA2_VERSION}|g" ~/rpmbuild/SPECS/icinga2.spec'
|
||||
runuser -l dontbuildasroot -c 'spectool -g -R ~/rpmbuild/SPECS/icinga2.spec'
|
||||
runuser -l dontbuildasroot -c 'rpmbuild -ba ~/rpmbuild/SPECS/icinga-selinux-common.spec'
|
||||
runuser -l dontbuildasroot -c 'rpmbuild -ba ~/rpmbuild/SPECS/icinga2.spec'
|
||||
|
|
Loading…
Reference in a new issue