Guest User

Untitled

a guest
Jun 29th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. #build-deps gnutls-dev pkgconf
  2. #apt install libp11-kit-dev libnetcf-dev libnl-3-dev libnl-route3-dev libxml2-dev libdbus1-dev libsasl2-dev libssh-dev libudev-dev libpciaccess-dev libyajl-dev open-iscsi libdevmapper-dev libparted-dev zfsutils-linux
  3.  
  4. name: virtpackage # you probably want to 'snapcraft register <name>'
  5. version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
  6. summary: QEmu + LibVirt + Virt-Manager
  7. description: |
  8. A package containing QEmu + LibVirt + Virt-Managers
  9. base: core18
  10. grade: devel # must be 'stable' to release into candidate/stable channels
  11. confinement: devmode # use 'strict' once you have the right plugs and slots
  12.  
  13. parts:
  14. bash:
  15. source: https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
  16. plugin: autotools
  17. gmplib:
  18. source: https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz
  19. plugin: autotools
  20. stage:
  21. - -share/info/dir
  22. nettle:
  23. source: https://ftp.gnu.org/gnu/nettle/nettle-3.5.1.tar.gz
  24. after: [gmplib]
  25. plugin: autotools
  26. # configflags:
  27. # - --libdir=/usr/lib
  28. gnutls:
  29. source: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.8.tar.xz
  30. plugin: autotools
  31. after: [gmplib, nettle]
  32. build-packages: [pkgconf]
  33. configflags:
  34. - --with-included-libtasn1
  35. - --with-included-unistring
  36. stage:
  37. - -share/info/dir
  38. qemu:
  39. source: https://download.qemu.org/qemu-4.0.0.tar.xz
  40. plugin: autotools
  41. build-packages: [libglib2.0-dev,libpulse-dev,libfdt-dev,libpixman-1-dev,zlib1g-dev, python,libspice-protocol-dev,libspice-server-dev]
  42. stage-packages: [libglib2.0-0,libpulse0,libfdt1,libpixman-1-0,zlib1g, python,libspice-server1]
  43. after: [gnutls]
  44. configflags:
  45. - --target-list=x86_64-softmmu
  46. - --audio-drv-list=pa
  47. - --enable-kvm
  48. - --enable-vnc
  49. - --enable-vhost-kernel
  50. - --enable-vhost-user
  51. - --enable-vhost-vsock
  52. - --enable-vhost-scsi
  53. - --enable-spice
  54. libvirt:
  55. source: https://libvirt.org/sources/libvirt-5.4.0.tar.xz
  56. plugin: autotools
  57. after: [qemu]
  58. build-packages: [parted, xsltproc,libxml2-utils,pkgconf,libp11-kit-dev,libnetcf-dev,libnl-3-dev,libnl-route-3-dev,libxml2-dev,libdbus-1-dev,libsasl2-dev,libssh-dev,libudev-dev,libpciaccess-dev,libyajl-dev,open-iscsi,libdevmapper-dev,libparted-dev,zfsutils-linux]
  59. stage-packages: [netcf,libpulse0,dnsmasq-base,parted, xsltproc,libxml2-utils,pkgconf,libp11-kit0,libnetcf1,libnl-3-200,libnl-route-3-200,libxml2,libdbus-1-3,libsasl2-2,libssh-4,libudev1,libpciaccess0,libyajl2,open-iscsi,libdevmapper1.02.1,libparted,zfsutils-linux]
  60. build-environment: #need to override configure script detected binary paths as it stuffs them in config.h and embeds in program macros, build env has these in /root/parts...
  61. - ac_cv_path_DNSMASQ: /usr/sbin/dnsmasq
  62. - ac_cv_path_PARTED=: /sbin/parted
  63. - ac_cv_path_ZFS: /sbin/zfs
  64. - ac_cv_path_ZPOOL: /sbin/zpool
  65. configflags:
  66. - --sharedstatedir=/var/snap/virtpackage/common/libvirt/com
  67. - --localstatedir=/var/snap/virtpackage/common/libvirt/var
  68. - --datarootdir=/var/snap/virtpackage/common/libvirt/share
  69. - --prefix=/usr #works around configmake.h build issue
  70. - --disable-silent-rules
  71. - --disable-rpath
  72. - --with-qemu
  73. - --with-qemu-user=libvirt-qemu
  74. - --with-qemu-group=kvm
  75. - --without-openvz
  76. - --without-avahi #disable multicast dns discovery of libvirt hosts
  77. - --with-sasl
  78. - --with-yajl
  79. - --with-ssh
  80. - --with-dbus
  81. - --with-polkit #used for socket access for libvirt clients
  82. - --with-udev
  83. - --with-storage-fs
  84. - --with-storage-dir
  85. - --with-storage-lvm
  86. - --with-storage-iscsi
  87. - --with-storage-disk
  88. - --without-storage-sheepdog
  89. - --without-storage-rbd
  90. - --without-storage-gluster
  91. - --with-storage-zfs
  92. - --with-init-script=systemd
  93. - --without-numactl
  94. - --without-numad
  95. - --without-selinux
  96. - --without-apparmor
  97. - --without-phyp
  98. - --without-esx
  99. - --with-macvtap
  100. - --with-network
  101. - --without-netcf #doesnt seem to work with snap
  102. - --without-xen
  103. - --without-lxc
  104. - --without-audit
  105. - --without-vbox
  106. - --without-libxl
  107. - --without-dtrace
  108. - --without-firewalld
  109. - --without-hal
  110. - --without-attr
  111. - --with-nss-plugin
  112. - --without-wireshark-dissector
  113. layout:
  114. /usr/lib/libvirt:
  115. bind: $SNAP/usr/lib/libvirt
  116. /usr/sbin:
  117. bind: $SNAP/usr/sbin
  118.  
  119. apps:
  120. libvirtd:
  121. command: usr/sbin/libvirtd
  122. virsh:
  123. command: usr/bin/virsh
  124. bash:
  125. command: bin/bash
  126. environment:
  127. LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio
Add Comment
Please, Sign In to add comment