diff options
author | rafan <rafan@FreeBSD.org> | 2007-09-11 14:43:23 +0000 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-09-11 14:43:23 +0000 |
commit | a9d1a6e08b0f80d792d42971b6406ff15f3efd6a (patch) | |
tree | 217ae4e4aeb621d236ce1c84bcc3cbd730b34c63 /mail/mailgraph | |
parent | d7df24b3bf5414432746d1294e1cae13c0dd263e (diff) | |
download | FreeBSD-ports-a9d1a6e08b0f80d792d42971b6406ff15f3efd6a.zip FreeBSD-ports-a9d1a6e08b0f80d792d42971b6406ff15f3efd6a.tar.gz |
- Add CGIDIR and WWWROOT knobs to set the location for cgi and css
file.
Tested by: Eric <eric at mikestammer.com>
Diffstat (limited to 'mail/mailgraph')
-rw-r--r-- | mail/mailgraph/Makefile | 15 | ||||
-rw-r--r-- | mail/mailgraph/pkg-plist | 10 |
2 files changed, 15 insertions, 10 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile index 7ae7831..8845ffb 100644 --- a/mail/mailgraph/Makefile +++ b/mail/mailgraph/Makefile @@ -19,12 +19,15 @@ RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \ NO_BUILD= yes -DATADIR?= /var/db/mailgraph +CGIDIR?= ${PREFIX}/www/cgi-bin +DATADIR?= /var/db/mailgraph +WWWROOT?= ${PREFIX}/www/data MAILGRAPH_USER?= ${WWWOWN} MAILGRAPH_GROUP?= ${WWWGRP} USE_RC_SUBR= ${PORTNAME} SUB_LIST+= MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP} +PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,} DOCS= README CHANGES .if !defined(NOPORTDOCS) @@ -36,6 +39,8 @@ pre-everything:: @${ECHO_MSG} "You may set following options:" @${ECHO_MSG} "" @${ECHO_MSG} "DATADIR=/var/db/mailgraph 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} "MAILGRAPH_USER=www User to run mailgraph (Default: ${WWWOWN})" @${ECHO_MSG} "" @@ -43,13 +48,13 @@ post-patch: @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/mailgraph.cgi do-install: - ${MKDIR} ${PREFIX}/www/cgi-bin - ${MKDIR} ${PREFIX}/www/data/mailgraph + ${MKDIR} ${CGIDIR} + ${MKDIR} ${WWWROOT}/mailgraph ${MKDIR} ${DATADIR} @${CHOWN} -R ${MAILGRAPH_USER}:${MAILGRAPH_GROUP} ${DATADIR} @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin - @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${PREFIX}/www/cgi-bin - @${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${PREFIX}/www/data/mailgraph + @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${CGIDIR} + @${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${WWWROOT}/mailgraph .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} for f in ${DOCS}; do \ diff --git a/mail/mailgraph/pkg-plist b/mail/mailgraph/pkg-plist index 092dfe2..f515cf9 100644 --- a/mail/mailgraph/pkg-plist +++ b/mail/mailgraph/pkg-plist @@ -1,6 +1,6 @@ -www/cgi-bin/mailgraph.cgi -www/data/mailgraph/mailgraph.css +%%CGIDIR%%/mailgraph.cgi +%%WWWROOT%%/mailgraph/mailgraph.css sbin/mailgraph.pl -@dirrmtry www/cgi-bin -@dirrmtry www/data/mailgraph -@dirrmtry www/data +@dirrmtry %%CGIDIR%% +@dirrmtry %%WWWROOT%%/mailgraph +@dirrmtry %%WWWROOT%% |