summaryrefslogtreecommitdiff
path: root/mail/popa3d
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
commit411a468ce44836ba0dce72243b549d700f29037a (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/popa3d
parenta8d05d72830e3030fc1f7f00f4b39671102c05e6 (diff)
downloadpkgsrc-411a468ce44836ba0dce72243b549d700f29037a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/popa3d')
-rw-r--r--mail/popa3d/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile
index df77243c018..e24d6fd1558 100644
--- a/mail/popa3d/Makefile
+++ b/mail/popa3d/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2007/12/02 12:13:31 wiz Exp $
+# $NetBSD: Makefile,v 1.50 2008/03/04 17:57:19 jlam Exp $
#
DISTNAME= popa3d-1.0.2
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.openwall.com/popa3d/
COMMENT= Secure, reliable, performant, and small pop3 server
+PKG_DESTDIR_SUPPORT= user-destdir
+
POPA3D_USER?= popa3d
POPA3D_GROUP?= popa3d
@@ -34,12 +36,13 @@ SUBST_SED.params= -e 's,/var/empty,${PREFIX}/share/empty,' \
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
do-install:
- ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/popa3d ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/popa3d.8 ${PREFIX}/${PKGMANDIR}/man8/
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/popa3d
+ ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/popa3d ${DESTDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/popa3d.8 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/popa3d
cd ${WRKSRC} && ${INSTALL_DATA} DESIGN INSTALL LICENSE \
- ${PREFIX}/share/doc/popa3d
- ${INSTALL_DATA_DIR} ${PREFIX}/share/empty
+ ${DESTDIR}${PREFIX}/share/doc/popa3d
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/empty
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"