pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/ssmtp Add support for user destination directory ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f3951a2930c
branches:  trunk
changeset: 550164:8f3951a2930c
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Nov 16 13:54:12 2008 +0000

description:
Add support for user destination directory installation.
Patch provided by Aleksey Cheusov in PR pkg/38526.

diffstat:

 mail/ssmtp/Makefile |  16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 0738f62ffccf -r 8f3951a2930c mail/ssmtp/Makefile
--- a/mail/ssmtp/Makefile       Sun Nov 16 12:04:41 2008 +0000
+++ b/mail/ssmtp/Makefile       Sun Nov 16 13:54:12 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/01/18 05:08:30 tnn Exp $
+# $NetBSD: Makefile,v 1.21 2008/11/16 13:54:12 tron Exp $
 #
 # TLS functionality needs testing. Please let me know the result,
 # and preferably info about your system.
@@ -16,6 +16,8 @@
 HOMEPAGE=      http://packages.debian.org/testing/mail/ssmtp.html
 COMMENT=       Extremely simple MTA to forward mail to a mail hub
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}/${PKGNAME_NOREV:S/.orig$//}
 USE_TOOLS+=            gmake
 GNU_CONFIGURE=         yes
@@ -35,14 +37,18 @@
 SUBST_SED.paths+=      -e 's,/etc/ssmtp,${PKG_SYSCONFDIR},g'
 SUBST_STAGE.paths=     post-patch
 
+INSTALLATION_DIRS+=    ${EGDIR}
+
+MAKE_FLAGS+=           prefix=${DESTDIR}${PREFIX}
+MAKE_FLAGS+=           mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+
 post-extract:
        @${RM} -rf ${WRKSRC}/RCS
        ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
 
 post-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
-       ${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${EGDIR}
-       ${INSTALL_DATA} ${WRKSRC}/revaliases ${EGDIR}
-       ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/revaliases ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${DESTDIR}${EGDIR}
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index