aboutsummaryrefslogtreecommitdiff
path: root/mail/ovs
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-09-23 03:54:25 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-09-23 03:54:25 +0000
commitbb87e10d07f4cc4fb9fe8d1c1c37c638c8b01228 (patch)
tree81ea1a895dc91a3812fb4266c092c975ac770bfc /mail/ovs
parente2f3245abc030fca34dfb515411655fbeedd3c07 (diff)
downloadports-bb87e10d07f4cc4fb9fe8d1c1c37c638c8b01228.tar.gz
ports-bb87e10d07f4cc4fb9fe8d1c1c37c638c8b01228.zip
Notes
Diffstat (limited to 'mail/ovs')
-rw-r--r--mail/ovs/Makefile15
-rw-r--r--mail/ovs/distinfo6
-rw-r--r--mail/ovs/pkg-plist4
3 files changed, 15 insertions, 10 deletions
diff --git a/mail/ovs/Makefile b/mail/ovs/Makefile
index cae25e414cfb..78d8fee79af0 100644
--- a/mail/ovs/Makefile
+++ b/mail/ovs/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ovs
-PORTVERSION= 1.01
+PORTVERSION= 1.02
CATEGORIES= mail
MASTER_SITES= ftp://ftp.oav.net/openvisp/stats/
@@ -18,12 +18,15 @@ RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \
NO_BUILD= yes
+CGIDIR?= ${PREFIX}/www/cgi-bin
DATADIR?= /var/db/ovs
+WWWROOT?= ${PREFIX}/www/data
OVS_USER?= ${WWWOWN}
OVS_GROUP?= ${WWWGRP}
USE_RC_SUBR= ${PORTNAME}.sh
SUB_LIST+= OVS_USER=${OVS_USER} OVS_GROUP=${OVS_GROUP}
+PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,}
DOCS= README CHANGES COPYING CHANGES.old README.old
.if !defined(NOPORTDOCS)
@@ -35,6 +38,8 @@ pre-everything::
@${ECHO_MSG} "You may set following options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "DATADIR=/var/db/ovs Where do you put RRD databases?"
+ @${ECHO_MSG} "CGIDIR=${PREFIX}/www/cgi-bin Where do you put cgi?"
+ @${ECHO_MSG} "WWWROOT=${PREFIX}/www/data Where do you put httpd's document root?"
@${ECHO_MSG} "OVS_USER=www User to run mailgraph (Default: ${WWWOWN})"
@${ECHO_MSG} ""
@@ -42,13 +47,13 @@ post-patch:
@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/ovs.cgi
do-install:
- @${MKDIR} ${PREFIX}/www/cgi-bin
- @${MKDIR} ${PREFIX}/www/data/ovs
+ @${MKDIR} ${CGIDIR}
+ @${MKDIR} ${WWWROOT}/ovs
@${MKDIR} ${DATADIR}
@${CHOWN} -R ${OVS_USER}:${OVS_GROUP} ${DATADIR}
@${INSTALL_SCRIPT} ${WRKSRC}/ovs.pl ${PREFIX}/sbin
- @${INSTALL_SCRIPT} ${WRKSRC}/ovs.cgi ${PREFIX}/www/cgi-bin
- @${INSTALL_SCRIPT} ${WRKSRC}/ovs.css ${PREFIX}/www/data/ovs
+ @${INSTALL_SCRIPT} ${WRKSRC}/ovs.cgi ${CGIDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/ovs.css ${WWWROOT}/ovs
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
for f in ${DOCS}; do \
diff --git a/mail/ovs/distinfo b/mail/ovs/distinfo
index 15182cde7efb..0f7cb1ba9a34 100644
--- a/mail/ovs/distinfo
+++ b/mail/ovs/distinfo
@@ -1,3 +1,3 @@
-MD5 (ovs-1.01.tar.gz) = 8b4619fe227f5d0ced5162d48f4a5e05
-SHA256 (ovs-1.01.tar.gz) = 5431a48c908311e28206d0516fb0d9fee496e49cbb9de19ab114c94a705336ab
-SIZE (ovs-1.01.tar.gz) = 25492
+MD5 (ovs-1.02.tar.gz) = eea2ff428c57896966303972d4a61812
+SHA256 (ovs-1.02.tar.gz) = 57adf890732e911e61afb2a8598f948b7541fd96361c483d2073880cd020d9ec
+SIZE (ovs-1.02.tar.gz) = 25297
diff --git a/mail/ovs/pkg-plist b/mail/ovs/pkg-plist
index b4327d3a58aa..257cbd82e38a 100644
--- a/mail/ovs/pkg-plist
+++ b/mail/ovs/pkg-plist
@@ -1,5 +1,5 @@
-www/cgi-bin/ovs.cgi
-www/data/ovs/ovs.css
+%%CGIDIR%%/ovs.cgi
+%%WWWROOT%%/ovs/ovs.css
sbin/ovs.pl
@dirrmtry www/cgi-bin
@dirrmtry www/data/ovs