diff options
author | adam <adam@pkgsrc.org> | 2005-03-08 09:33:19 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2005-03-08 09:33:19 +0000 |
commit | 92644d0367f18b2a3069dc53138fff5a29b2d311 (patch) | |
tree | 57c7e84b9f7b25c45271c6a113fc73fc2fe2585e /mail | |
parent | fe2671665d9b506172129425f32ae007b1758479 (diff) | |
download | pkgsrc-92644d0367f18b2a3069dc53138fff5a29b2d311.tar.gz |
SSL support is now optional via options.mk; config files are installed correctly (Fix PR#29504)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ssmtp/Makefile | 18 | ||||
-rw-r--r-- | mail/ssmtp/options.mk | 16 |
2 files changed, 22 insertions, 12 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile index 740562b7c74..3dfe84b4c97 100644 --- a/mail/ssmtp/Makefile +++ b/mail/ssmtp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2004/10/22 14:45:47 tv Exp $ +# $NetBSD: Makefile,v 1.12 2005/03/08 09:33:19 adam Exp $ # FreeBSD Id: ports/mail/ssmtp/Makefile,v 1.10 2003/04/14 08:41:04 leeym Exp # # TLS functionality needs testing. Please let me know the result, @@ -17,21 +17,16 @@ HOMEPAGE= http://packages.debian.org/testing/mail/ssmtp.html COMMENT= Extremely simple MTA to forward mail to a mail hub WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/.orig$//} -USE_BUILDLINK3= YES -USE_PKGINSTALL= YES - +USE_BUILDLINK3= yes USE_GNU_TOOLS+= make -GNU_CONFIGURE= YES -CONFIGURE_ARGS+= --enable-ssl +USE_PKGINSTALL= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} -.include "../../mk/bsd.prefs.mk" -.if !empty(USE_INET6:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+= --enable-inet6 -.endif +.include "options.mk" PKG_SYSCONFSUBDIR= ${PKGBASE} EGDIR= ${PREFIX}/share/examples/${PKGBASE} - CONF_FILES= ${EGDIR}/ssmtp.conf ${PKG_SYSCONFDIR}/ssmtp.conf CONF_FILES+= ${EGDIR}/revaliases ${PKG_SYSCONFDIR}/revaliases @@ -62,5 +57,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/revaliases ${EGDIR} ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EGDIR} -.include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/mail/ssmtp/options.mk b/mail/ssmtp/options.mk new file mode 100644 index 00000000000..d221b4a841a --- /dev/null +++ b/mail/ssmtp/options.mk @@ -0,0 +1,16 @@ +# $NetBSD: options.mk,v 1.1 2005/03/08 09:33:19 adam Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.ssmtp +PKG_DEFAULT_OPTIONS= ssl +PKG_SUPPORTED_OPTIONS= inet6 ssl + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-inet6 +.endif + +.if !empty(PKG_OPTIONS:Mssl) +CONFIGURE_ARGS+= --enable-ssl +.include "../../security/openssl/buildlink3.mk" +.endif |