aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/routers2
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-14 22:19:00 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-14 22:19:00 +0000
commitdd4d840974cd0180cfa1dfcd272e05439b47a3bc (patch)
tree52c7f1886b36bd553857af79b5bd4c2cabfc4f77 /net-mgmt/routers2
parentbbf0a511c9674a4ba84e55f045bf99f4461296ac (diff)
downloadports-dd4d840974cd0180cfa1dfcd272e05439b47a3bc.tar.gz
ports-dd4d840974cd0180cfa1dfcd272e05439b47a3bc.zip
Notes
Diffstat (limited to 'net-mgmt/routers2')
-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 fde8a7f67b1f..3ac95eb4840d 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 42fde2d7e6a5..d11d45343ddc 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 ebf9a0313ce9..e4d7e1b68734 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%%