Install missing pcap(3) manual pages and add missing manpage

section substitutions.

Submitted by:	Martin Beran <martin@mber.cz>
PR:		237893
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-12-16 09:11:38 +00:00
parent 61a72158bb
commit 174ae28247

View File

@ -109,7 +109,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 \
@ -173,7 +177,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/}; \
@ -182,7 +186,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>