- Update to 5.6
- Port cleanup PR: ports/181782 Submitted by: martinp@tildeslash.com Approved by: swills (mentor)
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= monit
|
||||
PORTVERSION= 5.5.1
|
||||
PORTVERSION= 5.6
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.mmonit.com/monit/dist/
|
||||
|
||||
MAINTAINER= martinp@tildeslash.com
|
||||
COMMENT= Unix system management and proactive monitoring
|
||||
|
||||
MAN1= monit.1
|
||||
MAN1= monit.1
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= bison
|
||||
USES= bison
|
||||
USE_GMAKE= yes
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
@@ -20,27 +20,26 @@ CONFIGURE_ENV= CONFIG_SHELL="${SH}" \
|
||||
LOCALBASE="${LOCALBASE}"
|
||||
|
||||
OPTIONS_DEFINE= SSL
|
||||
OPTIONS_DEFAULT=SSL
|
||||
OPTIONS_DEFAULT= SSL
|
||||
|
||||
PLIST_FILES= bin/monit \
|
||||
etc/monitrc.sample
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
DOCS= CHANGES COPYING README
|
||||
PORTDOCS= ${DOCS:T}
|
||||
PORTDOCS= CHANGES COPYING README
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if empty(PORT_OPTIONS:MSSL)
|
||||
.if ! ${PORT_OPTIONS:MSSL}
|
||||
CONFIGURE_ARGS+= --without-ssl
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${INSTALL} -m 600 ${WRKSRC}/monitrc ${PREFIX}/etc/monitrc.sample
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL} -m 644 ${DOCS} ${DOCSDIR}/
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${INSTALL} -d ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL} -m 644 ${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (monit-5.5.1.tar.gz) = dbe4b4744a7100e2d5f4eac353dfb2df0549848e2c7661d9c19acc31cdef2c78
|
||||
SIZE (monit-5.5.1.tar.gz) = 1260093
|
||||
SHA256 (monit-5.6.tar.gz) = 38e09bd8b39abc59e6b9a9bb7a78f7eac2b02a92f4de1f3a6dc24e84dfedae0d
|
||||
SIZE (monit-5.6.tar.gz) = 1263370
|
||||
|
||||
@@ -17,20 +17,21 @@
|
||||
#
|
||||
. /etc/rc.subr
|
||||
|
||||
name="monit"
|
||||
name=monit
|
||||
rcvar=monit_enable
|
||||
load_rc_config ${name}
|
||||
|
||||
restart_precmd="monit_checkconfig"
|
||||
reload_precmd="monit_checkconfig"
|
||||
[ -z "$monit_enable" ] && monit_enable="NO"
|
||||
: ${monit_enable:=NO}
|
||||
|
||||
load_rc_config $name
|
||||
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"
|
||||
pidfile=/var/run/monit.pid
|
||||
|
||||
monit_checkconfig()
|
||||
{
|
||||
@@ -38,5 +39,4 @@ monit_checkconfig()
|
||||
${command} ${command_args} -t
|
||||
}
|
||||
|
||||
extra_commands="reload"
|
||||
run_rc_command "$1"
|
||||
|
||||
Reference in New Issue
Block a user