diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | LICENSE | 25 | ||||
-rw-r--r-- | PKGBUILD | 80 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | xe-guest-utilities.service | 9 |
5 files changed, 78 insertions, 50 deletions
@@ -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 000000000000..dc71f62c39cf --- /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. @@ -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 000000000000..2dc177022bdf --- /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 476f183077c7..000000000000 --- 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 |