[Midnightbsd-cvs] mports [22112] trunk/sysutils: add monit

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Nov 17 19:12:00 EST 2016


Revision: 22112
          http://svnweb.midnightbsd.org/mports/?rev=22112
Author:   laffer1
Date:     2016-11-17 19:12:00 -0500 (Thu, 17 Nov 2016)
Log Message:
-----------
add monit

Modified Paths:
--------------
    trunk/sysutils/Makefile

Added Paths:
-----------
    trunk/sysutils/monit/
    trunk/sysutils/monit/Makefile
    trunk/sysutils/monit/distinfo
    trunk/sysutils/monit/files/
    trunk/sysutils/monit/files/monit.in
    trunk/sysutils/monit/files/pkg-message.in
    trunk/sysutils/monit/pkg-descr

Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile	2016-11-13 00:25:20 UTC (rev 22111)
+++ trunk/sysutils/Makefile	2016-11-18 00:12:00 UTC (rev 22112)
@@ -71,6 +71,7 @@
 SUBDIR += mdf2iso
 SUBDIR += memtest
 SUBDIR += memtest86
+SUBDIR += monit
 SUBDIR += munin-common
 SUBDIR += munin-master
 SUBDIR += munin-node

Added: trunk/sysutils/monit/Makefile
===================================================================
--- trunk/sysutils/monit/Makefile	                        (rev 0)
+++ trunk/sysutils/monit/Makefile	2016-11-18 00:12:00 UTC (rev 22112)
@@ -0,0 +1,37 @@
+# $MidnightBSD$
+
+PORTNAME=	monit
+PORTVERSION=	5.19.0
+CATEGORIES=	sysutils
+MASTER_SITES=	http://www.mmonit.com/monit/dist/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Unix system management and proactive monitoring
+
+LICENSE=	agpl
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS+=	--build=${ARCH}-portbld-freebsd9.1
+USES=		bison gmake
+USE_RC_SUBR=	${PORTNAME}
+
+PLIST_FILES=	bin/monit \
+		etc/monitrc.sample \
+		man/man1/monit.1.gz
+
+SUB_FILES=	pkg-message
+
+PORTDOCS=	COPYING README CHANGES
+
+OPTIONS_DEFINE=	DOCS SSL
+OPTIONS_DEFAULT=SSL
+
+SSL_CONFIGURE_OFF=	--without-ssl
+SSL_USES=		openssl
+
+post-install:
+	${INSTALL} -m 600 ${WRKSRC}/monitrc ${STAGEDIR}${PREFIX}/etc/monitrc.sample
+	${INSTALL} -d ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL} -m 644 ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>


Property changes on: trunk/sysutils/monit/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/monit/distinfo
===================================================================
--- trunk/sysutils/monit/distinfo	                        (rev 0)
+++ trunk/sysutils/monit/distinfo	2016-11-18 00:12:00 UTC (rev 22112)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1470649547
+SHA256 (monit-5.19.0.tar.gz) = befcd54365502bce4ffd6d1b0c345d5b689c9f7cb3a35a462ba7dcffcf6f62b8
+SIZE (monit-5.19.0.tar.gz) = 1260248


Property changes on: trunk/sysutils/monit/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/monit/files/monit.in
===================================================================
--- trunk/sysutils/monit/files/monit.in	                        (rev 0)
+++ trunk/sysutils/monit/files/monit.in	2016-11-18 00:12:00 UTC (rev 22112)
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# $FreeBSD: head/sysutils/monit/files/monit.in 340872 2014-01-24 00:14:07Z mat $
+#
+
+# PROVIDE: monit
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable monit:
+# monit_enable (bool):        Set to "NO" by default.
+#                             Set it to "YES" to enable monit
+# monit_flags (str):          Flags passed to monit on startup.
+#                             Default is "".
+#
+. /etc/rc.subr
+
+name=monit
+rcvar=monit_enable
+load_rc_config ${name}
+
+: ${monit_enable:=NO}
+
+extra_commands=reload
+restart_precmd=monit_checkconfig
+reload_precmd=monit_checkconfig
+
+default_config=%%PREFIX%%/etc/monitrc
+required_files=${default_config}
+command="%%PREFIX%%/bin/monit"
+command_args="-c ${default_config}"
+pidfile=/var/run/monit.pid
+
+monit_checkconfig()
+{
+	echo "Performing sanity check on monit configuration:"
+	${command} ${command_args} -t
+}
+
+run_rc_command "$1"


Property changes on: trunk/sysutils/monit/files/monit.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/monit/files/pkg-message.in
===================================================================
--- trunk/sysutils/monit/files/pkg-message.in	                        (rev 0)
+++ trunk/sysutils/monit/files/pkg-message.in	2016-11-18 00:12:00 UTC (rev 22112)
@@ -0,0 +1,11 @@
+**************************************************************************
+
+USAGE:
+
+To enable monit you need to add monit_enable="YES" to rc.conf file.
+Before running monit you have to configure monitrc file. There is
+example configuration file monitrc.sample.
+
+%%PREFIX%%/etc/monitrc.sample
+
+**************************************************************************


Property changes on: trunk/sysutils/monit/files/pkg-message.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/monit/pkg-descr
===================================================================
--- trunk/sysutils/monit/pkg-descr	                        (rev 0)
+++ trunk/sysutils/monit/pkg-descr	2016-11-18 00:12:00 UTC (rev 22112)
@@ -0,0 +1,24 @@
+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, etc.
+ * A HTTP interface with XML output option
+ and many more features :)
+
+WWW: http://mmonit.com/monit/


Property changes on: trunk/sysutils/monit/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list