svn commit: r323709 - head/usr.sbin/tcpdump/tcpdump

Gordon Tetlow gordon at FreeBSD.org
Mon Sep 18 16:42:15 UTC 2017


Author: gordon
Date: Mon Sep 18 16:42:13 2017
New Revision: 323709
URL: https://svnweb.freebsd.org/changeset/base/323709

Log:
  Revert tcpdump to using the source manpage instead of having a copy here.
  
  This helps future maintainability of tcpdump so we don't forget to update
  the manpage (like we have previously).
  
  Stolen from:	usr.bin/file/Makefile
  Reviewed by:	jilles
  Approved by:	delphij (mentor)
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D12403

Deleted:
  head/usr.sbin/tcpdump/tcpdump/tcpdump.1
Modified:
  head/usr.sbin/tcpdump/tcpdump/Makefile

Modified: head/usr.sbin/tcpdump/tcpdump/Makefile
==============================================================================
--- head/usr.sbin/tcpdump/tcpdump/Makefile	Mon Sep 18 15:17:07 2017	(r323708)
+++ head/usr.sbin/tcpdump/tcpdump/Makefile	Mon Sep 18 16:42:13 2017	(r323709)
@@ -173,7 +173,7 @@ SRCS=	addrtoname.c \
 	tcpdump.c \
 	util-print.c \
 	version.c
-CLEANFILES+=	version.c
+CLEANFILES+=	version.c ${MAN}
 
 CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
 CFLAGS+= -DHAVE_CONFIG_H
@@ -210,3 +210,9 @@ version.c: ${TCPDUMP_DISTDIR}/VERSION
 		> version.c
 
 .include <bsd.prog.mk>
+
+.for mp in ${MAN}
+${mp}: ${mp}.in
+	sed -e 's/@MAN_MISC_INFO@/7/g' -e 's/@MAN_FILE_FORMATS@/5/g' \
+		${.ALLSRC} > ${.TARGET}
+.endfor


More information about the svn-src-all mailing list