git: ec598fd9c8b4 - main - net/tcpsplit: Update to 0.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 19 Mar 2025 03:58:03 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec598fd9c8b453f57e1d30a4e44bac37b6edff74

commit ec598fd9c8b453f57e1d30a4e44bac37b6edff74
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-03-19 03:37:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-03-19 03:37:18 +0000

    net/tcpsplit: Update to 0.3
    
    - Convert REINPLACE_CMD to patch file
    - Reformat pkg-descr
    - Take maintainership
    
    Changes:        https://www.icir.org/mallman/software/tcpsplit/ChangeLog
---
 net/tcpsplit/Makefile             | 16 +++-------------
 net/tcpsplit/distinfo             |  5 +++--
 net/tcpsplit/files/patch-Makefile | 14 ++++++++++++++
 net/tcpsplit/pkg-descr            | 10 +++++-----
 4 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/net/tcpsplit/Makefile b/net/tcpsplit/Makefile
index d253b23f8a0b..a2e5576b6b56 100644
--- a/net/tcpsplit/Makefile
+++ b/net/tcpsplit/Makefile
@@ -1,28 +1,18 @@
 PORTNAME=	tcpsplit
-PORTVERSION=	0.2
+PORTVERSION=	0.3
 CATEGORIES=	net
 MASTER_SITES=	http://www.icir.org/mallman/software/tcpsplit/
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Breaks a libpcap trace along TCP connection boundaries
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Break a libpcap trace along TCP connection boundaries
 WWW=		https://www.icir.org/mallman/software/tcpsplit/
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
 PLIST_FILES=	bin/tcpsplit
-PORTDOCS=	README
-
-OPTIONS_DEFINE=	DOCS
-
-post-patch:
-	@${REINPLACE_CMD} -E '/^(CC|CFLAGS|INC|LD)/d' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/tcpsplit ${STAGEDIR}${PREFIX}/bin
 
-do-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
-
 .include <bsd.port.mk>
diff --git a/net/tcpsplit/distinfo b/net/tcpsplit/distinfo
index e8d9d961e919..c2047c8ef0ad 100644
--- a/net/tcpsplit/distinfo
+++ b/net/tcpsplit/distinfo
@@ -1,2 +1,3 @@
-SHA256 (tcpsplit-0.2.tar.gz) = 885a6609d04eb35f31f1c6f06a0b9afd88776d85dec0caa33a86cef3f3c09d1d
-SIZE (tcpsplit-0.2.tar.gz) = 6685
+TIMESTAMP = 1742070270
+SHA256 (tcpsplit-0.3.tar.gz) = 9ba0a12d294fa4ccc8cad8d9662126f01b436ced48642c3fb2520121943f5cf5
+SIZE (tcpsplit-0.3.tar.gz) = 7207
diff --git a/net/tcpsplit/files/patch-Makefile b/net/tcpsplit/files/patch-Makefile
new file mode 100644
index 000000000000..bf43d08e6782
--- /dev/null
+++ b/net/tcpsplit/files/patch-Makefile
@@ -0,0 +1,14 @@
+--- Makefile.orig	2025-03-06 20:45:25 UTC
++++ Makefile
+@@ -32,11 +32,6 @@ VERSION=0.3
+ 
+ VERSION=0.3
+ 
+-CC=gcc
+-INC=-Ilib/include
+-CFLAGS=-g -Wall -Werror $(INC) $(OTHER)
+-LD=gcc
+-LDFLAGS=$(CFLAGS)
+ LIBS=-lpcap
+ 
+ OBJS=balancer.o ipa_db.o tcpsplit.o
diff --git a/net/tcpsplit/pkg-descr b/net/tcpsplit/pkg-descr
index 62ed65f50bdf..74d6461a9968 100644
--- a/net/tcpsplit/pkg-descr
+++ b/net/tcpsplit/pkg-descr
@@ -1,5 +1,5 @@
-The tcpsplit utility breaks a single libpcap packet trace into some number
-of sub-traces, breaking the trace along TCP connection boundaries so that
-a TCP connection doesn't end up split across two sub-traces. This is useful
-for making large trace files tractable for in-depth analysis and for
-subsetting a trace for developing analysis on only part of a trace.
+The tcpsplit utility breaks a single libpcap packet trace into some number of
+sub-traces, breaking the trace along TCP connection boundaries so that a TCP
+connection doesn't end up split across two sub-traces. This is useful for making
+large trace files tractable for in-depth analysis and for subsetting a trace for
+developing analysis on only part of a trace.