summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/monit/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/monit/Makefile b/sysutils/monit/Makefile
index 675d8feb1ef5..211501f83e2c 100644
--- a/sysutils/monit/Makefile
+++ b/sysutils/monit/Makefile
@@ -7,6 +7,7 @@
PORTNAME= monit
PORTVERSION= 4.10.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.tildeslash.com/monit/dist/
@@ -25,7 +26,8 @@ CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \
LOCALBASE="${LOCALBASE}"
-OPTIONS= SSL "Enable SSL support" on
+OPTIONS= SSL "Enable SSL support" on \
+ RESOURCE "Enable resource support (not for jail)" on
PLIST_FILES= bin/monit \
etc/monitrc.sample
@@ -44,6 +46,12 @@ CONFIGURE_ARGS+= --enable-ssl --with-openssl="${OPENSSLBASE}"
CONFIGURE_ARGS+= --without-ssl
.endif
+.if defined(WITH_RESOURCE)
+CONFIGURE_ARGS+= --with-resource
+.else
+CONFIGURE_ARGS+= --without-resource
+.endif
+
post-install:
${INSTALL_SCRIPT} -m 600 ${WRKDIR}/${DISTNAME}/monitrc ${PREFIX}/etc/monitrc.sample
.if !defined(NOPORTDOCS)