2011-02-10 12:06:29 +00:00
|
|
|
# Template file for 'libvirt'
|
|
|
|
pkgname=libvirt
|
2013-01-30 17:29:10 +00:00
|
|
|
version=1.0.2
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-01-12 15:31:22 +00:00
|
|
|
configure_args="--without-hal --with-storage-lvm --without-xen
|
|
|
|
--disable-static --with-init-script=systemd
|
|
|
|
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"
|
|
|
|
subpackages="${pkgname}-devel ${pkgname}-python"
|
|
|
|
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"
|
2013-01-30 17:29:10 +00:00
|
|
|
checksum=9b8c2752f78658b65ef1c608b3775be0978d60855a9b5e2778f79c113201c179
|
2013-01-12 15:31:22 +00:00
|
|
|
|
|
|
|
makedepends="pkg-config readline-devel libcap-ng-devel libnl3-devel
|
|
|
|
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-01-30 17:29:10 +00:00
|
|
|
python-devel libssh2-devel"
|
2013-01-12 15:31:22 +00:00
|
|
|
|
|
|
|
fulldepends="lvm2 parted"
|
2011-02-10 12:06:29 +00:00
|
|
|
|
|
|
|
conf_files="
|
|
|
|
/etc/libvirt/lxc.conf
|
2013-01-12 15:31:22 +00:00
|
|
|
/etc/libvirt/qemu-lockd.conf
|
2012-05-17 16:28:21 +00:00
|
|
|
/etc/libvirt/libvirt.conf
|
2013-01-12 15:31:22 +00:00
|
|
|
/etc/libvirt/qemu/networks/default.xml
|
|
|
|
/etc/libvirt/qemu/networks/autostart
|
|
|
|
/etc/libvirt/qemu/networks/autostart/default.xml
|
|
|
|
/etc/libvirt/nwfilter/qemu-announce-self.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-ipv4.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-incoming-ipv4.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-dhcp.xml
|
|
|
|
/etc/libvirt/nwfilter/no-other-l2-traffic.xml
|
|
|
|
/etc/libvirt/nwfilter/no-mac-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-other-rarp-traffic.xml
|
|
|
|
/etc/libvirt/nwfilter/qemu-announce-self-rarp.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-arp.xml
|
|
|
|
/etc/libvirt/nwfilter/allow-dhcp-server.xml
|
|
|
|
/etc/libvirt/nwfilter/no-arp-ip-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-arp-mac-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-mac-broadcast.xml
|
|
|
|
/etc/libvirt/nwfilter/no-arp-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/no-ip-spoofing.xml
|
|
|
|
/etc/libvirt/nwfilter/clean-traffic.xml
|
|
|
|
/etc/libvirt/nwfilter/no-ip-multicast.xml
|
|
|
|
/etc/libvirt/qemu.conf
|
|
|
|
/etc/libvirt/libvirtd.conf
|
2011-02-10 12:06:29 +00:00
|
|
|
/etc/sasl2/libvirt.conf"
|
2013-01-12 15:31:22 +00:00
|
|
|
|
|
|
|
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() {
|
2013-01-12 15:39:11 +00:00
|
|
|
# Remove static files.
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libvirt/connection-driver/*.a
|
2013-01-12 15:31:22 +00:00
|
|
|
vmove "lib/*" usr/lib
|
|
|
|
rm -rf ${DESTDIR}/etc/sysconfig
|
|
|
|
# Remove sysconfig specific stuff from systemd services.
|
|
|
|
sed -i -e "/EnvironmentFile.*/d;" ${DESTDIR}/usr/lib/systemd/system/*.service
|
|
|
|
sed -i -e "s| \$LIBVIRTD_ARGS||;s|@sbindir@|/usr/sbin|g" \
|
|
|
|
${DESTDIR}/usr/lib/systemd/system/*.service
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/libvirt.tmpfiles.d 644 usr/lib/tmpfiles.d libvirt.conf
|
|
|
|
}
|