diff --git a/sysutils/conmon/Makefile b/sysutils/conmon/Makefile index 251c26caa78b..5114574ede56 100644 --- a/sysutils/conmon/Makefile +++ b/sysutils/conmon/Makefile @@ -1,20 +1,20 @@ PORTNAME= conmon DISTVERSIONPREFIX= v DISTVERSION= 2.1.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= dfr@FreeBSD.org COMMENT= OCI container runtime monitor WWW= https://github.com/containers LICENSE= GPLv2 BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libglib-2.0.so:devel/glib20 USES= gmake go:no_targets pkgconfig USE_GITHUB= yes GH_ACCOUNT= containers .include diff --git a/sysutils/conmon/files/patch-src_close__fds.c b/sysutils/conmon/files/patch-src_close__fds.c new file mode 100644 index 000000000000..70c296705df3 --- /dev/null +++ b/sysutils/conmon/files/patch-src_close__fds.c @@ -0,0 +1,33 @@ +--- src/close_fds.c.orig 2023-02-28 02:39:11 UTC ++++ src/close_fds.c +@@ -22,6 +22,12 @@ + + #include + ++#ifdef __FreeBSD__ ++#define OPEN_FILES_DIR "/dev/fd" ++#else ++#define OPEN_FILES_DIR "/proc/self/fd" ++#endif ++ + static int open_files_max_fd; + static fd_set *open_files_set; + +@@ -31,7 +37,7 @@ static void __attribute__((constructor)) init() + ssize_t size = 0; + DIR *d; + +- d = opendir("/proc/self/fd"); ++ d = opendir(OPEN_FILES_DIR); + if (!d) + return; + +@@ -85,7 +91,7 @@ void close_all_fds_ge_than(int firstfd) + struct dirent *ent; + DIR *d; + +- d = opendir("/proc/self/fd"); ++ d = opendir(OPEN_FILES_DIR); + if (!d) + return; + diff --git a/sysutils/conmon/pkg-message b/sysutils/conmon/pkg-message new file mode 100644 index 000000000000..f3784b3d66c6 --- /dev/null +++ b/sysutils/conmon/pkg-message @@ -0,0 +1,17 @@ +[ +{ type: install + message: <