From 29027806d47fb26652308bb1265765a8db82c76f Mon Sep 17 00:00:00 2001 From: Cedric Schieli Date: Sun, 21 Mar 2010 12:32:03 +0000 Subject: main/xe-guest-utilities: new aport Signed-off-by: Cedric Schieli --- main/xe-guest-utilities/APKBUILD | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 main/xe-guest-utilities/APKBUILD (limited to 'main/xe-guest-utilities/APKBUILD') diff --git a/main/xe-guest-utilities/APKBUILD b/main/xe-guest-utilities/APKBUILD new file mode 100644 index 000000000..5b4e48105 --- /dev/null +++ b/main/xe-guest-utilities/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Cedric Schieli +# Maintainer: Citrix +pkgname=xe-guest-utilities +_major=5.5.0 +_minor=458 +pkgver=${_major}.${_minor} +pkgrel=0 +pkgdesc="XenServer guest tools" +url="http://www.citrix.com" +license="GPL" +depends= +makedepends= +install= +subpackages= +source="http://updates.vmd.citrix.com/XenServer/${_major}/debian/pool/main/x/${pkgname}/${pkgname}_${_major}-${_minor}.tar.gz + $pkgname.initd + no_bash_dependency.patch + identify_alpine.patch + fix_cflags.patch + no_hard_links.patch + " + +_builddir="$srcdir"/$pkgname-$_major + +prepare() { + cd "$_builddir" + + msg "Unpacking xenstore-sources..." + tar xjf xenstore-sources.tar.bz2 + + for i in ../*.diff ../*.patch; do + [ -f $i ] || continue + msg "Applying $i..." + patch -s -p1 -N < $i || return 1 + done + + ln -s ../../xen/include/public uclibc-sources/tools/xenstore/xen +} + +build() { + cd "$_builddir"/uclibc-sources/tools/xenstore + make XENSTORE_STATIC_CLIENTS=y clients +} + +package() { + cd "$_builddir" + install -m755 -D "$_builddir"/xe-linux-distribution "$pkgdir"/usr/sbin/xe-linux-distribution + install -m755 -D "$_builddir"/xe-update-guest-attrs "$pkgdir"/usr/sbin/xe-update-guest-attrs + install -m755 -D "$_builddir"/xe-daemon "$pkgdir"/usr/sbin/xe-daemon + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + cd uclibc-sources/tools/xenstore + make DESTDIR="$pkgdir" client-install +} + +md5sums="b15546f0b3883472140f35f5f8802a92 xe-guest-utilities_5.5.0-458.tar.gz +d2eefda7fb55926dddbf87f17989b16e xe-guest-utilities.initd +1fe4c6c4621982a87de97d897612eef7 no_bash_dependency.patch +aa129940379b312783dc314497f62042 identify_alpine.patch +cf32b9c90ce2e846d2221eaca0638929 fix_cflags.patch +96e872ed89792f9d1b5cb51f8fdfd5f6 no_hard_links.patch" -- cgit v1.2.3