aboutsummaryrefslogtreecommitdiffstats
path: root/mail/masqmail
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-07 03:33:19 +0800
committerbapt <bapt@FreeBSD.org>2013-06-07 03:33:19 +0800
commit50b84a1222528b9e8ecda78b2b484733f9bc59ef (patch)
tree23aa49bcf336c11f0bd9ad9f37cd3f252f0102de /mail/masqmail
parent2a8aee42f13a99b5456d25a41fe09d00b2f3948a (diff)
downloadfreebsd-ports-gnome-50b84a1222528b9e8ecda78b2b484733f9bc59ef.tar.gz
freebsd-ports-gnome-50b84a1222528b9e8ecda78b2b484733f9bc59ef.tar.zst
freebsd-ports-gnome-50b84a1222528b9e8ecda78b2b484733f9bc59ef.zip
Convert to new options framework
Diffstat (limited to 'mail/masqmail')
-rw-r--r--mail/masqmail/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/mail/masqmail/Makefile b/mail/masqmail/Makefile
index eb47e2d4ecec..988ac183bc18 100644
--- a/mail/masqmail/Makefile
+++ b/mail/masqmail/Makefile
@@ -23,19 +23,20 @@ CFLAGS+= -Wno-trigraphs
CONFIGURE_ARGS+= --with-user=mailnull --with-group=mail \
--with-confdir=${PREFIX}/etc/masqmail --with-logdir=/var/log/masqmail
-OPTIONS += RESOLVER "Resolver" on
-OPTIONS += AUTH "SMTP AUTH (RFC2554) support" on
-OPTIONS += DEBUG "Enable Debugging" off
+OPTIONS_DEFINE= RESOLVER AUTH DEBUG
+OPTIONS_DEFAULT= RESOLVER AUTH
+RESOLVER_DESC= Resolver
+AUTH_DESC= SMTP AUTH (RFC2554) support
.include <bsd.port.pre.mk>
-.if defined(WITHOUT_RESOLVER)
+.if ! ${PORT_OPTIONS:MRESOLVER}
CONFIGURE_ARGS+= --disable-resolver
.endif
-.if defined(WITH_AUTH)
+.if ${PORT_OPTIONS:MAUTH}
CONFIGURE_ARGS+= --enable-auth
.endif
-.if defined(WITHOUT_DEBUG)
+.if ! ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --disable-debug
.endif
@@ -46,7 +47,7 @@ post-install:
${INSTALL_DATA} -o mailnull -g mail ${WRKSRC}/examples/localnet.route ${PREFIX}/etc/masqmail/localnet.route-dist
${INSTALL_DATA} -o mailnull -g mail ${WRKSRC}/examples/openssl.route ${PREFIX}/etc/masqmail/openssl.route-dist
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/docs
cd ${WRKSRC} && ${CP} ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ${DOCSDIR}
(cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/docs/)