Ravenports generated: 07 Jan 2024 05:04
[ravenports.git] / bucket_35 / monit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               monit
4 VERSION=                5.33.0
5 REVISION=               1
6 KEYWORDS=               sysutils
7 VARIANTS=               standard
8 SDESC[standard]=        Unix system management and proactive monitoring
9 HOMEPAGE=               https://mmonit.com/monit/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            https://mmonit.com/monit/dist/
14 DISTFILE[1]=            monit-5.33.0.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         man
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILD_DEPENDS=          openpam:dev:standard
24 BUILDRUN_DEPENDS=       openpam:primary:standard
25
26 USES=                   cpe ssl:openssl11 bison gmake zlib mbsdfix
27
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
33 LICENSE_SCHEME=         solo
34
35 CPE_VENDOR=             tildeslash
36 FPC_EQUIVALENT=         sysutils/monit
37
38 MUST_CONFIGURE=         gnu
39 CONFIGURE_ARGS=         --with-ssl-dir={{OPENSSLBASE}}
40 CONFIGURE_ENV=          ax_cv_check_cflags___fstack_protector_all=no
41
42 INSTALL_REQ_TOOLCHAIN=  yes
43 RC_SUBR=                monit:primary
44 SUB_FILES=              pkg-message-primary
45
46 post-install:
47         ${INSTALL_DATA} ${WRKSRC}/monitrc \
48                 ${STAGEDIR}${PREFIX}/etc/monitrc.sample
49
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.
55
56 monit supports:
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
72
73
74 [FILE:98:distinfo]
75 1ace889c0183473a9d70160df6533bb6e1338dc1354f5928507803e1e2a863b5      1502487 monit-5.33.0.tar.gz
76
77
78 [FILE:63:manifests/plist.primary]
79 @sample etc/monitrc.sample
80 bin/monit
81 share/man/man1/monit.1.gz
82
83
84 [FILE:346:patches/patch-configure]
85 --- configure.orig      2023-02-11 10:29:07 UTC
86 +++ configure
87 @@ -21099,7 +21099,7 @@ then :
88  fi
89  
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"
93  then
94     ARCH="FREEBSD"
95     CFLAGS="$CFLAGS -D _REENTRANT"
96
97
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
102  
103  printf "%s\n" "#define LINUX 1" >>confdefs.h
104  
105 -elif test "$architecture" = "FreeBSD"
106 +elif test "$architecture" = "FreeBSD" || test "$architecture" = "MidnightBSD"
107  then
108     CFLAGS="$CFLAGS -D _REENTRANT"
109  
110
111
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
115 @@ -32,7 +32,7 @@
116   */
117  
118  
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)
123                          continue;
124
125
126 [FILE:864:files/monit.in]
127 #!/bin/sh
128 #
129 # PROVIDE: monit
130 # REQUIRE: NETWORKING SERVERS
131 # BEFORE: DAEMON
132 # KEYWORD: shutdown
133
134 #
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.
139 #                             Default is "".
140 #
141 . /etc/rc.subr
142
143 name=monit
144 rcvar=monit_enable
145 load_rc_config ${name}
146
147 : ${monit_enable:=NO}
148
149 extra_commands=reload
150 restart_precmd=monit_checkconfig
151 reload_precmd=monit_checkconfig
152
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
158
159 monit_checkconfig()
160 {
161         echo "Performing sanity check on monit configuration:"
162         ${command} ${command_args} -t
163 }
164
165 run_rc_command "$1"
166
167
168 [FILE:368:files/pkg-message-primary.in]
169 **************************************************************************
170
171 USAGE:
172
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.
176
177 %%PREFIX%%/etc/monitrc.sample
178
179 **************************************************************************
180