diff options
Diffstat (limited to 'mk/debian')
-rw-r--r-- | mk/debian/changelog | 5 | ||||
-rw-r--r-- | mk/debian/compat | 1 | ||||
-rw-r--r-- | mk/debian/control | 15 | ||||
-rw-r--r-- | mk/debian/copyright | 1 | ||||
-rw-r--r-- | mk/debian/overrides | 1 | ||||
-rw-r--r-- | mk/debian/rules | 55 | ||||
-rw-r--r-- | mk/debian/xe-guest-utilities.dirs | 3 | ||||
-rwxr-xr-x | mk/debian/xe-guest-utilities.postinst | 20 | ||||
-rwxr-xr-x | mk/debian/xe-guest-utilities.prerm | 7 |
9 files changed, 108 insertions, 0 deletions
diff --git a/mk/debian/changelog b/mk/debian/changelog new file mode 100644 index 0000000..c348f51 --- /dev/null +++ b/mk/debian/changelog @@ -0,0 +1,5 @@ +xe-guest-utilities (@VERSION@-@RELEASE@) etch; urgency=low + + * Build for @PRODUCT_NAME@ @PRODUCT_VERSION@-@BUILD_NUMBER@. + + -- @COMPANY_NAME_LEGAL@ <www.citrix.com> @822DATE@ diff --git a/mk/debian/compat b/mk/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/mk/debian/compat @@ -0,0 +1 @@ +5 diff --git a/mk/debian/control b/mk/debian/control new file mode 100644 index 0000000..4ffdb45 --- /dev/null +++ b/mk/debian/control @@ -0,0 +1,15 @@ +Source: xe-guest-utilities +Section: main/admin +Priority: optional +Maintainer: Citrix Systems, Inc. <www.citrix.com> +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 4.0.0) + +Package: xe-guest-utilities +Architecture: all +Conflicts: xengmond +Replaces: xengmond +Description: @BRAND_GUEST@ Monitoring Scripts + Scripts for monitoring @BRAND_GUESTS@. + . + Writes distribution version information and IP address to XenStore. diff --git a/mk/debian/copyright b/mk/debian/copyright new file mode 100644 index 0000000..0e9cb3d --- /dev/null +++ b/mk/debian/copyright @@ -0,0 +1 @@ +See the LICENSE file in the /usr/share/doc/xe-guest-utilities diff --git a/mk/debian/overrides b/mk/debian/overrides new file mode 100644 index 0000000..e1ed710 --- /dev/null +++ b/mk/debian/overrides @@ -0,0 +1 @@ +xengmond optional non-free/admin diff --git a/mk/debian/rules b/mk/debian/rules new file mode 100644 index 0000000..061411d --- /dev/null +++ b/mk/debian/rules @@ -0,0 +1,55 @@ +#!/usr/bin/make -f + +build: build-stamp +build-stamp: + touch $@ + +clean: + dh_testdir + dh_testroot + + dh_clean + +binary: binary-arch binary-indep + +binary-arch: DESTDIR=debian/xe-guest-utilities +binary-arch: build + dh_testdir + dh_testroot + + dh_clean -k + + dh_installdirs + + cp xe-linux-distribution $(DESTDIR)/usr/sbin/xe-linux-distribution + chmod 0755 $(DESTDIR)/usr/sbin/xe-linux-distribution + + install -d $(DESTDIR)/usr/bin/ + install -m 755 xenstore $(DESTDIR)/usr/bin/xenstore + ln -s /usr/bin/xenstore $(DESTDIR)/usr/bin/xenstore-read + ln -s /usr/bin/xenstore $(DESTDIR)/usr/bin/xenstore-write + ln -s /usr/bin/xenstore $(DESTDIR)/usr/bin/xenstore-exists + ln -s /usr/bin/xenstore $(DESTDIR)/usr/bin/xenstore-rm + + cp xe-daemon $(DESTDIR)/usr/sbin/xe-daemon + chmod 0755 $(DESTDIR)/usr/sbin/xe-daemon + + cp xen-vcpu-hotplug.rules $(DESTDIR)/lib/udev/rules.d/z10_xen-vcpu-hotplug.rules + + dh_installinit --name xe-linux-distribution + + dh_install citrix.list /usr/share/xe-guest-utilities + + dh_installdocs LICENSE + + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_shlibdeps + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: diff --git a/mk/debian/xe-guest-utilities.dirs b/mk/debian/xe-guest-utilities.dirs new file mode 100644 index 0000000..f7cc935 --- /dev/null +++ b/mk/debian/xe-guest-utilities.dirs @@ -0,0 +1,3 @@ +etc/init.d +lib/udev/rules.d +usr/sbin diff --git a/mk/debian/xe-guest-utilities.postinst b/mk/debian/xe-guest-utilities.postinst new file mode 100755 index 0000000..208aaa0 --- /dev/null +++ b/mk/debian/xe-guest-utilities.postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +#DEBHELPER# + +if [ X"$1" = X"configure" ] ; then + eval $(/usr/sbin/xe-linux-distribution) + if [ -d /etc/apt/sources.list.d ] && [ X"${os_distro}" = X"debian" ] \ + && [ -n "${os_majorver}" ] && [ -n "${os_minorver}" ] ; then + case "${os_majorver}${os_minorver}" in + 50) distro="lenny" ;; + *) ;; + esac + if [ -n "${distro}" ] ; then + rm -f /etc/apt/sources.list.d/xensource.list # contains deprecated urls + sed -e "s/@DISTRO@/${distro}/g" \ + < /usr/share/xe-guest-utilities/citrix.list \ + > /etc/apt/sources.list.d/citrix.list + fi + fi +fi diff --git a/mk/debian/xe-guest-utilities.prerm b/mk/debian/xe-guest-utilities.prerm new file mode 100755 index 0000000..68f2184 --- /dev/null +++ b/mk/debian/xe-guest-utilities.prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ X"$1" = X"remove" ] && [ -e /etc/apt/sources.list.d/citrix.list ] ; then + rm /etc/apt/sources.list.d/citrix.list +fi + +#DEBHELPER# |