Index: head/sysutils/lsof/Makefile =================================================================== --- head/sysutils/lsof/Makefile (revision 515922) +++ head/sysutils/lsof/Makefile (revision 515923) @@ -1,45 +1,45 @@ # Created by: David O'Brien # $FreeBSD$ PORTNAME= lsof DISTVERSION= 4.93.2 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 8 CATEGORIES= sysutils MAINTAINER= ler@FreeBSD.org COMMENT= Lists information about open files (similar to fstat(1)) LICENSE= lsof LICENSE_NAME= lsof LICENSE_FILE= ${FILESDIR}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USES= shebangfix tar:bzip2 HAS_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= lsof-org SHEBANG_FILES= scripts/sort_res.perl5 .include CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= -n freebsd CONFIGURE_ENV= LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys" .if !exists(${SRC_BASE}/sys/kern/kern_lockf.c) IGNORE+= requires kernel sources .endif 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) ${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* .include Index: head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h =================================================================== --- head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h (revision 515922) +++ head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h (revision 515923) @@ -1,28 +1,36 @@ --- dialects/freebsd/dlsof.h.orig 2019-05-08 07:32:25 UTC +++ dialects/freebsd/dlsof.h -@@ -45,6 +45,12 @@ +@@ -38,6 +38,7 @@ + #if !defined(FREEBSD_LSOF_H) + #define FREEBSD_LSOF_H 1 + ++#include + #include + #include + #include +@@ -45,6 +46,12 @@ #include #include +#if FREEBSDV>=13000 +/* This header is a huge mess. Please don't support EOL FreeBSD releases. */ +#define _KERNEL 1 +#include +#undef _KERNEL +#endif /* FREEBSDV>=13000 */ # if FREEBSDV>=4000 # if FREEBSDV>=5000 # if FREEBSDV<6020 -@@ -104,6 +110,12 @@ typedef struct device *device_t; +@@ -104,6 +111,12 @@ typedef struct device *device_t; #include + +/* + * include for refcount(9) + */ +#include + # if defined(HAS_VM_MEMATTR_T) #undef vm_memattr_t