aboutsummaryrefslogtreecommitdiffstats
path: root/main/xe-guest-utilities/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xe-guest-utilities/APKBUILD')
-rw-r--r--main/xe-guest-utilities/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/main/xe-guest-utilities/APKBUILD b/main/xe-guest-utilities/APKBUILD
new file mode 100644
index 0000000000..5b4e481058
--- /dev/null
+++ b/main/xe-guest-utilities/APKBUILD
@@ -0,0 +1,60 @@
+# Contributor: Cedric Schieli <cschieli@gmail.com>
+# 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"