Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -299,9 +299,18 @@ SUBDIR += opensmtpd-extras-filter-clamav SUBDIR += opensmtpd-extras-filter-dkim SUBDIR += opensmtpd-extras-filter-dnsbl + SUBDIR += opensmtpd-extras-filter-lua + SUBDIR += opensmtpd-extras-filter-monkey SUBDIR += opensmtpd-extras-filter-pause + SUBDIR += opensmtpd-extras-filter-perl + SUBDIR += opensmtpd-extras-filter-python SUBDIR += opensmtpd-extras-filter-regex SUBDIR += opensmtpd-extras-filter-spamassassin + SUBDIR += opensmtpd-extras-queue-python + SUBDIR += opensmtpd-extras-queue-ram + SUBDIR += opensmtpd-extras-scheduler-python + SUBDIR += opensmtpd-extras-scheduler-ram + SUBDIR += opensmtpd-extras-table-ldap SUBDIR += opensmtpd-extras-table-mysql SUBDIR += opensmtpd-extras-table-passwd SUBDIR += opensmtpd-extras-table-postgresql @@ -309,6 +318,7 @@ SUBDIR += opensmtpd-extras-table-redis SUBDIR += opensmtpd-extras-table-socketmap SUBDIR += opensmtpd-extras-table-sqlite + SUBDIR += opensmtpd-extras-tool-stats SUBDIR += openwebmail SUBDIR += osbf-lua SUBDIR += ovs Index: opensmtpd-extras-filter-clamav/Makefile =================================================================== --- opensmtpd-extras-filter-clamav/Makefile +++ opensmtpd-extras-filter-clamav/Makefile @@ -1,17 +1,20 @@ # Created by: Adam Weinberger # $FreeBSD$ -PKGNAMESUFFIX= -filter-clamav +PKGNAMESUFFIX= -filter-clamav +PORTREVISION= 0 -COMMENT= Check messages with ClamAV in OpenSMTPD -MAINTAINER= adamw@FreeBSD.org +COMMENT= Check messages with ClamAV in OpenSMTPD +MAINTAINER= adamw@FreeBSD.org -PLIST_FILES= libexec/opensmtpd/filter-clamav \ - man/man8/filter-clamav.8.gz +RUN_DEPENDS= clamscan:security/clamav -CONFIGURE_ARGS+= --with-filter-clamav +PLIST_FILES= libexec/opensmtpd/filter-clamav \ + man/man8/filter-clamav.8.gz -MASTERDIR= ${.CURDIR}/../opensmtpd-extras -SLAVE_PORT= yes +CONFIGURE_ARGS= --with-filter-clamav +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + .include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-dkim/Makefile =================================================================== --- opensmtpd-extras-filter-dkim/Makefile +++ opensmtpd-extras-filter-dkim/Makefile @@ -1,17 +1,18 @@ # Created by: Adam Weinberger # $FreeBSD$ -PKGNAMESUFFIX= -filter-dkim +PKGNAMESUFFIX= -filter-dkim +PORTREVISION= 0 -COMMENT= DKIM-signing filter for OpenSMTPD -MAINTAINER= adamw@FreeBSD.org +COMMENT= DKIM-signing filter for OpenSMTPD +MAINTAINER= adamw@FreeBSD.org -PLIST_FILES= libexec/opensmtpd/filter-dkim-signer \ - man/man8/filter-dkim-signer.8.gz +PLIST_FILES= libexec/opensmtpd/filter-dkim-signer \ + man/man8/filter-dkim-signer.8.gz -CONFIGURE_ARGS+= --with-filter-dkim-signer +CONFIGURE_ARGS= --with-filter-dkim-signer -MASTERDIR= ${.CURDIR}/../opensmtpd-extras -SLAVE_PORT= yes +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes .include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-dnsbl/Makefile =================================================================== --- opensmtpd-extras-filter-dnsbl/Makefile +++ opensmtpd-extras-filter-dnsbl/Makefile @@ -1,19 +1,18 @@ # Created by: Adam Weinberger # $FreeBSD$ -PKGNAMESUFFIX= -filter-dnsbl +PKGNAMESUFFIX= -filter-dnsbl +PORTREVISION= 0 -COMMENT= DNSBL-checking filter for OpenSMTPD -MAINTAINER= adamw@FreeBSD.org +COMMENT= DNSBL-checking filter for OpenSMTPD +MAINTAINER= adamw@FreeBSD.org -LIB_DEPENDS= libasr.so:dns/libasr +PLIST_FILES= libexec/opensmtpd/filter-dnsbl \ + man/man8/filter-dnsbl.8.gz -PLIST_FILES= libexec/opensmtpd/filter-dnsbl \ - man/man8/filter-dnsbl.8.gz +CONFIGURE_ARGS= --with-filter-dnsbl -CONFIGURE_ARGS+= --with-filter-dnsbl +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes -MASTERDIR= ${.CURDIR}/../opensmtpd-extras -SLAVE_PORT= yes - .include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-lua/Makefile =================================================================== --- opensmtpd-extras-filter-lua/Makefile +++ opensmtpd-extras-filter-lua/Makefile @@ -0,0 +1,18 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -filter-lua +PORTREVISION= 0 + +COMMENT= LUA-script filter support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/filter-lua + +CONFIGURE_ARGS= --with-filter-lua --with-lua-type=lua-${LUA_VER} + +USES= lua pkgconfig + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-monkey/Makefile =================================================================== --- opensmtpd-extras-filter-monkey/Makefile +++ opensmtpd-extras-filter-monkey/Makefile @@ -0,0 +1,30 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -filter-monkey +PORTREVISION= 0 + +COMMENT= Arbitrary delay or reject filter for OpenSMTPD + +CONFIGURE_ARGS= --with-filter-monkey + +PLIST_FILES= "@sample etc/mail/filter-monkey.conf.sample" \ + libexec/opensmtpd/filter-monkey \ + man/man5/filter-monkey.conf.5.gz \ + man/man8/filter-monkey.8.gz + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +post-patch: + @${REINPLACE_CMD} -e \ + 's|/etc/mail/filter-monkey.conf|${PREFIX}&|' \ + ${WRKSRC}/extras/wip/filters/filter-monkey/filter_monkey.c \ + ${WRKSRC}/extras/wip/filters/filter-monkey/filter-monkey.8.in + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail + ${INSTALL_DATA} ${WRKSRC}/extras/wip/filters/filter-monkey/filter-monkey.conf \ + ${STAGEDIR}${PREFIX}/etc/mail/filter-monkey.conf.sample + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-pause/Makefile =================================================================== --- opensmtpd-extras-filter-pause/Makefile +++ opensmtpd-extras-filter-pause/Makefile @@ -1,17 +1,18 @@ # Created by: Adam Weinberger # $FreeBSD$ -PKGNAMESUFFIX= -filter-pause +PKGNAMESUFFIX= -filter-pause +PORTREVISION= 0 -COMMENT= Pause incoming OpenSMTPD messages to reduce spam -MAINTAINER= adamw@FreeBSD.org +COMMENT= Pause incoming OpenSMTPD messages to reduce spam +MAINTAINER= adamw@FreeBSD.org -PLIST_FILES= libexec/opensmtpd/filter-pause \ - man/man8/filter-pause.8.gz +PLIST_FILES= libexec/opensmtpd/filter-pause \ + man/man8/filter-pause.8.gz -CONFIGURE_ARGS+= --with-filter-pause +CONFIGURE_ARGS= --with-filter-pause -MASTERDIR= ${.CURDIR}/../opensmtpd-extras -SLAVE_PORT= yes +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes .include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-perl/Makefile =================================================================== --- opensmtpd-extras-filter-perl/Makefile +++ opensmtpd-extras-filter-perl/Makefile @@ -0,0 +1,18 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -filter-perl +PORTREVISION= 0 + +COMMENT= Perl-script filter support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/filter-perl + +CONFIGURE_ARGS= --with-filter-perl --with-perl-type=${perl_VERSION} + +USES= perl5 + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-python/Makefile =================================================================== --- opensmtpd-extras-filter-python/Makefile +++ opensmtpd-extras-filter-python/Makefile @@ -0,0 +1,18 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -filter-python +PORTREVISION= 0 + +COMMENT= Python-script filter support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/filter-python + +CONFIGURE_ARGS= --with-filter-python --with-python-type=${PYTHON_VERSION} + +USES= python pkgconfig + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-filter-regex/Makefile =================================================================== --- opensmtpd-extras-filter-regex/Makefile +++ opensmtpd-extras-filter-regex/Makefile @@ -1,17 +1,22 @@ # Created by: Adam Weinberger # $FreeBSD$ -PKGNAMESUFFIX= -filter-regex +PKGNAMESUFFIX= -filter-regex +PORTREVISION= 0 -COMMENT= Regular expression filter for OpenSMTPD -MAINTAINER= adamw@FreeBSD.org +COMMENT= Regular expression filter for OpenSMTPD +MAINTAINER= adamw@FreeBSD.org -CONFIGURE_ARGS+= --with-filter-regex +CONFIGURE_ARGS= --with-filter-regex -PLIST= ${.CURDIR}/pkg-plist -MASTERDIR= ${.CURDIR}/../opensmtpd-extras -SLAVE_PORT= yes +PLIST_FILES= "@sample etc/mail/filter-regex.conf.sample" \ + libexec/opensmtpd/filter-regex \ + man/man5/filter-regex.conf.5.gz \ + man/man8/filter-regex.8.gz +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail ${INSTALL_DATA} ${WRKSRC}/extras/wip/filters/filter-regex/filter-regex.conf \ Index: opensmtpd-extras-filter-regex/pkg-plist =================================================================== --- opensmtpd-extras-filter-regex/pkg-plist +++ opensmtpd-extras-filter-regex/pkg-plist @@ -1,4 +0,0 @@ -@sample etc/mail/filter-regex.conf.sample -libexec/opensmtpd/filter-regex -man/man5/filter-regex.conf.5.gz -man/man8/filter-regex.8.gz Index: opensmtpd-extras-filter-spamassassin/Makefile =================================================================== --- opensmtpd-extras-filter-spamassassin/Makefile +++ opensmtpd-extras-filter-spamassassin/Makefile @@ -1,17 +1,18 @@ # Created by: Adam Weinberger # $FreeBSD$ -PKGNAMESUFFIX= -filter-spamassassin +PKGNAMESUFFIX= -filter-spamassassin +PORTREVISION= 0 -COMMENT= Spamassassin filter addon for OpenSMTPD -MAINTAINER= adamw@FreeBSD.org +COMMENT= Spamassassin filter addon for OpenSMTPD +MAINTAINER= adamw@FreeBSD.org -PLIST_FILES= libexec/opensmtpd/filter-spamassassin \ - man/man8/filter-spamassassin.8.gz +PLIST_FILES= libexec/opensmtpd/filter-spamassassin \ + man/man8/filter-spamassassin.8.gz -CONFIGURE_ARGS+= --with-filter-spamassassin +CONFIGURE_ARGS= --with-filter-spamassassin -MASTERDIR= ${.CURDIR}/../opensmtpd-extras -SLAVE_PORT= yes +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes .include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-queue-python/Makefile =================================================================== --- opensmtpd-extras-queue-python/Makefile +++ opensmtpd-extras-queue-python/Makefile @@ -0,0 +1,18 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -queue-python +PORTREVISION= 0 + +COMMENT= Python queue support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/queue-python + +CONFIGURE_ARGS= --with-queue-python --with-python-type=${PYTHON_VERSION} + +USES= python pkgconfig + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-queue-ram/Makefile =================================================================== --- opensmtpd-extras-queue-ram/Makefile +++ opensmtpd-extras-queue-ram/Makefile @@ -0,0 +1,16 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -queue-ram +PORTREVISION= 0 + +COMMENT= RAM queue support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/queue-ram + +CONFIGURE_ARGS= --with-queue-ram + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-scheduler-python/Makefile =================================================================== --- opensmtpd-extras-scheduler-python/Makefile +++ opensmtpd-extras-scheduler-python/Makefile @@ -0,0 +1,18 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -scheduler-python +PORTREVISION= 0 + +COMMENT= Python scheduler support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/scheduler-python + +CONFIGURE_ARGS= --with-scheduler-python --with-python-type=${PYTHON_VERSION} + +USES= python pkgconfig + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-scheduler-ram/Makefile =================================================================== --- opensmtpd-extras-scheduler-ram/Makefile +++ opensmtpd-extras-scheduler-ram/Makefile @@ -0,0 +1,16 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -scheduler-ram +PORTREVISION= 0 + +COMMENT= RAM scheduler support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/scheduler-ram + +CONFIGURE_ARGS= --with-scheduler-ram + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-table-ldap/Makefile =================================================================== --- opensmtpd-extras-table-ldap/Makefile +++ opensmtpd-extras-table-ldap/Makefile @@ -0,0 +1,18 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -table-ldap +PORTREVISION= 0 + +COMMENT= LDAP table support for OpenSMTPD + +PLIST_FILES= libexec/opensmtpd/table-ldap + +CONFIGURE_ARGS= --with-table-ldap + +USE_OPENLDAP= client + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras-table-mysql/Makefile =================================================================== --- opensmtpd-extras-table-mysql/Makefile +++ opensmtpd-extras-table-mysql/Makefile @@ -2,12 +2,14 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-mysql +PORTREVISION= 0 -COMMENT= MySQL table support for opensmtpd +COMMENT= MySQL table support for OpenSMTPD PLIST_FILES= libexec/opensmtpd/table-mysql CONFIGURE_ARGS= --with-table-mysql +CFLAGS+= -I${LOCALBASE}/include/mysql LDFLAGS+= -L${LOCALBASE}/lib/mysql USES= mysql Index: opensmtpd-extras-table-passwd/Makefile =================================================================== --- opensmtpd-extras-table-passwd/Makefile +++ opensmtpd-extras-table-passwd/Makefile @@ -2,14 +2,14 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-passwd +PORTREVISION= 0 -COMMENT= passwd(5) table support for opensmtpd +COMMENT= passwd(5) table support for OpenSMTPD PLIST_FILES= libexec/opensmtpd/table-passwd \ man/man5/table-passwd.5.gz CONFIGURE_ARGS= --with-table-passwd -LDFLAGS+= -L${LOCALBASE}/lib/mysql MASTERDIR= ${.CURDIR}/../opensmtpd-extras SLAVE_PORT= yes Index: opensmtpd-extras-table-postgresql/Makefile =================================================================== --- opensmtpd-extras-table-postgresql/Makefile +++ opensmtpd-extras-table-postgresql/Makefile @@ -2,8 +2,9 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-postgresql +PORTREVISION= 0 -COMMENT= PostgreSQL table support for opensmtpd +COMMENT= PostgreSQL table support for OpenSMTPD PLIST_FILES= libexec/opensmtpd/table-postgres Index: opensmtpd-extras-table-python/Makefile =================================================================== --- opensmtpd-extras-table-python/Makefile +++ opensmtpd-extras-table-python/Makefile @@ -2,14 +2,15 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-python +PORTREVISION= 0 -COMMENT= Python table support for opensmtpd +COMMENT= Python table support for OpenSMTPD PLIST_FILES= libexec/opensmtpd/table-python CONFIGURE_ARGS= --with-table-python --with-python-type=${PYTHON_VERSION} -USES= python +USES= python pkgconfig MASTERDIR= ${.CURDIR}/../opensmtpd-extras SLAVE_PORT= yes Index: opensmtpd-extras-table-redis/Makefile =================================================================== --- opensmtpd-extras-table-redis/Makefile +++ opensmtpd-extras-table-redis/Makefile @@ -2,13 +2,14 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-redis +PORTREVISION= 0 -COMMENT= Redis table support for opensmtpd +COMMENT= Redis table support for OpenSMTPD LIB_DEPENDS= libhiredis.so:databases/hiredis PLIST_FILES= libexec/opensmtpd/table-redis \ - man/man5/table-redis.5.gz + man/man5/table-redis.5.gz CONFIGURE_ARGS= --with-table-redis CONFIGURE_ENV= REDIS_CONFIG=${LOCALBASE}/bin/pkgconf Index: opensmtpd-extras-table-socketmap/Makefile =================================================================== --- opensmtpd-extras-table-socketmap/Makefile +++ opensmtpd-extras-table-socketmap/Makefile @@ -2,8 +2,9 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-socketmap +PORTREVISION= 0 -COMMENT= Socketmap table support for opensmtpd +COMMENT= Socketmap table support for OpenSMTPD PLIST_FILES= libexec/opensmtpd/table-socketmap \ man/man5/table-socketmap.5.gz Index: opensmtpd-extras-table-sqlite/Makefile =================================================================== --- opensmtpd-extras-table-sqlite/Makefile +++ opensmtpd-extras-table-sqlite/Makefile @@ -2,8 +2,9 @@ # $FreeBSD$ PKGNAMESUFFIX= -table-sqlite +PORTREVISION= 0 -COMMENT= SQLite table support for opensmtpd +COMMENT= SQLite table support for OpenSMTPD PLIST_FILES= libexec/opensmtpd/table-sqlite \ man/man5/table-sqlite.5.gz @@ -10,7 +11,7 @@ CONFIGURE_ARGS= --with-table-sqlite -USES= sqlite +USES= sqlite pkgconfig MASTERDIR= ${.CURDIR}/../opensmtpd-extras SLAVE_PORT= yes Index: opensmtpd-extras-tool-stats/Makefile =================================================================== --- opensmtpd-extras-tool-stats/Makefile +++ opensmtpd-extras-tool-stats/Makefile @@ -0,0 +1,17 @@ +# Created by: fluffy +# $FreeBSD$ + +PKGNAMESUFFIX= -tool-stats +PORTREVISION= 0 + +COMMENT= Statistics tool for OpenSMTPD + +PLIST_FILES= bin/tool-stats \ + man/man8/tool-stats.8.gz + +CONFIGURE_ARGS= --with-tool-stats + +MASTERDIR= ${.CURDIR}/../opensmtpd-extras +SLAVE_PORT= yes + +.include "${MASTERDIR}/Makefile" Index: opensmtpd-extras/Makefile =================================================================== --- opensmtpd-extras/Makefile +++ opensmtpd-extras/Makefile @@ -3,7 +3,7 @@ PORTNAME= opensmtpd-extras PORTVERSION= 201605232202 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES+= mail MASTER_SITES= http://www.opensmtpd.org/archives/ @@ -13,61 +13,119 @@ LICENSE?= ISCL LIB_DEPENDS+= libevent.so:devel/libevent2 -RUN_DEPENDS+= ${LOCALBASE}/sbin/smtpctl:mail/opensmtpd -USES+= autoreconf libtool pkgconfig +USES+= autoreconf libtool USE_OPENSSL= yes -WITH_OPENSSL_PORT= yes GNU_CONFIGURE= yes # NB: Please *DO NOT* add the following; they are NOT for end-users: -# filter-monkey, filter-stub, filter-trace, filter-void +# filter-stub, filter-trace, filter-void # queue-null, queue-stub # scheduler-stub # table-stub .if empty(SLAVE_PORT) -OPTIONS_GROUP= FILTER TABLE -OPTIONS_GROUP_FILTER= CLAMAV DKIM DNSBL PAUSE REGEX SPAMASSASSIN -OPTIONS_GROUP_TABLE= LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE -OPTIONS_DEFAULT= ${OPTIONS_GROUP_FILTER} ${OPTIONS_GROUP_TABLE} +OPTIONS_GROUP= TOOLS TABLE FILTER FILTER_EXP QUEUE SCHEDULER +OPTIONS_GROUP_FILTER= FILTER_CLAMAV FILTER_DKIM FILTER_DNSBL FILTER_MONKEY FILTER_PAUSE FILTER_REGEX FILTER_SPAMASSASSIN +OPTIONS_GROUP_FILTER_EXP= FILTER_LUA FILTER_PERL FILTER_PYTHON +OPTIONS_GROUP_QUEUE= QUEUE_PYTHON QUEUE_RAM +OPTIONS_GROUP_SCHEDULER= SCHEDULER_PYTHON SCHEDULER_RAM +OPTIONS_GROUP_TABLE= TABLE_LDAP TABLE_MYSQL TABLE_PASSWD TABLE_PGSQL TABLE_PYTHON TABLE_REDIS TABLE_SOCKETMAP TABLE_SQLITE +OPTIONS_GROUP_TOOLS= OPENSMTP_DEVEL SSL_PORT TOOL_STATS +OPTIONS_DEFAULT= ${OPTIONS_GROUP_FILTER} ${OPTIONS_GROUP_TABLE} TOOL_STATS +FILTER_DESC= BASE FILTERS +FILTER_EXP_DESC= EXPERIMENTAL FILTERS +QUEUE_DESC= EXPERIMENTAL QUEUES +SCHEDULER_DESC= EXPERIMENTAL SCHEDULERS +TABLE_DESC= BASE TABLES +TOOLS_DESC= BASE TOOLS + # Filters -CLAMAV_DESC= Check messages with ClamAV -DKIM_DESC= Sign messages with DKIM -DNSBL_DESC= Check messages against DNSBLs -PAUSE_DESC= Pause incoming messages to reduce spam -SPAMASSASSIN_DESC= Check messages with SpamAssassin +FILTER_CLAMAV_DESC= Check messages with ClamAV +FILTER_DKIM_DESC= Sign messages with DKIM +FILTER_DNSBL_DESC= Check messages against DNSBLs +FILTER_LUA_DESC= Lua-filter interface +FILTER_MONKEY_DESC= Filter to arbitrary reject or delay mails +FILTER_PAUSE_DESC= Pause incoming messages to reduce spam +FILTER_PERL_DESC= Perl-filter interface +FILTER_PYTHON_DESC= Python-filter interface +FILTER_REGEX_DESC= ${REGEX_DESC} +FILTER_SPAMASSASSIN_DESC= Check messages with SpamAssassin +#Queues +QUEUE_PYTHON_DESC= The queue-python +QUEUE_RAM_DESC= The queue-ram +#Schedulers +SCHEDULER_PYTHON_DESC= The scheduler-python +SCHEDULER_RAM_DESC= The scheduler-ram # Tables -PASSWD_DESC= passwd(5) table support -SMAP_DESC= Socketmap protocol support +TABLE_LDAP_DESC= LDAP table support +TABLE_MYSQL_DESC= MySQL table support +TABLE_PASSWD_DESC= passwd(5) table support +TABLE_PGSQL_DESC= PgSQL table support +TABLE_PYTHON_DESC= Python table support +TABLE_REDIS_DESC= REDIS table support +TABLE_SOCKETMAP_DESC= Socketmap protocol support +TABLE_SQLITE_DESC= SQLite table support +#Tools +OPENSMTP_DEVEL_DESC= Run-depends on development version of OpenSMTPD +TOOL_STATS_DESC= Stats tool for OpenSMTPD +SSL_PORT_DESC= Force OpenSSL/LibreSSL version via port -PLIST_FILES= man/man3/filter_api.3.gz -INSTALL_DIR= ${LOCALBASE}/libexec/opensmtpd +SSL_PORT_VARS= with_openssl_port=yes +PLIST_FILES= man/man3/filter_api.3.gz +INSTALL_DIR= ${LOCALBASE}/libexec/opensmtpd + NO_ARCH= yes # +# Tools +# +OPENSMTP_DEVEL_RUN_DEPENDS_OFF= smtpctl:${PORTSDIR}/mail/opensmtpd +OPENSMTP_DEVEL_RUN_DEPENDS= smtpctl:${PORTSDIR}/mail/opensmtpd-devel +TOOL_STATS_RUN_DEPENDS= tool-stats:${PORTSDIR}/mail/opensmtpd-extras-tool-stats +# # Filters # -CLAMAV_RUN_DEPENDS= ${INSTALL_DIR}/filter-clamav:mail/opensmtpd-extras-filter-clamav -DKIM_RUN_DEPENDS= ${INSTALL_DIR}/filter-dkim-signer:mail/opensmtpd-extras-filter-dkim -DNSBL_RUN_DEPENDS= ${INSTALL_DIR}/filter-dnsbl:mail/opensmtpd-extras-filter-dnsbl -PAUSE_RUN_DEPENDS= ${INSTALL_DIR}/filter-pause:mail/opensmtpd-extras-filter-pause -REGEX_RUN_DEPENDS= ${INSTALL_DIR}/filter-regex:mail/opensmtpd-extras-filter-regex -SPAMASSASSIN_RUN_DEPENDS= ${INSTALL_DIR}/filter-spamassassin:mail/opensmtpd-extras-filter-spamassassin - +FILTER_CLAMAV_RUN_DEPENDS= ${INSTALL_DIR}/filter-clamav:mail/opensmtpd-extras-filter-clamav +FILTER_DKIM_RUN_DEPENDS= ${INSTALL_DIR}/filter-dkim-signer:mail/opensmtpd-extras-filter-dkim +FILTER_DNSBL_RUN_DEPENDS= ${INSTALL_DIR}/filter-dnsbl:mail/opensmtpd-extras-filter-dnsbl +FILTER_LUA_RUN_DEPENDS= ${INSTALL_DIR}/filter-lua:mail/opensmtpd-extras-filter-lua +FILTER_MONKEY_RUN_DEPENDS= ${INSTALL_DIR}/filter-monkey:mail/opensmtpd-extras-filter-monkey +FILTER_PAUSE_RUN_DEPENDS= ${INSTALL_DIR}/filter-pause:mail/opensmtpd-extras-filter-pause +FILTER_PERL_RUN_DEPENDS= ${INSTALL_DIR}/filter-perl:mail/opensmtpd-extras-filter-perl +FILTER_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/filter-python:mail/opensmtpd-extras-filter-python +FILTER_REGEX_RUN_DEPENDS= ${INSTALL_DIR}/filter-regex:mail/opensmtpd-extras-filter-regex +FILTER_SPAMASSASSIN_RUN_DEPENDS= ${INSTALL_DIR}/filter-spamassassin:mail/opensmtpd-extras-filter-spamassassin # +# Queues +# +QUEUE_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/queue-python:mail/opensmtpd-extras-queue-python +QUEUE_RAM_RUN_DEPENDS= ${INSTALL_DIR}/queue-ram:mail/opensmtpd-extras-queue-ram +# +# Schedulers +# +SCHEDULER_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/scheduler-python:mail/opensmtpd-extras-scheduler-python +SCHEDULER_RAM_RUN_DEPENDS= ${INSTALL_DIR}/scheduler-ram:mail/opensmtpd-extras-scheduler-ram +# # Tables # -MYSQL_RUN_DEPENDS= ${INSTALL_DIR}/table-mysql:mail/opensmtpd-extras-table-mysql -PASSWD_RUN_DEPENDS= ${INSTALL_DIR}/table-passwd:mail/opensmtpd-extras-table-passwd -PGSQL_RUN_DEPENDS= ${INSTALL_DIR}/table-postgres:mail/opensmtpd-extras-table-postgresql -PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/table-python:mail/opensmtpd-extras-table-python -REDIS_RUN_DEPENDS= ${INSTALL_DIR}/table-redis:mail/opensmtpd-extras-table-redis -SMAP_RUN_DEPENDS= ${INSTALL_DIR}/table-socketmap:mail/opensmtpd-extras-table-socketmap -SQLITE_RUN_DEPENDS= ${INSTALL_DIR}/table-sqlite:mail/opensmtpd-extras-table-sqlite +TABLE_MYSQL_RUN_DEPENDS= ${INSTALL_DIR}/table-mysql:mail/opensmtpd-extras-table-mysql +TABLE_PASSWD_RUN_DEPENDS= ${INSTALL_DIR}/table-passwd:mail/opensmtpd-extras-table-passwd +TABLE_PGSQL_RUN_DEPENDS= ${INSTALL_DIR}/table-postgres:mail/opensmtpd-extras-table-postgresql +TABLE_PYTHON_RUN_DEPENDS= ${INSTALL_DIR}/table-python:mail/opensmtpd-extras-table-python +TABLE_REDIS_RUN_DEPENDS= ${INSTALL_DIR}/table-redis:mail/opensmtpd-extras-table-redis +TABLE_SOCKETMAP_RUN_DEPENDS= ${INSTALL_DIR}/table-socketmap:mail/opensmtpd-extras-table-socketmap +TABLE_SQLITE_RUN_DEPENDS= ${INSTALL_DIR}/table-sqlite:mail/opensmtpd-extras-table-sqlite .else +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1000015 +WITH_OPENSSL_PORT= yes +.endif + + # Only install this for the opensmtpd-extras master port pre-patch: @${REINPLACE_CMD} -e '/man_MANS.*filter_api.3/s/^/#/' \