# Contributor: Cedric Schieli # Maintainer: Cedric Schieli global pkgname := 'xe-guest-utilities' global _major := '5.5.0' global _minor := '458' global pkgver := '6.1.0' global pkgrel := '2' global pkgdesc := '"XenServer guest tools'" global url := '"http://www.citrix.com'" global arch := '"x86 x86_64'" global license := '"GPL'" global depends := '' global makedepends := '' global install := '' global subpackages := '' global 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 "" global _builddir := ""$srcdir"/$pkgname-$_major" proc prepare { cd $_builddir msg "Unpacking xenstore-sources..." tar xjf xenstore-sources.tar.bz2 for i in [../*.diff ../*.patch] { test -f $i || continue msg "Applying $i..." patch -s -p1 -N < $i || return 1 } ln -s ../../xen/include/public uclibc-sources/tools/xenstore/xen sed -i -e 's/-Werror//' uclibc-sources/tools/xenstore/Makefile } proc build { cd "$_builddir"/uclibc-sources/tools/xenstore make XENSTORE_STATIC_CLIENTS=y clients } proc 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 } global md5sums := '"b15546f0b3883472140f35f5f8802a92 xe-guest-utilities_5.5.0-458.tar.gz ff0085b3329fa864262a0f285cfc5d22 xe-guest-utilities.initd 1fe4c6c4621982a87de97d897612eef7 no_bash_dependency.patch aa129940379b312783dc314497f62042 identify_alpine.patch cf32b9c90ce2e846d2221eaca0638929 fix_cflags.patch 85231dd847d9d696b1ce86e0954091ed no_hard_links.patch'" global sha256sums := '"c7328a4e207c1c0cecf852c53dec7733f9593487c399d49767bbbbcf88340b31 xe-guest-utilities_5.5.0-458.tar.gz 85d384aec7d2b8652d733bfc1d8164746f998612de18a89f29b759da14c55721 xe-guest-utilities.initd c7bb18aad94a1de69984fb7de55390470acc7e83b3c4b6259c0b03a84fec14ca no_bash_dependency.patch a4e68e6c4ae90b5d1262846a601ae1561d19888201134012678a062c99010473 identify_alpine.patch 7d238dfdc08b996bdd2056fb6ed346ad60b219a2afbe63aae4adc1a15b8cfa40 fix_cflags.patch 37b521fb396c5410e7e40745a2bd93440479eebc9f9a5320eeef57395d735503 no_hard_links.patch'" global sha512sums := '"773dfd902166143d2fb0106312704dc516a34f6026d566f4d5b9e855bce0365288a98cad61c336aa26a639559f69a28038bc5c18379206006d11a3f10c8d3950 xe-guest-utilities_5.5.0-458.tar.gz 3e898b473f6e71ecc5b820717df0a460b31756b68f4bb9bf454df39f430e64ca5e33582c03bfea044d93f49937883fe9b6807c31dee72307750de670bfca8bcd xe-guest-utilities.initd 8823cccdcef84f8632a528a77fa338e71cfc098f05a2e8d858f335bbaa21c2eddc40696c5d526e2a7f86a2225e23a63df83274cbeb755a9626036724e9855724 no_bash_dependency.patch 94d0d3c6f082dc76e7a76b48d1ecfff7d38ba6da344d1fdfa94c7a8f6c23ca726bccc7b1c8934f41ab06bb9a6b8582aec7448a99d17598b19dc8f3a73f1cd08a identify_alpine.patch 0fc0bbff8f6b165f9ac9b89cccda5fbc46e37a20342028a770c43aa893c8c4dc2dbeddae7c005d13f500d96d12172176202298d1933094671323dc6f71732435 fix_cflags.patch 7245a92f8af446ec77eabed8a022c61f0c4874cc2dc569ef3ff944b6b398ac42ab284822c5f4886eb4a9a461f1ae2b02eb6c58560eb50af7616c92583d1612fc no_hard_links.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(xe-guest-utilities)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_major) op:Equal rhs:{(5.5.0)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_minor) op:Equal rhs:{(458)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(6.1.0)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(2)} spids:[18])] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("XenServer guest tools"))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.citrix.com"))} spids: [26] ) ] spids: [26] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ ("x86 x86_64"))} spids:[31])] spids: [31] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL))} spids:[36])] spids: [36] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(SQ )} spids:[41])] spids: [41] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:makedepends) op:Equal rhs:{(SQ )} spids:[43])] spids: [43] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[45])] spids: [45] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:subpackages) op:Equal rhs:{(SQ )} spids:[47])] spids: [47] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://updates.vmd.citrix.com/XenServer/") (${ VSub_Name _major) (/debian/pool/main/x/) (${ VSub_Name pkgname) (/) (${ VSub_Name pkgname) (_) (${ VSub_Name _major) (-) (${ VSub_Name _minor) (".tar.gz\n") ("\t") ($ VSub_Name "$pkgname") (".initd\n") ("\tno_bash_dependency.patch\n") ("\tidentify_alpine.patch\n") ("\tfix_cflags.patch\n") ("\tno_hard_links.patch\n") ("\t") ) } spids: [49] ) ] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$_major")} spids: [83] ) ] spids: [83] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(msg)} {(DQ ("Unpacking xenstore-sources..."))}) (C {(tar)} {(xjf)} {(xenstore-sources.tar.bz2)}) (ForEach iter_name: i iter_words: [{(../) (Lit_Other "*") (.diff)} {(../) (Lit_Other "*") (.patch)}] do_arg_iter: False body: (DoGroup children: [ (AndOr children: [ (C {(Lit_Other "[")} {(-f)} {($ VSub_Name "$i")} {(Lit_Other "]")}) (ControlFlow token:) ] op_id: Op_DPipe ) (C {(msg)} {(DQ ("Applying ") ($ VSub_Name "$i") (...))}) (AndOr children: [ (SimpleCommand words: [{(patch)} {(-s)} {(-p1)} {(-N)}] redirects: [ (Redir op_id: Redir_Less fd: -1 arg_word: {($ VSub_Name "$i")} spids: [171] ) ] ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [138 182] ) spids: [128 136] ) (C {(ln)} {(-s)} {(../../xen/include/public)} {(uclibc-sources/tools/xenstore/xen)}) (C {(sed)} {(-i)} {(-e)} {(SQ )} {(uclibc-sources/tools/xenstore/Makefile)}) ] spids: [97] ) spids: [93 96] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir")) (/uclibc-sources/tools/xenstore)}) (C {(make)} {(Lit_VarLike "XENSTORE_STATIC_CLIENTS=") (y)} {(clients)}) ] spids: [214] ) spids: [210 213] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(install)} {(-m755)} {(-D)} {(DQ ($ VSub_Name "$_builddir")) (/xe-linux-distribution)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/sbin/xe-linux-distribution)} ) (C {(install)} {(-m755)} {(-D)} {(DQ ($ VSub_Name "$_builddir")) (/xe-update-guest-attrs)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/sbin/xe-update-guest-attrs)} ) (C {(install)} {(-m755)} {(-D)} {(DQ ($ VSub_Name "$_builddir")) (/xe-daemon)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/sbin/xe-daemon)} ) (C {(install)} {(-m755)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/) ($ VSub_Name "$pkgname")} ) (C {(cd)} {(uclibc-sources/tools/xenstore)}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(client-install)}) ] spids: [239] ) spids: [235 238] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("b15546f0b3883472140f35f5f8802a92 xe-guest-utilities_5.5.0-458.tar.gz\n") ("ff0085b3329fa864262a0f285cfc5d22 xe-guest-utilities.initd\n") ("1fe4c6c4621982a87de97d897612eef7 no_bash_dependency.patch\n") ("aa129940379b312783dc314497f62042 identify_alpine.patch\n") ("cf32b9c90ce2e846d2221eaca0638929 fix_cflags.patch\n") ("85231dd847d9d696b1ce86e0954091ed no_hard_links.patch") ) } spids: [337] ) ] spids: [337] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "c7328a4e207c1c0cecf852c53dec7733f9593487c399d49767bbbbcf88340b31 xe-guest-utilities_5.5.0-458.tar.gz\n" ) ("85d384aec7d2b8652d733bfc1d8164746f998612de18a89f29b759da14c55721 xe-guest-utilities.initd\n") ( "c7bb18aad94a1de69984fb7de55390470acc7e83b3c4b6259c0b03a84fec14ca no_bash_dependency.patch\n" ) ("a4e68e6c4ae90b5d1262846a601ae1561d19888201134012678a062c99010473 identify_alpine.patch\n") ( "7d238dfdc08b996bdd2056fb6ed346ad60b219a2afbe63aae4adc1a15b8cfa40 fix_cflags.patch\n" ) ("37b521fb396c5410e7e40745a2bd93440479eebc9f9a5320eeef57395d735503 no_hard_links.patch") ) } spids: [347] ) ] spids: [347] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "773dfd902166143d2fb0106312704dc516a34f6026d566f4d5b9e855bce0365288a98cad61c336aa26a639559f69a28038bc5c18379206006d11a3f10c8d3950 xe-guest-utilities_5.5.0-458.tar.gz\n" ) ( "3e898b473f6e71ecc5b820717df0a460b31756b68f4bb9bf454df39f430e64ca5e33582c03bfea044d93f49937883fe9b6807c31dee72307750de670bfca8bcd xe-guest-utilities.initd\n" ) ( "8823cccdcef84f8632a528a77fa338e71cfc098f05a2e8d858f335bbaa21c2eddc40696c5d526e2a7f86a2225e23a63df83274cbeb755a9626036724e9855724 no_bash_dependency.patch\n" ) ( "94d0d3c6f082dc76e7a76b48d1ecfff7d38ba6da344d1fdfa94c7a8f6c23ca726bccc7b1c8934f41ab06bb9a6b8582aec7448a99d17598b19dc8f3a73f1cd08a identify_alpine.patch\n" ) ( "0fc0bbff8f6b165f9ac9b89cccda5fbc46e37a20342028a770c43aa893c8c4dc2dbeddae7c005d13f500d96d12172176202298d1933094671323dc6f71732435 fix_cflags.patch\n" ) ( "7245a92f8af446ec77eabed8a022c61f0c4874cc2dc569ef3ff944b6b398ac42ab284822c5f4886eb4a9a461f1ae2b02eb6c58560eb50af7616c92583d1612fc no_hard_links.patch" ) ) } spids: [357] ) ] spids: [357] ) ] )