summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Schütz2016-09-25 16:43:23 +0200
committerRichard Schütz2016-09-25 16:43:23 +0200
commit2ee4395b0adc091c1b26d9464477201a9a9b1758 (patch)
treeb7e17567702763606f4c855220636f8763c9e109
downloadaur-2ee4395b0adc091c1b26d9464477201a9a9b1758.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD48
-rw-r--r--xe-guest-utilities.service9
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f903eea6602
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = xe-guest-utilities-git
+ pkgver = r40.83de571
+ pkgrel = 1
+ url = https://github.com/xenserver/xe-guest-utilities
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = go
+ source = git+https://github.com/xenserver/xe-guest-utilities.git
+ source = xe-guest-utilities.service
+ sha256sums = SKIP
+ sha256sums = beda5dbcc03529959984267a1a9748439beda3fcd24db26589848aa7023333a7
+
+pkgname = xe-guest-utilities-git
+ pkgdesc = Writes distribution version information and IP address to XenStore
+ depends = lsb-release
+ provides = xe-guest-utilities
+ conflicts = xe-guest-utilities
+
+pkgname = xenstore-git
+ pkgdesc = Utilities for interacting with XenStore from within a Xen virtual machine
+ provides = xenstore
+ conflicts = xenstore
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..39b89f7d429
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Richard Schütz <rschuetz@uni-koblenz.de>
+pkgname=('xe-guest-utilities-git' 'xenstore-git')
+pkgver=r40.83de571
+pkgrel=1
+arch=('i686' 'x86_64')
+url="https://github.com/xenserver/xe-guest-utilities"
+license=('BSD')
+makedepends=('git' 'go')
+source=('git+https://github.com/xenserver/xe-guest-utilities.git' 'xe-guest-utilities.service')
+sha256sums=('SKIP' 'beda5dbcc03529959984267a1a9748439beda3fcd24db26589848aa7023333a7')
+
+pkgver() {
+ cd "$srcdir/${pkgbase%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgbase%-git}"
+ make
+}
+
+package_xe-guest-utilities-git() {
+ pkgdesc="Writes distribution version information and IP address to XenStore"
+ depends=('lsb-release')
+ provides=("${pkgname%-git}")
+ conflicts=("${pkgname%-git}")
+
+ cd "$srcdir/${pkgbase%-git}"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m755 build/obj/xe-daemon "${pkgdir}/usr/bin/xe-daemon"
+ install -D -m755 mk/xe-linux-distribution "${pkgdir}/usr/bin/xe-linux-distribution"
+ install -D -m644 mk/xen-vcpu-hotplug.rules "${pkgdir}/usr/lib/udev/rules.d/10-xen-vcpu-hotplug.rules"
+ install -D -m644 "${srcdir}/xe-guest-utilities.service" "${pkgdir}/usr/lib/systemd/system/xe-guest-utilities.service"
+}
+
+package_xenstore-git() {
+ pkgdesc="Utilities for interacting with XenStore from within a Xen virtual machine"
+ provides=("${pkgname%-git}")
+ conflicts=("${pkgname%-git}")
+
+ cd "$srcdir/${pkgbase%-git}"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m755 build/obj/xenstore "${pkgdir}/usr/bin/xenstore"
+ ln -s xenstore "${pkgdir}/usr/bin/xenstore-exists"
+ ln -s xenstore "${pkgdir}/usr/bin/xenstore-read"
+ ln -s xenstore "${pkgdir}/usr/bin/xenstore-rm"
+ ln -s xenstore "${pkgdir}/usr/bin/xenstore-write"
+}
diff --git a/xe-guest-utilities.service b/xe-guest-utilities.service
new file mode 100644
index 00000000000..476f183077c
--- /dev/null
+++ b/xe-guest-utilities.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=XenServer Guest Utilities
+
+[Service]
+ExecStartPre=/usr/bin/xe-linux-distribution /var/cache/xe-linux-distribution
+ExecStart=/usr/bin/xe-daemon
+
+[Install]
+WantedBy=multi-user.target