From bdd0c18aec7b66f61e3330e8817dc56f3935ec5e Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 17:57:17 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- mail/postgrey/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/postgrey/Makefile') 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" -- cgit v1.2.3