summaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-14 22:19:00 +0000
committermiwi <miwi@FreeBSD.org>2006-12-14 22:19:00 +0000
commit1b72b13571f271e2db63359369415788ea847f63 (patch)
tree8ad6119a1a98ba04a9d5b3942261c75e6417f675 /net-mgmt
parentfb89077dca9424d8ab66180272a0f65cd84e9674 (diff)
downloadFreeBSD-ports-1b72b13571f271e2db63359369415788ea847f63.zip
FreeBSD-ports-1b72b13571f271e2db63359369415788ea847f63.tar.gz
- Fix depends
PR: ports/106694 Submitted by: Xavier Beaudouin <kiwi@oav.net> (maintainer)
Diffstat (limited to 'net-mgmt')
-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