summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/routers2/Makefile5
-rw-r--r--net-mgmt/routers2/files/patch-routers2.conf4
-rw-r--r--net-mgmt/routers2/pkg-plist1
3 files changed, 6 insertions, 4 deletions
diff --git a/net-mgmt/routers2/Makefile b/net-mgmt/routers2/Makefile
index fde8a7f..3ac95eb 100644
--- a/net-mgmt/routers2/Makefile
+++ b/net-mgmt/routers2/Makefile
@@ -24,8 +24,7 @@ RUN_DEPENDS= ${SITE_PERL}/Convert/ASN1/IO.pm:${PORTSDIR}/converters/p5-Convert-A
${SITE_PERL}/SNMP_Session.pm:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
${SITE_PERL}/CGI/SpeedyCGI.pm:${PORTSDIR}/www/p5-CGI-SpeedyCGI \
${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
- ${LOCALBASE}/bin/mrtg:${PORTSDIR}/net-mgmt/mrtg \
- ${LOCALBASE}/bin/mrtg-ping-probe:${PORTSDIR}/net/mrtg-ping-probe
+ ${LOCALBASE}/bin/mrtg:${PORTSDIR}/net-mgmt/mrtg
WRKSRC= ${WRKDIR}/${PORTNAME}-v${PORTVERSION}
@@ -42,8 +41,10 @@ post-patch:
do-install:
${MKDIR} -m 755 ${PREFIX}/www/routers2
${MKDIR} -m 755 ${PREFIX}/www/routers2/rrdicons
+ ${MKDIR} -m 755 ${PREFIX}/www/routers2/graphs
${MKDIR} -m 755 /var/db/rrdtool
${CHOWN} ${WWWOWN}:${WWWGRP} /var/db/rrdtool
+ ${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/www/routers2/graphs
.if !defined(NOPORTDOCS)
${MKDIR} -m 755 ${DOCSDIR}
diff --git a/net-mgmt/routers2/files/patch-routers2.conf b/net-mgmt/routers2/files/patch-routers2.conf
index 42fde2d..d11d453 100644
--- a/net-mgmt/routers2/files/patch-routers2.conf
+++ b/net-mgmt/routers2/files/patch-routers2.conf
@@ -27,7 +27,7 @@
# Where the graphs are to be created - absolute filesystem path
# graphpath = C:/www/html/graphs
-graphpath = /www/html/graphs
-+graphpath = %%LOCALBASE%%/www/data/graphs
++graphpath = %%LOCALBASE%%/www/routers2/graphs
# The URL of the above directory - a URL path, so use '/' as a path separator
graphurl = /graphs
#
@@ -35,7 +35,7 @@
# NO SPACES allowed in path names, NT people.
# confpath = C:\mrtg\conf
-confpath = /mrtg/conf
-+confpath = %%LOCALBASE/etc/mrtg
++confpath = %%LOCALBASE%%/etc/mrtg
# Wildcarded pattern match for MRTG conf files.
# You can put several of these here, separated by spaces.
# Note that these can include a path separator - eg, site*/*.cfg
diff --git a/net-mgmt/routers2/pkg-plist b/net-mgmt/routers2/pkg-plist
index ebf9a03..e4d7e1b 100644
--- a/net-mgmt/routers2/pkg-plist
+++ b/net-mgmt/routers2/pkg-plist
@@ -202,6 +202,7 @@ www/routers2/rrdicons/zoomout.gif
%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
%%PORTDOCS%%%%DOCSDIR%%/WINDOWS
%%PORTDOCS%%%%DOCSDIR%%/WISHLIST
+@dirrm www/routers2/graphs
@dirrm www/routers2/rrdicons
@dirrm www/routers2
%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud