blob: 8eced744cb3c8b4ffaf557c405ae700a684a1aa0 (
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
|
# Contributor: Cedric Schieli <cschieli@gmail.com>
# Maintainer: Cedric Schieli <cschieli@gmail.com>
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
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
96e872ed89792f9d1b5cb51f8fdfd5f6 no_hard_links.patch"
|