From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 16 Mar 2023 15:32:26 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pcoeX-002lEH-3A for lore@lore.pengutronix.de; Thu, 16 Mar 2023 15:32:26 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pcoeW-00058I-QJ; Thu, 16 Mar 2023 15:32:24 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pcodi-0003nu-9H; Thu, 16 Mar 2023 15:31:34 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pcodh-004ZQo-Ki; Thu, 16 Mar 2023 15:31:33 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pcodg-00FSKi-SW; Thu, 16 Mar 2023 15:31:32 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 16 Mar 2023 15:31:32 +0100 Message-Id: <20230316143132.3683679-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230312185306.2402677-1-rhi@pengutronix.de> References: <20230312185306.2402677-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] libslirp: new package: user-mode networking library used by qemu X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 81fbc066ec4975fbfd0faecea733dc72f80a5f1d. Michael [sent from post-receive hook] On Thu, 16 Mar 2023 15:31:32 +0100, Roland Hieber wrote: > The host package will be used for qemu in the next commit. > > Signed-off-by: Roland Hieber > Message-Id: <20230312185306.2402677-1-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/host-libslirp.in b/rules/host-libslirp.in > new file mode 100644 > index 000000000000..d0a9f211f89a > --- /dev/null > +++ b/rules/host-libslirp.in > @@ -0,0 +1,7 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_LIBSLIRP > + tristate > + select HOST_GLIB > + select HOST_MESON > + prompt "libslirp" > diff --git a/rules/host-libslirp.make b/rules/host-libslirp.make > new file mode 100644 > index 000000000000..de2af49fb9bd > --- /dev/null > +++ b/rules/host-libslirp.make > @@ -0,0 +1,23 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_LIBSLIRP) += host-libslirp > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# meson > +# > +HOST_LIBSLIRP_CONF_TOOL := meson > + > +# vim: syntax=make > diff --git a/rules/libslirp.in b/rules/libslirp.in > new file mode 100644 > index 000000000000..a078775a1887 > --- /dev/null > +++ b/rules/libslirp.in > @@ -0,0 +1,10 @@ > +## SECTION=networking > + > +config LIBSLIRP > + tristate > + select HOST_MESON > + select GLIB > + prompt "libslirp" > + help > + libslirp is a user-mode networking library used by virtual machines, > + containers or various tools, like qemu. > diff --git a/rules/libslirp.make b/rules/libslirp.make > new file mode 100644 > index 000000000000..232241da2b96 > --- /dev/null > +++ b/rules/libslirp.make > @@ -0,0 +1,58 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_LIBSLIRP) += libslirp > + > +# > +# Paths and names > +# > +LIBSLIRP_VERSION := 4.7.0 > +LIBSLIRP_MD5 := b815c4de99265559caf5ef635a213609 > +LIBSLIRP := libslirp-v$(LIBSLIRP_VERSION) > +LIBSLIRP_SUFFIX := tar.bz2 > +LIBSLIRP_URL := https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.7.0/$(LIBSLIRP).$(LIBSLIRP_SUFFIX) > +LIBSLIRP_SOURCE := $(SRCDIR)/$(LIBSLIRP).$(LIBSLIRP_SUFFIX) > +LIBSLIRP_DIR := $(BUILDDIR)/$(LIBSLIRP) > +LIBSLIRP_LICENSE := BSD-3-Clause AND MIT > +LIBSLIRP_LICENSE_FILES := \ > + file://src/main.h;endline=4;md5=1e742c49b6e4dd48549742f8727faceb \ > + file://src/slirp.c;endline=24;md5=1e11fddaa17f36215c1697d4bad0e70a \ > + file://COPYRIGHT;md5=bca0186b14e6b05e338e729f106db727 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# meson > +# > +LIBSLIRP_CONF_TOOL := meson > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/libslirp.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, libslirp) > + @$(call install_fixup, libslirp,PRIORITY,optional) > + @$(call install_fixup, libslirp,SECTION,base) > + @$(call install_fixup, libslirp,AUTHOR,"Roland Hieber ") > + @$(call install_fixup, libslirp,DESCRIPTION,missing) > + > + @$(call install_lib, libslirp, 0, 0, 0644, libslirp) > + > + @$(call install_finish, libslirp) > + > + @$(call touch) > + > +# vim: syntax=make