diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-04 18:32:49 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-04 18:32:49 +0800 |
commit | 84db1d4e78dcba4bc5f066e685f59f64b8845d9c (patch) | |
tree | 72a8cb20efc8916ac1fe7ec801ddfe0d2d0136bf /mail/scam-backscatter | |
parent | 61849d076308838b7d16a62591c07337cd637af5 (diff) | |
download | freebsd-ports-gnome-84db1d4e78dcba4bc5f066e685f59f64b8845d9c.tar.gz freebsd-ports-gnome-84db1d4e78dcba4bc5f066e685f59f64b8845d9c.tar.zst freebsd-ports-gnome-84db1d4e78dcba4bc5f066e685f59f64b8845d9c.zip |
Convert to new options framework
Diffstat (limited to 'mail/scam-backscatter')
-rw-r--r-- | mail/scam-backscatter/Makefile | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/mail/scam-backscatter/Makefile b/mail/scam-backscatter/Makefile index 02823bc18de3..77700bd77323 100644 --- a/mail/scam-backscatter/Makefile +++ b/mail/scam-backscatter/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: scam-backscatter -# Date created: 2010-05-27 -# Whom: Janne Snabb <snabb@epipe.com> -# +# Created by: Janne Snabb <snabb@epipe.com> # $FreeBSD$ -# PORTNAME= scam-backscatter PORTVERSION= 1.5.1 @@ -23,9 +19,10 @@ SUB_FILES= pkg-message MAKEFILE= Makefile.freebsd ALL_TARGET= -OPTIONS= ALLDOMAINS "Verify any domain with the backend" Off \ - EHLO "Use EHLO instead of HELO in SMTP session" Off \ - USEMAILERTABLE "Use mailertable to map domains to backends" Off +OPTIONS_DEFINE= ALLDOMAINS EHLO USEMAILERTABLE DOCS +ALLDOMAINS_DESC= Verify any domain with the backend +EHLO_DESC= Use EHLO instead of HELO in SMTP session +USEMAILERTABLE_DESC= Use mailertable to map domains to backends .include <bsd.port.options.mk> .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" @@ -37,13 +34,13 @@ LIBS+= ${SENDMAIL_LDADD} CFLAGS+= ${PTHREAD_CFLAGS} LIBS+= ${PTHREAD_LIBS} -.if defined(WITH_ALLDOMAINS) +.if ${PORT_OPTIONS:MALLDOMAINS} CFLAGS+= -DALLDOMAINS .endif -.if defined(WITH_EHLO) +.if ${PORT_OPTIONS:MEHLO} CFLAGS+= -DEHLO .endif -.if defined(WITH_USEMAILERTABLE) +.if ${PORT_OPTIONS:MUSEMAILERTABLE} CFLAGS+= -DUSEMAILERTABLE .endif @@ -62,7 +59,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/scam.conf ${PREFIX}/etc/mail/scam-back.conf.sample post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/INSTALL ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/License ${DOCSDIR} |