From 06be20ccf684e884575fa9830361ca66e6ff6181 Mon Sep 17 00:00:00 2001 From: rafan Date: Sun, 13 Aug 2006 10:15:16 +0000 Subject: - Respect DESTDIR PR: ports/101876 Submitted by: Gea-Suan Lin --- mail/mailgraph/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mail/mailgraph') 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} -- cgit