summaryrefslogtreecommitdiff
path: root/mail/mailgraph
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/mailgraph
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/mailgraph')
-rw-r--r--mail/mailgraph/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile
index b694c68b0e5..540aea3b93b 100644
--- a/mail/mailgraph/Makefile
+++ b/mail/mailgraph/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/07/08 22:32:15 xtraeme Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/04 17:57:18 jlam Exp $
#
DISTNAME= mailgraph-1.13
@@ -13,6 +13,8 @@ COMMENT= RRDtool frontend for mail statistics
DEPENDS+= rrdtool>=1:../../databases/rrdtool
DEPENDS+= p5-File-Tail-[0-9]*:../../misc/p5-File-Tail
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= perl:run
.include "../../mk/bsd.prefs.mk"
@@ -43,14 +45,15 @@ do-build:
do-configure:
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/libexec/cgi-bin
- ${INSTALL_SCRIPT} \
- ${WRKSRC}/mailgraph.cgi ${PREFIX}/libexec/cgi-bin/mailgraph.cgi
- ${INSTALL_SCRIPT} \
- ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin/mailgraph
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailgraph
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libexec/cgi-bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi \
+ ${DESTDIR}${PREFIX}/libexec/cgi-bin/mailgraph.cgi
+ ${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl \
+ ${DESTDIR}${PREFIX}/sbin/mailgraph
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mailgraph
.for i in CHANGES COPYING README
- ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/mailgraph/${i}
+ ${INSTALL_DATA} ${WRKSRC}/${i} \
+ ${DESTDIR}${PREFIX}/share/doc/mailgraph/${i}
.endfor
.include "../../mk/bsd.pkg.mk"