2011-02-10 13:06:29 +01:00
|
|
|
# Template file for 'libvirt'
|
|
|
|
pkgname=libvirt
|
2013-07-29 23:35:32 +02:00
|
|
|
version=1.1.0
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-01-12 16:31:22 +01:00
|
|
|
configure_args="--without-hal --with-storage-lvm --without-xen
|
2013-07-29 23:35:32 +02:00
|
|
|
--disable-static --with-init-script=systemd --with-qemu-user=nobody
|
|
|
|
--with-qemu-group=nobody --without-netcf --with-interface --sbindir=/usr/sbin
|
2013-01-12 16:31:22 +01:00
|
|
|
ac_cv_path_MOUNT=/bin/mount ac_cv_path_UMOUNT=/bin/umount
|
|
|
|
ac_cv_path_MKFS=/sbin/mkfs ac_cv_path_SHOWMOUNT=/usr/sbin/showmount"
|
|
|
|
short_desc="The virtualization API for controlling virtualization engines"
|
2011-02-10 13:06:29 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-02 14:20:36 +02:00
|
|
|
homepage="http://libvirt.org"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
distfiles="http://libvirt.org/sources/$pkgname-$version.tar.gz"
|
2013-07-29 23:35:32 +02:00
|
|
|
checksum=ce9e765697ecb595469489665043ce221d9b70babc16fec77ee938fe37676928
|
2013-01-12 16:31:22 +01:00
|
|
|
|
2013-07-29 23:35:32 +02:00
|
|
|
hostmakedepends="perl pkg-config"
|
|
|
|
makedepends="readline-devel libcap-ng-devel libnl3-devel attr-devel
|
2013-01-12 16:31:22 +01:00
|
|
|
gnutls-devel>=3.1.5 libsasl-devel libcurl-devel libpcap-devel libxml2-devel
|
|
|
|
libparted-devel device-mapper-devel dbus-devel libudev-devel>=183
|
|
|
|
libpciaccess-devel avahi-libs-devel polkit-devel yajl-devel
|
2013-07-29 23:35:32 +02:00
|
|
|
python-devel libssh2-devel libnuma-devel libcap-ng-devel fuse-devel
|
|
|
|
lvm2 parted"
|
2013-01-12 16:31:22 +01:00
|
|
|
|
|
|
|
post_install() {
|
2013-07-29 23:35:32 +02:00
|
|
|
# Move everything to /usr.
|
2013-04-16 09:10:11 +02:00
|
|
|
vmkdir usr/lib
|
|
|
|
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib
|
2013-01-12 16:31:22 +01:00
|
|
|
rm -rf ${DESTDIR}/etc/sysconfig
|
2013-07-29 23:35:32 +02:00
|
|
|
# Remove unused stuff.
|
|
|
|
rm -rf ${DESTDIR}/etc/logrotate.d
|
|
|
|
rm -rf ${DESTDIR}/var/log
|
|
|
|
# systemd stuff.
|
2013-01-12 16:31:22 +01:00
|
|
|
vinstall ${FILESDIR}/libvirt.tmpfiles.d 644 usr/lib/tmpfiles.d libvirt.conf
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libvirt-devel_package() {
|
|
|
|
depends="libvirt>=$version"
|
2013-07-29 23:35:32 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-07-29 23:35:32 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
vmove usr/share/doc/libvirt-${version}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libvirt-python_package() {
|
|
|
|
depends="python"
|
2013-07-29 23:35:32 +02:00
|
|
|
short_desc+=" - python bindings"
|
2013-04-13 10:15:49 +02:00
|
|
|
pycompile_module="libvirt.py libvirt_qemu.py"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python*"
|
|
|
|
vmove "usr/share/doc/libvirt-python*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libvirt_package() {
|
|
|
|
depends="lvm2 parted"
|
|
|
|
conf_files="
|
|
|
|
/etc/libvirt/libvirt.conf
|
|
|
|
/etc/libvirt/libvirtd.conf
|
2013-07-29 23:35:32 +02:00
|
|
|
/etc/libvirt/lxc.conf
|
|
|
|
/etc/libvirt/qemu.conf
|
|
|
|
/etc/libvirt/qemu-lockd.conf
|
2013-04-13 10:15:49 +02:00
|
|
|
/etc/sasl2/libvirt.conf"
|
|
|
|
make_dirs="
|
|
|
|
/var/cache/libvirt/qemu 0755 root root
|
|
|
|
/var/lib/libvirt/boot 0755 root root
|
|
|
|
/var/lib/libvirt/filesystems 0755 root root
|
|
|
|
/var/lib/libvirt/images 0755 root root
|
|
|
|
/var/lib/libvirt/network 0755 root root
|
|
|
|
/var/lib/libvirt/qemu 0755 root root
|
|
|
|
/var/lib/libvirt/lockd/files 0755 root root
|
|
|
|
/var/lib/libvirt/lxc 0755 root root
|
|
|
|
/var/lib/libvirt/dnsmasq 0755 root root
|
|
|
|
/var/lib/libvirt/uml 0755 root root"
|
|
|
|
pkg_install() {
|
2013-07-29 23:35:32 +02:00
|
|
|
vmove all
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|