summaryrefslogtreecommitdiff
path: root/mail/postgrey/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 17:57:17 +0000
committerjlam <jlam>2008-03-04 17:57:17 +0000
commitbdd0c18aec7b66f61e3330e8817dc56f3935ec5e (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/postgrey/Makefile
parent3fb238c0b22ac51fd38f31b091b73ec6488f8dd9 (diff)
downloadpkgsrc-bdd0c18aec7b66f61e3330e8817dc56f3935ec5e.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/postgrey/Makefile')
-rw-r--r--mail/postgrey/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index a803fd7922f..5b4862f1362 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2008/01/20 21:08:01 xtraeme Exp $
+# $NetBSD: Makefile,v 1.24 2008/03/04 17:57:19 jlam Exp $
#
DISTNAME= postgrey-1.31
@@ -14,6 +14,8 @@ DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
DEPENDS+= p5-IO-Multiplex-[0-9]*:../../devel/p5-IO-Multiplex
DEPENDS+= p5-Net-Server-[0-9]*:../../net/p5-Net-Server
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_CONFIGURE= yes
USE_TOOLS+= perl:run
@@ -72,12 +74,12 @@ INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR}
do-build:
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin/postgrey
+ ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${DESTDIR}${PREFIX}/sbin/postgrey
.for i in COPYING Changes README
- ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}/${i}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR}/${i}
.endfor
.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
- ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${EGDIR}/${i}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${EGDIR}/${i}
.endfor
.include "../../databases/db4/buildlink3.mk"