2011-02-10 12:06:29 +00:00
|
|
|
# Template file for 'libvirt'
|
|
|
|
pkgname=libvirt
|
2015-02-04 08:31:36 +00:00
|
|
|
version=1.2.12
|
2014-09-18 19:33:52 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-10-27 16:28:53 +00:00
|
|
|
build_options="systemd"
|
|
|
|
configure_args="--without-hal --with-storage-lvm --with-qemu-user=nobody
|
|
|
|
--disable-static $(vopt_if systemd '--with-init-script=systemd')
|
2014-10-27 16:31:39 +00:00
|
|
|
--with-qemu-group=nogroup --without-netcf --with-interface --sbindir=/usr/sbin
|
2013-01-12 15:31:22 +00:00
|
|
|
ac_cv_path_MOUNT=/bin/mount ac_cv_path_UMOUNT=/bin/umount
|
2014-10-27 16:28:53 +00:00
|
|
|
ac_cv_path_MKFS=/sbin/mkfs ac_cv_path_SHOWMOUNT=/sbin/showmount"
|
2013-01-12 15:31:22 +00:00
|
|
|
short_desc="The virtualization API for controlling virtualization engines"
|
2011-02-10 12:06:29 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-02 12:20:36 +00:00
|
|
|
homepage="http://libvirt.org"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
distfiles="http://libvirt.org/sources/$pkgname-$version.tar.gz"
|
2015-02-04 08:31:36 +00:00
|
|
|
checksum=eff5227f774560d97f0b44402a444e821c51e8cd44add89f74bc3c1f4dede66a
|
2013-01-12 15:31:22 +00:00
|
|
|
|
2014-09-18 19:33:52 +00:00
|
|
|
hostmakedepends="perl pkg-config lvm2 parted"
|
2014-02-27 13:54:19 +00:00
|
|
|
makedepends="readline-devel>=6.3 libcap-ng-devel libnl3-devel attr-devel
|
2013-01-12 15:31:22 +00:00
|
|
|
gnutls-devel>=3.1.5 libsasl-devel libcurl-devel libpcap-devel libxml2-devel
|
2014-10-27 16:28:53 +00:00
|
|
|
libparted-devel device-mapper-devel dbus-devel libudev-devel libblkid-devel
|
2013-01-12 15:31:22 +00:00
|
|
|
libpciaccess-devel avahi-libs-devel polkit-devel yajl-devel
|
2014-09-18 19:33:52 +00:00
|
|
|
python-devel libssh2-devel libcap-ng-devel fuse-devel"
|
2014-10-27 16:28:53 +00:00
|
|
|
|
2014-10-27 16:37:28 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2014-10-27 16:28:53 +00:00
|
|
|
configure_args+=" --with-xen"
|
2015-01-16 09:02:37 +00:00
|
|
|
makedepends+=" libnuma-devel xen-devel>=4.5"
|
2014-10-27 16:37:28 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
|
|
configure_args+=" --without-xen"
|
|
|
|
makedepends+=" libnuma-devel"
|
2014-10-27 16:28:53 +00:00
|
|
|
else
|
|
|
|
configure_args+=" --without-xen"
|
2014-08-28 11:13:26 +00:00
|
|
|
fi
|
2014-10-27 16:28:53 +00:00
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="
|
2014-10-27 16:28:53 +00:00
|
|
|
/etc/libvirt/libvirt.conf
|
|
|
|
/etc/libvirt/libvirtd.conf
|
|
|
|
/etc/libvirt/lxc.conf
|
|
|
|
/etc/libvirt/nwfilter
|
|
|
|
/etc/libvirt/nwfilter/allow-arp.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-dhcp-server.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-dhcp.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-incoming-ipv4.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-ipv4.xml
|
|
|
|
/etc/libvirt/nwfilter/clean-traffic.xml
|
|
|
|
/etc/libvirt/nwfilter/no-arp-ip-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-arp-mac-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-arp-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-ip-multicast.xml
|
|
|
|
/etc/libvirt/nwfilter/no-ip-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-mac-broadcast.xml
|
|
|
|
/etc/libvirt/nwfilter/no-mac-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-other-l2-traffic.xml
|
|
|
|
/etc/libvirt/nwfilter/no-other-rarp-traffic.xml
|
|
|
|
/etc/libvirt/nwfilter/qemu-announce-self-rarp.xml
|
|
|
|
/etc/libvirt/nwfilter/qemu-announce-self.xml
|
|
|
|
/etc/libvirt/qemu-lockd.conf
|
|
|
|
/etc/libvirt/qemu.conf
|
|
|
|
/etc/libvirt/qemu/networks/autostart/default.xml
|
|
|
|
/etc/libvirt/qemu/networks/default.xml
|
|
|
|
/etc/libvirt/virt-login-shell.conf
|
|
|
|
/etc/libvirt/virtlockd.conf"
|
2014-01-01 15:10:11 +00:00
|
|
|
make_dirs="
|
2014-10-27 16:28:53 +00:00
|
|
|
/var/lib/libvirt/uml 0755 root root
|
|
|
|
/var/lib/libvirt/qemu/nvram 0755 root root
|
|
|
|
/var/lib/libvirt/qemu/channel/target 0755 root root
|
|
|
|
/var/lib/libvirt/network 0755 root root
|
|
|
|
/var/lib/libvirt/lxc 0755 root root
|
|
|
|
/var/lib/libvirt/lockd/files 0755 root root
|
|
|
|
/var/lib/libvirt/libxl 0755 root root
|
|
|
|
/var/lib/libvirt/images 0755 root root
|
|
|
|
/var/lib/libvirt/filesystems 0755 root root
|
|
|
|
/var/lib/libvirt/dnsmasq 0755 root root
|
|
|
|
/var/libvirt/boot 0755 root root
|
|
|
|
/var/cache/libvirt/qemu 0755 root root"
|
2013-01-12 15:31:22 +00:00
|
|
|
|
|
|
|
post_install() {
|
2014-10-27 16:28:53 +00:00
|
|
|
# runit services
|
|
|
|
vsv libvirtd
|
|
|
|
vsv virtlockd
|
|
|
|
|
2013-01-12 15:31:22 +00:00
|
|
|
rm -rf ${DESTDIR}/etc/sysconfig
|
2013-07-29 21:35:32 +00:00
|
|
|
# Remove unused stuff.
|
|
|
|
rm -rf ${DESTDIR}/var/log
|
2013-01-12 15:31:22 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libvirt-devel_package() {
|
2014-10-27 16:28:53 +00:00
|
|
|
depends="libvirt>=${version}_${revision}"
|
2013-07-29 21:35:32 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-07-29 21:35:32 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|