Bug 87231 - Update port: sysutils/monit
Summary: Update port: sysutils/monit
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcus Alves Grando
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-10 22:50 UTC by Martin Pala
Modified: 2005-10-11 03:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Pala 2005-10-10 22:50:14 UTC
Update upgrades the sysutils/monit port to Monit 4.6 for bugfixes and feature enhancements

How-To-Repeat: # This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       monit
#       monit/files
#       monit/files/monit.sh
#       monit/Makefile
#       monit/distinfo
#       monit/pkg-descr
#       monit/pkg-message
#
echo c - monit
mkdir -p monit > /dev/null 2>&1
echo c - monit/files
mkdir -p monit/files > /dev/null 2>&1
echo x - monit/files/monit.sh
sed 's/^X//' >monit/files/monit.sh << 'END-of-monit/files/monit.sh'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: monit
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable monit:
X# monit_enable (bool):        Set to "NO" by default.
X#                             Set it to "YES" to enable monit
X#
X. %%RC_SUBR%%
X
Xname="monit"
Xrcvar=`set_rcvar`
X
Xrestart_precmd="monit_checkconfig"
Xreload_precmd="monit_checkconfig"
X
Xdefault_config=%%PREFIX%%/etc/monitrc
Xrequired_files=${default_config}
Xcommand="%%PREFIX%%/bin/monit"
Xcommand_args="-c ${default_config}"
Xpidfile="/var/run/monit.pid"
X
X[ -z "$monit_enable" ] && monit_enable="NO"
X
Xload_rc_config $name
X
Xmonit_checkconfig()
X{
X  echo "Performing sanity check on monit configuration:"
X  ${command} ${command_args} -t
X}
X
Xextra_commands="reload"
Xrun_rc_command "$1"
END-of-monit/files/monit.sh
echo x - monit/Makefile
sed 's/^X//' >monit/Makefile << 'END-of-monit/Makefile'
X# New ports collection makefile for:   monit
X# Date created:        10 October 2005
X# Whom:                Martin Pala <martinp@tildeslash.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=              monit
XPORTVERSION=           4.6
XCATEGORIES=            sysutils
XMASTER_SITES=          http://www.tildeslash.com/monit/dist/
X
XMAINTAINER=            martinp@tildeslash.com
XCOMMENT=               Unix system management and monitoring
X
XMAN1=                  monit.1
X
XGNU_CONFIGURE=         yes
XUSE_GMAKE=             yes
XUSE_BISON=             yes
XUSE_RC_SUBR=           yes
X
XCONFIGURE_ENV=         CC="${CC}" CPPFLAGS="${CPPFLAGS}" \
X                       CFLAGS="${CFLAGS}" \
X                       LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \
X                       LOCALBASE="${LOCALBASE}"
X
XOPTIONS=               MONIT_SSL "Enable SSL support" on
X
XPLIST_FILES=           bin/monit \
X                       etc/monitrc.sample \
X                       etc/rc.d/monit.sh \
X                       share/doc/monit/CHANGES.txt \
X                       share/doc/monit/CONTRIBUTORS \
X                       share/doc/monit/FAQ.txt \
X                       share/doc/monit/LICENSE \
X                       share/doc/monit/README \
X                       share/doc/monit/README.SSL \
X                       share/doc/monit/STATUS \
X                       share/doc/monit/examples.html \
X                       share/doc/monit/monit.html
XPLIST_DIRS=            share/doc/monit
X
X.include <bsd.port.pre.mk>
X
Xpre-install:
X       @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
X               -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
X               ${FILESDIR}/monit.sh > ${WRKDIR}/monit.sh
X
Xpost-install:
X       @${INSTALL_SCRIPT} -m 755 ${WRKDIR}/monit.sh ${PREFIX}/etc/rc.d/monit.sh
X       @${INSTALL_SCRIPT} -m 600 ${WRKDIR}/${DISTNAME}/monitrc ${PREFIX}/etc/monitrc.sample
X       ${MKDIR} ${DOCSDIR}
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/CHANGES.txt ${PREFIX}/share/doc/monit/CHANGES.txt
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/CONTRIBUTORS ${PREFIX}/share/doc/monit/CONTRIBUTORS
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/FAQ.txt ${PREFIX}/share/doc/monit/FAQ.txt
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/LICENSE ${PREFIX}/share/doc/monit/LICENSE
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/doc/monit/README
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/README.SSL ${PREFIX}/share/doc/monit/README.SSL
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/STATUS ${PREFIX}/share/doc/monit/STATUS
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/doc/examples.html ${PREFIX}/share/doc/monit/examples.html
X       @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/doc/monit.html ${PREFIX}/share/doc/monit/monit.html
X       @${CAT} ${PKGMESSAGE}
X       @${ECHO_MSG} "  ${PREFIX}/etc/monitrc.sample"
X       @${ECHO_MSG} "  ${PREFIX}/share/doc/monit/examples.html"
X
X.if defined(WITH_MONIT_SSL)
X.include "${PORTSDIR}/Mk/bsd.openssl.mk"
XCONFIGURE_ARGS+=       --enable-ssl \
X                       --with-openssl="${OPENSSLBASE}"
X.else
XCONFIGURE_ARGS+=       --without-ssl
X.endif
X
X.include <bsd.port.post.mk>
END-of-monit/Makefile
echo x - monit/distinfo
sed 's/^X//' >monit/distinfo << 'END-of-monit/distinfo'
XMD5 (monit-4.6.tar.gz) = 4e53aa44e4ca264e61c7c401cee4e697
XSIZE (monit-4.6.tar.gz) = 549238
END-of-monit/distinfo
echo x - monit/pkg-descr
sed 's/^X//' >monit/pkg-descr << 'END-of-monit/pkg-descr'
XMonit is a utility for managing and monitoring processes,
Xfiles, directories, devices and network services on a Unix system.
XMonit conducts automatic maintenance and repair and can execute
Xmeaningful causal actions in error situations.
X
Xmonit supports:
X * Daemon mode - poll services at a specified interval
X * Group and manage groups of services, service dependencies
X * Logging - syslog or own logfile
X * Alert, start, stop and restart of services based on it's characteristics
X * MD5 and SHA1 checksums
X * Runtime Unix socket and TCP/IP port checking (tcp and udp)
X * Process status, timeout, memory and cpu usage, etc.
X * Device usage monitoring (inodes and space)
X * File monitoring (timestamp, checksum, permission, owner, etc.)
X * Directory monitoring (timestamp, permission, owner, etc.)
X * Remote network services monitoring (ping, response time, protocol, etc.)
X * System load average monitoring
X * Flexible and customizable email alert messages and notifications
X * Protocol verification such as HTTP, FTP, SMTP, POP, IMAP, NNTP, NTP, etc.
X * A HTTP interface with XML output option
X and many more features :)
X
XWWW: http://www.tildeslash.com/monit/
END-of-monit/pkg-descr
echo x - monit/pkg-message
sed 's/^X//' >monit/pkg-message << 'END-of-monit/pkg-message'
X===> USAGE:
X       To enable monit you need to add monit_enable="YES" to rc.conf file.
X       Before running monit you have to configure monitrc file. There is
X       example configuration file monitrc.sample, you can find many
X       samples for particular services in examples.html:
END-of-monit/pkg-message
exit
Comment 1 Marcus Alves Grando freebsd_committer freebsd_triage 2005-10-11 03:08:55 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mnag

I'll take it.
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 2005-10-11 03:51:13 UTC
State Changed
From-To: open->closed

Committed. Thanks!