From a0c8610efe7a24ba625121c6b03926dee4ef5016 Mon Sep 17 00:00:00 2001 From: miwi Date: Tue, 28 Nov 2006 10:35:42 +0000 Subject: - Add OPTIONS to the Makefile with optional dependencies for MX lookup, TLS and AUTH NTLM support PR: 105944 Submitted by: "Beat Gaetzi" (maintainer) --- mail/swaks/Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/swaks/Makefile b/mail/swaks/Makefile index a0ddce62f6ea..7068d4b70a90 100644 --- a/mail/swaks/Makefile +++ b/mail/swaks/Makefile @@ -17,8 +17,26 @@ COMMENT= Swiss Army Knife SMTP transaction tester PLIST_FILES= bin/${PORTNAME} +OPTIONS= PERL_NET_DNS "Add MX lookup support" off \ + PERL_NET_SSLEAY "Add TLS support" off \ + PERL_AUTHEN_NTLM "Add support for AUTH NTLM" off + USE_PERL5_RUN= yes +.include + +.if defined(WITH_PERL_NET_DNS) +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS +.endif + +.if defined(WITH_PERL_NET_SSLEAY) +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay +.endif + +.if defined(WITH_PERL_AUTHEN_NTLM) +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Authen/NTLM.pm:${PORTSDIR}/security/p5-Authen-NTLM +.endif + do-extract: @${RM} -rf ${WRKDIR} @${MKDIR} ${WRKSRC} @@ -33,4 +51,4 @@ do-install: ${DESTDIR}${PREFIX}/bin/${PORTNAME} @${CAT} ${PKGMESSAGE} -.include +.include -- cgit