aboutsummaryrefslogtreecommitdiffstats
path: root/community/xe-guest-utilities/APKBUILD
blob: a04672f37b3ab5092ebb4ed070bcf4e17126bd4f (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
# Contributor: Cedric Schieli <cschieli@gmail.com>
# Maintainer: Cedric Schieli <cschieli@gmail.com>
pkgname=xe-guest-utilities
pkgver=6.6.80
pkgrel=1
pkgdesc="XenServer guest tools"
url="https://github.com/xenserver/xe-guest-utilities"
arch="x86 x86_64"
license="BSD-2-Clause"
depends=
makedepends="go udev"
install=
subpackages="${pkgname}-udev:udev:noarch"
options="!check"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/xenserver/${pkgname}/archive/v${pkgver}.tar.gz
	$pkgname.initd
	"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	make
}

package() {
	mkdir -p "$pkgdir"
	cp -ar "${builddir}/build/stage/usr/" "$pkgdir/"
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

udev() {
	pkgdesc="udev rules for CPU hotplugging when running as Xen DomU"
	depends="udev"

	udev_dir="etc/udev/rules.d"
	mkdir -p "${subpkgdir}/${udev_dir}"
	filename="z10_xen-vcpu-hotplug.rules"
	install -m644 -D "${builddir}/build/stage/${udev_dir}/${filename}" "${subpkgdir}/${udev_dir}/${filename}"
}

sha512sums="8b4519e5c23cb57b2ee86435cec8078912921d2c9c49f90eddba6f0f122d0dec0091690d5280bebb7af97c13095640b6cb77ea7e1a813d828dd31514096069aa  xe-guest-utilities-6.6.80.tar.gz
3e898b473f6e71ecc5b820717df0a460b31756b68f4bb9bf454df39f430e64ca5e33582c03bfea044d93f49937883fe9b6807c31dee72307750de670bfca8bcd  xe-guest-utilities.initd"