From d65e1c109c9ea2a5627ffde018064c3978077a4d Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 16 Nov 2008 13:54:12 +0000 Subject: Add support for user destination directory installation. Patch provided by Aleksey Cheusov in PR pkg/38526. --- mail/ssmtp/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'mail') 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" -- cgit v1.2.3