From nobody Sat May 27 04:25:48 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QSpcr5hQ7z4WRwL; Sat, 27 May 2023 04:25:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QSpcr4BMWz4F7N; Sat, 27 May 2023 04:25:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685161548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+SFTq3S5MtLo7k4G9pABrxMggr0qUQYjoC2ysdHXqVE=; b=EdAHjmRISFoNCvsxzP1rJROmKX5MooYuyyTDa1Vl0qmiDqIZeVoNKd08UUT47vITtDNnc5 JbF/mNMMTiKshuG6SYBBrcZz55IfvxFtW0z48cE2k6cg+aViO54UM9sAnR7vpWmXXbv1Hn iKtna7q2QqREKTGD1IJHnRaQzmmtHWnqjOLn9TZie7PMq9nIi1V8oghpsKa28pJf9yi5Xt vOiIE4LveWLEna/VygFjz1h3kSxxqPmo4dV8CKi3maT/ggQiGXY7S8VMXnAymDLJMvYp+9 k0MaCUln27YInQ1HxZDQRh9yIIhzdYxsWdvXXM0jSojT8QHwghKfN5VL0tkBkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685161548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+SFTq3S5MtLo7k4G9pABrxMggr0qUQYjoC2ysdHXqVE=; b=sTtw4lKE0pL6I6friw4mXpmi8C7DuEmp0BYclUfcKWkkrEKo04fXKuTStqlAKwXXFcBNxy xd8bwU4QHT39r4TCS8xeRz0+gUIBfceUo2H+46+i4iSHtQTqgDr2a3wmzsIXiStz0gQhXa 6O8h0n6aAAv+okMoJMl4a8Uk7A0b3Uoqi7YWvlx58/+v8zG/22XcL9EmbL86kUZmrTSDtA D2JBKNixQ3OnUqrR4N/sJE3C6cfMg5MsY2nWbvl0ou7XUeBmMr7uRaM2nj0YkoQJxqVbBx 9Hbee30DRk/MtIWjgR91y5kP0XSnYjWtf+TWrqZi0bSJ97IMahhqEFByb9L2Ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685161548; a=rsa-sha256; cv=none; b=GYzKupXo5H1OVXGMneIXQDka6h0CgfP4UQtNsK+MC76miQp3haRjLqvgEgmazA7KwUuIba LeJ0Mc7nbeHcyydmiiBm/aouxVx/uabkEYwZjula8PVaSzQJEK7xT55FRaOM8+XNvk+HLl 1jC2YfTS2sXs1RGKl4PVIPzEKNDOxVadQDkp32K7zgWpjODhrgZJANnsuwC/9H+gOrwX9c EGontWTKIkbJ9UF9U5yZqzn4uVS5nWbTGRlVYGSCsgsfaejhiT/jHl6fDdAAdxs03ccRbi IeZH2WDRBYjznNlPTzsOFPeQjmHY9HvQP7zFAPMBQEkHkhqdP+fzwkCi1kziWA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QSpcr3HRxzZdc; Sat, 27 May 2023 04:25:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34R4Pmef024012; Sat, 27 May 2023 04:25:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34R4Pmwn024011; Sat, 27 May 2023 04:25:48 GMT (envelope-from git) Date: Sat, 27 May 2023 04:25:48 GMT Message-Id: <202305270425.34R4Pmwn024011@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 28e7dd2da0ec - main - net/bittwist: Update to 3.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 28e7dd2da0ec52b42d09dc3084cb7800c1f0294a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=28e7dd2da0ec52b42d09dc3084cb7800c1f0294a commit 28e7dd2da0ec52b42d09dc3084cb7800c1f0294a Author: Po-Chuan Hsieh AuthorDate: 2023-05-27 04:07:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-05-27 04:07:26 +0000 net/bittwist: Update to 3.0 - Update MASTER_SITES - Use DISTVERSIONPREFIX instead of DISTNAME - Update WWW - Add LICENSE - Update pkg-descr - Take maintainership Changes: https://bittwist.sourceforge.io/news.html --- net/bittwist/Makefile | 38 ++++++++++++++++++++++++++------------ net/bittwist/distinfo | 5 +++-- net/bittwist/files/patch-Makefile | 29 ----------------------------- net/bittwist/pkg-descr | 19 ++++++++++++++++--- 4 files changed, 45 insertions(+), 46 deletions(-) diff --git a/net/bittwist/Makefile b/net/bittwist/Makefile index ac808a8843ab..455ae1e520cc 100644 --- a/net/bittwist/Makefile +++ b/net/bittwist/Makefile @@ -1,20 +1,34 @@ PORTNAME= bittwist -PORTVERSION= 1.1 +PORTVERSION= 3.0 +DISTVERSIONPREFIX= bsd- CATEGORIES= net -MASTER_SITES= SF/${PORTNAME}/_BSD/Bit-Twist%20${PORTVERSION} -DISTNAME= ${PORTNAME}-bsd-${PORTVERSION} +MASTER_SITES= SF/bittwist/BSD/Bit-Twist%20${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Libpcap-based Ethernet packet generator, with PCAP editor -WWW= http://bittwist.sourceforge.net +WWW= https://bittwist.sourceforge.io/ -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -USES= dos2unix gmake -DOS2UNIX_FILES= Makefile +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING -PLIST_FILES= bin/bittwist bin/bittwistb bin/bittwiste \ - man/man1/bittwist.1.gz \ - man/man1/bittwistb.1.gz \ - man/man1/bittwiste.1.gz +USES= dos2unix + +LDFLAGS+= -lpcap + +PLIST_FILES= bin/bittwist \ + bin/bittwiste \ + share/man/man1/bittwist.1.gz \ + share/man/man1/bittwiste.1.gz + +DOS2UNIX_FILES= COPYING + +do-build: + ${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/src/bittwist.c -o ${WRKSRC}/src/bittwist + ${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/src/bittwiste.c -o ${WRKSRC}/src/bittwiste + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/bin/ ${STAGEDIR}${PREFIX}/share/man/man1/ + ${INSTALL_PROGRAM} ${WRKSRC}/src/bittwist ${WRKSRC}/src/bittwiste ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/doc/bittwist.1 ${WRKSRC}/doc/bittwiste.1 ${STAGEDIR}${PREFIX}/share/man/man1/ .include diff --git a/net/bittwist/distinfo b/net/bittwist/distinfo index 8940bb4a2f43..638396d1f09e 100644 --- a/net/bittwist/distinfo +++ b/net/bittwist/distinfo @@ -1,2 +1,3 @@ -SHA256 (bittwist-bsd-1.1.tar.gz) = 8868da8516360c3de630f748df69b2b545440c2c71fc59fc5c71f6dd53e26457 -SIZE (bittwist-bsd-1.1.tar.gz) = 44987 +TIMESTAMP = 1685016878 +SHA256 (bittwist-bsd-3.0.tar.gz) = 68ad273f9f9269c5901ae36dfa167775578498ef9d41cb401ede4f3a55775115 +SIZE (bittwist-bsd-3.0.tar.gz) = 39798 diff --git a/net/bittwist/files/patch-Makefile b/net/bittwist/files/patch-Makefile deleted file mode 100644 index 346daa8b558a..000000000000 --- a/net/bittwist/files/patch-Makefile +++ /dev/null @@ -1,29 +0,0 @@ ---- Makefile.orig 2016-06-20 15:56:31 UTC -+++ Makefile -@@ -1,6 +1,6 @@ - SHELL = /bin/sh - --prefix = /usr/local -+prefix = ${PREFIX} - exec_prefix = ${prefix} - bindir = ${exec_prefix}/bin - mandir = ${prefix}/man/man1 -@@ -31,12 +31,12 @@ clean: - rm -f $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste - - install: -- mkdir -p $(bindir) -- chmod 755 $(bindir) -- $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(bindir) -- mkdir -p $(mandir) -- chmod 755 $(mandir) -- $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(mandir) -+ mkdir -p $(DESTDIR)$(bindir) -+ chmod 755 $(DESTDIR)$(bindir) -+ $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(DESTDIR)$(bindir) -+ mkdir -p $(DESTDIR)$(mandir) -+ chmod 755 $(DESTDIR)$(mandir) -+ $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(DESTDIR)$(mandir) - - uninstall: - rm -f $(bindir)/bittwist $(bindir)/bittwistb $(bindir)/bittwiste diff --git a/net/bittwist/pkg-descr b/net/bittwist/pkg-descr index b5edb143616e..dc6c46ac518f 100644 --- a/net/bittwist/pkg-descr +++ b/net/bittwist/pkg-descr @@ -1,3 +1,16 @@ -A libpcap-based ethernet packet generator, capable of replaying traffic -from a pcap file, and an editor to allow you to change the contents of a -trace file on the fly. +Bit-Twist is a simple yet powerful libpcap-based Ethernet packet generator. It +is designed to complement tcpdump, which by itself has done a great job at +capturing network traffic. + +These are just a few significant features that makes Bit-Twist unique and stands +out as one of the best Ethernet packet generator package made available to the +open source community. +- Runs on Linux, BSD, macOS, and Windows +- Send multiple trace files at a time +- Send packets at a specific speed or line rate in Mbps +- Comprehensive trace file editor with control over most fields in Ethernet, + ARP, IP, ICMP, TCP, and UDP headers with automatic header checksum correction +- Append user payload to existing packets after a specific header +- Select a specific range of packets and save them in another trace file +- Highly scriptable - with proper manipulation you can turn Bit-Twist into an + extremely flexible packet generator tool!