# Contributor: Cedric Schieli # Maintainer: Cedric Schieli pkgname=xe-guest-utilities _major=5.5.0 _minor=458 pkgver=6.1.0 pkgrel=1 pkgdesc="XenServer guest tools" url="http://www.citrix.com" arch="all" 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 sed -i -e 's/-Werror//' uclibc-sources/tools/xenstore/Makefile } 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 85231dd847d9d696b1ce86e0954091ed no_hard_links.patch" sha256sums="c7328a4e207c1c0cecf852c53dec7733f9593487c399d49767bbbbcf88340b31 xe-guest-utilities_5.5.0-458.tar.gz ddd5b2c7f5c3357745108305d404e8f3bf20d29475edbaf36e4cc6b9d193ef69 xe-guest-utilities.initd c7bb18aad94a1de69984fb7de55390470acc7e83b3c4b6259c0b03a84fec14ca no_bash_dependency.patch a4e68e6c4ae90b5d1262846a601ae1561d19888201134012678a062c99010473 identify_alpine.patch 7d238dfdc08b996bdd2056fb6ed346ad60b219a2afbe63aae4adc1a15b8cfa40 fix_cflags.patch 37b521fb396c5410e7e40745a2bd93440479eebc9f9a5320eeef57395d735503 no_hard_links.patch" sha512sums="773dfd902166143d2fb0106312704dc516a34f6026d566f4d5b9e855bce0365288a98cad61c336aa26a639559f69a28038bc5c18379206006d11a3f10c8d3950 xe-guest-utilities_5.5.0-458.tar.gz ef535052e0625ebfa44d903132f831843b5dffdc553fc7e21bab1fb06d4043c75c61b2a95520b4b59573248c819129531c5f80ac80b87801947ca47ed9c6a5e4 xe-guest-utilities.initd 8823cccdcef84f8632a528a77fa338e71cfc098f05a2e8d858f335bbaa21c2eddc40696c5d526e2a7f86a2225e23a63df83274cbeb755a9626036724e9855724 no_bash_dependency.patch 94d0d3c6f082dc76e7a76b48d1ecfff7d38ba6da344d1fdfa94c7a8f6c23ca726bccc7b1c8934f41ab06bb9a6b8582aec7448a99d17598b19dc8f3a73f1cd08a identify_alpine.patch 0fc0bbff8f6b165f9ac9b89cccda5fbc46e37a20342028a770c43aa893c8c4dc2dbeddae7c005d13f500d96d12172176202298d1933094671323dc6f71732435 fix_cflags.patch 7245a92f8af446ec77eabed8a022c61f0c4874cc2dc569ef3ff944b6b398ac42ab284822c5f4886eb4a9a461f1ae2b02eb6c58560eb50af7616c92583d1612fc no_hard_links.patch"