# Buildsheet autogenerated by ravenadm tool -- Do not edit.
NAMEBASE= monit
VERSION= 5.35.2
REVISION= 1
KEYWORDS= sysutils
VARIANTS= std
SDESC[std]= Unix system management and proactive monitoring
HOMEPAGE= https://mmonit.com/monit/
CONTACT= nobody
DOWNLOAD_GROUPS= main
SITES[main]= https://mmonit.com/monit/dist/
DISTFILE[1]= monit-5.35.2.tar.gz:main
DF_INDEX= 1
SPKGS[std]= set
primary
man
OPTIONS_AVAILABLE= none
OPTIONS_STANDARD= none
BUILD_DEPENDS= openpam:dev:std
BUILDRUN_DEPENDS= openpam:primary:std
USES= cpe ssl:openssl30 bison gmake zlib mbsdfix
smf:primary
LICENSE= AGPLv3:primary
LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
LICENSE_FILE= AGPLv3:{{WRKSRC}}/COPYING
LICENSE_AWK= TERMS:"^$$"
LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/monit.h
LICENSE_SCHEME= solo
CPE_VENDOR= tildeslash
FPC_EQUIVALENT= sysutils/monit
SMF_NAME= monit
MUST_CONFIGURE= gnu
CONFIGURE_ARGS= --with-ssl-dir={{OPENSSLBASE}}
CONFIGURE_ENV= ax_cv_check_cflags___fstack_protector_all=no
INSTALL_REQ_TOOLCHAIN= yes
RC_SUBR= monit:primary
SUB_FILES= messages-primary.ucl
manifest.xml
post-install:
${INSTALL} -m 600 ${WRKSRC}/monitrc \
${STAGEDIR}${PREFIX}/etc/monitrc.sample
${MKDIR} ${STAGEDIR}${PREFIX}/var/run/monit
[FILE:1088:descriptions/desc.primary]
Monit is a utility for managing and monitoring processes,
files, directories, devices and network services on a Unix system.
Monit conducts automatic maintenance and repair and can execute
meaningful causal actions in error situations.
monit supports:
* Daemon mode - poll services at a specified interval
* Group and manage groups of services, service dependencies
* Logging - syslog or own logfile
* Alert, start, stop and restart of services based on it's characteristics
* MD5 and SHA1 checksums
* Runtime Unix socket and TCP/IP port checking (TCP and UDP)
* Process status, timeout, memory and cpu usage, etc.
* Device usage monitoring (inodes and space)
* File monitoring (timestamp, checksum, permission, owner, etc.)
* Directory monitoring (timestamp, permission, owner, etc.)
* Remote network services monitoring (ping, response time, protocol, etc.)
* System load average monitoring
* Flexible and customizable email alert messages and notifications
* Protocol verification such as HTTP, FTP, SMTP, POP, IMAP, NNTP, NTP
* A HTTP interface with XML output option
[FILE:98:distinfo]
4dfef54329e63d9772a9e1c36ac99bc41173b79963dc0d8235f2c32f4b9e078f 1526704 monit-5.35.2.tar.gz
[FILE:56:manifests/plist.primary]
@sample etc/monitrc.sample
bin/monit
@dir var/run/monit
[FILE:23:manifests/plist.man]
share/man/man1/monit.1
[FILE:308:patches/patch-configure]
--- configure.orig 2025-04-29 05:40:13 UTC
+++ configure
@@ -21122,7 +21122,7 @@ printf "%s\n" "$as_me: WARNING: backtrac
fi
-elif test "$architecture" = "FreeBSD"
+elif test "$architecture" = "FreeBSD" || test "$architecture" = "MidnightBSD"
then
ARCH="FREEBSD"
CFLAGS="$CFLAGS -D _REENTRANT"
[FILE:315:patches/patch-libmonit_configure]
--- libmonit/configure.orig 2025-04-29 05:40:15 UTC
+++ libmonit/configure
@@ -14404,7 +14404,7 @@ then
printf "%s\n" "#define LINUX 1" >>confdefs.h
-elif test "$architecture" = "FreeBSD"
+elif test "$architecture" = "FreeBSD" || test "$architecture" = "MidnightBSD"
then
CFLAGS="$CFLAGS -D _REENTRANT"
[FILE:386:patches/patch-src_net_os_dragonfly_Link.inc]
--- src/net/os/dragonfly/Link.inc.orig 2025-04-29 05:40:11 UTC
+++ src/net/os/dragonfly/Link.inc
@@ -32,7 +32,7 @@
*/
-static boolean_t _update(T L, const char *interface) {
+static bool _update(T L, const char *interface) {
for (struct ifaddrs *a = _stats.addrs; a != NULL; a = a->ifa_next) {
if (a->ifa_addr == NULL)
continue;
[FILE:774:patches/patch-src_process_sysdep__DRAGONFLY.c]
--- src/process/sysdep_DRAGONFLY.c.orig 2025-04-29 05:40:11 UTC
+++ src/process/sysdep_DRAGONFLY.c
@@ -74,6 +74,7 @@
#endif
#include "monit.h"
+#include "system/Time.h"
#include "ProcessTree.h"
#include "process_sysdep.h"
@@ -141,7 +142,8 @@ bool init_systeminfo_sysdep(void) {
* @return treesize > 0 if succeeded otherwise 0.
*/
int init_processtree_sysdep(ProcessTree_T **reference, ProcessEngine_Flags pflags) {
- kvm_t *kvm_handle = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, prog);
+ char errbuf[_POSIX2_LINE_MAX];
+ kvm_t *kvm_handle = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, errbuf);
if (! kvm_handle) {
Log_error("system statistic error -- cannot initialize kvm interface\n");
return 0;
[FILE:427:patches/patch-src_util.c]
--- src/util.c.orig 2025-05-08 07:51:11 UTC
+++ src/util.c
@@ -323,7 +323,7 @@ static void printevents(unsigned int eve
/**
* PAM conversation
*/
-#if defined(SOLARIS) || defined(AIX)
+#if 0
static int PAMquery(int num_msg, struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) {
#else
static int PAMquery(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) {
[FILE:1778:files/manifest.xml.in]
System management and proactive monitoring
[FILE:325:files/messages-primary.ucl.in]
primary: {
type: "install"
message: <