void-packages/srcpkgs/libvirt/template

65 lines
2.2 KiB
Plaintext

# Template file for 'libvirt'
pkgname=libvirt
version=1.2.8
revision=1
build_style=gnu-configure
configure_args="--without-hal --with-storage-lvm --without-xen
--disable-static --with-init-script=systemd --with-qemu-user=nobody
--with-qemu-group=nobody --without-netcf --with-interface --sbindir=/usr/sbin
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"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://libvirt.org"
license="LGPL-2.1"
distfiles="http://libvirt.org/sources/$pkgname-$version.tar.gz"
checksum=0049940b013ea5858b53d9b540c9df9cc3c8cb08750acfd96e9991a1f709e100
hostmakedepends="perl pkg-config lvm2 parted"
makedepends="readline-devel>=6.3 libcap-ng-devel libnl3-devel attr-devel
gnutls-devel>=3.1.5 libsasl-devel libcurl-devel libpcap-devel libxml2-devel
libparted-devel device-mapper-devel dbus-devel libudev-devel
libpciaccess-devel avahi-libs-devel polkit-devel yajl-devel
python-devel libssh2-devel libcap-ng-devel fuse-devel"
if [ "$XBPS_MACHINE" = "i686" -o "$XBPS_MACHINE" = "x86_64" ]; then
makedepends+=" libnuma-devel"
fi
depends="lvm2 parted"
conf_files="
/etc/libvirt/libvirt.conf
/etc/libvirt/libvirtd.conf
/etc/libvirt/lxc.conf
/etc/libvirt/qemu.conf
/etc/libvirt/qemu-lockd.conf
/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"
post_install() {
rm -rf ${DESTDIR}/etc/sysconfig
# Remove unused stuff.
rm -rf ${DESTDIR}/var/log
# systemd stuff.
vinstall ${FILESDIR}/libvirt.tmpfiles.d 644 usr/lib/tmpfiles.d libvirt.conf
}
libvirt-devel_package() {
depends="libvirt>=$version"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
}
}