1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Unix system management and proactive monitoring
9 HOMEPAGE= https://mmonit.com/monit/
13 SITES[main]= https://mmonit.com/monit/dist/
14 DISTFILE[1]= monit-5.33.0.tar.gz:main
16 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BUILD_DEPENDS= openpam:dev:standard
24 BUILDRUN_DEPENDS= openpam:primary:standard
26 USES= cpe ssl:openssl11 bison gmake zlib mbsdfix
28 LICENSE= AGPLv3:primary
29 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
30 LICENSE_FILE= AGPLv3:{{WRKSRC}}/COPYING
31 LICENSE_AWK= TERMS:"^$$"
32 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/monit.h
35 CPE_VENDOR= tildeslash
36 FPC_EQUIVALENT= sysutils/monit
39 CONFIGURE_ARGS= --with-ssl-dir={{OPENSSLBASE}}
40 CONFIGURE_ENV= ax_cv_check_cflags___fstack_protector_all=no
42 INSTALL_REQ_TOOLCHAIN= yes
43 RC_SUBR= monit:primary
44 SUB_FILES= pkg-message-primary
47 ${INSTALL_DATA} ${WRKSRC}/monitrc \
48 ${STAGEDIR}${PREFIX}/etc/monitrc.sample
50 [FILE:1088:descriptions/desc.primary]
51 Monit is a utility for managing and monitoring processes,
52 files, directories, devices and network services on a Unix system.
53 Monit conducts automatic maintenance and repair and can execute
54 meaningful causal actions in error situations.
57 * Daemon mode - poll services at a specified interval
58 * Group and manage groups of services, service dependencies
59 * Logging - syslog or own logfile
60 * Alert, start, stop and restart of services based on it's characteristics
61 * MD5 and SHA1 checksums
62 * Runtime Unix socket and TCP/IP port checking (TCP and UDP)
63 * Process status, timeout, memory and cpu usage, etc.
64 * Device usage monitoring (inodes and space)
65 * File monitoring (timestamp, checksum, permission, owner, etc.)
66 * Directory monitoring (timestamp, permission, owner, etc.)
67 * Remote network services monitoring (ping, response time, protocol, etc.)
68 * System load average monitoring
69 * Flexible and customizable email alert messages and notifications
70 * Protocol verification such as HTTP, FTP, SMTP, POP, IMAP, NNTP, NTP
71 * A HTTP interface with XML output option
75 1ace889c0183473a9d70160df6533bb6e1338dc1354f5928507803e1e2a863b5 1502487 monit-5.33.0.tar.gz
78 [FILE:63:manifests/plist.primary]
79 @sample etc/monitrc.sample
81 share/man/man1/monit.1.gz
84 [FILE:346:patches/patch-configure]
85 --- configure.orig 2023-02-11 10:29:07 UTC
87 @@ -21099,7 +21099,7 @@ then :
90 with_pam=0 # No PAM on OpenBSD (supports BSD Auth API instead of PAM)
91 -elif test "$architecture" = "FreeBSD"
92 +elif test "$architecture" = "FreeBSD" || test "$architecture" = "MidnightBSD"
95 CFLAGS="$CFLAGS -D _REENTRANT"
98 [FILE:315:patches/patch-libmonit_configure]
99 --- libmonit/configure.orig 2023-02-11 10:29:10 UTC
100 +++ libmonit/configure
101 @@ -14407,7 +14407,7 @@ then
103 printf "%s\n" "#define LINUX 1" >>confdefs.h
105 -elif test "$architecture" = "FreeBSD"
106 +elif test "$architecture" = "FreeBSD" || test "$architecture" = "MidnightBSD"
108 CFLAGS="$CFLAGS -D _REENTRANT"
112 [FILE:386:patches/patch-src_net_os_dragonfly_Link.inc]
113 --- src/net/os/dragonfly/Link.inc.orig 2023-02-11 10:28:19 UTC
114 +++ src/net/os/dragonfly/Link.inc
119 -static boolean_t _update(T L, const char *interface) {
120 +static bool _update(T L, const char *interface) {
121 for (struct ifaddrs *a = _stats.addrs; a != NULL; a = a->ifa_next) {
122 if (a->ifa_addr == NULL)
126 [FILE:864:files/monit.in]
130 # REQUIRE: NETWORKING SERVERS
135 # Add the following lines to /etc/rc.conf to enable monit:
136 # monit_enable (bool): Set to "NO" by default.
137 # Set it to "YES" to enable monit
138 # monit_flags (str): Flags passed to monit on startup.
145 load_rc_config ${name}
147 : ${monit_enable:=NO}
149 extra_commands=reload
150 restart_precmd=monit_checkconfig
151 reload_precmd=monit_checkconfig
153 default_config=%%PREFIX%%/etc/monitrc
154 required_files=${default_config}
155 command="%%PREFIX%%/bin/monit"
156 command_args="-c ${default_config}"
157 pidfile=/var/run/monit.pid
161 echo "Performing sanity check on monit configuration:"
162 ${command} ${command_args} -t
168 [FILE:368:files/pkg-message-primary.in]
169 **************************************************************************
173 To enable monit you need to add monit_enable="YES" to rc.conf file.
174 Before running monit you have to configure monitrc file. There is
175 example configuration file monitrc.sample.
177 %%PREFIX%%/etc/monitrc.sample
179 **************************************************************************