summaryrefslogtreecommitdiff
path: root/kernels/xe-guest-utilities/PKGBUILD
blob: a982f40d286c7bae276dac8ccc5c7ec3163ea248 (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.2
pkgrel=1
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'
	    'linux-libre-lts-xen: DomU kernel for i686 (long time supported)')
makedepends=('rpmextract')
source=(ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-${pkgver}-756.i386.rpm
	ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-xenstore-${pkgver}-756.i386.rpm
	ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-${pkgver}-756.x86_64.rpm
	ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-xenstore-${pkgver}-756.x86_64.rpm
	xe-guest-utilities-parabola.patch
	ip_address.patch)

md5sums=('7f1b670b6fec6f55764bc19ead41b07d'
         '7d9a2c9db65d76f93a5df709989915af'
         '953e858c03570105ea855fc3b32d43ff'
         '5cb44deb684f7069b05052ed92d0ac22'
         '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
}