aboutsummaryrefslogtreecommitdiffstats
path: root/mail/smtp-gated
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-13 13:55:02 +0800
committerbapt <bapt@FreeBSD.org>2012-06-13 13:55:02 +0800
commit818ed17bddcf2339d4165dbf978b07adf9ca9678 (patch)
tree9290ad281aeea9dc740177140c2842fb9f3789ca /mail/smtp-gated
parentaaf14a1e63df682f8359db1ef5b7efbd954e91df (diff)
downloadfreebsd-ports-gnome-818ed17bddcf2339d4165dbf978b07adf9ca9678.tar.gz
freebsd-ports-gnome-818ed17bddcf2339d4165dbf978b07adf9ca9678.tar.zst
freebsd-ports-gnome-818ed17bddcf2339d4165dbf978b07adf9ca9678.zip
Convert to new options framework
Diffstat (limited to 'mail/smtp-gated')
-rw-r--r--mail/smtp-gated/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/mail/smtp-gated/Makefile b/mail/smtp-gated/Makefile
index 9ad01d7df16b..0d3487f507ac 100644
--- a/mail/smtp-gated/Makefile
+++ b/mail/smtp-gated/Makefile
@@ -15,10 +15,11 @@ COMMENT= Proxy for SMTP sessions with virus and spam scan
LICENSE= GPLv2
-OPTIONS= NAT "NAT transparent proxy code" On \
- CHUNKING "Enable support for SMTP CHUNKING extension" Off \
- ECONNRESET "Be quiet about Connection reset by peer message" Off \
- PCRE "Enable support for PCRE" On
+OPTIONS_DEFINE= NAT CHUNKING ECONNRESET PCRE
+OPTIONS_DEFAULT= NAT PCRE
+NAT_DESC= NAT transparent proxy code
+CHUNKING_DESC= Enable support for SMTP CHUNKING extension
+ECONNRESET_DESC= Be quiet about Connection reset by peer message
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
@@ -32,21 +33,21 @@ PLIST_FILES= sbin/smtp-gated
.include <bsd.port.options.mk>
-.if defined(WITH_NAT)
+.if ${PORT_OPTIONS:MNAT}
CONFIGURE_ARGS+= --enable-nat
.else
CONFIGURE_ARGS+= --disable-nat
.endif
-.if defined(WITH_CHUNKING)
+.if ${PORT_OPTIONS:MCHUNKING}
CONFIGURE_ARGS+= --enable-chunking
.endif
-.if defined(WITH_ECONNRESET)
+.if ${PORT_OPTIONS:MECONNRESET}
CONFIGURE_ARGS+= --enable-silent-econnreset
.endif
-.if defined(WITH_PCRE)
+.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre
.else
CONFIGURE_ARGS+= --disable-pcre