mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: ore@pengutronix.de, Roland Hieber <rhi@pengutronix.de>
Subject: Re: [ptxdist] [PATCH v2] tcpreplay: new package
Date: Tue, 24 Sep 2024 11:05:07 +0200	[thread overview]
Message-ID: <d9198edf-0c65-4108-8508-1ee02891df92@pengutronix.de> (raw)
In-Reply-To: <20240923132020.1626850-1-bst@pengutronix.de>

On 9/23/24 3:20 PM, Bastian Krause wrote:
> Signed-off-by: Bastian Krause <bst@pengutronix.de>
> ---
> Changes since (implicit) v1:
> - add BSD-4-Clause-UC and BSD-3-Clause to TCPREPLAY_LICENSE (as suggested
>    by Roland)
> - add references to additional licenses in TCPREPLAY_LICENSE_FILES with
>    checksum (as suggested by Roland)

I did not notice that the v1 of this pach was already applied on master.
I've sent the diff between v1 and v2 (and a small fixup as "[PATCH]
tcpreplay: fix license and pin down more license files" (message-id:
<20240924090331.2643891-1-bst@pengutronix.de>).

Bastian


> ---
>   rules/tcpreplay.in   |  9 +++++
>   rules/tcpreplay.make | 82 ++++++++++++++++++++++++++++++++++++++++++++
>   2 files changed, 91 insertions(+)
>   create mode 100644 rules/tcpreplay.in
>   create mode 100644 rules/tcpreplay.make
> 
> diff --git a/rules/tcpreplay.in b/rules/tcpreplay.in
> new file mode 100644
> index 000000000..bd1791744
> --- /dev/null
> +++ b/rules/tcpreplay.in
> @@ -0,0 +1,9 @@
> +## SECTION=networking
> +
> +config TCPREPLAY
> +	tristate
> +	prompt "tcpreplay"
> +	select LIBPCAP
> +	help
> +	  tcpreplay is a suite of free Open Source utilities for editing and
> +	  replaying previously captured network traffic.
> diff --git a/rules/tcpreplay.make b/rules/tcpreplay.make
> new file mode 100644
> index 000000000..a93587113
> --- /dev/null
> +++ b/rules/tcpreplay.make
> @@ -0,0 +1,82 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2024 by Bastian Krause <bst@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_TCPREPLAY) += tcpreplay
> +
> +#
> +# Paths and names
> +#
> +TCPREPLAY_VERSION	:= 4.5.1
> +TCPREPLAY_MD5		:= 53375102b54b3e6ef124f6ae85836092
> +TCPREPLAY		:= tcpreplay-$(TCPREPLAY_VERSION)
> +TCPREPLAY_SUFFIX	:= tar.xz
> +TCPREPLAY_URL		:= https://github.com/appneta/tcpreplay/releases/download/v$(TCPREPLAY_VERSION)/$(TCPREPLAY).$(TCPREPLAY_SUFFIX)
> +TCPREPLAY_SOURCE	:= $(SRCDIR)/$(TCPREPLAY).$(TCPREPLAY_SUFFIX)
> +TCPREPLAY_DIR		:= $(BUILDDIR)/$(TCPREPLAY)
> +TCPREPLAY_LICENSE	:= GPL-3.0-only AND BSD-4-Clause-UC AND BSD-3-Clause
> +TCPREPLAY_LICENSE_FILES := \
> +	file://src/common/err.c;startline=14;endline=43;md5=0fd028531634bf7aba2791035e3c2de4 \
> +	file://src/common/fakepoll.c;startline=8;endline=36;md5=903f05912a12e9a01b3018b915a1a7df \
> +	file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +TCPREPLAY_CONF_TOOL	:= autoconf
> +TCPREPLAY_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	$(GLOBAL_LARGE_FILE_OPTION) \
> +	--disable-asan \
> +	--disable-tsan \
> +	--disable-debug \
> +	--disable-extra-debug \
> +	--disable-dmalloc \
> +	--disable-efence \
> +	--disable-gprof \
> +	--disable-pcapconfig \
> +	--enable-dynamic-link \
> +	--disable-tuntap \
> +	--disable-nls \
> +	--enable-local-libopts \
> +	--disable-libopts-install \
> +	--with-libpcap=$(PTXDIST_SYSROOT_TARGET)/usr \
> +	--without-netmap \
> +	--without-libdnet \
> +	--without-pcapnav-config \
> +	--without-tcpdump \
> +	--without-autoopts-config \
> +	--without-regex-header \
> +	--without-libregex
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/tcpreplay.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, tcpreplay)
> +	@$(call install_fixup, tcpreplay,PRIORITY,optional)
> +	@$(call install_fixup, tcpreplay,SECTION,base)
> +	@$(call install_fixup, tcpreplay,AUTHOR,"Bastian Krause <bst@pengutronix.de>")
> +	@$(call install_fixup, tcpreplay,DESCRIPTION,missing)
> +
> +	@$(call install_copy, tcpreplay, 0, 0, 0755, -, /usr/bin/tcpreplay)
> +
> +	@$(call install_finish, tcpreplay)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




      reply	other threads:[~2024-09-24  9:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-23 13:20 Bastian Krause
2024-09-24  9:05 ` Bastian Krause [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9198edf-0c65-4108-8508-1ee02891df92@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=ore@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=rhi@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox