1# New ports collection makefile for: monit 2# Date created: 11 January 2006 3# Whom: Martin Pala <martinp@tildeslash.com> 4# 5# $FreeBSD$ 6# 7 8PORTNAME= monit 9PORTVERSION= 4.9 10CATEGORIES= sysutils 11MASTER_SITES= http://www.tildeslash.com/monit/dist/ 12 13MAINTAINER= martinp@tildeslash.com 14COMMENT= Unix system management and monitoring 15 16MAN1= monit.1 17 18GNU_CONFIGURE= yes 19USE_GMAKE= yes 20USE_BISON= yes 21USE_RC_SUBR= yes 22 23CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" \ 24 CFLAGS="${CFLAGS}" \ 25 LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \ 26 LOCALBASE="${LOCALBASE}" 27 28OPTIONS= SSL "Enable SSL support" on 29 30PLIST_FILES= bin/monit \ 31 etc/monitrc.sample \ 32 etc/rc.d/monit.sh \ 33 share/doc/monit/CHANGES.txt \ 34 share/doc/monit/LICENSE \ 35 share/doc/monit/README \ 36 share/doc/monit/README.SSL \ 37 share/doc/monit/STATUS \ 38 share/doc/monit/examples.html \ 39 share/doc/monit/monit.html 40PLIST_DIRS= share/doc/monit 41 42.include <bsd.port.pre.mk> 43 44pre-install: 45 @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ 46 -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \ 47 ${FILESDIR}/monit.sh > ${WRKDIR}/monit.sh 48 49post-install: 50 @${INSTALL_SCRIPT} -m 755 ${WRKDIR}/monit.sh ${PREFIX}/etc/rc.d/monit.sh 51 @${INSTALL_SCRIPT} -m 600 ${WRKDIR}/${DISTNAME}/monitrc ${PREFIX}/etc/monitrc.sample 52 ${MKDIR} ${DOCSDIR} 53 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/CHANGES.txt ${PREFIX}/share/doc/monit/CHANGES.txt 54 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/LICENSE ${PREFIX}/share/doc/monit/LICENSE 55 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/doc/monit/README 56 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/README.SSL ${PREFIX}/share/doc/monit/README.SSL 57 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/STATUS ${PREFIX}/share/doc/monit/STATUS 58 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/doc/examples.html ${PREFIX}/share/doc/monit/examples.html 59 @${INSTALL_SCRIPT} -m 644 ${WRKDIR}/${DISTNAME}/doc/monit.html ${PREFIX}/share/doc/monit/monit.html 60 @${CAT} ${PKGMESSAGE} 61 @${ECHO_MSG} " ${PREFIX}/etc/monitrc.sample" 62 @${ECHO_MSG} " ${PREFIX}/share/doc/monit/examples.html" 63 64.if defined(WITH_SSL) 65.include "${PORTSDIR}/Mk/bsd.openssl.mk" 66CONFIGURE_ARGS+= --enable-ssl \ 67 --with-openssl="${OPENSSLBASE}" 68.else 69CONFIGURE_ARGS+= --without-ssl 70.endif 71 72.include <bsd.port.post.mk> 73