Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2019 09:28:07 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r356070 - stable/12/lib/libpcap
Message-ID:  <201912250928.xBP9S7YT039609@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Dec 25 09:28:06 2019
New Revision: 356070
URL: https://svnweb.freebsd.org/changeset/base/356070

Log:
  MFC r355800:
  Install missing pcap(3) manual pages and add missing manpage
  section substitutions.
  
  Submitted by:	Martin Beran <martin@mber.cz>
  PR:		237893
  Sponsored by:	Mellanox Technologies

Modified:
  stable/12/lib/libpcap/Makefile
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libpcap/Makefile
==============================================================================
--- stable/12/lib/libpcap/Makefile	Wed Dec 25 09:25:20 2019	(r356069)
+++ stable/12/lib/libpcap/Makefile	Wed Dec 25 09:28:06 2019	(r356070)
@@ -110,7 +110,11 @@ MAN=	pcap.3 \
 	pcap_statustostr.3 \
 	pcap_strerror.3 \
 	pcap_tstamp_type_name_to_val.3 \
-	pcap_tstamp_type_val_to_name.3
+	pcap_tstamp_type_val_to_name.3 \
+	pcap-savefile.5 \
+	pcap-filter.7 \
+	pcap-linktype.7 \
+	pcap-tstamp.7
 
 MLINKS= \
 	pcap_datalink_val_to_name.3 pcap_datalink_val_to_description.3 \
@@ -174,7 +178,7 @@ tokdefs.h: grammar.h .NOMETA
 ${_page}:
 	if [ -f ${PCAP_DISTDIR}/${_page:S/3$/3pcap/} ]; then		\
 		F=${_page:S/3$/3pcap/}; 				\
-	elif [ -f ${PCAP_DISTDIR}/${_page:S/3$/3pcap.in/} ]; then		\
+	elif [ -f ${PCAP_DISTDIR}/${_page:S/3$/3pcap.in/} ]; then	\
 		F=${_page:S/3$/3pcap.in/}; 				\
 	elif [ -f ${PCAP_DISTDIR}/${_page:S/5$/manfile.in/} ]; then	\
 		F=${_page:S/5$/manfile.in/};				\
@@ -183,7 +187,12 @@ ${_page}:
 	else								\
 		F=${_page:S/7$/manmisc.in/};				\
 	fi;								\
-	sed -e 's/3PCAP/3/g' ${PCAP_DISTDIR}/$$F > ${_page}
+	sed \
+		-e 's/3PCAP/3/g' \
+		-e 's/@MAN_FILE_FORMATS@/5/g' \
+		-e 's/@MAN_MISC_INFO@/7/g' \
+		-e 's/@MAN_ADMIN_COMMANDS@/8/g' \
+		${PCAP_DISTDIR}/$$F > ${_page}
 .endfor
 
 .include <bsd.lib.mk>



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