pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail Enabled installation to DESTDIR. (OK by martti@).
details: https://anonhg.NetBSD.org/pkgsrc/rev/8fbe50f85adf
branches: trunk
changeset: 397244:8fbe50f85adf
user: heinz <heinz%pkgsrc.org@localhost>
date: Sun Aug 09 21:15:31 2009 +0000
description:
Enabled installation to DESTDIR. (OK by martti@).
diffstat:
mail/postfix-current/Makefile | 29 +++++++++++++++++------------
mail/postfix/Makefile | 29 +++++++++++++++++------------
2 files changed, 34 insertions(+), 24 deletions(-)
diffs (138 lines):
diff -r 1f22736d5630 -r 8fbe50f85adf mail/postfix-current/Makefile
--- a/mail/postfix-current/Makefile Sun Aug 09 21:13:39 2009 +0000
+++ b/mail/postfix-current/Makefile Sun Aug 09 21:15:31 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.107 2009/06/04 14:08:06 martti Exp $
+# $NetBSD: Makefile,v 1.108 2009/08/09 21:17:49 heinz Exp $
DISTNAME= postfix-2.7-20090528
PKGNAME= postfix-2.7.20090528
@@ -17,6 +17,7 @@
CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]*
CONFLICTS+= postfix-2.6-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= perl
@@ -126,7 +127,7 @@
CONF_FILES_PERMS= # empty
.for i in post-install postfix-script
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} \
- ${ROOT_USER} ${ROOT_GROUP} 755
+ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
.endfor
MAKE_ENV+= DEBUG= # empty
@@ -136,6 +137,12 @@
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_STAGE.paths= post-patch
+.if !empty(USE_DESTDIR:M[Yy][Ee][Ss])
+DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}"
+.endif
+
+INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR}
+
post-extract:
cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix
@@ -151,21 +158,19 @@
.endif
do-install:
- ${INSTALL_DATA_DIR} ${LIBEXECDIR}
- ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
- ${INSTALL_DATA_DIR} ${DOCDIR}
rm -f ${WRKSRC}/conf/*.orig
.if !empty(PKG_OPTIONS:Msasl)
- ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR}
.endif
- ${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${EXAMPLEDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EXAMPLEDIR}/mailer.conf
cd ${WRKSRC} && sh ./postfix-install -non-interactive \
- config_directory="${EXAMPLEDIR}"
+ ${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}"
+ ${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${DESTDIR}${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${DESTDIR}${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKDIR}/mailer.conf \
+ ${DESTDIR}${EXAMPLEDIR}/mailer.conf
${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \
- ${PREFIX}/sbin/qshape
+ ${DESTDIR}${PREFIX}/sbin/qshape
${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \
- ${PREFIX}/${PKGMANDIR}/man1
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"
diff -r 1f22736d5630 -r 8fbe50f85adf mail/postfix/Makefile
--- a/mail/postfix/Makefile Sun Aug 09 21:13:39 2009 +0000
+++ b/mail/postfix/Makefile Sun Aug 09 21:15:31 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.228 2009/06/04 14:08:56 martti Exp $
+# $NetBSD: Makefile,v 1.229 2009/08/09 21:15:31 heinz Exp $
DISTNAME= postfix-2.6.2
#PKGREVISION= 1
@@ -16,6 +16,7 @@
CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= perl
@@ -125,7 +126,7 @@
CONF_FILES_PERMS= # empty
.for i in post-install postfix-script
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} \
- ${ROOT_USER} ${ROOT_GROUP} 755
+ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
.endfor
MAKE_ENV+= DEBUG= # empty
@@ -135,6 +136,12 @@
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_STAGE.paths= post-patch
+.if !empty(USE_DESTDIR:M[Yy][Ee][Ss])
+DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}"
+.endif
+
+INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR}
+
post-extract:
cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix
@@ -150,21 +157,19 @@
.endif
do-install:
- ${INSTALL_DATA_DIR} ${LIBEXECDIR}
- ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
- ${INSTALL_DATA_DIR} ${DOCDIR}
rm -f ${WRKSRC}/conf/*.orig
.if !empty(PKG_OPTIONS:Msasl)
- ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR}
.endif
- ${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${EXAMPLEDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EXAMPLEDIR}/mailer.conf
cd ${WRKSRC} && sh ./postfix-install -non-interactive \
- config_directory="${EXAMPLEDIR}"
+ ${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}"
+ ${INSTALL_SCRIPT} ${WRKSRC}/conf/post-install ${DESTDIR}${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/conf/postfix-script ${DESTDIR}${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKDIR}/mailer.conf \
+ ${DESTDIR}${EXAMPLEDIR}/mailer.conf
${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \
- ${PREFIX}/sbin/qshape
+ ${DESTDIR}${PREFIX}/sbin/qshape
${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \
- ${PREFIX}/${PKGMANDIR}/man1
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index