mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
libvirt: Initial package creation.
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
This commit is contained in:
parent
20ba217312
commit
8378d87ced
13
recipes-extended/libvirt/libvirt-python.inc
Normal file
13
recipes-extended/libvirt/libvirt-python.inc
Normal file
|
@ -0,0 +1,13 @@
|
|||
inherit python-dir
|
||||
|
||||
# Enable the Python tool support
|
||||
EXTRA_OECONF += "--with-python=yes"
|
||||
|
||||
SRC_URI += " file://oe_PYTHON_INCLUDES.patch"
|
||||
|
||||
DEPENDS += "python python-native"
|
||||
RDEPENDS_${PN}-python += "python xen-python"
|
||||
|
||||
PACKAGES += "${PN}-python-dbg ${PN}-python"
|
||||
FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug/"
|
||||
FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/site-packages"
|
393
recipes-extended/libvirt/libvirt/libvirtd.conf
Normal file
393
recipes-extended/libvirt/libvirt/libvirtd.conf
Normal file
|
@ -0,0 +1,393 @@
|
|||
# Master libvirt daemon configuration file
|
||||
#
|
||||
# For further information consult http://libvirt.org/format.html
|
||||
#
|
||||
# NOTE: the tests/daemon-conf regression test script requires
|
||||
# that each "PARAMETER = VALUE" line in this file have the parameter
|
||||
# name just after a leading "#".
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# Network connectivity controls
|
||||
#
|
||||
|
||||
# Flag listening for secure TLS connections on the public TCP/IP port.
|
||||
# NB, must pass the --listen flag to the libvirtd process for this to
|
||||
# have any effect.
|
||||
#
|
||||
# It is necessary to setup a CA and issue server certificates before
|
||||
# using this capability.
|
||||
#
|
||||
# This is enabled by default, uncomment this to disable it
|
||||
listen_tls = 0
|
||||
|
||||
# Listen for unencrypted TCP connections on the public TCP/IP port.
|
||||
# NB, must pass the --listen flag to the libvirtd process for this to
|
||||
# have any effect.
|
||||
#
|
||||
# Using the TCP socket requires SASL authentication by default. Only
|
||||
# SASL mechanisms which support data encryption are allowed. This is
|
||||
# DIGEST_MD5 and GSSAPI (Kerberos5)
|
||||
#
|
||||
# This is disabled by default, uncomment this to enable it.
|
||||
listen_tcp = 1
|
||||
|
||||
|
||||
|
||||
# Override the port for accepting secure TLS connections
|
||||
# This can be a port number, or service name
|
||||
#
|
||||
#tls_port = "16514"
|
||||
|
||||
# Override the port for accepting insecure TCP connections
|
||||
# This can be a port number, or service name
|
||||
#
|
||||
#tcp_port = "16509"
|
||||
|
||||
|
||||
# Override the default configuration which binds to all network
|
||||
# interfaces. This can be a numeric IPv4/6 address, or hostname
|
||||
#
|
||||
#listen_addr = "192.168.0.1"
|
||||
|
||||
|
||||
# Flag toggling mDNS advertizement of the libvirt service.
|
||||
#
|
||||
# Alternatively can disable for all services on a host by
|
||||
# stopping the Avahi daemon
|
||||
#
|
||||
# This is enabled by default, uncomment this to disable it
|
||||
#mdns_adv = 0
|
||||
|
||||
# Override the default mDNS advertizement name. This must be
|
||||
# unique on the immediate broadcast network.
|
||||
#
|
||||
# The default is "Virtualization Host HOSTNAME", where HOSTNAME
|
||||
# is subsituted for the short hostname of the machine (without domain)
|
||||
#
|
||||
#mdns_name = "Virtualization Host Joe Demo"
|
||||
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# UNIX socket access controls
|
||||
#
|
||||
|
||||
# Set the UNIX domain socket group ownership. This can be used to
|
||||
# allow a 'trusted' set of users access to management capabilities
|
||||
# without becoming root.
|
||||
#
|
||||
# This is restricted to 'root' by default.
|
||||
#unix_sock_group = "libvirt"
|
||||
|
||||
# Set the UNIX socket permissions for the R/O socket. This is used
|
||||
# for monitoring VM status only
|
||||
#
|
||||
# Default allows any user. If setting group ownership may want to
|
||||
# restrict this to:
|
||||
#unix_sock_ro_perms = "0777"
|
||||
|
||||
# Set the UNIX socket permissions for the R/W socket. This is used
|
||||
# for full management of VMs
|
||||
#
|
||||
# Default allows only root. If PolicyKit is enabled on the socket,
|
||||
# the default will change to allow everyone (eg, 0777)
|
||||
#
|
||||
# If not using PolicyKit and setting group ownership for access
|
||||
# control then you may want to relax this to:
|
||||
#unix_sock_rw_perms = "0770"
|
||||
|
||||
# Set the name of the directory in which sockets will be found/created.
|
||||
#unix_sock_dir = "/var/run/libvirt"
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# Authentication.
|
||||
#
|
||||
# - none: do not perform auth checks. If you can connect to the
|
||||
# socket you are allowed. This is suitable if there are
|
||||
# restrictions on connecting to the socket (eg, UNIX
|
||||
# socket permissions), or if there is a lower layer in
|
||||
# the network providing auth (eg, TLS/x509 certificates)
|
||||
#
|
||||
# - sasl: use SASL infrastructure. The actual auth scheme is then
|
||||
# controlled from /etc/sasl2/libvirt.conf. For the TCP
|
||||
# socket only GSSAPI & DIGEST-MD5 mechanisms will be used.
|
||||
# For non-TCP or TLS sockets, any scheme is allowed.
|
||||
#
|
||||
# - polkit: use PolicyKit to authenticate. This is only suitable
|
||||
# for use on the UNIX sockets. The default policy will
|
||||
# require a user to supply their own password to gain
|
||||
# full read/write access (aka sudo like), while anyone
|
||||
# is allowed read/only access.
|
||||
#
|
||||
# Set an authentication scheme for UNIX read-only sockets
|
||||
# By default socket permissions allow anyone to connect
|
||||
#
|
||||
# To restrict monitoring of domains you may wish to enable
|
||||
# an authentication mechanism here
|
||||
#auth_unix_ro = "none"
|
||||
|
||||
# Set an authentication scheme for UNIX read-write sockets
|
||||
# By default socket permissions only allow root. If PolicyKit
|
||||
# support was compiled into libvirt, the default will be to
|
||||
# use 'polkit' auth.
|
||||
#
|
||||
# If the unix_sock_rw_perms are changed you may wish to enable
|
||||
# an authentication mechanism here
|
||||
#auth_unix_rw = "none"
|
||||
|
||||
# Change the authentication scheme for TCP sockets.
|
||||
#
|
||||
# If you don't enable SASL, then all TCP traffic is cleartext.
|
||||
# Don't do this outside of a dev/test scenario. For real world
|
||||
# use, always enable SASL and use the GSSAPI or DIGEST-MD5
|
||||
# mechanism in /etc/sasl2/libvirt.conf
|
||||
#auth_tcp = "sasl"
|
||||
|
||||
# Change the authentication scheme for TLS sockets.
|
||||
#
|
||||
# TLS sockets already have encryption provided by the TLS
|
||||
# layer, and limited authentication is done by certificates
|
||||
#
|
||||
# It is possible to make use of any SASL authentication
|
||||
# mechanism as well, by using 'sasl' for this option
|
||||
#auth_tls = "none"
|
||||
|
||||
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# TLS x509 certificate configuration
|
||||
#
|
||||
|
||||
|
||||
# Override the default server key file path
|
||||
#
|
||||
#key_file = "/etc/pki/libvirt/private/serverkey.pem"
|
||||
|
||||
# Override the default server certificate file path
|
||||
#
|
||||
#cert_file = "/etc/pki/libvirt/servercert.pem"
|
||||
|
||||
# Override the default CA certificate path
|
||||
#
|
||||
#ca_file = "/etc/pki/CA/cacert.pem"
|
||||
|
||||
# Specify a certificate revocation list.
|
||||
#
|
||||
# Defaults to not using a CRL, uncomment to enable it
|
||||
#crl_file = "/etc/pki/CA/crl.pem"
|
||||
|
||||
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# Authorization controls
|
||||
#
|
||||
|
||||
|
||||
# Flag to disable verification of our own server certificates
|
||||
#
|
||||
# When libvirtd starts it performs some sanity checks against
|
||||
# its own certificates.
|
||||
#
|
||||
# Default is to always run sanity checks. Uncommenting this
|
||||
# will disable sanity checks which is not a good idea
|
||||
#tls_no_sanity_certificate = 1
|
||||
|
||||
# Flag to disable verification of client certificates
|
||||
#
|
||||
# Client certificate verification is the primary authentication mechanism.
|
||||
# Any client which does not present a certificate signed by the CA
|
||||
# will be rejected.
|
||||
#
|
||||
# Default is to always verify. Uncommenting this will disable
|
||||
# verification - make sure an IP whitelist is set
|
||||
#tls_no_verify_certificate = 1
|
||||
|
||||
|
||||
# A whitelist of allowed x509 Distinguished Names
|
||||
# This list may contain wildcards such as
|
||||
#
|
||||
# "C=GB,ST=London,L=London,O=Red Hat,CN=*"
|
||||
#
|
||||
# See the POSIX fnmatch function for the format of the wildcards.
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
#
|
||||
# By default, no DN's are checked
|
||||
#tls_allowed_dn_list = ["DN1", "DN2"]
|
||||
|
||||
|
||||
# A whitelist of allowed SASL usernames. The format for usernames
|
||||
# depends on the SASL authentication mechanism. Kerberos usernames
|
||||
# look like username@REALM
|
||||
#
|
||||
# This list may contain wildcards such as
|
||||
#
|
||||
# "*@EXAMPLE.COM"
|
||||
#
|
||||
# See the POSIX fnmatch function for the format of the wildcards.
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
#
|
||||
# By default, no Username's are checked
|
||||
#sasl_allowed_username_list = ["joe@EXAMPLE.COM", "fred@EXAMPLE.COM" ]
|
||||
|
||||
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# Processing controls
|
||||
#
|
||||
|
||||
# The maximum number of concurrent client connections to allow
|
||||
# over all sockets combined.
|
||||
#max_clients = 20
|
||||
|
||||
|
||||
# The minimum limit sets the number of workers to start up
|
||||
# initially. If the number of active clients exceeds this,
|
||||
# then more threads are spawned, upto max_workers limit.
|
||||
# Typically you'd want max_workers to equal maximum number
|
||||
# of clients allowed
|
||||
#min_workers = 5
|
||||
#max_workers = 20
|
||||
|
||||
|
||||
# The number of priority workers. If all workers from above
|
||||
# pool will stuck, some calls marked as high priority
|
||||
# (notably domainDestroy) can be executed in this pool.
|
||||
#prio_workers = 5
|
||||
|
||||
# Total global limit on concurrent RPC calls. Should be
|
||||
# at least as large as max_workers. Beyond this, RPC requests
|
||||
# will be read into memory and queued. This directly impact
|
||||
# memory usage, currently each request requires 256 KB of
|
||||
# memory. So by default upto 5 MB of memory is used
|
||||
#
|
||||
# XXX this isn't actually enforced yet, only the per-client
|
||||
# limit is used so far
|
||||
#max_requests = 20
|
||||
|
||||
# Limit on concurrent requests from a single client
|
||||
# connection. To avoid one client monopolizing the server
|
||||
# this should be a small fraction of the global max_requests
|
||||
# and max_workers parameter
|
||||
#max_client_requests = 5
|
||||
|
||||
#################################################################
|
||||
#
|
||||
# Logging controls
|
||||
#
|
||||
|
||||
# Logging level: 4 errors, 3 warnings, 2 information, 1 debug
|
||||
# basically 1 will log everything possible
|
||||
#log_level = 3
|
||||
|
||||
# Logging filters:
|
||||
# A filter allows to select a different logging level for a given category
|
||||
# of logs
|
||||
# The format for a filter is:
|
||||
# x:name
|
||||
# where name is a match string e.g. remote or qemu
|
||||
# the x prefix is the minimal level where matching messages should be logged
|
||||
# 1: DEBUG
|
||||
# 2: INFO
|
||||
# 3: WARNING
|
||||
# 4: ERROR
|
||||
#
|
||||
# Multiple filter can be defined in a single @filters, they just need to be
|
||||
# separated by spaces.
|
||||
#
|
||||
# e.g:
|
||||
# log_filters="3:remote 4:event"
|
||||
# to only get warning or errors from the remote layer and only errors from
|
||||
# the event layer.
|
||||
|
||||
# Logging outputs:
|
||||
# An output is one of the places to save logging information
|
||||
# The format for an output can be:
|
||||
# x:stderr
|
||||
# output goes to stderr
|
||||
# x:syslog:name
|
||||
# use syslog for the output and use the given name as the ident
|
||||
# x:file:file_path
|
||||
# output to a file, with the given filepath
|
||||
# In all case the x prefix is the minimal level, acting as a filter
|
||||
# 1: DEBUG
|
||||
# 2: INFO
|
||||
# 3: WARNING
|
||||
# 4: ERROR
|
||||
#
|
||||
# Multiple output can be defined, they just need to be separated by spaces.
|
||||
# e.g.:
|
||||
# log_outputs="3:syslog:libvirtd"
|
||||
# to log all warnings and errors to syslog under the libvirtd ident
|
||||
|
||||
# Log debug buffer size: default 64
|
||||
# The daemon keeps an internal debug log buffer which will be dumped in case
|
||||
# of crash or upon receiving a SIGUSR2 signal. This setting allows to override
|
||||
# the default buffer size in kilobytes.
|
||||
# If value is 0 or less the debug log buffer is deactivated
|
||||
#log_buffer_size = 64
|
||||
|
||||
|
||||
##################################################################
|
||||
#
|
||||
# Auditing
|
||||
#
|
||||
# This setting allows usage of the auditing subsystem to be altered:
|
||||
#
|
||||
# audit_level == 0 -> disable all auditing
|
||||
# audit_level == 1 -> enable auditing, only if enabled on host (default)
|
||||
# audit_level == 2 -> enable auditing, and exit if disabled on host
|
||||
#
|
||||
#audit_level = 2
|
||||
#
|
||||
# If set to 1, then audit messages will also be sent
|
||||
# via libvirt logging infrastructure. Defaults to 0
|
||||
#
|
||||
#audit_logging = 1
|
||||
|
||||
###################################################################
|
||||
# UUID of the host:
|
||||
# Provide the UUID of the host here in case the command
|
||||
# 'dmidecode -s system-uuid' does not provide a valid uuid. In case
|
||||
# 'dmidecode' does not provide a valid UUID and none is provided here, a
|
||||
# temporary UUID will be generated.
|
||||
# Keep the format of the example UUID below. UUID must not have all digits
|
||||
# be the same.
|
||||
|
||||
# NB This default all-zeros UUID will not work. Replace
|
||||
# it with the output of the 'uuidgen' command and then
|
||||
# uncomment this entry
|
||||
#host_uuid = "00000000-0000-0000-0000-000000000000"
|
||||
|
||||
###################################################################
|
||||
# Keepalive protocol:
|
||||
# This allows libvirtd to detect broken client connections or even
|
||||
# dead client. A keepalive message is sent to a client after
|
||||
# keepalive_interval seconds of inactivity to check if the client is
|
||||
# still responding; keepalive_count is a maximum number of keepalive
|
||||
# messages that are allowed to be sent to the client without getting
|
||||
# any response before the connection is considered broken. In other
|
||||
# words, the connection is automatically closed approximately after
|
||||
# keepalive_interval * (keepalive_count + 1) seconds since the last
|
||||
# message received from the client. If keepalive_interval is set to
|
||||
# -1, libvirtd will never send keepalive requests; however clients
|
||||
# can still send them and the deamon will send responses. When
|
||||
# keepalive_count is set to 0, connections will be automatically
|
||||
# closed after keepalive_interval seconds of inactivity without
|
||||
# sending any keepalive messages.
|
||||
#
|
||||
#keepalive_interval = 5
|
||||
#keepalive_count = 5
|
||||
#
|
||||
# If set to 1, libvirtd will refuse to talk to clients that do not
|
||||
# support keepalive protocol. Defaults to 0.
|
||||
#
|
||||
#keepalive_required = 1
|
100
recipes-extended/libvirt/libvirt/libvirtd.sh
Executable file
100
recipes-extended/libvirt/libvirt/libvirtd.sh
Executable file
|
@ -0,0 +1,100 @@
|
|||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: libvirtd
|
||||
# Required-Start: $local_fs $network dbus
|
||||
# Required-Stop: $local_fs $network dbus
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
### END INIT INFO
|
||||
|
||||
if [ -f /lib/lsb/init-functions ]
|
||||
then
|
||||
. /lib/lsb/init-functions
|
||||
else
|
||||
# int log_begin_message (char *message)
|
||||
log_begin_msg () {
|
||||
if [ -z "$1" ]; then
|
||||
return 1
|
||||
fi
|
||||
echo " * $@"
|
||||
}
|
||||
|
||||
# int log_end_message (int exitstatus)
|
||||
log_end_msg () {
|
||||
|
||||
# If no arguments were passed, return
|
||||
[ -z "$1" ] && return 1
|
||||
|
||||
# Only do the fancy stuff if we have an appropriate terminal
|
||||
# and if /usr is already mounted
|
||||
TPUT=/usr/bin/tput
|
||||
EXPR=/usr/bin/expr
|
||||
if [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1; then
|
||||
COLS=`$TPUT cols`
|
||||
if [ -n "$COLS" ]; then
|
||||
COL=`$EXPR $COLS - 7`
|
||||
else
|
||||
COL=73
|
||||
fi
|
||||
UP=`$TPUT cuu1`
|
||||
END=`$TPUT hpa $COL`
|
||||
START=`$TPUT hpa 0`
|
||||
RED=`$TPUT setaf 1`
|
||||
NORMAL=`$TPUT op`
|
||||
if [ $1 -eq 0 ]; then
|
||||
echo "$UP$END[ ok ]"
|
||||
else
|
||||
echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]"
|
||||
fi
|
||||
else
|
||||
if [ $1 -eq 0 ]; then
|
||||
echo " ...done."
|
||||
else
|
||||
echo " ...fail!"
|
||||
fi
|
||||
fi
|
||||
return $1
|
||||
}
|
||||
|
||||
log_warning_msg () {
|
||||
if log_use_fancy_output; then
|
||||
YELLOW=`$TPUT setaf 3`
|
||||
NORMAL=`$TPUT op`
|
||||
echo "$YELLOW*$NORMAL $@"
|
||||
else
|
||||
echo "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -e /var/run/libvirtd.pid ]; then
|
||||
if [ -d /proc/$(cat /var/run/libvirtd.pid) ]; then
|
||||
echo "virtualization library already started; not starting."
|
||||
else
|
||||
echo "Removing stale PID file /var/run/libvirtd.pid."
|
||||
rm -f /var/run/libvirtd.pid
|
||||
fi
|
||||
fi
|
||||
log_begin_msg "Starting virtualization library daemon: libvirtd"
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/libvirtd.pid --exec /usr/sbin/libvirtd -- --daemon --listen
|
||||
log_end_msg $?
|
||||
;;
|
||||
stop)
|
||||
log_begin_msg "Stopping virtualization library daemon: libvirtd"
|
||||
start-stop-daemon --stop --quiet --retry 3 --exec /usr/sbin/libvirtd --pidfile /var/run/libvirtd.pid
|
||||
log_end_msg $?
|
||||
rm -f /var/run/libvirtd.pid
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
39
recipes-extended/libvirt/libvirt/oe_PYTHON_INCLUDES.patch
Normal file
39
recipes-extended/libvirt/libvirt/oe_PYTHON_INCLUDES.patch
Normal file
|
@ -0,0 +1,39 @@
|
|||
--- libvirt-0.9.10/configure.ac.sav 2012-03-14 15:03:11.042785629 -0600
|
||||
+++ libvirt-0.9.10/configure.ac 2012-03-14 15:17:13.722309867 -0600
|
||||
@@ -2052,26 +2052,22 @@
|
||||
AM_PATH_PYTHON(,, [:])
|
||||
|
||||
if test "$PYTHON" != : ; then
|
||||
- PYTHON_CONFIG="$PYTHON-config"
|
||||
-
|
||||
- if test -x "$PYTHON_CONFIG"
|
||||
+ if test -r `$as_dirname $PYTHON`/../include/python$PYTHON_VERSION/Python.h
|
||||
+ then
|
||||
+ PYTHON_INCLUDES=-I`$as_dirname $PYTHON`/../include/python$PYTHON_VERSION
|
||||
+ elif test -r $PYTHON_EXEC_PREFIX/include/python$PYTHON_VERSION/Python.h
|
||||
then
|
||||
- PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
|
||||
+ PYTHON_INCLUDES=-I$PYTHON_EXEC_PREFIX/include/python$PYTHON_VERSION
|
||||
else
|
||||
- if test -r $PYTHON_EXEC_PREFIX/include/python$PYTHON_VERSION/Python.h
|
||||
+ if test -r $prefix/include/python$PYTHON_VERSION/Python.h
|
||||
then
|
||||
- PYTHON_INCLUDES=-I$PYTHON_EXEC_PREFIX/include/python$PYTHON_VERSION
|
||||
+ PYTHON_INCLUDES=-I$prefix/include/python$PYTHON_VERSION
|
||||
else
|
||||
- if test -r $prefix/include/python$PYTHON_VERSION/Python.h
|
||||
+ if test -r /usr/include/python$PYTHON_VERSION/Python.h
|
||||
then
|
||||
- PYTHON_INCLUDES=-I$prefix/include/python$PYTHON_VERSION
|
||||
+ PYTHON_INCLUDES=-I/usr/include/python$PYTHON_VERSION
|
||||
else
|
||||
- if test -r /usr/include/python$PYTHON_VERSION/Python.h
|
||||
- then
|
||||
- PYTHON_INCLUDES=-I/usr/include/python$PYTHON_VERSION
|
||||
- else
|
||||
- AC_MSG_ERROR([You must install python-devel to build Python bindings])
|
||||
- fi
|
||||
+ AC_MSG_ERROR([You must install python-devel to build Python bindings])
|
||||
fi
|
||||
fi
|
||||
fi
|
100
recipes-extended/libvirt/libvirt_0.9.10.bb
Normal file
100
recipes-extended/libvirt/libvirt_0.9.10.bb
Normal file
|
@ -0,0 +1,100 @@
|
|||
DESCRIPTION = "A toolkit to interact with the virtualization capabilities of recent versions of Linux."
|
||||
HOMEPAGE = "http://libvirt.org"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f"
|
||||
SECTION = "console/tools"
|
||||
PR = "r1"
|
||||
|
||||
DEPENDS="bridge-utils gnutls libxml2 lvm2 avahi polkit parted curl libpcap util-linux e2fsprogs xen pm-utils iptables ebtables dnsmasq"
|
||||
|
||||
RDEPENDS_libvirt-libvirtd = "bridge-utils iptables pm-utils dnsmasq xen"
|
||||
|
||||
SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz \
|
||||
file://libvirtd.sh \
|
||||
file://libvirtd.conf"
|
||||
|
||||
SRC_URI[md5sum] = "a424bb793521e637349da47e93dd5fff"
|
||||
SRC_URI[sha256sum] = "5b81d9f054ee4b395b0ab4f59845d082baaa6d6c2a038c966309156dde16e11d"
|
||||
|
||||
inherit autotools gettext update-rc.d
|
||||
|
||||
# Trimmed down version for Xen daemon server
|
||||
EXTRA_OECONF="--with-xenapi=no --with-libxl=${STAGING_DIR_TARGET}/lib --with-xen=yes --with-xen-inotify=yes --with-qemu=no --with-uml=no --with-openvz=no --with-vmware=no --with-phyp=no --with-libvirtd -with-vbox=no --with-esx=no --with-hyperv=no --with-test=yes --with-remote=yes --with-macvtap=no \
|
||||
\
|
||||
ac_cv_path_XMLLINT=/usr/bin/xmllint \
|
||||
ac_cv_path_XMLCATLOG=/usr/bin/xmlcatalog \
|
||||
ac_cv_path_AUGPARSE=/usr/bin/augparse \
|
||||
ac_cv_path_DNSMASQ=/usr/bin/dnsmasq \
|
||||
ac_cv_path_BRCTL=/usr/sbin/brctl \
|
||||
ac_cv_path_TC=/sbin/tc \
|
||||
ac_cv_path_UDEVADM=/sbin/udevadm \
|
||||
ac_cv_path_MODPROBE=/sbin/modprobe \
|
||||
ac_cv_path_IP_PATH=/bin/ip \
|
||||
ac_cv_path_IPTABLES_PATH=/usr/sbin/iptables \
|
||||
ac_cv_path_IP6TABLES_PATH=/usr/sbin/ip6tables \
|
||||
ac_cv_path_MOUNT=/bin/mount \
|
||||
ac_cv_path_UMOUNT=/bin/umount \
|
||||
ac_cv_path_MKFS=/usr/sbin/mkfs \
|
||||
ac_cv_path_SHOWMOUNT=/usr/sbin/showmount \
|
||||
ac_cv_path_PVCREATE=/usr/sbin/pvcreate \
|
||||
ac_cv_path_VGCREATE=/usr/sbin/vgcreate \
|
||||
ac_cv_path_LVCREATE=/usr/sbin/lvcreate \
|
||||
ac_cv_path_PVREMOVE=/usr/sbin/pvremove \
|
||||
ac_cv_path_VGREMOVE=/usr/sbin/vgremove \
|
||||
ac_cv_path_LVREMOVE=/usr/sbin/lvremove \
|
||||
ac_cv_path_LVCHANGE=/usr/sbin/lvchange \
|
||||
ac_cv_path_VGCHANGE=/usr/sbin/vgchange \
|
||||
ac_cv_path_VGSCAN=/usr/sbin/vgscan \
|
||||
ac_cv_path_PVS=/usr/sbin/pvs \
|
||||
ac_cv_path_VGS=/usr/sbin/vgs \
|
||||
ac_cv_path_LVS=/usr/sbin/lvs \
|
||||
ac_cv_path_PARTED=/usr/sbin/parted \
|
||||
ac_cv_path_DMSETUP=/usr/sbin/dmsetup"
|
||||
|
||||
# Some other possible paths we are not yet setting
|
||||
#ac_cv_path_RPCGEN=
|
||||
#ac_cv_path_XSLTPROC=
|
||||
#ac_cv_path_RADVD=
|
||||
#ac_cv_path_UDEVSETTLE=
|
||||
#ac_cv_path_EBTABLES_PATH=
|
||||
#ac_cv_path_PKG_CONFIG=
|
||||
#ac_cv_path_ac_pt_PKG_CONFIG
|
||||
#ac_cv_path_PKCHECK_PATH=
|
||||
#ac_cv_path_POLKIT_AUTH=
|
||||
#ac_cv_path_DTRACE=
|
||||
#ac_cv_path_ISCSIADM=
|
||||
#ac_cv_path_MSGFMT=
|
||||
#ac_cv_path_GMSGFMT=
|
||||
#ac_cv_path_XGETTEXT=
|
||||
#ac_cv_path_MSGMERGE=
|
||||
#ac_cv_path_SCRUB=
|
||||
#ac_cv_path_PYTHON=
|
||||
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
|
||||
PACKAGES =+ "${PN}-libvirtd ${PN}-virsh"
|
||||
|
||||
FILES_${PN}-libvirtd = "${sysconfdir}/init.d \
|
||||
${sysconfdir}/sysctl.d \
|
||||
${sysconfdir}/logrotate.d \
|
||||
${sysconfdir}/libvirt/libvirtd.conf \
|
||||
${sbindir}/libvirtd"
|
||||
|
||||
FILES_${PN}-virsh = "${bindir}/virsh"
|
||||
|
||||
INITSCRIPT_PACKAGES = "${PN}-libvirtd"
|
||||
INITSCRIPT_NAME_${PN}-libvirtd = "libvirtd"
|
||||
INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72"
|
||||
|
||||
# Disable the Python tool support
|
||||
#EXTRA_OECONF += " --with-python=no"
|
||||
# Enable the Python tool support
|
||||
require libvirt-python.inc
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}/etc/init.d
|
||||
install -d ${D}/etc/libvirt
|
||||
|
||||
install -m 0755 ${WORKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd
|
||||
install -m 0644 ${WORKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf
|
||||
}
|
Loading…
Reference in New Issue
Block a user