This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new 79ab1566b11 packaging: use latest cmk release link directly (#11429)
79ab1566b11 is described below
commit 79ab1566b110e66698dafbb01312a2bd7e359a71
Author: Abhishek Kumar <[email protected]>
AuthorDate: Fri Dec 19 20:41:00 2025 +0100
packaging: use latest cmk release link directly (#11429)
Instead listing all GIthub releases first and finding the latest one use
the direct link for the latest Github release.
Signed-off-by: Abhishek Kumar <[email protected]>
---
debian/rules | 3 +--
packaging/el8/cloud.spec | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index e7ff6759d44..da49ca55c1b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,6 @@ VERSION := $(shell grep '<version>' pom.xml | head -2 | tail -1
| cut -d'>' -f2
PACKAGE = $(shell dh_listpackages|head -n 1|cut -d '-' -f 1)
SYSCONFDIR = "/etc"
DESTDIR = "debian/tmp"
-CMK_REL := $(shell wget -O -
"https://api.github.com/repos/apache/cloudstack-cloudmonkey/releases"
2>/dev/null | jq -r '.[0].tag_name')
%:
dh $@ --with systemd
@@ -86,7 +85,7 @@ override_dh_auto_install:
rm -rf
$(DESTDIR)/usr/share/$(PACKAGE)-management/templates/systemvm/md5sum.txt
# Bundle cmk in cloudstack-management
- wget
https://github.com/apache/cloudstack-cloudmonkey/releases/download/$(CMK_REL)/cmk.linux.x86-64
-O $(DESTDIR)/usr/bin/cmk
+ wget
https://github.com/apache/cloudstack-cloudmonkey/releases/latest/download/cmk.linux.x86-64
-O $(DESTDIR)/usr/bin/cmk
chmod +x $(DESTDIR)/usr/bin/cmk
# nast hack for a couple of configuration files
diff --git a/packaging/el8/cloud.spec b/packaging/el8/cloud.spec
index 1e862ba0dc0..3d485112266 100644
--- a/packaging/el8/cloud.spec
+++ b/packaging/el8/cloud.spec
@@ -268,8 +268,7 @@ install -D
client/target/utilities/bin/cloud-setup-baremetal ${RPM_BUILD_ROOT}%{
install -D client/target/utilities/bin/cloud-sysvmadm
${RPM_BUILD_ROOT}%{_bindir}/%{name}-sysvmadm
install -D client/target/utilities/bin/cloud-update-xenserver-licenses
${RPM_BUILD_ROOT}%{_bindir}/%{name}-update-xenserver-licenses
# Bundle cmk in cloudstack-management
-CMK_REL=$(wget -O -
"https://api.github.com/repos/apache/cloudstack-cloudmonkey/releases"
2>/dev/null | jq -r '.[0].tag_name')
-wget
https://github.com/apache/cloudstack-cloudmonkey/releases/download/$CMK_REL/cmk.linux.x86-64
-O ${RPM_BUILD_ROOT}%{_bindir}/cmk
+wget
https://github.com/apache/cloudstack-cloudmonkey/releases/latest/download/cmk.linux.x86-64
-O ${RPM_BUILD_ROOT}%{_bindir}/cmk
chmod +x ${RPM_BUILD_ROOT}%{_bindir}/cmk
cp -r client/target/utilities/scripts/db/*
${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/setup