aboutsummaryrefslogtreecommitdiff
path: root/sysutils/lsof
diff options
context:
space:
mode:
authorLarry Rosenman <ler@FreeBSD.org>2019-08-10 22:44:28 +0000
committerLarry Rosenman <ler@FreeBSD.org>2019-08-10 22:44:28 +0000
commitfb194c1ffd3df333d58d560c2ece1e6607c50e60 (patch)
tree347309a9a4782440c54b6616bd390c2bc171eec2 /sysutils/lsof
parentb36d7ce6b3d8472e6a55fc31ffcc0f781a50d549 (diff)
Notes
Diffstat (limited to 'sysutils/lsof')
-rw-r--r--sysutils/lsof/Makefile5
-rw-r--r--sysutils/lsof/files/patch-dialects_freebsd_dsock.c11
2 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index 2b1c54119002..6b93358b9b3a 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -3,7 +3,7 @@
PORTNAME= lsof
DISTVERSION= 4.93.2
-PORTREVISION= 3
+PORTREVISION= 4
PORTEPOCH= 8
CATEGORIES= sysutils
@@ -36,7 +36,8 @@ IGNORE+= requires kernel sources
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin
- ${INSTALL_MAN} ${WRKSRC}/Lsof.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/lsof.8
+ (cd ${WRKSRC} && ${SED} 's/\\$$/\\DUMMY/' Lsof.8 | mandoc -T man | ${SED} 's/DUMMY$$//' > ${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
@${CHMOD} 0444 ${STAGEDIR}${PREFIX}/share/lsof/00*
diff --git a/sysutils/lsof/files/patch-dialects_freebsd_dsock.c b/sysutils/lsof/files/patch-dialects_freebsd_dsock.c
new file mode 100644
index 000000000000..5a3f822b6db6
--- /dev/null
+++ b/sysutils/lsof/files/patch-dialects_freebsd_dsock.c
@@ -0,0 +1,11 @@
+--- dialects/freebsd/dsock.c.orig 2019-05-08 07:32:25 UTC
++++ dialects/freebsd/dsock.c
+@@ -182,7 +182,7 @@ process_socket(sa)
+ #endif /* FREEBSDV<4050 */
+
+ #if defined(HASIPv6) && !defined(HASINRIAIPv6)
+- struct in6pcb in6p;
++ struct inpcb in6p;
+ #endif /* defined(HASIPv6) && !defined(HASINRIAIPv6) */
+
+ (void) snpf(Lf->type, sizeof(Lf->type), "sock");