git: 4b8eebe9754a - main - tcpdump: don't create unused version.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Sep 2025 12:12:45 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=4b8eebe9754a40ab12d265adb17aafec690a29aa
commit 4b8eebe9754a40ab12d265adb17aafec690a29aa
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-09-03 12:11:52 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-09-03 12:12:33 +0000
tcpdump: don't create unused version.c
The version now comes from the PACKAGE_VERSION macro.
Fixes: 0a7e5f1f02aa ("tcpdump: Update to 4.99.5")
Reviewed by: jrm, emaste
Differential Revision: https://reviews.freebsd.org/D52334
---
usr.sbin/tcpdump/tcpdump/Makefile | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/usr.sbin/tcpdump/tcpdump/Makefile b/usr.sbin/tcpdump/tcpdump/Makefile
index b06e05ac8019..21c5f9ac7fdf 100644
--- a/usr.sbin/tcpdump/tcpdump/Makefile
+++ b/usr.sbin/tcpdump/tcpdump/Makefile
@@ -186,9 +186,9 @@ SRCS= addrtoname.c \
print-unsupported.c \
print-vsock.c \
print-whois.c \
- print-zep.c \
- version.c
-CLEANFILES+= version.c ${MAN}
+ print-zep.c
+
+CLEANFILES+= ${MAN}
CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
CFLAGS+= -DHAVE_CONFIG_H
@@ -217,11 +217,6 @@ SRCS+= print-pflog.c \
CFLAGS+= -DHAVE_NET_PFVAR_H -DHAVE_NET_IF_PFLOG_H
.endif
-version.c: ${TCPDUMP_DISTDIR}/VERSION
- rm -f version.c ; \
- sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION \
- > version.c
-
.include <bsd.prog.mk>
.for mp in ${MAN}