blob: a7b029c253c9d925f72fc04b7f8858c159266b67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
#
# Makefile helper for options handling.
#
# Targets and their behaviors:
#
# show-variables-list - shows WITH_*, WITHOUT_ variables set by default.
#
# show-options-list - generates OPTIONS string compatible with ports
# format. Can by safely used by maintainer to
# re-generate sorted options list to cut-and-paste them
# into `options' file.
#
# $FreeBSD$
AUTH_CRAM_MD5 = "Enable CRAM-MD5 authentication mechanisms"
AUTH_DOVECOT = "Enable Dovecot authentication mechanisms"
AUTH_PLAINTEXT = "Enalbe plaintext authentication"
AUTH_SPA = "Enable Secure Password Authentication"
CDB = "Enable CDB-style lookups"
DAEMON = "Install scripts to run as a daemon"
DNSDB = "Enable DNS-style lookups"
DSEARCH = "Enable directory-list lookups"
EMBEDDED_PERL = "Enable embedded Perl interpreter"
ICONV = "Enable header charset conversion"
IPV6 = "Enable IPv6 support"
LMTP = "RFC2033 SMTP over command pipe transport"
LSEARCH = "Enable wildcarded-file lookups"
MAILDIR = "Enable Maildir mailbox format"
MAILSTORE = "Enable Mailstore mailbox format"
MBX = "Enable MBX mailbox format"
NIS = "Enable NIS-style lookups"
OLD_DEMIME = "Enable old, deprecated \"demime\" ACL"
PAM = "Enable PAM authentication mechanisms"
PASSWD = "Enable /etc/passwd lookups"
SUID = "Install the exim binary suid root"
TLS = "Link against OpenSSL"
ALT_CONFIG_PREFIX = "Allow alternate configuration files"
AUTH_RADIUS = "Enable radius (RFC 2865) authentication"
AUTH_SASL = "Enable use of Cyrus SASL auth library"
CONTENT_SCAN = "Enable exiscan email content scanner"
DCC = "Enable DCC at ACL support via dccifd"
DEBUG = "Build with debugging symbols"
EXIMON = "Build eximon monitor (require XFree86!)"
KAS = "Build with Kaspersky AntiSpam local scan"
MYSQL = "Link against libmysqlclient library"
OPENLDAP = "Link against libldap"
PGSQL = "Link against libpq"
READLINE = "Enable readline(3) library"
SASLAUTHD = "Enable use of Cyrus SASL auth daemon"
SA_EXIM = "SA-Exim support"
SPF = "Enable Sender Policy Framework checking"
SQLITE = "Enable SQLite lookups"
SRS = "Enable Sender Rewriting Scheme"
SRS_ALT = "Enable alternative SRS library"
TCP_WRAPPERS = "Enable /etc/hosts.allow access control"
WISHLIST = "Include the unsupported patches"
XCLIENT = "Enable XCLIENT command in exim"
ENABLED_OPTIONS+= \
AUTH_CRAM_MD5 \
AUTH_DOVECOT \
AUTH_PLAINTEXT \
AUTH_SPA \
CDB \
DAEMON \
DNSDB \
DSEARCH \
ICONV \
IPV6 \
LMTP \
LSEARCH \
MAILDIR \
MAILSTORE \
MBX \
NIS \
OLD_DEMIME \
PAM \
PASSWD \
EMBEDDED_PERL \
SUID \
TLS
DISABLED_OPTIONS+= \
ALT_CONFIG_PREFIX \
AUTH_RADIUS \
AUTH_SASL \
CONTENT_SCAN \
DCC \
DEBUG \
EXIMON \
KAS \
MYSQL \
OPENLDAP \
PGSQL \
READLINE \
SASLAUTHD \
SA_EXIM \
SPF \
SQLITE \
SRS \
SRS_ALT \
TCP_WRAPPERS \
WISHLIST \
XCLIENT
ALL_OPTIONS= ${ENABLED_OPTIONS} \
${DISABLED_OPTIONS}
.if !target(show-options-list)
_SELECTED_OPTIONS_ENV=
.for option in ${ENABLED_OPTIONS} ${DISABLED_OPTIONS}
.if !defined($(option))
_SELECTED_OPTIONS_ENV+= $(option)=$(option)
.else
_SELECTED_OPTIONS_ENV+= $(option)=$($(option))
.endif
.endfor
show-options-list:
@${ECHO_CMD} OPTIONS+= \\
@for option in ${ALL_OPTIONS:O:u}; do \
_txt=$$(${_SELECTED_OPTIONS_ENV} && \
eval ${ECHO_CMD} $$\{$${option}\}); \
if ${ECHO_CMD} ${ENABLED_OPTIONS} |${GREP} -wq $${option}; \
then \
_flag=on; \
else \
_flag=off; \
fi; \
${PRINTF} "\t $${option} \"$${_txt}\" $${_flag} \\"; \
${ECHO_CMD}; \
done
.endif
.if !target(show-variables-list)
show-variables-list:
@for option in ${ALL_OPTIONS}; do \
if ${ECHO_CMD} ${ENABLED_OPTIONS} |${GREP} -wq $${option}; \
then \
${ECHO_CMD} "WITH_$${option}=yes"; \
else \
${ECHO_CMD} "WITHOUT_$${option}=yes"; \
fi; \
done
.endif
.include "options"
|