Apache CloudStack for Arch Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

552 lines
18 KiB

  1. # Maintainer: Pekka Helenius <pekka dot helenius at fjordtek dot com>
  2. # Skip Maven tests?
  3. skip_tests=true
  4. # Install non-OSS (open source software) Java plugins?
  5. # Adds up to 1.5GB to the installation size
  6. install_non_oss=true
  7. maven_options=(
  8. # CloudStack profile options
  9. -P systemvm
  10. #-P eclipse
  11. #-P developer
  12. #-P impatient
  13. #-P vmware
  14. #-P quality
  15. #-P disablecheckstyle
  16. #-P enablefindbugs
  17. -Dorg.slf4j.simpleLogger.defaultLogLevel=warn
  18. )
  19. pythonver=3.7
  20. pkgbase=cloudstack
  21. pkgname=(
  22. 'cloudstack-agent'
  23. 'cloudstack-management'
  24. 'cloudstack-ui'
  25. 'cloudstack-common'
  26. 'cloudstack-cli'
  27. 'cloudstack-usage'
  28. 'cloudstack-mysql-ha'
  29. # 'cloudstack-baremetal-agent'
  30. # 'cloudstack-marvin'
  31. # 'cloudstack-integration-tests'
  32. # 'cloudstack-docs'
  33. )
  34. _commit=44c08b5acc598972b4f0af576ffdea4e2447cb41 # 4.16.0.0
  35. pkgver=4.16.0.0.r0.g44c08b5acc
  36. pkgrel=1
  37. groups=(cloudstack)
  38. pkgdesc='Open Source Cloud Computing'
  39. arch=('any')
  40. url='https://cloudstack.apache.org/'
  41. license=('Apache2')
  42. depends=(
  43. 'systemd'
  44. 'logrotate'
  45. 'libvirt'
  46. 'jre11-openjdk'
  47. 'java-runtime-common'
  48. 'mysql'
  49. 'python'
  50. 'python-setuptools'
  51. 'python-mysql-connector'
  52. # Both iptables & ebtables executables is required by cloudstack-agent
  53. 'iptables-nft'
  54. 'ipmitool'
  55. )
  56. makedepends=(
  57. # CloudStack source retrieval
  58. 'git'
  59. 'wget'
  60. # CloudStack compilation
  61. 'jdk11-openjdk'
  62. 'maven'
  63. # CloudStack UI compilation
  64. # <16 required by cloudstack-ui npm compilation process due to implementation issues
  65. # See: https://github.com/sass/node-sass/issues/3077
  66. 'nodejs<16'
  67. 'npm'
  68. 'gcc'
  69. # # CloudStack apidocs compilation
  70. # 'python'
  71. )
  72. optdepends=(
  73. 'qemu: A generic and open source machine emulator and virtualizer'
  74. 'cloudmonkey: Command line interface for Apache CloudStack management'
  75. 'python-solidfire-sdk: SolidFire Python SDK for application integration'
  76. 'edk2-ovmf: Firmware for Virtual Machines (x86_64, i686)'
  77. 'openvswitch: Production Quality, Multilayer Open Virtual Switch'
  78. 'nfs-utils: Support programs for Network File Systems'
  79. )
  80. source=(
  81. "${pkgbase}::git+https://github.com/apache/${pkgbase}.git#commit=${_commit}"
  82. "cloudstack.sysuser.conf"
  83. "uefi.properties"
  84. "patch_domr-path.patch"
  85. "patch_python3.patch"
  86. "cloudstack.mysql.conf"
  87. "cloudbr0.netdev"
  88. "cloudbr0.network"
  89. "cloudbr1.netdev"
  90. "cloudbr1.network"
  91. )
  92. if [[ ${skip_tests} == "true" ]]; then
  93. maven_options+=(-DskipTests)
  94. fi
  95. if [[ ${install_non_oss} == "true" ]]; then
  96. source+=(
  97. "${pkgbase}-nonoss::git+https://github.com/shapeblue/${pkgbase}-nonoss.git"
  98. )
  99. maven_options+=(-Dnoredist)
  100. fi
  101. # options=(!emptydirs)
  102. sha256sums=('SKIP'
  103. '1ad0d6b9a15889763bea92c71ecf9dc44e11e408260cdc54efa4d7acd849230f'
  104. '2ac98910f320785ebbc682a426f4eef6d8b4ca5c8c55195dc4c048072fa93fb6'
  105. '8691b6b47164d11d3c1eff90a0108e694427463fb3d49608628a5d0121b6a5d4'
  106. '2515da6f9195c7e3bce321bd328743ee4c685ccd01ddb4099202637036eab40e'
  107. '69b315a10f88c24d6fe2b248b0593691d656f8992e6e37f8b0a4d2d4a9caca40'
  108. '4d5d5c4d923ceec434403fc416a4d09a820fdb49ece6e4f6d0b32a05014446be'
  109. 'c12612ebca5c968c3648b858a1c23961963cf04d3a9f476400a0f3861952c7fd'
  110. 'dfc16a17e57b9d174aae8abee6c04b8a6b02ffc96909315f302199e43dea9b9e'
  111. '49c7271d095eb7ba4d724edc615af99646bae4b7fa57ef6502e14ad452e6d602'
  112. 'SKIP')
  113. pkgver() {
  114. cd ${pkgbase}
  115. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  116. }
  117. prepare() {
  118. if [[ ${install_non_oss} == "true" ]]; then
  119. msg2 "Installing non-OSS CloudStack plugins ($HOME/.m2)"
  120. cd ${pkgbase}-nonoss
  121. ./install-non-oss.sh
  122. fi
  123. cd ${srcdir}/${pkgbase}
  124. patch -Np1 -i ../patch_domr-path.patch
  125. patch -Np1 -i ../patch_python3.patch
  126. rm build/replace.properties
  127. # Compile-time variables
  128. echo "
  129. AGENTCLASSPATH=
  130. AGENTLOGDIR=/var/log/cloudstack/agent
  131. AGENTLOG=/var/log/cloudstack/agent/agent.log
  132. AGENTSYSCONFDIR=/etc/cloudstack/agent
  133. APISERVERLOG=/var/log/cloudstack/management/apilog.log
  134. BINDIR=/usr/bin
  135. COMMONLIBDIR=/usr/share/cloudstack-common
  136. COMPONENTS-SPEC=components-premium.xml
  137. CONFIGUREVARS=
  138. DBDRIVER=jdbc:mysql
  139. DBHOST=localhost
  140. DBPW=cloud
  141. DBROOTPW=
  142. DBUSER=cloud
  143. DEPSCLASSPATH=
  144. DOCDIR=
  145. IPALOCATORLOG=/var/log/cloudstack/management/ipallocator.log
  146. JAVADIR=/usr/share/java
  147. LIBEXECDIR=/usr/libexec
  148. LOCKDIR=/var/lock
  149. MSCLASSPATH=
  150. MSCONF=/etc/cloudstack/management
  151. MSLOGDIR=/var/log/cloudstack/management
  152. MSLOG=/var/log/cloudstack/management/management-server.log
  153. MSMNTDIR=/var/cloudstack/mnt
  154. MSUSER=cloud
  155. PACKAGE=cloudstack
  156. PIDDIR=/run
  157. PLUGINJAVADIR=/usr/share/cloudstack-management/plugin
  158. PREMIUMJAVADIR=/usr/share/cloudstack-management/premium
  159. PYTHONDIR=/usr/lib/python${pythonver}/site-packages/
  160. REMOTEHOST=localhost
  161. SERVERSYSCONFDIR=/etc/cloudstack/server
  162. SETUPDATADIR=/usr/share/cloudstack-management/setup
  163. SYSCONFDIR=/etc
  164. SYSTEMCLASSPATH=
  165. SYSTEMJARS=
  166. USAGECLASSPATH=
  167. USAGELOG=/var/log/cloudstack/usage/usage.log
  168. USAGESYSCONFDIR=/etc/cloudstack/usage
  169. VERSION=$(printf "%s" $(git describe --long --tags | cut -d- -f1))
  170. " >> build/replace.properties
  171. }
  172. build() {
  173. cd ${pkgbase}
  174. export JAVA_HOME=/usr/lib/jvm/java-11-openjdk/
  175. export PATH=$JAVA_HOME/bin:$PATH
  176. mvn clean install ${maven_options[*]}
  177. # CloudStack UI
  178. cd ui && npm install && npm run build && cd ..
  179. }
  180. package_cloudstack-agent() {
  181. depends=('python' 'jre11-openjdk' 'logrotate' 'openssh' 'systemd' 'iptables-nft')
  182. pkgdesc='Apache CloudStack Agent'
  183. backup=(
  184. etc/cloudstack/agent/agent.properties
  185. etc/cloudstack/agent/uefi.properties
  186. )
  187. install=cloudstack-agent.install
  188. cd ${pkgbase}
  189. mkdir -p ${pkgdir}/etc/{cloudstack/agent,default,profile.d}
  190. mkdir -p ${pkgdir}/var/{cache/cloudstack,log/cloudstack}
  191. # TODO: Missing doc files: INSTALL.md.gz, LICENSE.gz, NOTICE.gz, changelog.gz, copyright
  192. mkdir -p ${pkgdir}/usr/{bin,share/cloudstack-agent} #,share/doc/cloudstack-agent}
  193. mkdir -p ${pkgdir}/usr/share/cloudstack-agent/{plugins,lib,scripts}
  194. install -Dm0644 plugins/hypervisors/kvm/target/cloud-plugin-hypervisor-kvm*.jar ${pkgdir}/usr/share/cloudstack-agent/lib/
  195. install -D plugins/hypervisors/kvm/target/dependencies/* ${pkgdir}/usr/share/cloudstack-agent/lib/
  196. mkdir -p ${pkgdir}/usr/lib/systemd/system
  197. install -Dm0644 packaging/systemd/cloudstack-agent.service ${pkgdir}/usr/lib/systemd/system/
  198. install -Dm0644 packaging/systemd/cloudstack-agent.default ${pkgdir}/etc/default/cloudstack-agent
  199. install -Dm0644 packaging/systemd/cloudstack-rolling-maintenance@.service ${pkgdir}/usr/lib/systemd/system/
  200. install -Dm0644 agent/target/transformed/cloudstack-agent.logrotate ${pkgdir}/etc/logrotate.d/cloudstack-agent
  201. install -Dm0755 agent/target/transformed/cloud-setup-agent ${pkgdir}/usr/bin/cloudstack-setup-agent
  202. install -Dm0755 agent/target/transformed/cloud-ssh ${pkgdir}/usr/bin/cloudstack-ssh
  203. install -Dm0755 agent/target/transformed/cloudstack-agent-profile.sh ${pkgdir}/etc/profile.d/cloudstack-agent-profile.sh
  204. install -Dm0755 agent/target/transformed/cloudstack-agent-upgrade ${pkgdir}/usr/bin/
  205. install -Dm0755 agent/target/transformed/cloud-guest-tool ${pkgdir}/usr/bin/cloudstack-guest-tool
  206. install -Dm0644 agent/target/transformed/libvirtqemuhook ${pkgdir}/usr/share/cloudstack-agent/lib/
  207. install -Dm0644 agent/target/transformed/rolling-maintenance ${pkgdir}/usr/share/cloudstack-agent/lib/
  208. install -D agent/target/transformed/environment.properties ${pkgdir}/etc/cloudstack/agent/
  209. install -D agent/target/transformed/agent.properties ${pkgdir}/etc/cloudstack/agent/
  210. install -D agent/target/transformed/log4j-cloud.xml ${pkgdir}/etc/cloudstack/agent/
  211. # Fix: Add missing uefi.properties file
  212. install -Dm0644 ${srcdir}/uefi.properties ${pkgdir}/etc/cloudstack/agent/
  213. # Fix: Add missing log path
  214. mkdir -p ${pkgdir}/var/log/cloudstack/agent
  215. # Fix: Install missing script files
  216. # TODO: Some script files have referrals to unknown 'cmdline' file.
  217. cp -r systemvm/agent/scripts/* ${pkgdir}/usr/share/cloudstack-agent/scripts/
  218. chmod 0755 ${pkgdir}/usr/share/cloudstack-agent/scripts/*.sh
  219. for i in $(find ${pkgdir}/usr/share/cloudstack-agent/scripts/ -iname "*.sh"); do
  220. sed -i 's/\/cloud\//\/cloudstack\//g' "${i}"
  221. sed -i 's/\/usr\/local\//\/usr\//g' "${i}"
  222. done
  223. # Fix: Add & correct missing paths
  224. echo "
  225. # Full path: paths.script + value here
  226. # See environment.properties
  227. hypervisor.scripts.dir=scripts/vm/hypervisor
  228. kvm.scripts.dir=scripts/vm/hypervisor/kvm
  229. network.scripts.dir=scripts/vm/network/vnet
  230. storage.scripts.dir=scripts/storage/qcow2
  231. public.network.device=cloudbr0
  232. private.network.device=cloudbr1
  233. #guest.network.device=
  234. #ipv6disabled=true
  235. host.cache.location=/var/cache/cloudstack
  236. # BridgeVifDriver or DirectVifDriver
  237. libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.BridgeVifDriver
  238. " >> ${pkgdir}/etc/cloudstack/agent/agent.properties
  239. }
  240. package_cloudstack-management() {
  241. depends=('python' 'jre11-openjdk' 'mysql' 'systemd' 'ipmitool')
  242. pkgdesc='Management for Apache CloudStack'
  243. install=cloudstack-management.install
  244. noextract=(
  245. systemvmtemplate-4.16.0-kvm.qcow2.bz2
  246. systemvmtemplate-4.16.0-xen.vhd.bz2
  247. )
  248. backup=(
  249. etc/cloudstack/management/server.properties
  250. etc/cloudstack/management/db.properties
  251. etc/cloudstack/management/environment.properties
  252. )
  253. cd ${pkgbase}
  254. mkdir -p ${pkgdir}/etc/cloudstack/management
  255. mkdir -p ${pkgdir}/etc/security/limits.d/
  256. mkdir -p ${pkgdir}/etc/sudoers.d/
  257. chmod 0750 ${pkgdir}/etc/sudoers.d/
  258. mkdir -p ${pkgdir}/usr/share/cloudstack-management/{lib,setup,templates/systemvm,plugin,premium,webapp}
  259. mkdir -p ${pkgdir}/var/cache/cloudstack/management
  260. mkdir -p ${pkgdir}/var/log/cloudstack/{management,ipallocator}
  261. mkdir -p ${pkgdir}/var/lib/cloudstack/{management,mnt}
  262. cp -r client/target/utilities/scripts/db/* ${pkgdir}/usr/share/cloudstack-management/setup/
  263. cp -r ui/dist/* ${pkgdir}/usr/share/cloudstack-management/webapp/
  264. cp -r client/target/classes/META-INF/webapp/WEB-INF ${pkgdir}/usr/share/cloudstack-management/webapp/
  265. for i in \
  266. cloud-migrate-databases \
  267. cloud-setup-databases \
  268. cloud-setup-management \
  269. cloud-setup-encryption \
  270. cloud-sysvmadm \
  271. cloud-update-xenserver-licenses \
  272. cloud-set-guest-password \
  273. cloud-set-guest-sshkey
  274. do
  275. install -D client/target/utilities/bin/${i} ${pkgdir}/usr/bin/$(echo ${i} | sed 's/cloud\-/cloudstack\-/')
  276. done
  277. cp client/target/conf/* ${pkgdir}/etc/cloudstack/management/
  278. cp client/target/cloud-client-ui-*.jar ${pkgdir}/usr/share/cloudstack-management/lib/
  279. for i in $(find ${pkgdir}/usr/share/cloudstack-management/lib/ -iname "cloud-client-ui*"); do
  280. mv "${i}" $(echo "${i}" | sed 's/cloud\-client\-ui/cloudstack/')
  281. done
  282. cp client/target/lib/*jar ${pkgdir}/usr/share/cloudstack-management/lib/
  283. cp -rf engine/schema/dist/systemvm-templates/* ${pkgdir}/usr/share/cloudstack-management/templates/systemvm/
  284. rm -rf ${pkgdir}/usr/share/cloudstack-management/templates/systemvm/md5sum.txt
  285. # Nast hack for a couple of configuration files
  286. cp -f server/target/conf/cloudstack-limits.conf ${pkgdir}/etc/security/limits.d/cloudstack-limits.conf
  287. cp -f server/target/conf/cloudstack-sudoers ${pkgdir}/etc/sudoers.d/cloudstack
  288. # Allow non-root user to add a KVM host
  289. j=$(echo "$(grep Cmnd_Alias ${pkgdir}/etc/sudoers.d/cloudstack), /usr/bin/cloudstack-setup-agent" | sed 's/\//\\\//g')
  290. sed -i -i "s/^Cmnd_Alias.*/$j/" ${pkgdir}/etc/sudoers.d/cloudstack
  291. chmod 0440 ${pkgdir}/etc/sudoers.d/cloudstack
  292. # TODO: This should all be in /etc/cloudstack/management
  293. ln -s /etc/cloudstack/management ${pkgdir}/usr/share/cloudstack-management/conf
  294. ln -s /var/log/cloudstack/management ${pkgdir}/usr/share/cloudstack-management/logs
  295. mkdir -p ${pkgdir}/usr/lib/systemd/system
  296. install -m0644 packaging/systemd/cloudstack-management.service ${pkgdir}/usr/lib/systemd/system/cloudstack-management.service
  297. install -Dm0644 packaging/systemd/cloudstack-management.default ${pkgdir}/etc/default/cloudstack-management
  298. # Fix: Add missing 'cloud' user to the system
  299. mkdir -p ${pkgdir}/usr/lib/sysusers.d
  300. install -Dm0644 ${srcdir}/cloudstack.sysuser.conf ${pkgdir}/usr/lib/sysusers.d/cloudstack.conf
  301. # Fix: Set global database configuration values
  302. mkdir -p ${pkgdir}/etc/mysql/conf.d/
  303. install -Dm0644 ${srcdir}/cloudstack.mysql.conf ${pkgdir}/etc/mysql/conf.d/cloudstack.cf
  304. rm -f ${pkgdir}/usr/share/cloudstack-management/webapp/config.json
  305. ln -s /etc/cloudstack/ui/config.json ${pkgdir}/usr/share/cloudstack-management/webapp/config.json
  306. # Fix: Symlink log4j.xml
  307. ln -s /etc/cloudstack/management/log4j-cloud.xml ${pkgdir}/etc/cloudstack/management/log4j.xml
  308. }
  309. package_cloudstack-ui() {
  310. depends=()
  311. pkgdesc='Apache CloudStack UI'
  312. cd ${pkgbase}
  313. # TODO: Missing doc files: INSTALL.md.gz, LICENSE.gz, NOTICE.gz, changelog.gz, copyright
  314. # mkdir -p ${pkgdir}/usr/share/doc/cloudstack-ui/
  315. mkdir -p ${pkgdir}/etc/cloudstack/ui
  316. mkdir -p ${pkgdir}/usr/share/cloudstack-ui
  317. cp -r ui/dist/config.json ${pkgdir}/etc/cloudstack/ui/
  318. cp -r ui/dist/* ${pkgdir}/usr/share/cloudstack-ui/
  319. rm -f ${pkgdir}/usr/share/cloudstack-ui/config.json
  320. ln -s /etc/cloudstack/ui/config.json ${pkgdir}/usr/share/cloudstack-ui/config.json
  321. }
  322. package_cloudstack-common() {
  323. depends=('python' 'jre11-openjdk')
  324. pkgdesc='Common files for Apache CloudStack'
  325. install=cloudstack-common.install
  326. cd ${pkgbase}
  327. # TODO: Missing doc files: INSTALL.md.gz, LICENSE.gz, NOTICE.gz, changelog.gz, copyright
  328. # mkdir -p ${pkgdir}/usr/share/doc/cloudstack-common/
  329. mkdir -p ${pkgdir}/usr/share/cloudstack-common/{scripts,setup,lib}
  330. for i in installer network storage util vm; do
  331. cp -r scripts/${i} ${pkgdir}/usr/share/cloudstack-common/scripts
  332. done
  333. # Fix: Add missing Cisco network files
  334. cp -r client/target/common/scripts/network/cisco ${pkgdir}/usr/share/cloudstack-common/scripts/network/
  335. # TODO: Missing utils/bindir/cloud-sccs -> usr/bin/cloud-sccs
  336. install -D systemvm/dist/systemvm.iso ${pkgdir}/usr/share/cloudstack-common/vms/systemvm.iso
  337. # We need jasypt for 'cloud-install-sys-tmplt' executable, so this is a nasty hack to get it into the right place
  338. install -D agent/target/dependencies/jasypt-1.9.*.jar ${pkgdir}/usr/share/cloudstack-common/lib
  339. # Fix: Populate network interfaces for CloudStack
  340. mkdir -p ${pkgdir}/usr/lib/systemd/network/
  341. install -Dm0644 ${srcdir}/cloudbr0.netdev ${pkgdir}/usr/lib/systemd/network/
  342. install -Dm0644 ${srcdir}/cloudbr0.network ${pkgdir}/usr/lib/systemd/network/
  343. install -Dm0644 ${srcdir}/cloudbr1.netdev ${pkgdir}/usr/lib/systemd/network/
  344. install -Dm0644 ${srcdir}/cloudbr1.network ${pkgdir}/usr/lib/systemd/network/
  345. }
  346. package_cloudstack-cli() {
  347. depends=('python' 'python-mysql-connector')
  348. pkgdesc='Python bindings for Apache CloudStack (CLI)'
  349. cd ${pkgbase}
  350. mkdir -p ${pkgdir}/usr/lib/python${pythonver}/site-packages/
  351. cp -r python/lib/cloud* ${pkgdir}/usr/lib/python${pythonver}/site-packages/
  352. }
  353. package_cloudstack-usage() {
  354. depends=('jre11-openjdk' 'systemd')
  355. pkgdesc='Usage Server for Apache CloudStack'
  356. backup=(
  357. etc/cloudstack/usage/db.properties
  358. )
  359. cd ${pkgbase}
  360. # TODO: Missing doc files: INSTALL.md.gz, LICENSE.gz, NOTICE.gz, changelog.gz, copyright
  361. # mkdir -p ${pkgdir}/usr/share/doc/cloudstack-usage/
  362. mkdir -p ${pkgdir}/etc/cloudstack/usage
  363. mkdir -p ${pkgdir}/usr/share/cloudstack-usage/{lib,plugins}
  364. mkdir -p ${pkgdir}/var/log/cloudstack/usage
  365. install -Dm0644 usage/target/cloud-usage-*.jar ${pkgdir}/usr/share/cloudstack-usage/
  366. install -D usage/target/dependencies/* ${pkgdir}/usr/share/cloudstack-usage/lib/
  367. cp client/target/lib/mysql*jar ${pkgdir}/usr/share/cloudstack-usage/lib/
  368. cp usage/target/transformed/db.properties ${pkgdir}/etc/cloudstack/usage/
  369. cp usage/target/transformed/log4j-cloud_usage.xml ${pkgdir}/etc/cloudstack/usage/log4j-cloud.xml
  370. mkdir -p ${pkgdir}/usr/lib/systemd/system
  371. install -m0644 packaging/systemd/cloudstack-usage.service ${pkgdir}/usr/lib/systemd/system/cloudstack-usage.service
  372. install -Dm0644 packaging/systemd/cloudstack-usage.default ${pkgdir}/etc/default/cloudstack-usage
  373. }
  374. package_cloudstack-mysql-ha() {
  375. pkgdesc='MySQL High Availability plugin for Apache CloudStack'
  376. depends=('mysql' 'jre11-openjdk')
  377. cd ${pkgbase}
  378. mkdir -p ${pkgdir}/usr/share/cloudstack-mysql-ha/lib
  379. install -Dm0644 plugins/database/mysql-ha/target/cloud-plugin-database-mysqlha-*.jar ${pkgdir}/usr/share/cloudstack-mysql-ha/lib/
  380. }
  381. # TODO: The executable script is not compatible with Arch Linux
  382. #package_cloudstack-baremetal-agent() {
  383. #
  384. # pkgdesc='BareMetal PXE server for Apache CloudStack'
  385. # depends=('python' 'xinetd' 'bash-completion' 'dhcp' 'tftp-hpa' 'iptables')
  386. #
  387. # cd ${pkgbase}
  388. #
  389. # mkdir -p ${pkgdir}/usr/bin
  390. # install -Dm0755 client/target/utilities/bin/cloud-setup-baremetal ${pkgdir}/usr/bin/
  391. #}
  392. # TODO: Actual marvin toolset requires additional dependencies but
  393. # CloudStack project does not officially expose the installation procedure
  394. #package_cloudstack-marvin() {
  395. #
  396. # depends=('python' 'python-mysql-connector' 'python-urllib3' 'python-setuptools')
  397. # "mysql-connector-python >= 1.1.6",
  398. # "requests >= 2.2.1",
  399. # "paramiko >= 1.13.0",
  400. # "nose >= 1.3.3",
  401. # "ddt >= 0.4.0",
  402. # "pyvmomi >= 5.5.0",
  403. # "netaddr >= 0.7.14",
  404. # "dnspython",
  405. # "ipmisim >= 0.7",
  406. # "pytz",
  407. # "retries",
  408. # "PyCrypt",
  409. # "kubernetes",
  410. # "urllib3",
  411. # "setuptools >= 40.3.0"
  412. # pkgdesc='Python client for Apache CloudStack'
  413. #
  414. # cd ${pkgbase}
  415. #
  416. # mkdir -p ${pkgdir}/usr/share/cloudstack-marvin
  417. # cp tools/marvin/dist/Marvin-*.tar.gz ${pkgdir}/usr/share/cloudstack-marvin/
  418. #
  419. #}
  420. #package_cloudstack-integration-tests() {
  421. # TODO: Missing doc files: INSTALL.md.gz, LICENSE.gz, NOTICE.gz, changelog.gz, copyright
  422. # mkdir -p ${pkgdir}/usr/share/doc/cloudstack-integration-tests/
  423. # pkgdesc='Integration tests for Apache CloudStack'
  424. #
  425. # cd ${pkgbase}
  426. #
  427. # mkdir -p ${pkgdir}/usr/share/cloudstack-integration-tests
  428. # cp -r test/integration/* ${pkgdir}/usr/share/cloudstack-integration-tests/
  429. #
  430. #}
  431. #package_cloudstack-docs() {
  432. # TODO: Missing doc files: INSTALL.md.gz, LICENSE.gz, NOTICE.gz, changelog.gz, copyright
  433. # mkdir -p ${pkgdir}/usr/share/doc/cloudstack-docs/
  434. # pkgdesc='Apache CloudStack docs'
  435. #
  436. # cd ${pkgbase}
  437. #
  438. #}