Date: Fri, 7 Jun 2013 05:33:07 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320145 - head/mail/dovecot-antispam Message-ID: <201306070533.r575X7nJ062785@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Jun 7 05:33:07 2013 New Revision: 320145 URL: http://svnweb.freebsd.org/changeset/ports/320145 Log: Convert to new options framework Modified: head/mail/dovecot-antispam/Makefile Modified: head/mail/dovecot-antispam/Makefile ============================================================================== --- head/mail/dovecot-antispam/Makefile Fri Jun 7 03:39:31 2013 (r320144) +++ head/mail/dovecot-antispam/Makefile Fri Jun 7 05:33:07 2013 (r320145) @@ -1,9 +1,5 @@ -# New ports collection makefile for: dovecot-antispam -# Date created: Sat Jan 5 16:31:30 MSK 2008 -# Whom: Denis Shaposhnikov <dsh@wizard.volgograd.ru> -# +# Created by: Denis Shaposhnikov <dsh@wizard.volgograd.ru> # $FreeBSD$ -# PORTNAME= dovecot-antispam PORTVERSION= 1.3 @@ -25,36 +21,38 @@ USE_LDCONFIG= ${PREFIX}/lib/dovecot/imap MAN7= dovecot-antispam.7 -OPTIONS+= DSPAM "direct dspam training" on -OPTIONS+= MAILTRAIN "send mail to special addresses for training" off -OPTIONS+= DEBUG "Turn on debug information (syslog)" off -OPTIONS+= DEBUG_VERBOSE "Turn on verbose debug" off +OPTIONS_DEFINE= DSPAM MAILTRAIN DEBUG DEBUG_VERBOSE +OPTIONS_DEFAULT= DSPAM +DSPAM_DESC= Direct dspam training +MAILTRAIN_DESC= send mail to special addresses for training +DEBUG_DESC= Turn on debug information (syslog) +DEBUG_VERBOSE_DESC= Turn on verbose debug -do-install: - ${INSTALL_DATA} ${WRKSRC}/lib90_antispam_plugin.so \ - ${PREFIX}/lib/dovecot/imap/ - ${INSTALL_MAN} ${WRKSRC}/antispam.7 \ - ${MANPREFIX}/man/man7/dovecot-antispam.7 - - @${CAT} ${PKGMESSAGE} - -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> do-configure: DOVECOT=`${MAKE} -C ${PORTSDIR}/mail/dovecot -V WRKSRC` && \ ${ECHO} "DOVECOT=$$DOVECOT" > ${WRKSRC}/.config -.if defined(WITH_DSPAM) +.if ${PORT_OPTIONS:MDSPAM} ${ECHO} "BACKEND=dspam-exec" >> ${WRKSRC}/.config .endif -.if defined(WITH_MAILTRAIN) +.if ${PORT_OPTIONS:MMAILTRAIN} ${ECHO} "BACKEND=mailtrain" >> ${WRKSRC}/.config .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} ${ECHO} "DEBUG=syslog" >> ${WRKSRC}/.config .endif -.if defined(WITH_DEBUG_VERBOSE) +.if ${PORT_OPTIONS:MDEBUG_VERBOSE} ${ECHO} "DEBUG_VERBOSE=1" >> ${WRKSRC}/.config .endif ${ECHO} "PLUGINNAME=antispam" >> ${WRKSRC}/.config -.include <bsd.port.post.mk> +do-install: + ${INSTALL_DATA} ${WRKSRC}/lib90_antispam_plugin.so \ + ${PREFIX}/lib/dovecot/imap/ + ${INSTALL_MAN} ${WRKSRC}/antispam.7 \ + ${MANPREFIX}/man/man7/dovecot-antispam.7 + + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306070533.r575X7nJ062785>