866a921260
Pkgsrc changes: - The updates for rule files go into $VARBASE/spamassassin/. - This above directory and the directory sa-update-keys for the GPG keys are now handled automatically by OWN_DIRS. - The growing number of *.pre files are managed in a loop in the Makefile. They are no longer contained in the static PLIST. - Removed some unnecessary trailing slashes. - Patching init.pre in order to disable the SPF plugin broke the spf.t test. This is now fixed, although in a rather ugly way :-/. - patch-ab no longer needs to use BSD_INSTALL_DATA_DIR because we create the directories through INSTALLATION_DIRS. - patch-ad and patch-az were removed (changes integrated upstream). - patch-bb fixes a small documentation error. - Fixed some warnings by pkglint about the SUBST framework in Makefile and options.mk. Relevant changes since version 3.1.1: ===================================== - bug 4802: implement DKIM plugin, including whitelist_from_dkim support - bug 3838: work around Perl bug causing captured RE variables to become tainted -- thanks to Mark Martinec for pointing out the bug with Perl itself - bug 4850: re-enable the Razor2 plugin by default due to a service policy change - bug 4826: Razor2 plugin needs to load Mail::SpamAssassin::Timeout module - bug 4827: M::SA::first_existing_path() would return the last array entry passed in if none of the paths were found. Now return undef instead and handle the error when it happens. - bug 4813: generally open RE causes sendmail received header get read in as qmail in error - bug 4839: Logger.pm converts control chars including tab into underscores which confuses a bunch of users when checking debug output. Convert tab into space instead, etc. - bug 4884: if a null message is passed in, there are several variables which end up undefined causing warnings. fake an empty message if no input is given. - bug 4793: when replacing tags in a message (_TAG_), leave the tags that don't exist alone instead of just removing them - bug 4861, 4760: handle dccifd and dccproc failover properly, backport relays_internal and relays_external code, backport bug 4760 fix so that it's not possible to be in internal_networks without being in trusted_networks as well - bug 4901: deal more properly with failures in bgsend(). also, use the proper variable to show when errors occur. - bug 4867: fetchmail changed header formats at some point making Received parsing fail in certain conditions - bug 4699: use M::SA::Timeout for spamd copy_config call and allow for empty $@ values - bug 3754: if there's a problem opening a file via sa-learn or spamassassin, return an error exit value.
109 lines
2.8 KiB
Makefile
109 lines
2.8 KiB
Makefile
# $NetBSD: options.mk,v 1.6 2006/05/26 20:53:00 heinz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.spamassassin
|
|
PKG_SUPPORTED_OPTIONS= \
|
|
online-tests \
|
|
spamassassin-perl-warnings \
|
|
spamassassin-taint-checks \
|
|
spamassassin-test-awl-sql \
|
|
spamassassin-test-bayes-sql \
|
|
spamassassin-test-prefork \
|
|
ssl
|
|
PKG_OPTIONS_LEGACY_OPTS+= \
|
|
awl-sql-tests:spamassassin-test-awl-sql \
|
|
bayes-sql-tests:spamassassin-test-bayes-sql \
|
|
net-tests:online-tests \
|
|
perl-taint-checks:spamassassin-taint-checks \
|
|
perl-warnings:spamassassin-perl-warnings \
|
|
spamassassin-test-net:online-tests
|
|
|
|
#
|
|
# Default options
|
|
#
|
|
PKG_SUGGESTED_OPTIONS= spamassassin-taint-checks \
|
|
spamassassin-perl-warnings \
|
|
ssl
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
#
|
|
# change t/config according to all the options
|
|
#
|
|
SUBST_CLASSES+= satests
|
|
SUBST_STAGE.satests= post-configure
|
|
SUBST_FILES.satests= t/config
|
|
SUBST_SED.satests= -e s!awl_sql_tests=n!awl_sql_tests=${AWL_SQL_TEST}!
|
|
SUBST_SED.satests+= -e s!bayes_sql_tests=n!bayes_sql_tests=${BAYES_SQL_TEST}!
|
|
SUBST_SED.satests+= -e s!run_net_tests=n!run_net_tests=${NET_TEST}!
|
|
SUBST_SED.satests+= -e s!prefork_stress_test=n!prefork_stress_test=${PREFORK_TEST}!
|
|
|
|
#
|
|
# 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:Mspamassassin-test-awl-sql)
|
|
AWL_SQL_TEST=y
|
|
.else
|
|
AWL_SQL_TEST=n
|
|
.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:Mspamassassin-test-bayes-sql)
|
|
BAYES_SQL_TEST=y
|
|
.else
|
|
BAYES_SQL_TEST=n
|
|
.endif
|
|
|
|
#
|
|
# Enable Internet based tests during 'make test' (Razor, Pyzor, etc.)
|
|
#
|
|
.if !empty(PKG_OPTIONS:Monline-tests)
|
|
NET_TEST=y
|
|
.else
|
|
NET_TEST=n
|
|
.endif
|
|
|
|
#
|
|
# Enable Perl warnings in spamd and spamassassin
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mspamassassin-perl-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:Mspamassassin-taint-checks)
|
|
MAKE_PARAMS+= PERL_TAINT=yes
|
|
.else
|
|
MAKE_PARAMS+= PERL_TAINT=no
|
|
.endif
|
|
|
|
#
|
|
# Enable spamd prefork stress test (will kill any processes containing the
|
|
# string 'spam child' in their process title).
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mspamassassin-test-prefork)
|
|
PREFORK_TEST=y
|
|
.else
|
|
PREFORK_TEST=n
|
|
.endif
|
|
|
|
#
|
|
# 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
|