1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/mail/exim/Makefile.options
Eygene Ryabinkin 65ab66f32e mail/exim: update to 4.73
Most notably, this version fixes local exim -> root escalation,
CVE-2010-4345.

Port had also gained configurable knob for disabling -D option
and make variables TRUSTED_CONFIG_LIST and WHITELIST_D_MACROS
to fine tune the behaviour of options -C and -D.

New items are documented at
  ftp://exim.inode.at/exim/ChangeLogs/NewStuff-4.73
Changelog is available at
  ftp://exim.inode.at/exim/ChangeLogs/ChangeLog-4.73

Security: e4fcf020-0447-11e0-becc-0022156e8794 / CVE-2010-4345
PR: 152963 [1], 153711 [2]
Submitted by: Alexander Wittig <alexander@wittig.name> [1]
Approved by: garga (mentor)
2011-01-09 11:19:24 +00:00

154 lines
3.9 KiB
Makefile

#
# 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 = "Enable 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 = "Restrict the set of 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"
DISABLE_D_OPT = "Disable macros overrides using option -D"
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"
SO_1024 = "Build with Spamooborona-1024 local scan"
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 \
DISABLE_D_OPT \
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 \
SO_1024 \
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"