aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-03-30 12:06:56 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-03-30 12:06:56 +0000
commita2995518f66d8dae712e36536b80fcec77324387 (patch)
tree22e05cb07cd5500154ce7d1de6cc6b153ff570f3 /dns
parentc39e16136d72e250750e6c82ba9699d87576ff6c (diff)
downloadports-a2995518f66d8dae712e36536b80fcec77324387.tar.gz
ports-a2995518f66d8dae712e36536b80fcec77324387.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/bindgraph/Makefile9
-rw-r--r--dns/bindgraph/files/patch-bindgraph.cgi12
2 files changed, 15 insertions, 6 deletions
diff --git a/dns/bindgraph/Makefile b/dns/bindgraph/Makefile
index 9f049f59cec5..7cf85576d377 100644
--- a/dns/bindgraph/Makefile
+++ b/dns/bindgraph/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bindgraph
PORTVERSION= 0.2
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.linux.it/~md/software/
EXTRACT_SUFX= .tgz
@@ -49,13 +50,13 @@ post-patch:
do-install:
${MKDIR} ${CGIDIR}
${MKDIR} ${DATADIR}
- @${CHOWN} -R ${BINDGRAPH_USER}:${BINDGRAPH_GROUP} ${DATADIR}
- @${INSTALL_SCRIPT} ${WRKSRC}/bindgraph.pl ${PREFIX}/sbin
- @${INSTALL_SCRIPT} ${WRKSRC}/bindgraph.cgi ${CGIDIR}
+ @${CHOWN} -R ${BINDGRAPH_USER}:${BINDGRAPH_GROUP} ${DATADIR}/
+ @${INSTALL_SCRIPT} ${WRKSRC}/bindgraph.pl ${PREFIX}/sbin/
+ @${INSTALL_SCRIPT} ${WRKSRC}/bindgraph.cgi ${CGIDIR}/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
for f in ${DOCS}; do \
- ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}/; \
done
.endif
diff --git a/dns/bindgraph/files/patch-bindgraph.cgi b/dns/bindgraph/files/patch-bindgraph.cgi
index cebfa9e0a2f7..a38d9260a4b0 100644
--- a/dns/bindgraph/files/patch-bindgraph.cgi
+++ b/dns/bindgraph/files/patch-bindgraph.cgi
@@ -1,5 +1,5 @@
--- bindgraph.cgi.orig 2003-05-05 06:26:18.000000000 +0800
-+++ bindgraph.cgi 2007-11-30 22:08:18.000000000 +0800
++++ bindgraph.cgi 2008-03-30 18:04:38.000000000 +0800
@@ -8,13 +8,14 @@
use RRDs;
@@ -13,7 +13,7 @@
+my $hostname = (POSIX::uname())[1];
# path of the RRD database
-my $rrd = '/var/www/as112/rrd/bindgraph.rrd';
-+my $rrd = '/var/db/bindgraph/bindgraph.rrd';
++my $rrd = '%%DATADIR%%/bindgraph.rrd';
# temporary directory where the images will be saved
my $tmp_dir = '/tmp/bindgraph';
@@ -38,3 +38,11 @@
);
my $err = RRDs::error;
die_fatal("RRDs::graph($file, ...): $err") if $err;
+@@ -209,6 +213,7 @@
+ $uri =~ s#/#,#g;
+ $uri =~ s#~#tilde,#g;
+
++ mkdir("$tmp_dir", 0755);
+ die_fatal("ERROR: $tmp_dir does not exist") if not -d $tmp_dir;
+
+ if (not -d "$tmp_dir/$uri") {