diff options
author | pav <pav@FreeBSD.org> | 2010-08-26 19:52:12 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2010-08-26 19:52:12 +0800 |
commit | 31f0570d1a3911f91eff03154e3db50606eb81ce (patch) | |
tree | 3dfc967db8c3aeb37382b1d96f3ff76accdda90a /mail | |
parent | 3369b79a09180755e7aab59047550fe4a7b71d1b (diff) | |
download | freebsd-ports-gnome-31f0570d1a3911f91eff03154e3db50606eb81ce.tar.gz freebsd-ports-gnome-31f0570d1a3911f91eff03154e3db50606eb81ce.tar.zst freebsd-ports-gnome-31f0570d1a3911f91eff03154e3db50606eb81ce.zip |
- Convert to OPTIONS
PR: ports/146737
Submitted by: Marshal Newrock <marshal@zordio.com
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamass-milter/Makefile | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile index 63cf2305cb5a..e01468dcf344 100644 --- a/mail/spamass-milter/Makefile +++ b/mail/spamass-milter/Makefile @@ -20,15 +20,10 @@ RUN_DEPENDS= ${BUILD_DEPENDS} MAKE_JOBS_SAFE= yes -## -# Use the following quirks to choose which sendmail to use (ports or system): -# -# WITH_SENDMAIL_BASE=yes -# or -# WITH_SENDMAIL_PORT=yes -# -# If unspecified, give base precedence. -# +OPTIONS= ADDAUTH_PATCH "Bypass checks for SMTP AUTH connections" off \ + REJECTTEXT_PATCH "Customize SMTP reject message" off \ + LDAP "LDAP support" off \ + SENDMAIL_PORT "Build against sendmail port" off .include <bsd.port.pre.mk> @@ -47,6 +42,7 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-rejecttext2 .if exists(${LOCALBASE}/lib/libldap.so) WITH_LDAP=yes +.undef WITHOUT_LDAP .endif .if !defined(WITHOUT_LDAP) && defined(WITH_LDAP) @@ -55,8 +51,7 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib .endif -.if !defined(WITH_SENDMAIL_BASE) && \ - !defined(WITH_SENDMAIL_PORT) && \ +.if !defined(WITH_SENDMAIL_BASE) && !defined(WITH_SENDMAIL_PORT) WITH_SENDMAIL_BASE=yes .endif @@ -91,30 +86,6 @@ SUB_FILES= pkg-message MAN1= spamass-milter.1 -pre-patch: - -.if !defined(WITH_SENDMAIL_PORT) - @${ECHO_CMD} "" - @${ECHO_CMD} "By default, ${PORTNAME} builds against the base system." - @${ECHO_CMD} "If you want to use the sendmail port please set the environment" - @${ECHO_CMD} "variable WITH_SENDMAIL_PORT" - @${ECHO_CMD} "" -.endif - -.if !defined(WITH_ADDAUTH_PATCH) - @${ECHO_CMD} "" - @${ECHO_CMD} "You may set environment variable WITH_ADDAUTH_PATCH to bypass" - @${ECHO_CMD} "checks if a connection authenticated via SMTP." - @${ECHO_CMD} "" -.endif - -.if !defined(WITH_REJECTTEXT_PATCH) - @${ECHO_CMD} "" - @${ECHO_CMD} "You may set environment variable WITH_REJECTTEXT_PATCH to be" - @${ECHO_CMD} "able to customize the SMTP reject message." - @${ECHO_CMD} "" -.endif - post-patch: @${SED} -e's,%%PREFIX%%,${PREFIX},g' \ ${FILESDIR}/activation.txt > ${WRKDIR}/activation.txt |