aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mailgraph
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-08-13 18:15:16 +0800
committerrafan <rafan@FreeBSD.org>2006-08-13 18:15:16 +0800
commit06be20ccf684e884575fa9830361ca66e6ff6181 (patch)
tree31cc9dc2c1c4bf4f21396a258c0d5e5b8f2802a3 /mail/mailgraph
parent8649b62bbe46f1659840a1adb8411b6f81fdf3fa (diff)
downloadfreebsd-ports-graphics-06be20ccf684e884575fa9830361ca66e6ff6181.tar.gz
freebsd-ports-graphics-06be20ccf684e884575fa9830361ca66e6ff6181.tar.zst
freebsd-ports-graphics-06be20ccf684e884575fa9830361ca66e6ff6181.zip
- Respect DESTDIR
PR: ports/101876 Submitted by: Gea-Suan Lin <gslin at gslin.org>
Diffstat (limited to 'mail/mailgraph')
-rw-r--r--mail/mailgraph/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile
index 71a76298af5..1510ed2c412 100644
--- a/mail/mailgraph/Makefile
+++ b/mail/mailgraph/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool \
NO_BUILD= yes
-DATADIR?= /var/db/mailgraph
+DATADIR?= ${DESTDIR}/var/db/mailgraph
MAILGRAPH_USER?= ${WWWOWN}
MAILGRAPH_GROUP?= ${WWWGRP}
@@ -44,11 +44,11 @@ post-patch:
@${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
do-install:
- ${MKDIR} ${PREFIX}/www/cgi-bin
+ ${MKDIR} ${TARGETDIR}/www/cgi-bin
${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_SCRIPT} ${WRKSRC}/mailgraph.pl ${TARGETDIR}/sbin
+ @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${TARGETDIR}/www/cgi-bin
post-install:
@${ECHO}