summaryrefslogtreecommitdiffstats
path: root/main/xe-guest-utilities/APKBUILD
blob: 69c098142e6a9046f618c95adc6d1693c8300bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Contributor: Cedric Schieli <cschieli@gmail.com>
# Maintainer: Cedric Schieli <cschieli@gmail.com>
pkgname=xe-guest-utilities
_major=5.5.0
_minor=458
pkgver=6.1.0
pkgrel=2
pkgdesc="XenServer guest tools"
url="http://www.citrix.com"
arch="x86 x86_64"
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
ff0085b3329fa864262a0f285cfc5d22  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
85d384aec7d2b8652d733bfc1d8164746f998612de18a89f29b759da14c55721  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
3e898b473f6e71ecc5b820717df0a460b31756b68f4bb9bf454df39f430e64ca5e33582c03bfea044d93f49937883fe9b6807c31dee72307750de670bfca8bcd  xe-guest-utilities.initd
8823cccdcef84f8632a528a77fa338e71cfc098f05a2e8d858f335bbaa21c2eddc40696c5d526e2a7f86a2225e23a63df83274cbeb755a9626036724e9855724  no_bash_dependency.patch
94d0d3c6f082dc76e7a76b48d1ecfff7d38ba6da344d1fdfa94c7a8f6c23ca726bccc7b1c8934f41ab06bb9a6b8582aec7448a99d17598b19dc8f3a73f1cd08a  identify_alpine.patch
0fc0bbff8f6b165f9ac9b89cccda5fbc46e37a20342028a770c43aa893c8c4dc2dbeddae7c005d13f500d96d12172176202298d1933094671323dc6f71732435  fix_cflags.patch
7245a92f8af446ec77eabed8a022c61f0c4874cc2dc569ef3ff944b6b398ac42ab284822c5f4886eb4a9a461f1ae2b02eb6c58560eb50af7616c92583d1612fc  no_hard_links.patch"