diff options
author | tron <tron> | 2008-11-16 13:54:12 +0000 |
---|---|---|
committer | tron <tron> | 2008-11-16 13:54:12 +0000 |
commit | e5745f2fee624cf3320faec3a8b05f787627dad1 (patch) | |
tree | 1321ce2c54a2ac8b640fd9af8dba3ad23f3f07bb /mail | |
parent | 346cbbf194302361d74074ac2eca32114230b516 (diff) | |
download | pkgsrc-e5745f2fee624cf3320faec3a8b05f787627dad1.tar.gz |
Add support for user destination directory installation.
Patch provided by Aleksey Cheusov in PR pkg/38526.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ssmtp/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile index 7c0c2833822..5f1a171c3ce 100644 --- a/mail/ssmtp/Makefile +++ b/mail/ssmtp/Makefile @@ -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 @@ MAINTAINER= pkg@pop.707.to 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/ssl/certs,${PKG_SYSCONFDIR},g' 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" |