forked from Lainports/freebsd-ports
Taken from vendor repo (r372). - Remove CPPFLAGS from CONFIGURE_ARGS as it is inherently passed via use of GNU_CONFIGURE. (quiets lint warning) - Remove WITH_SSL option conditional and replace it with a WITHOUT_SSL conditional. SSL support is enabled by default in configure and the --enable-SSL and --with-openssl knobs have been removed. (quiets configure warning) - Change Mk includes to use new options style. - Fix WWW in pkg-descr. PR: ports/158198 Submitted by: Jase Thew <freebsd@beardz.net> Approved by: Martin Pala <martinp@tildeslash.com> (maintainer)
53 lines
1.1 KiB
Makefile
53 lines
1.1 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.5
|
|
PORTREVISION= 1
|
|
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= 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.options.mk>
|
|
|
|
.if defined(WITHOUT_SSL)
|
|
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.mk>
|