1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/sysutils/monit/Makefile
Sunpoet Po-Chuan Hsieh 7284aa8d02 - Update to 5.2.3
Changes:	http://www.mmonit.com/monit/dist/CHANGES.txt
PR:		ports/152429
Submitted by:	Martin Pala <martinp@tildeslash.com> (maintainer)
2010-11-20 22:19:53 +00:00

56 lines
1.2 KiB
Makefile

# New ports collection makefile for: monit
# Date created: 4 January 2005
# Whom: Martin Pala <martinp@tildeslash.com>
#
# $FreeBSD$
#
PORTNAME= monit
PORTVERSION= 5.2.3
CATEGORIES= sysutils
MASTER_SITES= http://www.mmonit.com/monit/dist/
MAINTAINER= martinp@tildeslash.com
COMMENT= Unix system management and monitoring
MAN1= monit.1
GNU_CONFIGURE= yes
USE_BISON= build
USE_GMAKE= yes
USE_RC_SUBR= ${PORTNAME}.sh
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
CONFIG_SHELL="${SH}" LOCALBASE="${LOCALBASE}"
OPTIONS= SSL "Enable SSL support" on
PLIST_FILES= bin/monit \
etc/monitrc.sample
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
DOCS= CHANGES.txt LICENSE README README.SSL \
doc/examples.html doc/monit.html
PORTDOCS= ${DOCS:T}
.include <bsd.port.pre.mk>
.if defined(WITH_SSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CONFIGURE_ARGS+= --enable-ssl --with-openssl="${OPENSSLBASE}"
.else
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}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>