diff options
author | Cedric Schieli <cschieli@gmail.com> | 2010-03-21 12:32:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-31 08:31:54 +0000 |
commit | 29027806d47fb26652308bb1265765a8db82c76f (patch) | |
tree | d6532423c12c4a6fa651e387cddc50d32e2c21e3 /main/xe-guest-utilities/APKBUILD | |
parent | 95e8811c0c11689b0a75ab12313dc5c45d0204b9 (diff) | |
download | aports-29027806d47fb26652308bb1265765a8db82c76f.tar.bz2 aports-29027806d47fb26652308bb1265765a8db82c76f.tar.xz |
main/xe-guest-utilities: new aport
Signed-off-by: Cedric Schieli <cschieli@gmail.com>
Diffstat (limited to 'main/xe-guest-utilities/APKBUILD')
-rw-r--r-- | main/xe-guest-utilities/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/main/xe-guest-utilities/APKBUILD b/main/xe-guest-utilities/APKBUILD new file mode 100644 index 000000000..5b4e48105 --- /dev/null +++ b/main/xe-guest-utilities/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Cedric Schieli <cschieli@gmail.com> +# Maintainer: Citrix +pkgname=xe-guest-utilities +_major=5.5.0 +_minor=458 +pkgver=${_major}.${_minor} +pkgrel=0 +pkgdesc="XenServer guest tools" +url="http://www.citrix.com" +license="GPL" +depends= +makedepends= +install= +subpackages= +source="http://updates.vmd.citrix.com/XenServer/${_major}/debian/pool/main/x/${pkgname}/${pkgname}_${_major}-${_minor}.tar.gz + $pkgname.initd + no_bash_dependency.patch + identify_alpine.patch + fix_cflags.patch + no_hard_links.patch + " + +_builddir="$srcdir"/$pkgname-$_major + +prepare() { + cd "$_builddir" + + msg "Unpacking xenstore-sources..." + tar xjf xenstore-sources.tar.bz2 + + for i in ../*.diff ../*.patch; do + [ -f $i ] || continue + msg "Applying $i..." + patch -s -p1 -N < $i || return 1 + done + + ln -s ../../xen/include/public uclibc-sources/tools/xenstore/xen +} + +build() { + cd "$_builddir"/uclibc-sources/tools/xenstore + make XENSTORE_STATIC_CLIENTS=y clients +} + +package() { + cd "$_builddir" + install -m755 -D "$_builddir"/xe-linux-distribution "$pkgdir"/usr/sbin/xe-linux-distribution + install -m755 -D "$_builddir"/xe-update-guest-attrs "$pkgdir"/usr/sbin/xe-update-guest-attrs + install -m755 -D "$_builddir"/xe-daemon "$pkgdir"/usr/sbin/xe-daemon + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + cd uclibc-sources/tools/xenstore + make DESTDIR="$pkgdir" client-install +} + +md5sums="b15546f0b3883472140f35f5f8802a92 xe-guest-utilities_5.5.0-458.tar.gz +d2eefda7fb55926dddbf87f17989b16e xe-guest-utilities.initd +1fe4c6c4621982a87de97d897612eef7 no_bash_dependency.patch +aa129940379b312783dc314497f62042 identify_alpine.patch +cf32b9c90ce2e846d2221eaca0638929 fix_cflags.patch +96e872ed89792f9d1b5cb51f8fdfd5f6 no_hard_links.patch" |