sysutils/lsof: handle the .so's in the manpage, working around a mandoc bug.

PR:		243205
Submitted by:	jamie@catflap.org
Reported by:	yasu@utahime.org
This commit is contained in:
Larry Rosenman
2020-04-30 01:13:24 +00:00
parent 7c134f9f36
commit bdce1a50b8

View File

@@ -6,7 +6,7 @@
PORTNAME= lsof
DISTVERSION= 4.93.2
PORTREVISION= 10
PORTREVISION= 11
PORTEPOCH= 8
CATEGORIES= sysutils
@@ -56,7 +56,7 @@ IGNORE+= requires kernel sources
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin
(cd ${WRKSRC} && ${SED} 's/\\$$/\\DUMMY/' Lsof.8 | mandoc -T man | ${SED} 's/DUMMY$$//' > ${WRKSRC}/lsof.8)
(cd ${WRKSRC} && /usr/bin/soelim Lsof.8 > ${WRKSRC}/lsof.8)
${INSTALL_MAN} ${WRKSRC}/lsof.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/lsof.8
@${MKDIR} ${STAGEDIR}${PREFIX}/share/lsof
${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${STAGEDIR}${PREFIX}/share/lsof