From 227db4fd65c1798f1f06219f896b8a2add93ce0c 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/cucipop/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'mail/cucipop') diff --git a/mail/cucipop/Makefile b/mail/cucipop/Makefile index 7327a195259..af807b65b55 100644 --- a/mail/cucipop/Makefile +++ b/mail/cucipop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2007/06/20 02:22:33 jlam Exp $ +# $NetBSD: Makefile,v 1.31 2008/03/04 17:57:18 jlam Exp $ # DISTNAME= cucipop-1.31 @@ -15,6 +15,8 @@ COMMENT= The Cubic Circle POP3 mail server LICENSE= cucipop-license +PKG_DESTDIR_SUPPORT= user-destdir + REQD_DIRS+= ${PREFIX}/share/cucipop/bulletins # cucipop(8) needs to be able to create dotlocks in the mail spool @@ -61,9 +63,9 @@ SUBST_SED.prefix= -e "s|@prefix@|${PREFIX}|g" INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/cucipop ${PREFIX}/sbin - ${INSTALL_PROGRAM} ${WRKSRC}/makevpopdb ${PREFIX}/sbin - ${INSTALL_MAN} ${WRKSRC}/cucipop.8 ${PREFIX}/${PKGMANDIR}/man8 - ${INSTALL_MAN} ${WRKSRC}/makevpopdb.8 ${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/cucipop ${DESTDIR}${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/makevpopdb ${DESTDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/cucipop.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_MAN} ${WRKSRC}/makevpopdb.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3