diff options
author | Phus Lu <phus.lu@citrix.com> | 2016-09-07 10:08:49 +0100 |
---|---|---|
committer | Phus Lu <phus.lu@citrix.com> | 2016-09-07 11:07:36 +0100 |
commit | 63ade322760289ac4b51587cd233b1a8d881d4c7 (patch) | |
tree | e51419a8f801eea31eb78e61d0ccbb5bdaf5b7ab /mk | |
parent | a5596c503d9cfd2eb2d7a3304ebeb6591596c239 (diff) | |
download | vyos-xe-guest-utilities-63ade322760289ac4b51587cd233b1a8d881d4c7.tar.gz vyos-xe-guest-utilities-63ade322760289ac4b51587cd233b1a8d881d4c7.zip |
CA-220438: Minor improvements for xe-guest-utilities
1. Package architecture-specific binaries for debian
2. Mute xe-daemon logs unless debug flag is set
3. Correct tgz packaging
3. Let xe-linux-distribution handle its PID file safely
Signed-off-by: Phus Lu <phus.lu@citrix.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/Makefile.deb | 7 | ||||
-rw-r--r-- | mk/Makefile.tgz | 2 | ||||
-rw-r--r-- | mk/debian/control | 2 | ||||
-rw-r--r-- | mk/xe-linux-distribution.init | 3 |
4 files changed, 9 insertions, 5 deletions
diff --git a/mk/Makefile.deb b/mk/Makefile.deb index 496f332..bd464f2 100644 --- a/mk/Makefile.deb +++ b/mk/Makefile.deb @@ -115,7 +115,8 @@ $(MY_OUTPUT_DIR)/xe-guest-utilities.%.inc: $(MY_OUTPUT_DIR)/.dirstamp ( echo XE_GUEST_UTILITIES_PKG_NAME := xe-guest-utilities ; \ echo XE_GUEST_UTILITIES_PKG_VERSION := $(VERSION)-$(RELEASE) ; \ echo XE_GUEST_UTILITIES_PKG_ARCH := $* ; \ - echo XE_GUEST_UTILITIES_PKG_FILE := $(DEBPOOLDIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_all.deb ; \ + echo XE_GUEST_UTILITIES_PKG_FILE_i386 := $(DEBPOOLDIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_i386.deb ; \ + echo XE_GUEST_UTILITIES_PKG_FILE_amd64 := $(DEBPOOLDIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_amd64.deb ; \ )>$@ $(DEB_BUILT_COOKIE): $(SOURCES) @@ -126,7 +127,7 @@ $(DEB_BUILT_COOKIE): $(SOURCES) cp $(MY_OBJ_DIR)/$(PACKAGE)_$(VERSION)-$(RELEASE).tar.gz $(MY_OUTPUT_DIR)/$(DEBPOOLDIR) set -xe ; for arch in $(ARCHS) ; do \ ( cd $(SOURCEDIR) && dpkg-buildpackage -Zgzip -b -a$${arch} -us -uc ) ; \ - cp $(MY_OBJ_DIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_all.deb $(MY_OUTPUT_DIR)/$(DEBPOOLDIR) ; \ + cp $(MY_OBJ_DIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_$${arch}.deb $(MY_OUTPUT_DIR)/$(DEBPOOLDIR) ; \ done touch $@ @@ -163,7 +164,7 @@ $(TOOLS_TARBALL): $(DEB_BUILT_COOKIE) mkdir -p $(INSTALL_DIR) rm -f $(INSTALL_DIR)/versions.deb $(foreach arch,$(ARCHS),\ - echo XE_GUEST_UTILITIES_PKG_FILE_$(arch)=\'xe-guest-utilities_$(VERSION)-$(RELEASE)_all.deb\' >> $(INSTALL_DIR)/versions.deb ; cp -v $(MY_OBJ_DIR)/xe-guest-utilities_$(VERSION)-$(RELEASE)_all.deb $(INSTALL_DIR)/ ;) + echo XE_GUEST_UTILITIES_PKG_FILE_$(arch)=\'xe-guest-utilities_$(VERSION)-$(RELEASE)_$(arch).deb\' >> $(INSTALL_DIR)/versions.deb ; cp -v $(MY_OBJ_DIR)/xe-guest-utilities_$(VERSION)-$(RELEASE)_$(arch).deb $(INSTALL_DIR)/ ;) tar -C $(STAGING_DIR) -cjf $@ . $(GOROOT): diff --git a/mk/Makefile.tgz b/mk/Makefile.tgz index 7b19f26..6a13119 100644 --- a/mk/Makefile.tgz +++ b/mk/Makefile.tgz @@ -116,7 +116,7 @@ $(TGZ_BUILT_COOKIE): $(SOURCES) install -d $(DESTDIR)/usr/share/doc/$(PACKAGE)_$(VERSION)/ ; \ install -m 644 $(REPO)/LICENSE $(DESTDIR)/usr/share/doc/$(PACKAGE)_$(VERSION)/LICENSE ; \ cd $(DESTDIR) ; \ - tar cvf $(MY_OBJ_DIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_all.tgz * \ + tar czvf $(MY_OBJ_DIR)/$(PACKAGE)_$(VERSION)-$(RELEASE)_all.tgz * \ )>$@ $(MY_SOURCES)/MANIFEST: $(MY_SOURCES_DIRSTAMP) diff --git a/mk/debian/control b/mk/debian/control index 4ffdb45..7d00985 100644 --- a/mk/debian/control +++ b/mk/debian/control @@ -6,7 +6,7 @@ Standards-Version: 3.7.2 Build-Depends: debhelper (>= 4.0.0) Package: xe-guest-utilities -Architecture: all +Architecture: any Conflicts: xengmond Replaces: xengmond Description: @BRAND_GUEST@ Monitoring Scripts diff --git a/mk/xe-linux-distribution.init b/mk/xe-linux-distribution.init index 8135988..7c1bcf4 100644 --- a/mk/xe-linux-distribution.init +++ b/mk/xe-linux-distribution.init @@ -80,7 +80,10 @@ start() stop() { + [ ! -f "${XE_DAEMON_PIDFILE}" ] && return 0 action $"Stopping xe daemon: " kill -TERM $(cat ${XE_DAEMON_PIDFILE}) + rm -f "${XE_DAEMON_PIDFILE}" + return 0 } status() |