aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/xymon-server
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2016-11-12 22:23:32 +0000
committerMark Felder <feld@FreeBSD.org>2016-11-12 22:23:32 +0000
commit3f56a2a3c1c4ea42642ed49447b7fdb0a8c4d3e8 (patch)
tree270453cf63eeb778ff9a320c581143f2a7429960 /net-mgmt/xymon-server
parenta3c48f09347a288e80440162be387fcd16ca6078 (diff)
downloadports-3f56a2a3c1c4ea42642ed49447b7fdb0a8c4d3e8.tar.gz
ports-3f56a2a3c1c4ea42642ed49447b7fdb0a8c4d3e8.zip
www/xymon-server: Fix example Apache config files
The example config files for Apache had nonsense variables strewn throughout as we do not use the interactive build process for Xymon which would replace them after asking the user a series of questions. Sane defaults have been chosen to make the examples more useful to the user.
Notes
Notes: svn path=/head/; revision=425997
Diffstat (limited to 'net-mgmt/xymon-server')
-rw-r--r--net-mgmt/xymon-server/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/net-mgmt/xymon-server/Makefile b/net-mgmt/xymon-server/Makefile
index 96a481cd62e7..81597a4e3085 100644
--- a/net-mgmt/xymon-server/Makefile
+++ b/net-mgmt/xymon-server/Makefile
@@ -2,7 +2,7 @@
PORTNAME= xymon
PORTVERSION= 4.3.27
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt www
MASTER_SITES= SF/xymon/Xymon/${PORTVERSION}
PKGNAMESUFFIX= -server${PKGNAMESUFFIX2}
@@ -29,9 +29,8 @@ XYMONUSER?= xymon
XYMONHOSTNAME?= xymon.example.com
XYMONHOSTIP?= 127.0.0.1
-USES= cpe gmake shebangfix
+USES= cpe gmake shebangfix ssl
SHEBANG_FILES= ${WRKSRC}/xymond/xymonreports.sh.DIST ${WRKSRC}/build/upgrade430.sh
-USE_OPENSSL= yes
MAKE_JOBS_UNSAFE= yes
CONFIGURE_ENV= MAKE=gmake
MAKE_ENV+= XYMONUSER="${XYMONUSER}"
@@ -73,6 +72,13 @@ post-patch:
${REINPLACE_CMD} -e 's|TRACEROUTE="traceroute"|TRACEROUTE="mtr -c 2 -n --report"|' ${WRKSRC}/xymond/etcfiles/xymonserver.cfg.DIST
${RM} ${WRKSRC}/docs/manpages/man1/xymonping.1.html
${RM} ${WRKSRC}/xymonnet/xymonping.1
+ ${REINPLACE_CMD} -e 's|@CGIDIR@|${WWWDIR}/server/cgi-bin|g' \
+ -e 's|@SECURECGIDIR@|${WWWDIR}/server/cgi-secure|g' \
+ -e 's|@INSTALLETCDIR@|${WWWDIR}/server/etc|g' \
+ -e 's|@INSTALLWWWDIR@|${WWWDIR}/server/www|g' \
+ -e 's|@SECUREXYMONCGIURL@|/cgi-secure|g' \
+ -e 's|@XYMONCGIURL@|/cgi-bin|g' \
+ -e 's|@XYMONHOSTURL@|/xymon|g' ${WRKSRC}/xymond/etcfiles/xymon-apache-*.DIST
# Configure script is interactive
do-configure: