summaryrefslogtreecommitdiff
path: root/mail/qmqtool
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/qmqtool
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/qmqtool')
-rw-r--r--mail/qmqtool/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/mail/qmqtool/Makefile b/mail/qmqtool/Makefile
index 20b2af61cac..d89b542704f 100644
--- a/mail/qmqtool/Makefile
+++ b/mail/qmqtool/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/06/15 14:57:10 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/04 17:57:19 jlam Exp $
#
DISTNAME= qmqtool-current
@@ -11,6 +11,8 @@ MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://jeremy.kister.net/code/qmqtool/
COMMENT= View and safely modify qmail queue
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= # none
USE_TOOLS+= perl:run
@@ -30,9 +32,10 @@ BUILD_DEFS+= QMAILDIR
do-install:
cd ${WRKSRC}; \
- cp qmqtool ${PREFIX}/sbin; \
- cp Artistic ChangeLog FAQ README ${PREFIX}/share/doc/qmqtool; \
- cp -Rp contrib ${PREFIX}/share/examples/qmqtool
- ${CHMOD} 0700 ${PREFIX}/sbin/qmqtool
+ cp qmqtool ${DESTDIR}${PREFIX}/sbin; \
+ cp Artistic ChangeLog FAQ README \
+ ${DESTDIR}${PREFIX}/share/doc/qmqtool; \
+ cp -Rp contrib ${DESTDIR}${PREFIX}/share/examples/qmqtool
+ ${CHMOD} 0700 ${DESTDIR}${PREFIX}/sbin/qmqtool
.include "../../mk/bsd.pkg.mk"