pkgsrc/mail/spamassassin/options.mk
heinz 925d3744c3 Update to version 3.0.0. Tested on NetBSD 1.6.2, Solaris 9 and Debian
3.0.

Important changes since 2.64 (for details see the file 'Changes')

- support for sender authentication using the Sender Policy Framework
  (SPF)
- checking for web links of known spam advertisers (SURBL)
- modular plugin architecture
- improved SQL database support for storing user data in server
  installations
- improved email classification
- SpamAssassin is now part of the Apache Foundation
2004-10-12 00:11:10 +00:00

88 lines
2.4 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2004/10/12 00:11:10 heinz Exp $
# Global and legacy options
.if defined(SPAMASSASSIN_USE_SSL) && !empty(SPAMASSASSIN_USE_SSL:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= ssl
.endif
.if defined(SPAMASSASSIN_RAZOR_TESTS) && !empty(SPAMASSASSIN_RAZOR_TESTS:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= net-tests
.endif
.if defined(SPAMASSASSIN_PERL_WARNINGS) && !empty(SPAMASSASSIN_PERL_WARNINGS:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= perl-warnings
.endif
.if defined(SPAMASSASSIN_PERL_TAINT_CHECKS) && !empty(SPAMASSASSIN_PERL_TAINT_CHECKS:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= perl-taint-checks
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.spamassassin
PKG_SUPPORTED_OPTIONS= ssl net-tests perl-warnings perl-taint-checks \
awl-sql-tests bayes-sql-tests
#
# Default options
#
PKG_OPTIONS.spamassassin?= perl-taint-checks perl-warnings ssl
.include "../../mk/bsd.options.mk"
#
# Build spamc and spamd with support for connections over SSL
#
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
DEPENDS+= p5-IO-Socket-SSL>=0.92:../../security/p5-IO-Socket-SSL
CONFIGURE_ARGS+= --enable-ssl
MAKE_PARAMS+= ENABLE_SSL=yes
.else
CONFIGURE_ARGS+= --disable-ssl
MAKE_PARAMS+= ENABLE_SSL=no
.endif
#
# Enable Internet based tests during 'make test' (Razor, Pyzor, etc.)
#
.if !empty(PKG_OPTIONS:Mnet-tests)
MAKE_PARAMS+= RUN_NET_TESTS=yes
.else
MAKE_PARAMS+= RUN_NET_TESTS=no
.endif
#
# Enable Perl warnings in spamd and spamassassin
#
.if !empty(PKG_OPTIONS:Mperl-warnings)
MAKE_PARAMS+= PERL_WARN=yes
.else
MAKE_PARAMS+= PERL_WARN=no
.endif
#
# Enable Perl taint checks in spamd and spamassassin to improve security
#
.if !empty(PKG_OPTIONS:Mperl-taint-checks)
MAKE_PARAMS+= PERL_TAINT=yes
.else
MAKE_PARAMS+= PERL_TAINT=no
.endif
#
# Enable tests of the SQL storage module for the automatic whitelist
# (AWL). This option enables interactive questions about the database
# configuration during 'configure' phase.
#
.if !empty(PKG_OPTIONS:Mawl-sql-tests)
MAKE_PARAMS+= RUN_AWL_SQL_TESTS=yes
INTERACTIVE_STAGE+= configure
.else
MAKE_PARAMS+= RUN_AWL_SQL_TESTS=no
.endif
#
# Enable tests of the SQL storage module for Bayes information.
# This option enables interactive questions about the database
# configuration during 'configure' phase.
#
.if !empty(PKG_OPTIONS:Mbayes-sql-tests)
MAKE_PARAMS+= RUN_BAYES_SQL_TESTS=yes
INTERACTIVE_STAGE+= configure
.else
MAKE_PARAMS+= RUN_BAYES_SQL_TESTS=no
.endif