4 PORTNAME= opensmtpd-extras
5 PORTVERSION= 201606230001
8 MASTER_SITES= http://www.opensmtpd.org/archives/
10 # NB: Please reset PORTREVISION to 0 in all slave subports
11 # while updating PORTVERSION for master port
13 MAINTAINER= fluffy@FreeBSD.org
14 COMMENT?= Addons for OpenSMTPD
18 LIB_DEPENDS+= libevent.so:devel/libevent2
20 USES+= autoreconf ssl libtool
22 LDFLAGS+= -L${OPENSSLLIB}
23 CFLAGS+= -I${OPENSSLINC}
25 CONFIGURE_ARGS+= --sysconfdir="${PREFIX}/etc/mail"
29 # NB: Please *DO NOT* add the following; they are NOT for end-users:
30 # filter-stub, filter-trace, filter-void
31 # queue-null, queue-stub
36 # Pass OpenSMTPD branch selection to all extras
38 OPTIONS_DEFINE= OPENSMTP_DEVEL
40 OPENSMTP_DEVEL_DESC= Depend on opensmtpd-devel (opensmtpd if off)
41 OPENSMTP_DEVEL_BUILD_DEPENDS_OFF= smtpctl:mail/opensmtpd
42 OPENSMTP_DEVEL_RUN_DEPENDS_OFF= smtpctl:mail/opensmtpd
43 OPENSMTP_DEVEL_BUILD_DEPENDS= smtpctl:mail/opensmtpd-devel
44 OPENSMTP_DEVEL_RUN_DEPENDS= smtpctl:mail/opensmtpd-devel
47 OPTIONS_GROUP= TOOLS TABLE FILTER FILTER_EXP QUEUE SCHEDULER
48 OPTIONS_GROUP_FILTER= FILTER_CLAMAV FILTER_DKIM FILTER_DNSBL FILTER_MONKEY FILTER_PAUSE FILTER_REGEX FILTER_SPAMASSASSIN
49 OPTIONS_GROUP_FILTER_EXP= FILTER_LUA FILTER_PERL FILTER_PYTHON
50 OPTIONS_GROUP_QUEUE= QUEUE_PYTHON QUEUE_RAM
51 OPTIONS_GROUP_SCHEDULER= SCHEDULER_PYTHON SCHEDULER_RAM
52 OPTIONS_GROUP_TABLE= TABLE_LDAP TABLE_MYSQL TABLE_PASSWD TABLE_PGSQL TABLE_PYTHON TABLE_REDIS TABLE_SOCKETMAP TABLE_SQLITE
53 OPTIONS_GROUP_TOOLS= TOOL_STATS
54 OPTIONS_DEFAULT= ${OPTIONS_GROUP_FILTER} ${OPTIONS_GROUP_TABLE} ${OPTIONS_GROUP_TOOLS}
57 FILTER_DESC= BASE FILTERS
58 FILTER_EXP_DESC= EXPERIMENTAL FILTERS
59 QUEUE_DESC= EXPERIMENTAL QUEUES
60 SCHEDULER_DESC= EXPERIMENTAL SCHEDULERS
61 TABLE_DESC= BASE TABLES
62 TOOLS_DESC= BASE TOOLS
65 FILTER_CLAMAV_DESC= Check messages with ClamAV
66 FILTER_DKIM_DESC= Sign messages with DKIM
67 FILTER_DNSBL_DESC= Check incoming senders against DNSBLs
68 FILTER_LUA_DESC= Lua-filter interface
69 FILTER_MONKEY_DESC= Filter to arbitrary reject or delay mails
70 FILTER_PAUSE_DESC= Pause before SMTP greeting to reduce spam
71 FILTER_PERL_DESC= Perl-filter interface
72 FILTER_PYTHON_DESC= Python-filter interface
73 FILTER_REGEX_DESC= ${REGEX_DESC}
74 FILTER_SPAMASSASSIN_DESC= Check messages with SpamAssassin
77 QUEUE_PYTHON_DESC= The queue-python
78 QUEUE_RAM_DESC= The queue-ram
81 SCHEDULER_PYTHON_DESC= The scheduler-python
82 SCHEDULER_RAM_DESC= The scheduler-ram
85 TABLE_LDAP_DESC= LDAP table support
86 TABLE_MYSQL_DESC= MySQL table support
87 TABLE_PASSWD_DESC= passwd(5) table support
88 TABLE_PGSQL_DESC= PgSQL table support
89 TABLE_PYTHON_DESC= Python table support
90 TABLE_REDIS_DESC= REDIS table support
91 TABLE_SOCKETMAP_DESC= Socketmap protocol support
92 TABLE_SQLITE_DESC= SQLite table support
95 TOOL_STATS_DESC= Stats tool for OpenSMTPD
97 PLIST_FILES= man/man3/filter_api.3.gz
98 INSTALL_DIR= ${LOCALBASE}/libexec/opensmtpd
103 FILTER_CLAMAV_RUN_DEPENDS= ${INSTALL_DIR}/filter-clamav:mail/opensmtpd-extras-filter-clamav
104 FILTER_DKIM_RUN_DEPENDS= ${INSTALL_DIR}/filter-dkim-signer:mail/opensmtpd-extras-filter-dkim
105 FILTER_DNSBL_RUN_DEPENDS= ${INSTALL_DIR}/filter-dnsbl:mail/opensmtpd-extras-filter-dnsbl
106 FILTER_LUA_RUN_DEPENDS= ${INSTALL_DIR}/filter-lua:mail/opensmtpd-extras-filter-lua
107 FILTER_MONKEY_RUN_DEPENDS= ${INSTALL_DIR}/filter-monkey:mail/opensmtpd-extras-filter-monkey
108 FILTER_PAUSE_RUN_DEPENDS= ${INSTALL_DIR}/filter-pause:mail/opensmtpd-extras-filter-pause
109 FILTER_PERL_RUN_DEPENDS= ${INSTALL_DIR}/filter-perl:mail/opensmtpd-extras-filter-perl
110 FILTER_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/filter-python:mail/opensmtpd-extras-filter-python
111 FILTER_REGEX_RUN_DEPENDS= ${INSTALL_DIR}/filter-regex:mail/opensmtpd-extras-filter-regex
112 FILTER_SPAMASSASSIN_RUN_DEPENDS= ${INSTALL_DIR}/filter-spamassassin:mail/opensmtpd-extras-filter-spamassassin
115 QUEUE_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/queue-python:mail/opensmtpd-extras-queue-python
116 QUEUE_RAM_RUN_DEPENDS= ${INSTALL_DIR}/queue-ram:mail/opensmtpd-extras-queue-ram
119 SCHEDULER_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/scheduler-python:mail/opensmtpd-extras-scheduler-python
120 SCHEDULER_RAM_RUN_DEPENDS= ${INSTALL_DIR}/scheduler-ram:mail/opensmtpd-extras-scheduler-ram
123 TABLE_LDAP_RUN_DEPENDS= ${INSTALL_DIR}/table-ldap:mail/opensmtpd-extras-table-ldap
124 TABLE_MYSQL_RUN_DEPENDS= ${INSTALL_DIR}/table-mysql:mail/opensmtpd-extras-table-mysql
125 TABLE_PASSWD_RUN_DEPENDS= ${INSTALL_DIR}/table-passwd:mail/opensmtpd-extras-table-passwd
126 TABLE_PGSQL_RUN_DEPENDS= ${INSTALL_DIR}/table-postgres:mail/opensmtpd-extras-table-postgresql
127 TABLE_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/table-python:mail/opensmtpd-extras-table-python
128 TABLE_REDIS_RUN_DEPENDS= ${INSTALL_DIR}/table-redis:mail/opensmtpd-extras-table-redis
129 TABLE_SOCKETMAP_RUN_DEPENDS= ${INSTALL_DIR}/table-socketmap:mail/opensmtpd-extras-table-socketmap
130 TABLE_SQLITE_RUN_DEPENDS= ${INSTALL_DIR}/table-sqlite:mail/opensmtpd-extras-table-sqlite
133 TOOL_STATS_RUN_DEPENDS= tool-stats:mail/opensmtpd-extras-tool-stats
136 # Only install this for the opensmtpd-extras master port
138 @${REINPLACE_CMD} -e '/man_MANS.*filter_api.3/s/^/#/' \
139 ${WRKSRC}/extras/filters/Makefile.am
140 # While filters still experimental feature, suppress extra call warnings from logs
141 ${REINPLACE_CMD} -e '/is EXPERIMENTAL/d' ${WRKSRC}/api/filter_api.c
145 .include <bsd.port.mk>