blob: b866a6f5849d42a939f155011fec2526427cded3 (
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
|
# Contributor: Krzysztof Raczkowski <raczkow@gnu-tech.pl>
# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy>
pkgname=xe-guest-utilities
pkgver=6.0.0
pkgrel=5
pkgdesc="Citrix XenServer Tools"
arch=('i686' 'x86_64')
url="http://citrix.com/English/ps2/products/product.asp?contentID=683148&ntref=hp_nav_US"
license=('GPL' 'LGPL')
optdepends=('linux-libre: DomU kernel for x86_64'
'linux-libre-xen: DomU kernel for i686'
'kernel-libre-lts: DomU kernel for i686 (long time supported)')
makedepends=('rpmextract')
source=(ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-${pkgver}-743.i386.rpm
ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-xenstore-${pkgver}-743.i386.rpm
ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-${pkgver}-743.x86_64.rpm
ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-xenstore-${pkgver}-743.x86_64.rpm
xe-guest-utilities-parabola.patch
ip_address.patch)
md5sums=('894d33028b2712650be324b7ba01c6c4'
'e100f97421ff522cb228aa749881a082'
'ffaf02afa2105d32e011a32c80921256'
'9b9570b5cc27832df303c8ef9cd11d36'
'0d8a8ebe124d585a2b101150df8f5ff7'
'86b4a69b412f874bf5b4db8ac8858644')
build() {
cd $startdir/src
[ $CARCH == "i686" ] && (
rpmextract.sh xe-guest-utilities-*.i386.rpm && \
rpmextract.sh xe-guest-utilities-xenstore-*.i386.rpm || return 1
)
[ $CARCH == "x86_64" ] && (
rpmextract.sh xe-guest-utilities-*.x86_64.rpm && \
rpmextract.sh xe-guest-utilities-xenstore-*.x86_64.rpm || return 1
)
patch -Np1 -i ${srcdir}/xe-guest-utilities-parabola.patch || return 1
patch -Np1 -i ${srcdir}/ip_address.patch || return 1
cp -ra ${srcdir}/{etc,usr} ${pkgdir}/ || return 1
mv ${pkgdir}/etc/init.d ${pkgdir}/etc/rc.d
}
|