From patchwork Thu Sep 14 20:36:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 813944 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtVgk1ktpz9s9Y for ; Fri, 15 Sep 2017 06:36:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0DF2488C2E; Thu, 14 Sep 2017 20:36:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YC5twdA8q2fi; Thu, 14 Sep 2017 20:36:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 03C4D88CCB; Thu, 14 Sep 2017 20:36:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A78391BFC8C for ; Thu, 14 Sep 2017 20:36:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A16308ABCE for ; Thu, 14 Sep 2017 20:36:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mvBCTWJyW4RD for ; Thu, 14 Sep 2017 20:36:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by hemlock.osuosl.org (Postfix) with ESMTPS id A99D88ABCD for ; Thu, 14 Sep 2017 20:36:41 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 71BD015F0401; Thu, 14 Sep 2017 17:35:40 -0300 (BRT) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 63B0915FE1EA; Thu, 14 Sep 2017 17:35:40 -0300 (BRT) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kK1NedtsJ6gg; Thu, 14 Sep 2017 17:35:40 -0300 (BRT) Received: from pedeld202344.datacom.net (pedeld202344.datacom.net [10.0.120.87]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 3EC5614B7D8C; Thu, 14 Sep 2017 17:35:40 -0300 (BRT) From: Carlos Santos To: buildroot@buildroot.org Date: Thu, 14 Sep 2017 17:36:31 -0300 Message-Id: <1505421391-11951-1-git-send-email-casantos@datacom.ind.br> X-Mailer: git-send-email 2.7.5 Subject: [Buildroot] [RFC v2] libvirt: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Libvirt is collection of software that provides a convenient way to manage virtual machines and other virtualization functionality, such as storage and network interface management. These software pieces include an API library, a daemon (libvirtd), and a command line utility (virsh). http://libvirt.org/ --- History: v0: primitive package, for experimental purposes only v0->v1: - Clarify dependence on !BR2_TOOLCHAIN_USES_MUSL - Add run-time dependence dnsmask - Add dependence on eudev and libpciaccess when eudev is selected (thus detected by configure). --- package/Config.in | 1 + package/libvirt/Config.in | 25 +++++++++++++++++++++++++ package/libvirt/libvirt.hash | 2 ++ package/libvirt/libvirt.mk | 30 ++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 package/libvirt/Config.in create mode 100644 package/libvirt/libvirt.hash create mode 100644 package/libvirt/libvirt.mk diff --git a/package/Config.in b/package/Config.in index ba101db..ccd42c7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1876,6 +1876,7 @@ menu "System tools" source "package/keyutils/Config.in" source "package/kmod/Config.in" source "package/kvmtool/Config.in" + source "package/libvirt/Config.in" source "package/lxc/Config.in" source "package/monit/Config.in" source "package/ncdu/Config.in" diff --git a/package/libvirt/Config.in b/package/libvirt/Config.in new file mode 100644 index 0000000..cc6dcb0 --- /dev/null +++ b/package/libvirt/Config.in @@ -0,0 +1,25 @@ +config BR2_PACKAGE_LIBVIRT + bool "libvirt" + depends on !BR2_STATIC_LIBS # libnl, lvm2 + depends on BR2_USE_MMU # needs fork() + depends on BR2_TOOLCHAIN_HAS_THREADS # libnl, libtirpc + depends on !BR2_TOOLCHAIN_USES_MUSL # lvm2 + select BR2_PACKAGE_DNSMASQ # run-time + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBTIRPC + select BR2_PACKAGE_LIBPCIACCESS if BR2_PACKAGE_EUDEV + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LVM2 + select BR2_PACKAGE_YAJL + help + Libvirt is collection of software that provides a convenient + way to manage virtual machines and other virtualization + functionality, such as storage and network interface + management. These software pieces include an API library, a + daemon (libvirtd), and a command line utility (virsh). + + http://libvirt.org/ + +comment "libvirt needs a glibc or uClibc toolchain w/ threads, dynamic library" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_MUSL diff --git a/package/libvirt/libvirt.hash b/package/libvirt/libvirt.hash new file mode 100644 index 0000000..389a3c1 --- /dev/null +++ b/package/libvirt/libvirt.hash @@ -0,0 +1,2 @@ +# locally computed +sha256 4e7bcb209eeef99f026484293abc733e30ed06dabcdde62c4c3e95f71b2b67ba libvirt-3.7.0.tar.xz diff --git a/package/libvirt/libvirt.mk b/package/libvirt/libvirt.mk new file mode 100644 index 0000000..eaf1fc3 --- /dev/null +++ b/package/libvirt/libvirt.mk @@ -0,0 +1,30 @@ +################################################################################ +# +# libvirt +# +################################################################################ + +LIBVIRT_VERSION = 3.7.0 +LIBVIRT_SITE = http://libvirt.org/sources +LIBVIRT_SOURCE = libvirt-$(LIBVIRT_VERSION).tar.xz +LIBVIRT_LICENSE = LGPL-2.1+ +LIBVIRT_LICENSE_FILES = COPYING +# LIBVIRT_INSTALL_STAGING = YES +LIBVIRT_DEPENDENCIES = libnl libtirpc libxml2 lvm2 yajl + +ifeq ($(BR2_PACKAGE_EUDEV),y) +LIBVIRT_DEPENDENCIES += eudev libpciaccess +endif + +LIBVIRT_CONF_ENV += \ + CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" \ + LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`" + +LIBVIRT_CONF_OPTS = \ + --disable-debug \ + --with-gnu-ld \ + --without-dtrace \ + --without-vmware \ + --without-vbox + +$(eval $(autotools-package))