File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ VERSION := $(shell grep '<version>' pom.xml | head -2 | tail -1 | cut -d'>' -f2
44PACKAGE = $(shell dh_listpackages|head -n 1|cut -d '-' -f 1)
55SYSCONFDIR = "/etc"
66DESTDIR = "debian/tmp"
7- CMK_REL := $(shell wget -O - "https://api.github.com/repos/apache/cloudstack-cloudmonkey/releases" 2>/dev/null | jq -r '.[0].tag_name')
87
98% :
109 dh $@ --with systemd
@@ -90,7 +89,7 @@ override_dh_auto_install:
9089 rm -rf $(DESTDIR)/usr/share/$(PACKAGE)-management/templates/systemvm/md5sum.txt
9190
9291 # Bundle cmk in cloudstack-management
93- wget https://github.com/apache/cloudstack-cloudmonkey/releases/download/$(CMK_REL) /cmk.linux.x86-64 -O $(DESTDIR)/usr/bin/cmk
92+ wget https://github.com/apache/cloudstack-cloudmonkey/releases/latest/download /cmk.linux.x86-64 -O $(DESTDIR)/usr/bin/cmk
9493 chmod +x $(DESTDIR)/usr/bin/cmk
9594
9695 # nast hack for a couple of configuration files
Original file line number Diff line number Diff line change @@ -269,8 +269,7 @@ install -D client/target/utilities/bin/cloud-setup-baremetal ${RPM_BUILD_ROOT}%{
269269install -D client/target/utilities/bin/cloud-sysvmadm ${RPM_BUILD_ROOT}%{_bindir }/%{name }-sysvmadm
270270install -D client/target/utilities/bin/cloud-update-xenserver-licenses ${RPM_BUILD_ROOT}%{_bindir }/%{name }-update-xenserver-licenses
271271# Bundle cmk in cloudstack-management
272- CMK_REL= $(wget -O - "https://api.github.com/repos/apache/cloudstack-cloudmonkey/releases" 2> /dev/null | jq -r '.[0].tag_name')
273- wget https://github.com/apache/cloudstack-cloudmonkey/releases/download/$CMK_REL/cmk.linux.x86-64 -O ${RPM_BUILD_ROOT}%{_bindir }/cmk
272+ wget https://github.com/apache/cloudstack-cloudmonkey/releases/latest/download/cmk.linux.x86-64 -O ${RPM_BUILD_ROOT}%{_bindir }/cmk
274273chmod +x ${RPM_BUILD_ROOT}%{_bindir }/cmk
275274
276275cp -r client/target/utilities/scripts/db/* ${RPM_BUILD_ROOT}%{_datadir }/%{name }-management/setup
You can’t perform that action at this time.
0 commit comments