summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevdog2019-11-19 17:19:58 -0600
committerKevdog2019-11-19 17:19:58 -0600
commitc6f9b082cbf46e397b73cea0903eaa5c2dfdfa1b (patch)
tree97c76bfeb2cd29c348f260505f1f435bf91faeee
parent2ee4395b0adc091c1b26d9464477201a9a9b1758 (diff)
downloadaur-c6f9b082cbf46e397b73cea0903eaa5c2dfdfa1b.tar.gz
Pushing new PKGBUILD
-rw-r--r--.SRCINFO12
-rw-r--r--LICENSE25
-rw-r--r--PKGBUILD80
-rw-r--r--README.md2
-rw-r--r--xe-guest-utilities.service9
5 files changed, 78 insertions, 50 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f903eea6602..97aaeab8151 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,14 @@
pkgbase = xe-guest-utilities-git
- pkgver = r40.83de571
+ pkgdesc = Citrix XenServer Tools
+ pkgver = 20190927.2f5d2e4
pkgrel = 1
url = https://github.com/xenserver/xe-guest-utilities
- arch = i686
arch = x86_64
- license = BSD
+ license = BSD-2
+ makedepends = go-pie
makedepends = git
- makedepends = go
source = git+https://github.com/xenserver/xe-guest-utilities.git
- source = xe-guest-utilities.service
- sha256sums = SKIP
- sha256sums = beda5dbcc03529959984267a1a9748439beda3fcd24db26589848aa7023333a7
+ sha1sums = SKIP
pkgname = xe-guest-utilities-git
pkgdesc = Writes distribution version information and IP address to XenStore
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000000..dc71f62c39c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,25 @@
+BSD 2-Clause License
+
+Copyright (c) 2019, kevdogg
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/PKGBUILD b/PKGBUILD
index 39b89f7d429..ed41151fd5f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,60 @@
-# Maintainer: Richard Sch├╝tz <rschuetz@uni-koblenz.de>
+# Maintainer: Kevin Hilton <>
pkgname=('xe-guest-utilities-git' 'xenstore-git')
-pkgver=r40.83de571
pkgrel=1
-arch=('i686' 'x86_64')
+pkgver=20190927.2f5d2e4
+pkgdesc="Citrix XenServer Tools"
+arch=('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')
+license=('BSD-2')
+makedepends=('go-pie' 'git')
+source=('git+https://github.com/xenserver/xe-guest-utilities.git')
+sha1sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgbase%-git}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "${srcdir}/${pkgbase%-git}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+prepare() {
+ cd "${srcdir}/${pkgbase%-git}"
+ export GOPATH="${srcdir}/${pkgbase%-git}"
+ go get golang.org/x/sys/unix
}
build() {
- cd "$srcdir/${pkgbase%-git}"
- make
+ cd "${srcdir}/${pkgbase%-git}"
+ export GOPATH="${srcdir}/${pkgbase%-git}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-trimpath"
+ 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"
+ 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 -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m0755 build/obj/xe-daemon "${pkgdir}/usr/share/oem/xs/xe-daemon"
+ install -D -m0755 mk/xe-linux-distribution "${pkgdir}/usr/share/oem/xs/xe-linux-distribution"
+ install -D -m0644 mk/xen-vcpu-hotplug.rules "${pkgdir}/usr/lib/udev/rules.d/10-xen-vcpu-hotplug.rules"
+ install -D -m0644 mk/xe-linux-distribution.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"
+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 -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m0755 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/README.md b/README.md
new file mode 100644
index 00000000000..2dc177022bd
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+# xe-guest-utilities-git
+Xe Guest Utilities for Arch
diff --git a/xe-guest-utilities.service b/xe-guest-utilities.service
deleted file mode 100644
index 476f183077c..00000000000
--- a/xe-guest-utilities.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[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