diff --git a/srcpkgs/libvirt-devel b/srcpkgs/libvirt-devel new file mode 120000 index 0000000000..1bf26df947 --- /dev/null +++ b/srcpkgs/libvirt-devel @@ -0,0 +1 @@ +libvirt \ No newline at end of file diff --git a/srcpkgs/libvirt-python b/srcpkgs/libvirt-python new file mode 120000 index 0000000000..1bf26df947 --- /dev/null +++ b/srcpkgs/libvirt-python @@ -0,0 +1 @@ +libvirt \ No newline at end of file diff --git a/srcpkgs/libvirt/depends b/srcpkgs/libvirt/depends new file mode 100644 index 0000000000..82d4f82b1c --- /dev/null +++ b/srcpkgs/libvirt/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.8.7" +api_depends="${abi_depends}" diff --git a/srcpkgs/libvirt/libvirt-devel.template b/srcpkgs/libvirt/libvirt-devel.template new file mode 100644 index 0000000000..f4539e9d2e --- /dev/null +++ b/srcpkgs/libvirt/libvirt-devel.template @@ -0,0 +1,35 @@ +# Template file for 'libvirt-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libcap-ng-devel +Add_dependency run libnl-devel +Add_dependency run gnutls-devel +Add_dependency run libgcrypt-devel +Add_dependency run libsasl-devel +Add_dependency run xen-devel +Add_dependency run libcurl-devel +Add_dependency run libpcap-devel +Add_dependency run libxml2-devel +Add_dependency run libparted-devel +Add_dependency run device-mapper-devel +Add_dependency run dbus-devel +Add_dependency run libudev-devel +Add_dependency run libpciaccess-devel +Add_dependency run avahi-libs-devel +Add_dependency run readline-devel +Add_dependency run libvirt + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/doc + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/gtk-doc ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/share/doc/libvirt-${version} \ + ${DESTDIR}/usr/share/doc +} diff --git a/srcpkgs/libvirt/libvirt-python.template b/srcpkgs/libvirt/libvirt-python.template new file mode 100644 index 0000000000..abafbcaa08 --- /dev/null +++ b/srcpkgs/libvirt/libvirt-python.template @@ -0,0 +1,27 @@ +# Template file for 'libvirt-python'. +# +short_desc="${short_desc} - python bindings" +long_desc="${long_desc} + + This package contains the Python language bindings." + +Add_dependency run glibc +Add_dependency run libcap-ng +Add_dependency run libnl +Add_dependency run gnutls +Add_dependency run libgcrypt +Add_dependency run libsasl +Add_dependency run xen +Add_dependency run libcurl +Add_dependency run libpcap +Add_dependency run libxml2 +Add_dependency run python +Add_dependency run libvirt + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/doc + mv ${SRCPKGDESTDIR}/usr/lib/python* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/doc/libvirt-python* \ + ${DESTDIR}/usr/share/doc +} diff --git a/srcpkgs/libvirt/template b/srcpkgs/libvirt/template new file mode 100644 index 0000000000..82a47d1b28 --- /dev/null +++ b/srcpkgs/libvirt/template @@ -0,0 +1,64 @@ +# Template file for 'libvirt' +pkgname=libvirt +version=0.8.7 +distfiles="http://libvirt.org/sources/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--without-hal" +make_build_args="POD2MAN=/usr/lib/perl5/core_perl/bin/pod2man" +short_desc="The virtualization API" +maintainer="Juan RP " +checksum=da7b0e8bff7b2df2e19d732272674599bfb805787fb0d6f30289ba700ca77f31 +long_desc=" + libvirt is: + * A toolkit to interact with the virtualization capabilities of recent + versions of Linux (and other OSes). + * Free software available under the GNU Lesser General Public License. + * A long term stable C API + * A set of bindings for common languages + * A CIM provider for the DMTF virtualization schema + * A QMF agent for the AMQP/QPid messaging system" + +subpackages="$pkgname-devel $pkgname-python" + +conf_files=" +/etc/libvirt/qemu.conf +/etc/libvirt/lxc.conf +/etc/libvirt/libvirtd.conf +/etc/sasl2/libvirt.conf" + +Add_dependency run glibc +Add_dependency run libcap-ng +Add_dependency run libnl +Add_dependency run gnutls +Add_dependency run libgcrypt +Add_dependency run libsasl +Add_dependency run xen +Add_dependency run libcurl +Add_dependency run libpcap +Add_dependency run libxml2 +Add_dependency run libparted +Add_dependency run device-mapper +Add_dependency run dbus-libs +Add_dependency run libudev +Add_dependency run libpciaccess +Add_dependency run avahi-libs +Add_dependency run readline +Add_dependency run polkit + +Add_dependency build libcap-ng-devel +Add_dependency build libnl-devel +Add_dependency build gnutls-devel +Add_dependency build libgcrypt-devel +Add_dependency build libsasl-devel +Add_dependency build xen-devel +Add_dependency build libcurl-devel +Add_dependency build libpcap-devel +Add_dependency build libxml2-devel +Add_dependency build libparted-devel +Add_dependency build device-mapper-devel +Add_dependency build dbus-devel +Add_dependency build libudev-devel +Add_dependency build libpciaccess-devel +Add_dependency build avahi-libs-devel +Add_dependency build readline-devel +Add_dependency build polkit-devel diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 750b513f3b..74e000df3d 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -758,3 +758,5 @@ libsvn_swig_perl-1.so subversion-perl subversion-devel libsvn_swig_ruby-1.so subversion-ruby subversion-devel libjson-glib-1.0.so json-glib json-glib-devel liblxc.so liblxc lxc-devel +libvirt.so libvirt libvirt-devel +libvirt-qemu.so libvirt libvirt-devel