-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
133 lines (130 loc) · 3.1 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: libvirt
version: 2.4.0
summary: Libvirt Daemon
description: Don't use this its just for testing.
grade: devel
confinement: classic
apps:
libvirt-bin:
command: sbin/libvirtd
daemon: simple
plugs:
- network
- network-bind
- network-control
virsh:
command: bin/virsh
plugs:
- network
parts:
qemu:
source: http://wiki.qemu-project.org/download/qemu-2.7.0.tar.bz2
plugin: autotools
build-packages:
- libaio-dev
- acpica-tools
- libasound2-dev
- libattr1-dev
- libcap-dev
- libcap-ng-dev
- libiscsi-dev
- libnuma-dev
- librados-dev
- librbd-dev
- libspice-server-dev
- libspice-protocol-dev
- libusb-1.0-0-dev
- libusbredirparser-dev
- zlib1g-dev
- uuid-dev
stage-packages:
- libxml2
- libyajl2
- libnuma1
- libaio1
- libiscsi2
- libcurl3-gnutls
- librbd1
- librados2
- libcairo2
- libgdk-pixbuf2.0-0
- libpixman-1-0
- libgtk2.0-0
- libspice-server1
- libusb-1.0-0
- libusbredirparser1
- libx11-6
configflags:
- "--target-list=x86_64-softmmu i386-softmmu"
- "--prefix=/snap/$SNAPCRAFT_PROJECT_NAME/current"
organize:
# Hack to shift installed qemu back to root of snap
# required to ensure that pathing to files etc works at
# runtime
# * is not used to avoid directory merge conflicts
"snap/libvirt/current/": "./"
libvirt:
source: https://libvirt.org/sources/libvirt-2.4.0.tar.xz
plugin: autotools
build-packages:
- libxml2-dev
- libcurl4-gnutls-dev
- libncurses5-dev
- libreadline-dev
- zlib1g-dev
- libgcrypt20-dev
- libgnutls28-dev
- libsasl2-dev
- libsanlock-dev
- libiscsi-dev
- librbd-dev
- librados-dev
- libyajl-dev
- libpcap0.8-dev
- libaudit-dev
- libdevmapper-dev
- libpciaccess-dev
- libnl-3-dev
- libnl-route-3-dev
- libpolkit-gobject-1-dev
- uuid-dev
- libnuma-dev
- python-all
- python-six
stage-packages:
- libxml2
- libyajl2
- libnuma1
- libcurl3-gnutls
configflags:
- "--with-qemu"
- "--without-xen"
- "--without-openvz"
- "--without-vmware"
- "--without-xenapi"
- "--without-esx"
- "--without-hyperv"
- "--without-lxc"
- "--without-vz"
- "--without-vbox"
- "--without-uml"
- "--without-sasl"
- "--prefix=/snap/$SNAPCRAFT_PROJECT_NAME/current"
- "--localstatedir=/var/snap/$SNAPCRAFT_PROJECT_NAME/common"
organize:
# Hack to shift installed libvirt back to root of snap
# required to ensure that pathing to files etc works at
# runtime
# * is not used to avoid directory merge conflicts
"snap/libvirt/current/": "./"
filesets:
all:
- -etc/libvirt/libvirtd.conf
stage: [$all]
prime: [$all]
templates:
after:
- libvirt
- qemu
source: snap
plugin: dump