update Wed Mar 24 18:37:00 PDT 2010
[pkgsrc.git] / mail / spamassassin / options.mk
1 # $NetBSD: options.mk,v 1.9 2010/03/24 21:41:10 heinz Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.spamassassin
4 PKG_SUPPORTED_OPTIONS=  inet6
5 PKG_SUPPORTED_OPTIONS+= ssl
6
7 #
8 # Default options
9 #
10 PKG_SUGGESTED_OPTIONS=  inet6 ssl
11
12 .include "../../mk/bsd.options.mk"
13
14 #
15 # change t/config according to enable/disable software options
16 #
17 AWL_SQL_TEST?=          n  # to  enable tests, set to 'y' on make command line
18 BAYES_SQL_TEST?=        n  # to  enable tests, set to 'y' on make command line
19 LONG_TEST?=             y  # to disable tests, set to 'n' on make command line
20 NET_TEST?=              y  # to disable tests, set to 'n' on make command line
21 PREFORK_TEST?=          n  # to  enable tests, set to 'y' on make command line
22 ROOT_TEST?=             n  # to  enable tests, set to 'y' on make command line
23
24 SUBST_CLASSES+=         satests
25 SUBST_STAGE.satests=    post-configure
26 SUBST_FILES.satests=    t/config
27 SUBST_SED.satests=      -e s!awl_sql_tests=n!awl_sql_tests=${AWL_SQL_TEST}!
28 SUBST_SED.satests+=     -e s!bayes_sql_tests=n!bayes_sql_tests=${BAYES_SQL_TEST}!
29 SUBST_SED.satests+=     -e s!run_long_tests=n!run_long_tests=${LONG_TEST}!
30 SUBST_SED.satests+=     -e s!run_net_tests=n!run_net_tests=${NET_TEST}!
31 SUBST_SED.satests+=     -e s!run_root_tests=n!run_root_tests=${ROOT_TEST}!
32 SUBST_SED.satests+=     -e s!prefork_stress_test=n!prefork_stress_test=${PREFORK_TEST}!
33
34 #
35 # Build spamc and spamd with support for connections over SSL
36 #
37 .if !empty(PKG_OPTIONS:Mssl)
38 .  include "../../security/openssl/buildlink3.mk"
39 DEPENDS+=               p5-IO-Socket-SSL>=0.92:../../security/p5-IO-Socket-SSL
40 CONFIGURE_ARGS+=        --enable-ssl
41 MAKE_PARAMS+=           ENABLE_SSL=yes
42 .else
43 CONFIGURE_ARGS+=        --disable-ssl
44 MAKE_PARAMS+=           ENABLE_SSL=no
45 .endif
46
47 #
48 # Be prepared for IPv6 nameservers
49 #
50 .if !empty(PKG_OPTIONS:Minet6)
51 DEPENDS+=               p5-IO-Socket-INET6-[0-9]*:../../net/p5-IO-Socket-INET6
52 .endif