diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2011-04-18 17:44:03 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2011-04-18 17:44:03 +0000 |
commit | d653c9e943b3eb1b0c35c6ec0263e188515f8a7f (patch) | |
tree | c67bb879c703b714ea0f94b4e4d4ef50468b1371 /sysutils/monitorix/Makefile | |
parent | 885e8b642731784ad2127b378ad271a8f1ca6751 (diff) |
Notes
Diffstat (limited to 'sysutils/monitorix/Makefile')
-rw-r--r-- | sysutils/monitorix/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sysutils/monitorix/Makefile b/sysutils/monitorix/Makefile index 0a5c5a78a19f..6f1a54d82d7d 100644 --- a/sysutils/monitorix/Makefile +++ b/sysutils/monitorix/Makefile @@ -6,8 +6,8 @@ # PORTNAME= monitorix -PORTVERSION= 2.1.0 -PORTREVISION= 1 +PORTVERSION= 2.1.1 +PORTREVISION?= 0 CATEGORIES= sysutils MASTER_SITES= http://www.monitorix.org/ \ http://www.bayofrum.net/dist/${PORTNAME}/ @@ -76,17 +76,23 @@ pre-everything:: @${ECHO_MSG} "" post-patch: -# Set FreeBSD path for perl in shebang +# Set FreeBSD path for perl in shebang and absolute sysctl so as not to break +# in cgi-bin .for f in monitorix.cgi monitorix.conf monitorix reports/send_reports - @${REINPLACE_CMD} -e "1s|^\(#!\).*|\1${PERL}|" ${WRKSRC}/${f} + @${REINPLACE_CMD} -e "1s|^\(#!\).*|\1${PERL}|" \ + -e 's|"\(sysctl\)|"/sbin/\1|' \ + ${WRKSRC}/${f} .endfor # eth0 doesn't exist in FreeBSD! Also let's set our own paths. +# No iptables, so we'll disable PORT_GRAPH @${REINPLACE_CMD} \ -e 's|\($$BASE_DIR = "\)[^"]*|\1${WWWDIR}/|' \ -e 's|\($$BASE_LIB = "\)[^"]*|\1${DATADIR}/|' \ -e 's|\($$BASE_CGI = "\)[^"]*|\1${CGIPATH}/|' \ + -e 's|\($$SECURE_LOG= "\)[^"]*|\1/var/log/auth.log|' \ -e "s|/var/lib/milter-greylist/db/|/var/milter-greylist/|" \ -e "s|eth0|lo0|g" \ + -e 's|\("port"[^Y]*\)Y|\1N|' \ ${WRKSRC}/monitorix.conf do-install: |