Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2017 16:42:14 +0000 (UTC)
From:      Gordon Tetlow <gordon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323709 - head/usr.sbin/tcpdump/tcpdump
Message-ID:  <201709181642.v8IGgEpF039218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709181642.v8IGgEpF039218>