summaryrefslogtreecommitdiff
path: root/mail/ezmlm-idx
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2017-05-25 20:41:27 +0000
committerschmonz <schmonz@pkgsrc.org>2017-05-25 20:41:27 +0000
commit48e159b29ee1443edca8e5b264e2ee9e25a84bb6 (patch)
tree3772797c513a0cff52144aceeee71c880c054251 /mail/ezmlm-idx
parent549ac3d609bf6f28e21db4b8c7cc554e4d1bd01a (diff)
downloadpkgsrc-48e159b29ee1443edca8e5b264e2ee9e25a84bb6.tar.gz
Update to 7.2.2. From the changelog:
ezmlm-idx-7.2.2, 2014-05-14 =========================== - Added replytolist feature to ezmlm-send. When enabled, strips incoming Reply-To: header and adds its own. Also alters the behavior of rewritefrom. - Fixed off-by-one typo in ezmlm-weed causing an "out of memory" error. ezmlm-idx-7.2.1, 2014-05-09 =========================== - Fixed header address extraction in the presence of double quotes. - Fixed rewritefrom feature to run if the list is not indexed. ezmlm-idx-7.2.0, 2014-05-02 =========================== - Added <#C#>, <#T#>, and <#X#> substitutions for (un)subscribe confirmation emails, replaced with the hash code, time stamp, and action respectively. - Added option to ezmlm-[un]sub to use a tag other than "manual" in Log. - Added option to ezmlm-manage to show what response is being sent. - Added optional rewritefrom feature to ezmlm-send, automatically enabled when the sender has a "reject" DMARC policy. - Fixed behavior of ezmlm-manage -Q flag to match man page. - Fixed ezmlm-import failing to flush output to the last message, and enhanced it to allow reading the mbox from stdin. Thanks to Tullio Andreatta. - Fixed ezmlm-manage notifying target of an unsubscribe by a remote administrator when the -N option is in use. Thanks to Nebojsa Milovanovic. - Fixed ezmlm-archive corrupting output index files. - Internal rewrite of SQL modules to merge all common code. ezmlm-idx-7.1.1, 2010-11-18 =========================== - Fixed bug in getln2 function that prevented error handling. - Fixed bug in ezmlm-cron that prevented parsing of spaces. - Fixed unclosed file descriptor on error path in ezmlm-cgi. ezmlm-idx-7.1.0, 2010-11-03 =========================== - Added support for SQLite3 subscriber databases. Thanks to Mike Tedder. - Added support for wildcard addresses in all address databases. - Added support for qmqpservers to all ezmlm-idx programs. - Added support for decoding sender addresses mangled with a BATV "btv1" tag. - Added support for custom subject lines to ezmlm-get (for digests). - Added a new "omitbottom" control file, equivalent to the -B option for both ezmlm-get and ezmlm-manage. - Modified the (un)subscribe procedure to not require confirmation before telling the sender they were already on (or off) the list. - Renamed to "setup" makefile target to the more standard "install". - Modified ezmlm-split to exit silently if there is not "split" file, and added it back into the "manager" file to properly handle subscribe and unsubscribe requests destined for sublists. - Made the ezmlm-reject -h (obey headerreject) option the default. - Fixed ezmlm-send to obey the "addtrailer" setting instead of looking for a "text/trailer" file. - Fixed handling of adding the trailer on old lists. - Fixed adding the trailer to posts encoded with base64. - Fixed handling Received: headers with the date stamp on a separate line. - Fixed bug in command-line option processing which caused sender- confirmed posting to fail. - Fixed handling BATV sender addresses with upper-case hex tags. Thanks to Kyle Wheeler for pointing this out. - Adjusted filename in digest attachments to fix problem with Outlook. Thanks to Glen Stewart ezmlm-idx-7.0.2, 2009-08-09 =========================== - Fixed selection of [un]subscribe subject line for moderated subscriptions. - Clarified ezmlm-reject man page to note that Precedence: bulk is also rejected. - Added a proper charset for ch_GB (Chinese GuoBiao), and added an explicit charset for the other languages that were missing them. - Switched all ISO-8859-1 charsets to the more modern ISO-8859-15. - Many small text updates and tweaks. ezmlm-idx-7.0.1, 2009-07-09 =========================== - Added support for decoding sender addresses mangled by BATV prvs. - Added missing ezmlm-checksub to the installed programs. - Improved the TXT_BY message used in digests to work better with non-English languages. - Fixed out-of-memory resulting in a permanent error. - Fixed a buffer underflow bug in concatHDR. - Fixed a bug in ezmlm-issubn.c that was causing it to scan the main list when it shouldn't. - Fixed missing defaults in ezmlm-tstdig when digsize, digcount, or digtime were not created. - Clarified the steps necessary when upgrading in UPGRADE. ezmlm-idx-7.0.0, 2008-06-16 =========================== This version has three major architectural changes: 1. There is now support for internationalized messages. All error messages, all subject lines, and a few other messages are now configured in a file named "text/messages" that is read at run time. Messages in this file will undergo header-style substitution before they are output. Unlike other text files, all 3 of the files (DIR/text/messages, /etc/ezmlm/LANG/text/messages, and /etc/ezmlm/default/text/messages) are read, and only the first match (in the above order) is used for any given message. This allows for creation of partial files to override just select messages. If no match is found, the internal English text is used. 2. The use of the "flags" file has been deprecated completely by individual flag files accessed by the appropriate programs. This, along with corresponding changes to the ezmlmrc template, allows for lists to be reconfigured without invoking ezmlm-make. To upgrade a list to the new setup, simply run "ezmlm-make -+ DIR". Note that this will delete the "config" and "flags" files, as they have been superceded by other files. 3. Creation of subscriber tables has been moved out of ezmlm-mktab-* and into ezmlm-make by adding some additional hooks to the subdb plugins. A ezmlm-rmtab program is also added to remove subscriber tables, also with hooks in the subdb plugins. The ezmlm-mktab-* programs have been obsoleted by these changes and have been removed. Smaller changes: - Fixed a bug in ezmlm-request that caused a segfault when attempting to execute the "which" command. - Added new program ezmlm-checksub to replace the ezmlm-issubn ... || { echo error; exit 100; } lines in the ezmlmrc files. ezmlm-issubn is now deprecated for use in .qmail files, but still exists for backwards compatibility. - Added ezmlm-weed to the confirmer control files. - Added <#a#> substitution for the local part of the accept address. - ezmlm-warn will now process bounces for both the main and digest lists if neither the -d nor the -D options are given. - Added several control files for programs: dir/digcount ezmlm-tstdig dir/digestcode ezmlm-get dir/digformat ezmlm-get dir/digsize ezmlm-tstdig dir/digtime ezmlm-tstdig dir/modcanedit ezmlm-manage dir/modcanlist ezmlm-manage dir/modgetonly ezmlm-get dir/modpostonly ezmlm-store dir/nosubconfirm ezmlm-manage dir/nounsubconfirm ezmlm-manage dir/nowarn ezmlm-warn dir/subgetonly ezmlm-get dir/noreturnposts ezmlm-clean - Removed the ezmlm-make -4 option in favor of the above files. - Fixed handling of digest bouncer in ezmlm-dispatch. - Eliminated the use of vfork for portability. - Added support for decoding sender addresses mangled by SRS. - Fixed bug when running ezmlm-archive on a newly-created list. - Always enable ezmlm-request in manager. - Always enable the "deny" blacklist. - Fixed a long standing bug in ezmlm-store that caused both posting and moderating to happen when both modpost and confirmpost were disabled. Note: The subdb API was modified in this version. You will need to reinstall all sub-* modules along with the main package. Also, the messages changes also replaced the confirmpost subject line hack in ezmlm-store and the mailinglist file. The contents of DIR/confirmpost and DIR/mailinglist are now ignored in favor of the SUB_CONFIRM_POST and TXT_MAILING_LIST messages, respectively. ezmlm-idx-6.0.1, 2007-10-06 =========================== - Fixed all of the subdb plugins to correct a problem that prevented ezmlm-manage from working properly. - Fixed ezmlm-weed to handle MIME Delivery Status Notification messages better. - Fixed ezmlm-send to insert the proper value for the List-ID: header. Thanks Bill Nugent. - Added the necessary Sender: header to make DomainKeys work into the ezmlmrc template. - ezmlm-mktab-mysql and ezmlm-mktab-pgsql will now only be installed if they were built (with "make mysql" or "make pgsql" respectively). Note: The subdb API was modified in this version. You will need to reinstall all sub-* modules along with the main package. ezmlm-idx-6.0.0, 2006-11-30 =========================== This version introduces two major changes in how ezmlm-idx operates. First, the naming of subscriber lists has been revamped. In previous versions, the subscriber list would be identified by a full path to the list directory. In this version, the lists are identified by their subdirectory name within the list base directory. Full paths are supported in some places for backwards compatibility, but only where they fall within the list directory. This coincidentally removes the absolute path requirement in all places except ezmlm-make, and eliminates the need for (and use of) all the "sql" files not in the list base directory. Second, all three subscriber database libraries (standard, MySQL, and PostgreSQL) have been moved into dynamically loaded plugins. If you were previously using MySQL or PgSQL support, please follow the instructions in UPGRADE.idx. After this configuration, this version is backwards configurable with previous versions. The plugin support also adds support for an optional DIR/subdb file which supercedes DIR/sql. The file should contain the subscriber database plugin name followed by the content that would have gone into DIR/sql. If it is not found, DIR/sql is used instead with an assumed plugin name of "sql". ezmlm-make will read in and convert DIR/sql if DIR/subdb does not exist, but it writes out DIR/subdb. Make sure to read the UPGRADE.idx file for more information on what steps may be necessary to use this version. ezmlm-idx-5.1.2, 2007-10-05 =========================== - Fixed ezmlm-send to insert the proper value for the List-ID: header. Thanks Bill Nugent. - Added the necessary Sender: header to make DomainKeys work into the ezmlmrc template. ezmlm-idx-5.1.1, 2006-11-23 =========================== - (Un)subscribe requests initiated and confirmed by a moderator are now marked in the Log as "+mod" or "-mod". This is accomplished by the addition of another pair of subscribe/unsubscribe confirmation commands ("rc.cookie" and "wc.cookie") to ezmlm-manage to differentiate between moderated (un)subscribe requests and (un)subscribe requests iniated and confirmed by a moderator. - Updated the embeded qmail-verh patch to version 0.07 ezmlm-idx-5.1.0, 2006-08-08 =========================== - Added a new configuration files "headerkeep" and "mimekeep" which override "headerremove" and "mimeremove" respectively if either of the former are present. Instead of removing bad headers, the "headerkeep" file controls which ones *not* to remove. The "mimekeep" file works similarly for MIME parts. - Added a new program, ezmlm-import, which imports messages from a mbox file into ezmlm-idx's message archive. - Modified ezmlm-gate, ezmlm-issubn, ezmlm-list, ezmlm-sub, and ezmlm-unsub to accept relative subscriber database names. The changes take into account backwards compatibility. - Added ezmlm-weed to both the moderator and manager control files. - Added several more autoresponder signatures to ezmlm-weed. - Modified the vfork test to use pid_t instead of int, to fix portability issues on Solaris. - Fixed handling of missing ezmlmrc config file. - Fixed ezmlm-dispatch to handle working in a non-default .qmail file. ezmlm-idx-5.0.2, 2006-01-16 =========================== - All programs that copy the input message (ezmlm-get, ezmlm-manage, ezmlm-reject, ezmlm-request, and ezmlm-warn) will now copy the whole header but only a limited number of lines of the message body, configured by putting a number into "copylines". If this control file is not present, no body lines are copied (to avoid spam complaints). - Fixed ezmlm-make to override settings in the config files with command line options instead of the other way around. - Updated Spanish translation for post-confirm. Thanks Ruben Cardenal. - Fixed bug in generation of a (currently unused) email address in the subscription confirmation message. - Substitute <#c#> in (un)subscribe confirm messages with just the confirmation cookie (ie <#r#> without the <#l#>- prefix). ezmlm-idx-5.0.1, 2005-12-16 =========================== - If files cannot be found in either the list directory or the language-specific directory, try to pull them from the default directory (/etc/ezmlm/default). - Added a proper charset for Japanese texts. - Added a Spanish translation for post-confirm. Thanks Ruben Cardenal. - Fixed a bug in ezmlm-cgi caused by the use of "char" type for array index calculations. - Fixed ezmlm-gate failing to exit 0 on success. Thanks Ian Charnas and Sami Farin. ezmlm-idx-5.0.0, 2005-10-03 =========================== - Moved all the language-specific files (that is, all the "text" files plus "charset" and "mailinglist") out of the ezmlmrc files into individual files installed in a common location (/etc/ezmlm/LANG by default). - Modified the programs to try to pull files that are not present in the list directory from the common location above. - Replaced the use of the "config" file in ezmlm-make with individual files containing one setting each. ezmlm-make will still read the config file for now, but it is considered depricated. Running "ezmlm-make -+" on an existing list will upgrade it. - Added a "conf-etc" config file to allow changing the path to configuration files (defaults to "/etc/ezmlm"). - Added a "conf-lang" config file to replace the "make ISO" mechanism. - Modified the "copy" function, which translates from "text" files into output emails, to also select sections at run time based on the list's configured flags.
Diffstat (limited to 'mail/ezmlm-idx')
-rw-r--r--mail/ezmlm-idx/DEINSTALL10
-rw-r--r--mail/ezmlm-idx/INSTALL16
-rw-r--r--mail/ezmlm-idx/Makefile42
-rw-r--r--mail/ezmlm-idx/PLIST.idx22
-rw-r--r--mail/ezmlm-idx/cf-dirs.mk36
-rw-r--r--mail/ezmlm-idx/cf-files.mk571
-rw-r--r--mail/ezmlm-idx/distinfo19
-rw-r--r--mail/ezmlm-idx/options.mk31
-rw-r--r--mail/ezmlm-idx/patches/patch-MAN13
-rw-r--r--mail/ezmlm-idx/patches/patch-aa22
-rw-r--r--mail/ezmlm-idx/patches/patch-ab17
-rw-r--r--mail/ezmlm-idx/patches/patch-ac34
-rw-r--r--mail/ezmlm-idx/patches/patch-ezmlm-dispatch.c14
-rw-r--r--mail/ezmlm-idx/patches/patch-test-getconfopt.c14
14 files changed, 766 insertions, 95 deletions
diff --git a/mail/ezmlm-idx/DEINSTALL b/mail/ezmlm-idx/DEINSTALL
new file mode 100644
index 00000000000..b31806e64b3
--- /dev/null
+++ b/mail/ezmlm-idx/DEINSTALL
@@ -0,0 +1,10 @@
+# $NetBSD: DEINSTALL,v 1.1 2017/05/25 20:41:27 schmonz Exp $
+
+case "${STAGE}" in
+
+DEINSTALL)
+ cd ${PKG_SYSCONFDIR}
+ ${RM} -f default
+
+ ;;
+esac
diff --git a/mail/ezmlm-idx/INSTALL b/mail/ezmlm-idx/INSTALL
new file mode 100644
index 00000000000..b5cf2f50d1b
--- /dev/null
+++ b/mail/ezmlm-idx/INSTALL
@@ -0,0 +1,16 @@
+# $NetBSD: INSTALL,v 1.1 2017/05/25 20:41:27 schmonz Exp $
+
+PKG_SYSCONFDIR=@PKG_SYSCONFDIR@
+LN=@LN@
+
+case "${STAGE}" in
+
+POST-INSTALL)
+ cd ${PKG_SYSCONFDIR}
+ if [ -d en_US ]; then
+ ${LN} -s en_US default
+ fi
+
+ ;;
+
+esac
diff --git a/mail/ezmlm-idx/Makefile b/mail/ezmlm-idx/Makefile
index 2cc4e333eba..27714ea8a2a 100644
--- a/mail/ezmlm-idx/Makefile
+++ b/mail/ezmlm-idx/Makefile
@@ -1,44 +1,56 @@
-# $NetBSD: Makefile,v 1.38 2016/10/09 21:42:00 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2017/05/25 20:41:27 schmonz Exp $
#
.include "../../mail/ezmlm/Makefile.common"
DISTNAME= ezmlm-idx-${IDXVERSION}
-PKGREVISION= 3
-IDXVERSION= 0.444
-SITES.${DISTNAME}.tar.gz= http://www.ezmlm.org/archive/${IDXVERSION}/
+IDXVERSION= 7.2.2
+SITES.${DISTNAME}.tar.gz= http://untroubled.org/ezmlm/archive/${IDXVERSION}/
MAINTAINER= schmonz@NetBSD.org
-HOMEPAGE= http://www.ezmlm.org/
+HOMEPAGE= http://untroubled.org/ezmlm/
COMMENT= Version of ezmlm with enhancements by third parties
LICENSE= gnu-gpl-v2
CONFLICTS= ezmlm-[0-9]*
DISTFILES+= ${EZMLM_VERS}.tar.gz
-PLIST_SRC+= PLIST.idx
+PLIST_SRC+= PLIST.idx ${WRKDIR}/PLIST.idx-cf-files
DJB_RESTRICTED= no
-DJB_CONFIG_CMDS= ${ECHO} ${DESTDIR:Q} > conf-destdir
+DJB_CONFIG_CMDS+= ${ECHO} ${DESTDIR:Q} > conf-destdir; \
+ ${ECHO} ${EGDIR:Q} > conf-egdir; \
+ ${ECHO} ${PKG_SYSCONFDIR:Q} > conf-etc; \
+ ${ECHO} ${PREFIX}/lib/ezmlm > conf-lib;
+
+LDFLAGS.SunOS+= -lsocket -lnsl
+
+INSTALL_TARGET= install
PKG_SYSCONFSUBDIR= ezmlm
-CFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
-USE_TOOLS+= patch
-EGDIR= ${PREFIX}/share/examples/ezmlm-idx
-CONF_FILES= ${EGDIR}/ezcgirc ${PKG_SYSCONFDIR}/ezcgirc
-CONF_FILES+= ${EGDIR}/ezmlmrc ${PKG_SYSCONFDIR}/ezmlmrc
+.include "cf-files.mk"
+.include "cf-dirs.mk"
-INSTALLATION_DIRS= bin ${PKGMANDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
+EGDIR= ${PREFIX}/share/examples/ezmlm-idx
+.for file in ${EZMLM_CF_FILES}
+CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
+.endfor
+.for dir in ${EZMLM_CF_DIRS}
+OWN_DIRS+= ${PKG_SYSCONFDIR}/${dir}
+.endfor
+
+INSTALLATION_DIRS= bin lib ${PKGMANDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
INSTALLATION_DIRS+= share/examples/ezmlm-idx
post-extract:
+ ${GREP} -v '^#' < cf-files.mk | ${CUT} -f2 | ${SED} -e 's|^|share/examples/ezmlm-idx/|g' > ${WRKDIR}/PLIST.idx-cf-files
${MV} ${WRKSRC}/* ${WRKDIR}/${EZMLM_VERS}
${RMDIR} ${WRKSRC}
${MV} ${WRKDIR}/${EZMLM_VERS} ${WRKSRC}
-pre-patch:
- cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < idx.patch
+pre-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
diff --git a/mail/ezmlm-idx/PLIST.idx b/mail/ezmlm-idx/PLIST.idx
index d6f53ac2515..b02e10f76af 100644
--- a/mail/ezmlm-idx/PLIST.idx
+++ b/mail/ezmlm-idx/PLIST.idx
@@ -1,7 +1,9 @@
-@comment $NetBSD: PLIST.idx,v 1.7 2012/03/12 04:32:11 joerg Exp $
+@comment $NetBSD: PLIST.idx,v 1.8 2017/05/25 20:41:27 schmonz Exp $
bin/ezmlm-accept
bin/ezmlm-archive
+bin/ezmlm-cgi
bin/ezmlm-check
+bin/ezmlm-checksub
bin/ezmlm-clean
bin/ezmlm-confirm
bin/ezmlm-cron
@@ -10,17 +12,25 @@ bin/ezmlm-gate
bin/ezmlm-get
bin/ezmlm-glconf
bin/ezmlm-idx
+bin/ezmlm-import
bin/ezmlm-issubn
bin/ezmlm-limit
-bin/ezmlm-mktab
bin/ezmlm-moderate
bin/ezmlm-request
+bin/ezmlm-rmtab
bin/ezmlm-split
bin/ezmlm-store
+bin/ezmlm-to40x-mysql
bin/ezmlm-tstdig
+${PLIST.mysql}lib/ezmlm/sub-mysql.so
+${PLIST.pgsql}lib/ezmlm/sub-pgsql.so
+${PLIST.sqlite3}lib/ezmlm/sub-sqlite3.so
+lib/ezmlm/sub-std.so
man/man1/ezmlm-accept.1
man/man1/ezmlm-archive.1
+man/man1/ezmlm-cgi.1
man/man1/ezmlm-check.1
+man/man1/ezmlm-checksub.1
man/man1/ezmlm-clean.1
man/man1/ezmlm-confirm.1
man/man1/ezmlm-cron.1
@@ -29,18 +39,16 @@ man/man1/ezmlm-gate.1
man/man1/ezmlm-get.1
man/man1/ezmlm-glconf.1
man/man1/ezmlm-idx.1
+man/man1/ezmlm-import.1
man/man1/ezmlm-issubn.1
man/man1/ezmlm-limit.1
-man/man1/ezmlm-mktab.1
man/man1/ezmlm-moderate.1
man/man1/ezmlm-request.1
+man/man1/ezmlm-rmtab.1
man/man1/ezmlm-split.1
man/man1/ezmlm-store.1
man/man1/ezmlm-tstdig.1
man/man5/ezmlmglrc.5
man/man5/ezmlmrc.5
man/man5/ezmlmsubrc.5
-share/examples/ezmlm-idx/ezcgirc
-share/examples/ezmlm-idx/ezmlmglrc
-share/examples/ezmlm-idx/ezmlmrc
-share/examples/ezmlm-idx/ezmlmsubrc
+share/examples/ezmlm-idx/default
diff --git a/mail/ezmlm-idx/cf-dirs.mk b/mail/ezmlm-idx/cf-dirs.mk
new file mode 100644
index 00000000000..2ca1f4d4a99
--- /dev/null
+++ b/mail/ezmlm-idx/cf-dirs.mk
@@ -0,0 +1,36 @@
+# $NetBSD: cf-dirs.mk,v 1.1 2017/05/25 20:41:27 schmonz Exp $
+#
+EZMLM_CF_DIRS+= ch_GB
+EZMLM_CF_DIRS+= ch_GB/text
+EZMLM_CF_DIRS+= cs
+EZMLM_CF_DIRS+= cs/text
+EZMLM_CF_DIRS+= da
+EZMLM_CF_DIRS+= da/text
+EZMLM_CF_DIRS+= de
+EZMLM_CF_DIRS+= de/text
+EZMLM_CF_DIRS+= en_US
+EZMLM_CF_DIRS+= en_US/text
+EZMLM_CF_DIRS+= es
+EZMLM_CF_DIRS+= es/text
+EZMLM_CF_DIRS+= fr
+EZMLM_CF_DIRS+= fr/text
+EZMLM_CF_DIRS+= hu
+EZMLM_CF_DIRS+= hu/text
+EZMLM_CF_DIRS+= id
+EZMLM_CF_DIRS+= id/text
+EZMLM_CF_DIRS+= it
+EZMLM_CF_DIRS+= it/text
+EZMLM_CF_DIRS+= ja
+EZMLM_CF_DIRS+= ja/text
+EZMLM_CF_DIRS+= nl
+EZMLM_CF_DIRS+= nl/text
+EZMLM_CF_DIRS+= pl
+EZMLM_CF_DIRS+= pl/text
+EZMLM_CF_DIRS+= pt
+EZMLM_CF_DIRS+= pt/text
+EZMLM_CF_DIRS+= pt_BR
+EZMLM_CF_DIRS+= pt_BR/text
+EZMLM_CF_DIRS+= ru
+EZMLM_CF_DIRS+= ru/text
+EZMLM_CF_DIRS+= sv
+EZMLM_CF_DIRS+= sv/text
diff --git a/mail/ezmlm-idx/cf-files.mk b/mail/ezmlm-idx/cf-files.mk
new file mode 100644
index 00000000000..f8a71ca0216
--- /dev/null
+++ b/mail/ezmlm-idx/cf-files.mk
@@ -0,0 +1,571 @@
+# $NetBSD: cf-files.mk,v 1.1 2017/05/25 20:41:27 schmonz Exp $
+#
+EZMLM_CF_FILES+= ch_GB/ezmlmrc
+EZMLM_CF_FILES+= ch_GB/text/bottom
+EZMLM_CF_FILES+= ch_GB/text/bounce-bottom
+EZMLM_CF_FILES+= ch_GB/text/bounce-num
+EZMLM_CF_FILES+= ch_GB/text/bounce-probe
+EZMLM_CF_FILES+= ch_GB/text/bounce-warn
+EZMLM_CF_FILES+= ch_GB/text/dig-bounce-num
+EZMLM_CF_FILES+= ch_GB/text/digest
+EZMLM_CF_FILES+= ch_GB/text/edit-do
+EZMLM_CF_FILES+= ch_GB/text/edit-done
+EZMLM_CF_FILES+= ch_GB/text/edit-list
+EZMLM_CF_FILES+= ch_GB/text/faq
+EZMLM_CF_FILES+= ch_GB/text/get-bad
+EZMLM_CF_FILES+= ch_GB/text/help
+EZMLM_CF_FILES+= ch_GB/text/info
+EZMLM_CF_FILES+= ch_GB/text/mod-help
+EZMLM_CF_FILES+= ch_GB/text/mod-reject
+EZMLM_CF_FILES+= ch_GB/text/mod-request
+EZMLM_CF_FILES+= ch_GB/text/mod-sub
+EZMLM_CF_FILES+= ch_GB/text/mod-sub-confirm
+EZMLM_CF_FILES+= ch_GB/text/mod-timeout
+EZMLM_CF_FILES+= ch_GB/text/mod-unsub-confirm
+EZMLM_CF_FILES+= ch_GB/text/sub-bad
+EZMLM_CF_FILES+= ch_GB/text/sub-confirm
+EZMLM_CF_FILES+= ch_GB/text/sub-nop
+EZMLM_CF_FILES+= ch_GB/text/sub-ok
+EZMLM_CF_FILES+= ch_GB/text/top
+EZMLM_CF_FILES+= ch_GB/text/trailer
+EZMLM_CF_FILES+= ch_GB/text/unsub-bad
+EZMLM_CF_FILES+= ch_GB/text/unsub-confirm
+EZMLM_CF_FILES+= ch_GB/text/unsub-nop
+EZMLM_CF_FILES+= ch_GB/text/unsub-ok
+EZMLM_CF_FILES+= cs/charset
+EZMLM_CF_FILES+= cs/ezmlmrc
+EZMLM_CF_FILES+= cs/text/bottom
+EZMLM_CF_FILES+= cs/text/bounce-bottom
+EZMLM_CF_FILES+= cs/text/bounce-num
+EZMLM_CF_FILES+= cs/text/bounce-probe
+EZMLM_CF_FILES+= cs/text/bounce-warn
+EZMLM_CF_FILES+= cs/text/dig-bounce-num
+EZMLM_CF_FILES+= cs/text/digest
+EZMLM_CF_FILES+= cs/text/edit-do
+EZMLM_CF_FILES+= cs/text/edit-done
+EZMLM_CF_FILES+= cs/text/edit-list
+EZMLM_CF_FILES+= cs/text/faq
+EZMLM_CF_FILES+= cs/text/get-bad
+EZMLM_CF_FILES+= cs/text/help
+EZMLM_CF_FILES+= cs/text/info
+EZMLM_CF_FILES+= cs/text/messages
+EZMLM_CF_FILES+= cs/text/mod-help
+EZMLM_CF_FILES+= cs/text/mod-reject
+EZMLM_CF_FILES+= cs/text/mod-request
+EZMLM_CF_FILES+= cs/text/mod-sub
+EZMLM_CF_FILES+= cs/text/mod-sub-confirm
+EZMLM_CF_FILES+= cs/text/mod-timeout
+EZMLM_CF_FILES+= cs/text/mod-unsub-confirm
+EZMLM_CF_FILES+= cs/text/sub-bad
+EZMLM_CF_FILES+= cs/text/sub-confirm
+EZMLM_CF_FILES+= cs/text/sub-nop
+EZMLM_CF_FILES+= cs/text/sub-ok
+EZMLM_CF_FILES+= cs/text/top
+EZMLM_CF_FILES+= cs/text/trailer
+EZMLM_CF_FILES+= cs/text/unsub-bad
+EZMLM_CF_FILES+= cs/text/unsub-confirm
+EZMLM_CF_FILES+= cs/text/unsub-nop
+EZMLM_CF_FILES+= cs/text/unsub-ok
+EZMLM_CF_FILES+= da/charset
+EZMLM_CF_FILES+= da/ezmlmrc
+EZMLM_CF_FILES+= da/text/bottom
+EZMLM_CF_FILES+= da/text/bounce-bottom
+EZMLM_CF_FILES+= da/text/bounce-num
+EZMLM_CF_FILES+= da/text/bounce-probe
+EZMLM_CF_FILES+= da/text/bounce-warn
+EZMLM_CF_FILES+= da/text/dig-bounce-num
+EZMLM_CF_FILES+= da/text/digest
+EZMLM_CF_FILES+= da/text/edit-do
+EZMLM_CF_FILES+= da/text/edit-done
+EZMLM_CF_FILES+= da/text/edit-list
+EZMLM_CF_FILES+= da/text/faq
+EZMLM_CF_FILES+= da/text/get-bad
+EZMLM_CF_FILES+= da/text/help
+EZMLM_CF_FILES+= da/text/info
+EZMLM_CF_FILES+= da/text/messages
+EZMLM_CF_FILES+= da/text/mod-help
+EZMLM_CF_FILES+= da/text/mod-reject
+EZMLM_CF_FILES+= da/text/mod-request
+EZMLM_CF_FILES+= da/text/mod-sub
+EZMLM_CF_FILES+= da/text/mod-sub-confirm
+EZMLM_CF_FILES+= da/text/mod-timeout
+EZMLM_CF_FILES+= da/text/mod-unsub-confirm
+EZMLM_CF_FILES+= da/text/sub-bad
+EZMLM_CF_FILES+= da/text/sub-confirm
+EZMLM_CF_FILES+= da/text/sub-nop
+EZMLM_CF_FILES+= da/text/sub-ok
+EZMLM_CF_FILES+= da/text/top
+EZMLM_CF_FILES+= da/text/trailer
+EZMLM_CF_FILES+= da/text/unsub-bad
+EZMLM_CF_FILES+= da/text/unsub-confirm
+EZMLM_CF_FILES+= da/text/unsub-nop
+EZMLM_CF_FILES+= da/text/unsub-ok
+EZMLM_CF_FILES+= de/charset
+EZMLM_CF_FILES+= de/ezmlmrc
+EZMLM_CF_FILES+= de/text/bottom
+EZMLM_CF_FILES+= de/text/bounce-bottom
+EZMLM_CF_FILES+= de/text/bounce-num
+EZMLM_CF_FILES+= de/text/bounce-probe
+EZMLM_CF_FILES+= de/text/bounce-warn
+EZMLM_CF_FILES+= de/text/dig-bounce-num
+EZMLM_CF_FILES+= de/text/digest
+EZMLM_CF_FILES+= de/text/edit-do
+EZMLM_CF_FILES+= de/text/edit-done
+EZMLM_CF_FILES+= de/text/edit-list
+EZMLM_CF_FILES+= de/text/faq
+EZMLM_CF_FILES+= de/text/get-bad
+EZMLM_CF_FILES+= de/text/help
+EZMLM_CF_FILES+= de/text/info
+EZMLM_CF_FILES+= de/text/messages
+EZMLM_CF_FILES+= de/text/mod-help
+EZMLM_CF_FILES+= de/text/mod-reject
+EZMLM_CF_FILES+= de/text/mod-request
+EZMLM_CF_FILES+= de/text/mod-sub
+EZMLM_CF_FILES+= de/text/mod-sub-confirm
+EZMLM_CF_FILES+= de/text/mod-timeout
+EZMLM_CF_FILES+= de/text/mod-unsub-confirm
+EZMLM_CF_FILES+= de/text/post-confirm
+EZMLM_CF_FILES+= de/text/sub-bad
+EZMLM_CF_FILES+= de/text/sub-confirm
+EZMLM_CF_FILES+= de/text/sub-nop
+EZMLM_CF_FILES+= de/text/sub-ok
+EZMLM_CF_FILES+= de/text/top
+EZMLM_CF_FILES+= de/text/trailer
+EZMLM_CF_FILES+= de/text/unsub-bad
+EZMLM_CF_FILES+= de/text/unsub-confirm
+EZMLM_CF_FILES+= de/text/unsub-nop
+EZMLM_CF_FILES+= de/text/unsub-ok
+EZMLM_CF_FILES+= en_US/ezmlmrc
+EZMLM_CF_FILES+= en_US/text/bottom
+EZMLM_CF_FILES+= en_US/text/bounce-bottom
+EZMLM_CF_FILES+= en_US/text/bounce-num
+EZMLM_CF_FILES+= en_US/text/bounce-probe
+EZMLM_CF_FILES+= en_US/text/bounce-warn
+EZMLM_CF_FILES+= en_US/text/dig-bounce-num
+EZMLM_CF_FILES+= en_US/text/digest
+EZMLM_CF_FILES+= en_US/text/edit-do
+EZMLM_CF_FILES+= en_US/text/edit-done
+EZMLM_CF_FILES+= en_US/text/edit-list
+EZMLM_CF_FILES+= en_US/text/faq
+EZMLM_CF_FILES+= en_US/text/get-bad
+EZMLM_CF_FILES+= en_US/text/help
+EZMLM_CF_FILES+= en_US/text/info
+EZMLM_CF_FILES+= en_US/text/messages
+EZMLM_CF_FILES+= en_US/text/mod-help
+EZMLM_CF_FILES+= en_US/text/mod-reject
+EZMLM_CF_FILES+= en_US/text/mod-request
+EZMLM_CF_FILES+= en_US/text/mod-sub
+EZMLM_CF_FILES+= en_US/text/mod-sub-confirm
+EZMLM_CF_FILES+= en_US/text/mod-timeout
+EZMLM_CF_FILES+= en_US/text/mod-unsub-confirm
+EZMLM_CF_FILES+= en_US/text/post-confirm
+EZMLM_CF_FILES+= en_US/text/sub-bad
+EZMLM_CF_FILES+= en_US/text/sub-confirm
+EZMLM_CF_FILES+= en_US/text/sub-nop
+EZMLM_CF_FILES+= en_US/text/sub-ok
+EZMLM_CF_FILES+= en_US/text/top
+EZMLM_CF_FILES+= en_US/text/trailer
+EZMLM_CF_FILES+= en_US/text/unsub-bad
+EZMLM_CF_FILES+= en_US/text/unsub-confirm
+EZMLM_CF_FILES+= en_US/text/unsub-nop
+EZMLM_CF_FILES+= en_US/text/unsub-ok
+EZMLM_CF_FILES+= es/ezmlmrc
+EZMLM_CF_FILES+= es/text/bottom
+EZMLM_CF_FILES+= es/text/bounce-bottom
+EZMLM_CF_FILES+= es/text/bounce-num
+EZMLM_CF_FILES+= es/text/bounce-probe
+EZMLM_CF_FILES+= es/text/bounce-warn
+EZMLM_CF_FILES+= es/text/dig-bounce-num
+EZMLM_CF_FILES+= es/text/digest
+EZMLM_CF_FILES+= es/text/edit-do
+EZMLM_CF_FILES+= es/text/edit-done
+EZMLM_CF_FILES+= es/text/edit-list
+EZMLM_CF_FILES+= es/text/faq
+EZMLM_CF_FILES+= es/text/get-bad
+EZMLM_CF_FILES+= es/text/help
+EZMLM_CF_FILES+= es/text/info
+EZMLM_CF_FILES+= es/text/mod-help
+EZMLM_CF_FILES+= es/text/mod-reject
+EZMLM_CF_FILES+= es/text/mod-request
+EZMLM_CF_FILES+= es/text/mod-sub
+EZMLM_CF_FILES+= es/text/mod-sub-confirm
+EZMLM_CF_FILES+= es/text/mod-timeout
+EZMLM_CF_FILES+= es/text/mod-unsub-confirm
+EZMLM_CF_FILES+= es/text/sub-bad
+EZMLM_CF_FILES+= es/text/sub-confirm
+EZMLM_CF_FILES+= es/text/sub-nop
+EZMLM_CF_FILES+= es/text/sub-ok
+EZMLM_CF_FILES+= es/text/top
+EZMLM_CF_FILES+= es/text/trailer
+EZMLM_CF_FILES+= es/text/unsub-bad
+EZMLM_CF_FILES+= es/text/unsub-confirm
+EZMLM_CF_FILES+= es/text/unsub-nop
+EZMLM_CF_FILES+= es/text/unsub-ok
+EZMLM_CF_FILES+= ezcgirc
+EZMLM_CF_FILES+= ezmlmglrc
+EZMLM_CF_FILES+= ezmlmrc
+EZMLM_CF_FILES+= ezmlmsubrc
+EZMLM_CF_FILES+= fr/ezmlmrc
+EZMLM_CF_FILES+= fr/text/bottom
+EZMLM_CF_FILES+= fr/text/bounce-bottom
+EZMLM_CF_FILES+= fr/text/bounce-num
+EZMLM_CF_FILES+= fr/text/bounce-probe
+EZMLM_CF_FILES+= fr/text/bounce-warn
+EZMLM_CF_FILES+= fr/text/dig-bounce-num
+EZMLM_CF_FILES+= fr/text/digest
+EZMLM_CF_FILES+= fr/text/edit-do
+EZMLM_CF_FILES+= fr/text/edit-done
+EZMLM_CF_FILES+= fr/text/edit-list
+EZMLM_CF_FILES+= fr/text/faq
+EZMLM_CF_FILES+= fr/text/get-bad
+EZMLM_CF_FILES+= fr/text/help
+EZMLM_CF_FILES+= fr/text/info
+EZMLM_CF_FILES+= fr/text/messages
+EZMLM_CF_FILES+= fr/text/mod-help
+EZMLM_CF_FILES+= fr/text/mod-reject
+EZMLM_CF_FILES+= fr/text/mod-request
+EZMLM_CF_FILES+= fr/text/mod-sub
+EZMLM_CF_FILES+= fr/text/mod-sub-confirm
+EZMLM_CF_FILES+= fr/text/mod-timeout
+EZMLM_CF_FILES+= fr/text/mod-unsub-confirm
+EZMLM_CF_FILES+= fr/text/sub-bad
+EZMLM_CF_FILES+= fr/text/sub-confirm
+EZMLM_CF_FILES+= fr/text/sub-nop
+EZMLM_CF_FILES+= fr/text/sub-ok
+EZMLM_CF_FILES+= fr/text/top
+EZMLM_CF_FILES+= fr/text/trailer
+EZMLM_CF_FILES+= fr/text/unsub-bad
+EZMLM_CF_FILES+= fr/text/unsub-confirm
+EZMLM_CF_FILES+= fr/text/unsub-nop
+EZMLM_CF_FILES+= fr/text/unsub-ok
+EZMLM_CF_FILES+= hu/ezmlmrc
+EZMLM_CF_FILES+= hu/text/bottom
+EZMLM_CF_FILES+= hu/text/bounce-bottom
+EZMLM_CF_FILES+= hu/text/bounce-num
+EZMLM_CF_FILES+= hu/text/bounce-probe
+EZMLM_CF_FILES+= hu/text/bounce-warn
+EZMLM_CF_FILES+= hu/text/dig-bounce-num
+EZMLM_CF_FILES+= hu/text/digest
+EZMLM_CF_FILES+= hu/text/edit-do
+EZMLM_CF_FILES+= hu/text/edit-done
+EZMLM_CF_FILES+= hu/text/edit-list
+EZMLM_CF_FILES+= hu/text/faq
+EZMLM_CF_FILES+= hu/text/get-bad
+EZMLM_CF_FILES+= hu/text/help
+EZMLM_CF_FILES+= hu/text/info
+EZMLM_CF_FILES+= hu/text/messages
+EZMLM_CF_FILES+= hu/text/mod-help
+EZMLM_CF_FILES+= hu/text/mod-reject
+EZMLM_CF_FILES+= hu/text/mod-request
+EZMLM_CF_FILES+= hu/text/mod-sub
+EZMLM_CF_FILES+= hu/text/mod-sub-confirm
+EZMLM_CF_FILES+= hu/text/mod-timeout
+EZMLM_CF_FILES+= hu/text/mod-unsub-confirm
+EZMLM_CF_FILES+= hu/text/sub-bad
+EZMLM_CF_FILES+= hu/text/sub-confirm
+EZMLM_CF_FILES+= hu/text/sub-nop
+EZMLM_CF_FILES+= hu/text/sub-ok
+EZMLM_CF_FILES+= hu/text/top
+EZMLM_CF_FILES+= hu/text/trailer
+EZMLM_CF_FILES+= hu/text/unsub-bad
+EZMLM_CF_FILES+= hu/text/unsub-confirm
+EZMLM_CF_FILES+= hu/text/unsub-nop
+EZMLM_CF_FILES+= hu/text/unsub-ok
+EZMLM_CF_FILES+= id/ezmlmrc
+EZMLM_CF_FILES+= id/text/bottom
+EZMLM_CF_FILES+= id/text/bounce-bottom
+EZMLM_CF_FILES+= id/text/bounce-num
+EZMLM_CF_FILES+= id/text/bounce-probe
+EZMLM_CF_FILES+= id/text/bounce-warn
+EZMLM_CF_FILES+= id/text/dig-bounce-num
+EZMLM_CF_FILES+= id/text/digest
+EZMLM_CF_FILES+= id/text/edit-do
+EZMLM_CF_FILES+= id/text/edit-done
+EZMLM_CF_FILES+= id/text/edit-list
+EZMLM_CF_FILES+= id/text/faq
+EZMLM_CF_FILES+= id/text/get-bad
+EZMLM_CF_FILES+= id/text/help
+EZMLM_CF_FILES+= id/text/info
+EZMLM_CF_FILES+= id/text/messages
+EZMLM_CF_FILES+= id/text/mod-help
+EZMLM_CF_FILES+= id/text/mod-reject
+EZMLM_CF_FILES+= id/text/mod-request
+EZMLM_CF_FILES+= id/text/mod-sub
+EZMLM_CF_FILES+= id/text/mod-sub-confirm
+EZMLM_CF_FILES+= id/text/mod-timeout
+EZMLM_CF_FILES+= id/text/mod-unsub-confirm
+EZMLM_CF_FILES+= id/text/sub-bad
+EZMLM_CF_FILES+= id/text/sub-confirm
+EZMLM_CF_FILES+= id/text/sub-nop
+EZMLM_CF_FILES+= id/text/sub-ok
+EZMLM_CF_FILES+= id/text/top
+EZMLM_CF_FILES+= id/text/trailer
+EZMLM_CF_FILES+= id/text/unsub-bad
+EZMLM_CF_FILES+= id/text/unsub-confirm
+EZMLM_CF_FILES+= id/text/unsub-nop
+EZMLM_CF_FILES+= id/text/unsub-ok
+EZMLM_CF_FILES+= it/ezmlmrc
+EZMLM_CF_FILES+= it/text/bottom
+EZMLM_CF_FILES+= it/text/bounce-bottom
+EZMLM_CF_FILES+= it/text/bounce-num
+EZMLM_CF_FILES+= it/text/bounce-probe
+EZMLM_CF_FILES+= it/text/bounce-warn
+EZMLM_CF_FILES+= it/text/dig-bounce-num
+EZMLM_CF_FILES+= it/text/digest
+EZMLM_CF_FILES+= it/text/edit-do
+EZMLM_CF_FILES+= it/text/edit-done
+EZMLM_CF_FILES+= it/text/edit-list
+EZMLM_CF_FILES+= it/text/faq
+EZMLM_CF_FILES+= it/text/get-bad
+EZMLM_CF_FILES+= it/text/help
+EZMLM_CF_FILES+= it/text/info
+EZMLM_CF_FILES+= it/text/mod-help
+EZMLM_CF_FILES+= it/text/mod-reject
+EZMLM_CF_FILES+= it/text/mod-request
+EZMLM_CF_FILES+= it/text/mod-sub
+EZMLM_CF_FILES+= it/text/mod-sub-confirm
+EZMLM_CF_FILES+= it/text/mod-timeout
+EZMLM_CF_FILES+= it/text/mod-unsub-confirm
+EZMLM_CF_FILES+= it/text/post-confirm
+EZMLM_CF_FILES+= it/text/sub-bad
+EZMLM_CF_FILES+= it/text/sub-confirm
+EZMLM_CF_FILES+= it/text/sub-nop
+EZMLM_CF_FILES+= it/text/sub-ok
+EZMLM_CF_FILES+= it/text/top
+EZMLM_CF_FILES+= it/text/trailer
+EZMLM_CF_FILES+= it/text/unsub-bad
+EZMLM_CF_FILES+= it/text/unsub-confirm
+EZMLM_CF_FILES+= it/text/unsub-nop
+EZMLM_CF_FILES+= it/text/unsub-ok
+EZMLM_CF_FILES+= ja/ezmlmrc
+EZMLM_CF_FILES+= ja/text/bottom
+EZMLM_CF_FILES+= ja/text/bounce-bottom
+EZMLM_CF_FILES+= ja/text/bounce-num
+EZMLM_CF_FILES+= ja/text/bounce-probe
+EZMLM_CF_FILES+= ja/text/bounce-warn
+EZMLM_CF_FILES+= ja/text/dig-bounce-num
+EZMLM_CF_FILES+= ja/text/digest
+EZMLM_CF_FILES+= ja/text/edit-do
+EZMLM_CF_FILES+= ja/text/edit-done
+EZMLM_CF_FILES+= ja/text/edit-list
+EZMLM_CF_FILES+= ja/text/faq
+EZMLM_CF_FILES+= ja/text/get-bad
+EZMLM_CF_FILES+= ja/text/help
+EZMLM_CF_FILES+= ja/text/info
+EZMLM_CF_FILES+= ja/text/mod-help
+EZMLM_CF_FILES+= ja/text/mod-reject
+EZMLM_CF_FILES+= ja/text/mod-request
+EZMLM_CF_FILES+= ja/text/mod-sub
+EZMLM_CF_FILES+= ja/text/mod-sub-confirm
+EZMLM_CF_FILES+= ja/text/mod-timeout
+EZMLM_CF_FILES+= ja/text/mod-unsub-confirm
+EZMLM_CF_FILES+= ja/text/sub-bad
+EZMLM_CF_FILES+= ja/text/sub-confirm
+EZMLM_CF_FILES+= ja/text/sub-nop
+EZMLM_CF_FILES+= ja/text/sub-ok
+EZMLM_CF_FILES+= ja/text/top
+EZMLM_CF_FILES+= ja/text/trailer
+EZMLM_CF_FILES+= ja/text/unsub-bad
+EZMLM_CF_FILES+= ja/text/unsub-confirm
+EZMLM_CF_FILES+= ja/text/unsub-nop
+EZMLM_CF_FILES+= ja/text/unsub-ok
+EZMLM_CF_FILES+= nl/ezmlmrc
+EZMLM_CF_FILES+= nl/text/bottom
+EZMLM_CF_FILES+= nl/text/bounce-bottom
+EZMLM_CF_FILES+= nl/text/bounce-num
+EZMLM_CF_FILES+= nl/text/bounce-probe
+EZMLM_CF_FILES+= nl/text/bounce-warn
+EZMLM_CF_FILES+= nl/text/dig-bounce-num
+EZMLM_CF_FILES+= nl/text/digest
+EZMLM_CF_FILES+= nl/text/edit-do
+EZMLM_CF_FILES+= nl/text/edit-done
+EZMLM_CF_FILES+= nl/text/edit-list
+EZMLM_CF_FILES+= nl/text/faq
+EZMLM_CF_FILES+= nl/text/get-bad
+EZMLM_CF_FILES+= nl/text/help
+EZMLM_CF_FILES+= nl/text/info
+EZMLM_CF_FILES+= nl/text/messages
+EZMLM_CF_FILES+= nl/text/mod-help
+EZMLM_CF_FILES+= nl/text/mod-reject
+EZMLM_CF_FILES+= nl/text/mod-request
+EZMLM_CF_FILES+= nl/text/mod-sub
+EZMLM_CF_FILES+= nl/text/mod-sub-confirm
+EZMLM_CF_FILES+= nl/text/mod-timeout
+EZMLM_CF_FILES+= nl/text/mod-unsub-confirm
+EZMLM_CF_FILES+= nl/text/sub-bad
+EZMLM_CF_FILES+= nl/text/sub-confirm
+EZMLM_CF_FILES+= nl/text/sub-nop
+EZMLM_CF_FILES+= nl/text/sub-ok
+EZMLM_CF_FILES+= nl/text/top
+EZMLM_CF_FILES+= nl/text/trailer
+EZMLM_CF_FILES+= nl/text/unsub-bad
+EZMLM_CF_FILES+= nl/text/unsub-nop
+EZMLM_CF_FILES+= nl/text/unsub-ok
+EZMLM_CF_FILES+= pl/charset
+EZMLM_CF_FILES+= pl/ezmlmrc
+EZMLM_CF_FILES+= pl/text/bottom
+EZMLM_CF_FILES+= pl/text/bounce-bottom
+EZMLM_CF_FILES+= pl/text/bounce-num
+EZMLM_CF_FILES+= pl/text/bounce-probe
+EZMLM_CF_FILES+= pl/text/bounce-warn
+EZMLM_CF_FILES+= pl/text/dig-bounce-num
+EZMLM_CF_FILES+= pl/text/digest
+EZMLM_CF_FILES+= pl/text/edit-do
+EZMLM_CF_FILES+= pl/text/edit-done
+EZMLM_CF_FILES+= pl/text/edit-list
+EZMLM_CF_FILES+= pl/text/faq
+EZMLM_CF_FILES+= pl/text/get-bad
+EZMLM_CF_FILES+= pl/text/help
+EZMLM_CF_FILES+= pl/text/info
+EZMLM_CF_FILES+= pl/text/messages
+EZMLM_CF_FILES+= pl/text/mod-help
+EZMLM_CF_FILES+= pl/text/mod-reject
+EZMLM_CF_FILES+= pl/text/mod-request
+EZMLM_CF_FILES+= pl/text/mod-sub
+EZMLM_CF_FILES+= pl/text/mod-sub-confirm
+EZMLM_CF_FILES+= pl/text/mod-timeout
+EZMLM_CF_FILES+= pl/text/mod-unsub-confirm
+EZMLM_CF_FILES+= pl/text/sub-bad
+EZMLM_CF_FILES+= pl/text/sub-confirm
+EZMLM_CF_FILES+= pl/text/sub-nop
+EZMLM_CF_FILES+= pl/text/sub-ok
+EZMLM_CF_FILES+= pl/text/top
+EZMLM_CF_FILES+= pl/text/trailer
+EZMLM_CF_FILES+= pl/text/unsub-bad
+EZMLM_CF_FILES+= pl/text/unsub-confirm
+EZMLM_CF_FILES+= pl/text/unsub-nop
+EZMLM_CF_FILES+= pl/text/unsub-ok
+EZMLM_CF_FILES+= pt/charset
+EZMLM_CF_FILES+= pt/ezmlmrc
+EZMLM_CF_FILES+= pt/text/bottom
+EZMLM_CF_FILES+= pt/text/bounce-bottom
+EZMLM_CF_FILES+= pt/text/bounce-num
+EZMLM_CF_FILES+= pt/text/bounce-probe
+EZMLM_CF_FILES+= pt/text/bounce-warn
+EZMLM_CF_FILES+= pt/text/dig-bounce-num
+EZMLM_CF_FILES+= pt/text/digest
+EZMLM_CF_FILES+= pt/text/edit-do
+EZMLM_CF_FILES+= pt/text/edit-done
+EZMLM_CF_FILES+= pt/text/edit-list
+EZMLM_CF_FILES+= pt/text/faq
+EZMLM_CF_FILES+= pt/text/get-bad
+EZMLM_CF_FILES+= pt/text/help
+EZMLM_CF_FILES+= pt/text/info
+EZMLM_CF_FILES+= pt/text/messages
+EZMLM_CF_FILES+= pt/text/mod-help
+EZMLM_CF_FILES+= pt/text/mod-reject
+EZMLM_CF_FILES+= pt/text/mod-request
+EZMLM_CF_FILES+= pt/text/mod-sub
+EZMLM_CF_FILES+= pt/text/mod-sub-confirm
+EZMLM_CF_FILES+= pt/text/mod-timeout
+EZMLM_CF_FILES+= pt/text/mod-unsub-confirm
+EZMLM_CF_FILES+= pt/text/sub-bad
+EZMLM_CF_FILES+= pt/text/sub-confirm
+EZMLM_CF_FILES+= pt/text/sub-nop
+EZMLM_CF_FILES+= pt/text/sub-ok
+EZMLM_CF_FILES+= pt/text/top
+EZMLM_CF_FILES+= pt/text/trailer
+EZMLM_CF_FILES+= pt/text/unsub-bad
+EZMLM_CF_FILES+= pt/text/unsub-confirm
+EZMLM_CF_FILES+= pt/text/unsub-nop
+EZMLM_CF_FILES+= pt/text/unsub-ok
+EZMLM_CF_FILES+= pt_BR/charset
+EZMLM_CF_FILES+= pt_BR/ezmlmrc
+EZMLM_CF_FILES+= pt_BR/text/bottom
+EZMLM_CF_FILES+= pt_BR/text/bounce-bottom
+EZMLM_CF_FILES+= pt_BR/text/bounce-num
+EZMLM_CF_FILES+= pt_BR/text/bounce-probe
+EZMLM_CF_FILES+= pt_BR/text/bounce-warn
+EZMLM_CF_FILES+= pt_BR/text/dig-bounce-num
+EZMLM_CF_FILES+= pt_BR/text/digest
+EZMLM_CF_FILES+= pt_BR/text/edit-do
+EZMLM_CF_FILES+= pt_BR/text/edit-done
+EZMLM_CF_FILES+= pt_BR/text/edit-list
+EZMLM_CF_FILES+= pt_BR/text/faq
+EZMLM_CF_FILES+= pt_BR/text/get-bad
+EZMLM_CF_FILES+= pt_BR/text/help
+EZMLM_CF_FILES+= pt_BR/text/info
+EZMLM_CF_FILES+= pt_BR/text/messages
+EZMLM_CF_FILES+= pt_BR/text/mod-help
+EZMLM_CF_FILES+= pt_BR/text/mod-reject
+EZMLM_CF_FILES+= pt_BR/text/mod-request
+EZMLM_CF_FILES+= pt_BR/text/mod-sub
+EZMLM_CF_FILES+= pt_BR/text/mod-sub-confirm
+EZMLM_CF_FILES+= pt_BR/text/mod-timeout
+EZMLM_CF_FILES+= pt_BR/text/mod-unsub-confirm
+EZMLM_CF_FILES+= pt_BR/text/sub-bad
+EZMLM_CF_FILES+= pt_BR/text/sub-confirm
+EZMLM_CF_FILES+= pt_BR/text/sub-nop
+EZMLM_CF_FILES+= pt_BR/text/sub-ok
+EZMLM_CF_FILES+= pt_BR/text/top
+EZMLM_CF_FILES+= pt_BR/text/trailer
+EZMLM_CF_FILES+= pt_BR/text/unsub-bad
+EZMLM_CF_FILES+= pt_BR/text/unsub-confirm
+EZMLM_CF_FILES+= pt_BR/text/unsub-nop
+EZMLM_CF_FILES+= pt_BR/text/unsub-ok
+EZMLM_CF_FILES+= ru/charset
+EZMLM_CF_FILES+= ru/ezmlmrc
+EZMLM_CF_FILES+= ru/text/bottom
+EZMLM_CF_FILES+= ru/text/bounce-bottom
+EZMLM_CF_FILES+= ru/text/bounce-num
+EZMLM_CF_FILES+= ru/text/bounce-probe
+EZMLM_CF_FILES+= ru/text/bounce-warn
+EZMLM_CF_FILES+= ru/text/dig-bounce-num
+EZMLM_CF_FILES+= ru/text/digest
+EZMLM_CF_FILES+= ru/text/edit-do
+EZMLM_CF_FILES+= ru/text/edit-done
+EZMLM_CF_FILES+= ru/text/edit-list
+EZMLM_CF_FILES+= ru/text/faq
+EZMLM_CF_FILES+= ru/text/get-bad
+EZMLM_CF_FILES+= ru/text/help
+EZMLM_CF_FILES+= ru/text/info
+EZMLM_CF_FILES+= ru/text/mod-help
+EZMLM_CF_FILES+= ru/text/mod-reject
+EZMLM_CF_FILES+= ru/text/mod-request
+EZMLM_CF_FILES+= ru/text/mod-sub
+EZMLM_CF_FILES+= ru/text/mod-sub-confirm
+EZMLM_CF_FILES+= ru/text/mod-timeout
+EZMLM_CF_FILES+= ru/text/mod-unsub-confirm
+EZMLM_CF_FILES+= ru/text/sub-bad
+EZMLM_CF_FILES+= ru/text/sub-confirm
+EZMLM_CF_FILES+= ru/text/sub-nop
+EZMLM_CF_FILES+= ru/text/sub-ok
+EZMLM_CF_FILES+= ru/text/top
+EZMLM_CF_FILES+= ru/text/trailer
+EZMLM_CF_FILES+= ru/text/unsub-bad
+EZMLM_CF_FILES+= ru/text/unsub-confirm
+EZMLM_CF_FILES+= ru/text/unsub-nop
+EZMLM_CF_FILES+= ru/text/unsub-ok
+EZMLM_CF_FILES+= sv/ezmlmrc
+EZMLM_CF_FILES+= sv/text/bottom
+EZMLM_CF_FILES+= sv/text/bounce-bottom
+EZMLM_CF_FILES+= sv/text/bounce-num
+EZMLM_CF_FILES+= sv/text/bounce-probe
+EZMLM_CF_FILES+= sv/text/bounce-warn
+EZMLM_CF_FILES+= sv/text/dig-bounce-num
+EZMLM_CF_FILES+= sv/text/digest
+EZMLM_CF_FILES+= sv/text/edit-do
+EZMLM_CF_FILES+= sv/text/edit-done
+EZMLM_CF_FILES+= sv/text/edit-list
+EZMLM_CF_FILES+= sv/text/faq
+EZMLM_CF_FILES+= sv/text/get-bad
+EZMLM_CF_FILES+= sv/text/help
+EZMLM_CF_FILES+= sv/text/info
+EZMLM_CF_FILES+= sv/text/messages
+EZMLM_CF_FILES+= sv/text/mod-help
+EZMLM_CF_FILES+= sv/text/mod-reject
+EZMLM_CF_FILES+= sv/text/mod-request
+EZMLM_CF_FILES+= sv/text/mod-sub
+EZMLM_CF_FILES+= sv/text/mod-sub-confirm
+EZMLM_CF_FILES+= sv/text/mod-timeout
+EZMLM_CF_FILES+= sv/text/mod-unsub-confirm
+EZMLM_CF_FILES+= sv/text/sub-bad
+EZMLM_CF_FILES+= sv/text/sub-confirm
+EZMLM_CF_FILES+= sv/text/sub-nop
+EZMLM_CF_FILES+= sv/text/sub-ok
+EZMLM_CF_FILES+= sv/text/top
+EZMLM_CF_FILES+= sv/text/trailer
+EZMLM_CF_FILES+= sv/text/unsub-bad
+EZMLM_CF_FILES+= sv/text/unsub-confirm
+EZMLM_CF_FILES+= sv/text/unsub-nop
+EZMLM_CF_FILES+= sv/text/unsub-ok
diff --git a/mail/ezmlm-idx/distinfo b/mail/ezmlm-idx/distinfo
index c1e1374e71b..6281b240508 100644
--- a/mail/ezmlm-idx/distinfo
+++ b/mail/ezmlm-idx/distinfo
@@ -1,14 +1,13 @@
-$NetBSD: distinfo,v 1.20 2015/11/03 23:27:05 agc Exp $
+$NetBSD: distinfo,v 1.21 2017/05/25 20:41:27 schmonz Exp $
SHA1 (ezmlm-0.53.tar.gz) = 3a7b618737fed8b774bec69c272d70f4142c1e30
RMD160 (ezmlm-0.53.tar.gz) = 6d366de2d7028a984ba454f1bec9d2d9f495c88b
-SHA512 (ezmlm-0.53.tar.gz) = 0dc1c64168428c531dbf78ca99582de4d4193d10bb38e87d3ee8f33f78083dc696bfd0681e3f2f690d7aa78b55b1b91c4ea6900c109406063445104826ff6d94
Size (ezmlm-0.53.tar.gz) = 62693 bytes
-SHA1 (ezmlm-idx-0.444.tar.gz) = ef4225fc023e95c5b84aa48b417a68a0796cc72a
-RMD160 (ezmlm-idx-0.444.tar.gz) = 7af28d61c604123113e6718d263d7d207f09fd33
-SHA512 (ezmlm-idx-0.444.tar.gz) = 970f47125debf1ed6f07067382501a7f3bd14187303d695d66509b3c5dfa330b6294f9687106ad3a632b0e5b22d40200377fbaa3f85a11f055cfd028b1bf0e79
-Size (ezmlm-idx-0.444.tar.gz) = 615519 bytes
-SHA1 (patch-MAN) = 3761606533313dd503fe286898be1615a1dc5846
-SHA1 (patch-aa) = 1a30d5f859ed87723f2c32e33a3b96167c460446
-SHA1 (patch-ab) = a8f41d4fad49dca3e65a317e95bc54a1b530afe0
-SHA1 (patch-ac) = 7eac1ed22d76d38970385a8e213850ed7968f30b
+SHA1 (ezmlm-idx-7.2.2.tar.gz) = f24248551b20388cfc23d8474cd2114d0cefbf90
+RMD160 (ezmlm-idx-7.2.2.tar.gz) = 323b22e532651924231e1043dbfaaa2cb35d2afb
+Size (ezmlm-idx-7.2.2.tar.gz) = 742451 bytes
+SHA1 (patch-MAN) = 6a50aedaf61e4d15af74d36088a9963f1563afb2
+SHA1 (patch-ab) = 1529f149f8e67af611e40187d395a3e1294f51a8
+SHA1 (patch-ac) = 65cacc41eacc0de118b5f3bc7fadbaef8b6c7c82
+SHA1 (patch-ezmlm-dispatch.c) = 0543922ecef47c0de9f424a23f0bff61809bad1d
+SHA1 (patch-test-getconfopt.c) = 45ae841a73df56ea1bd029041f4ca2e5239bb35d
diff --git a/mail/ezmlm-idx/options.mk b/mail/ezmlm-idx/options.mk
index 2316d465e7f..675b32dd72b 100644
--- a/mail/ezmlm-idx/options.mk
+++ b/mail/ezmlm-idx/options.mk
@@ -1,29 +1,28 @@
-# $NetBSD: options.mk,v 1.8 2005/07/14 03:49:40 schmonz Exp $
+# $NetBSD: options.mk,v 1.9 2017/05/25 20:41:27 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ezmlm-idx
PKG_OPTIONS_OPTIONAL_GROUPS= database
-PKG_OPTIONS_GROUP.database= mysql pgsql
+PKG_OPTIONS_GROUP.database= mysql pgsql sqlite3
.include "../../mk/bsd.options.mk"
-###
-### MySQL support
-###
+PLIST_VARS+= mysql
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
-DJB_CONFIG_CMDS= \
- ${ECHO} ${CPPFLAGS} > sub_mysql/conf-sqlcc; \
- ${ECHO} ${LDFLAGS} -lmysqlclient > sub_mysql/conf-sqlld; \
- ${ECHO} mysql > conf-sub
+DJB_BUILD_TARGETS+= mysql
+PLIST.mysql= yes
.endif
-###
-### PostgreSQL support
-###
+PLIST_VARS+= pgsql
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
-DJB_CONFIG_CMDS= \
- ${ECHO} ${CPPFLAGS} > sub_pgsql/conf-sqlcc; \
- ${ECHO} ${LDFLAGS} -lpq > sub_pgsql/conf-sqlld; \
- ${ECHO} pgsql > conf-sub
+DJB_BUILD_TARGETS+= pgsql
+PLIST.pgsql= yes
+.endif
+
+PLIST_VARS+= sqlite3
+.if !empty(PKG_OPTIONS:Msqlite3)
+. include "../../databases/sqlite3/buildlink3.mk"
+DJB_BUILD_TARGETS+= sqlite3
+PLIST.sqlite3= yes
.endif
diff --git a/mail/ezmlm-idx/patches/patch-MAN b/mail/ezmlm-idx/patches/patch-MAN
index 1ece76d7a7a..51d2a74dd7f 100644
--- a/mail/ezmlm-idx/patches/patch-MAN
+++ b/mail/ezmlm-idx/patches/patch-MAN
@@ -1,15 +1,19 @@
-$NetBSD: patch-MAN,v 1.1 2012/03/12 04:32:11 joerg Exp $
+$NetBSD: patch-MAN,v 1.2 2017/05/25 20:41:27 schmonz Exp $
---- MAN.orig 2012-03-11 20:13:04.000000000 +0000
+Don't install catpages.
+
+--- MAN.orig 2014-05-09 22:28:13.000000000 +0000
+++ MAN
-@@ -34,37 +34,3 @@ c:::644:/man5/:ezmlm.5:
+@@ -37,40 +37,3 @@ c:::644:/man5/:ezmlm.5:
c:::644:/man5/:ezmlmglrc.5:
c:::644:/man5/:ezmlmrc.5:
c:::644:/man5/:ezmlmsubrc.5:
-d:::755:/cat1::
-c:::644:/cat1/:ezmlm-accept.0:
-c:::644:/cat1/:ezmlm-archive.0:
+-c:::644:/cat1/:ezmlm-cgi.0:
-c:::644:/cat1/:ezmlm-check.0:
+-c:::644:/cat1/:ezmlm-checksub.0:
-c:::644:/cat1/:ezmlm-clean.0:
-c:::644:/cat1/:ezmlm-confirm.0:
-c:::644:/cat1/:ezmlm-cron.0:
@@ -17,16 +21,17 @@ $NetBSD: patch-MAN,v 1.1 2012/03/12 04:32:11 joerg Exp $
-c:::644:/cat1/:ezmlm-get.0:
-c:::644:/cat1/:ezmlm-glconf.0:
-c:::644:/cat1/:ezmlm-idx.0:
+-c:::644:/cat1/:ezmlm-import.0:
-c:::644:/cat1/:ezmlm-issubn.0:
-c:::644:/cat1/:ezmlm-limit.0:
-c:::644:/cat1/:ezmlm-list.0:
-c:::644:/cat1/:ezmlm-make.0:
-c:::644:/cat1/:ezmlm-manage.0:
--c:::644:/cat1/:ezmlm-mktab.0:
-c:::644:/cat1/:ezmlm-moderate.0:
-c:::644:/cat1/:ezmlm-reject.0:
-c:::644:/cat1/:ezmlm-request.0:
-c:::644:/cat1/:ezmlm-return.0:
+-c:::644:/cat1/:ezmlm-rmtab.0:
-c:::644:/cat1/:ezmlm-send.0:
-c:::644:/cat1/:ezmlm-split.0:
-c:::644:/cat1/:ezmlm-store.0:
diff --git a/mail/ezmlm-idx/patches/patch-aa b/mail/ezmlm-idx/patches/patch-aa
deleted file mode 100644
index 1f6fe26d162..00000000000
--- a/mail/ezmlm-idx/patches/patch-aa
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.7 2006/12/29 06:21:06 schmonz Exp $
-
---- idx.h.orig 2006-11-23 14:12:30.000000000 -0500
-+++ idx.h
-@@ -255,7 +255,7 @@
- /* ezmlm-make looks first (unless the -c switch is specified) before */
- /* falling back to the (usually unchanged) version in the ezmlm bin */
- /* directory. */
--#define TXT_ETC_EZMLMRC "/etc/ezmlm/ezmlmrc"
-+#define TXT_ETC_EZMLMRC PKG_SYSCONFDIR "/ezmlmrc"
-
- /* same name added to auto_bin. Note leading slash! */
- #define TXT_EZMLMRC "/ezmlmrc"
-@@ -270,7 +270,7 @@
- #define TXT_LOOPNUM "loopnum"
-
- /* ezmlm-cgi config file for normal SUID root install */
--#define EZ_CGIRC "/etc/ezmlm/ezcgirc"
-+#define EZ_CGIRC PKG_SYSCONFDIR "/ezcgirc"
-
- /* ezmlm-cgi config file for local install we expect to find the file in PWD */
- #define EZ_CGIRC_LOC ".ezcgirc"
diff --git a/mail/ezmlm-idx/patches/patch-ab b/mail/ezmlm-idx/patches/patch-ab
index d9bfb188f0a..db8925d5d86 100644
--- a/mail/ezmlm-idx/patches/patch-ab
+++ b/mail/ezmlm-idx/patches/patch-ab
@@ -1,12 +1,13 @@
-$NetBSD: patch-ab,v 1.6 2005/07/12 10:58:09 schmonz Exp $
+$NetBSD: patch-ab,v 1.7 2017/05/25 20:41:27 schmonz Exp $
---- BIN.orig 2005-07-12 02:52:52.000000000 -0400
-+++ BIN
-@@ -1,7 +1,4 @@
+PKG_SYSCONFDIR and CONF_FILES support.
+
+--- ETC.orig 2014-05-09 22:28:12.000000000 +0000
++++ ETC
+@@ -1,6 +1,4 @@
d:::755:::
-c:::644:/:ezmlmglrc:
--c:::644:/:ezmlmrc:
-c:::644:/:ezmlmsubrc:
- c:::755:/:ezmlm-accept:
- c:::755:/:ezmlm-archive:
- c:::755:/:ezmlm-check:
+ d:::755:/ch_GB::
+ c:::644:/ch_GB/:ezmlmrc:lang/ch_GB/ezmlmrc
+ d:::755:/ch_GB/text::
diff --git a/mail/ezmlm-idx/patches/patch-ac b/mail/ezmlm-idx/patches/patch-ac
index 2173e99014e..b448365136d 100644
--- a/mail/ezmlm-idx/patches/patch-ac
+++ b/mail/ezmlm-idx/patches/patch-ac
@@ -1,17 +1,25 @@
-$NetBSD: patch-ac,v 1.8 2012/03/12 04:32:11 joerg Exp $
+$NetBSD: patch-ac,v 1.9 2017/05/25 20:41:27 schmonz Exp $
---- Makefile.orig 2006-11-23 19:12:29.000000000 +0000
+DESTDIR support.
+
+--- Makefile.orig 2014-05-15 02:54:21.000000000 +0000
+++ Makefile
-@@ -1095,9 +1095,9 @@ compile seek_set.c seek.h
- ./compile seek_set.c
+@@ -965,12 +965,12 @@ libcompile idxthread.c error.h alloc.h s
- setup: \
--it man install conf-bin conf-man BIN MAN
-- ./install "`head -n 1 conf-bin`" < BIN
-- ./install "`head -n 1 conf-man`" < MAN
-+it install conf-bin conf-man conf-destdir BIN MAN
-+ ./install "`head -1 conf-destdir``head -n 1 conf-bin`" < BIN
-+ ./install "`head -1 conf-destdir``head -n 1 conf-man`" < MAN
+ install: \
+ it man installer conf-bin conf-etc conf-lang conf-lib conf-man BIN ETC LIB MAN
+- ./installer "`head -n 1 conf-bin`" < BIN
+- ./installer "`head -n 1 conf-etc`" < ETC
+- ./installer "`head -n 1 conf-man`" < MAN
+- ./installer "`head -n 1 conf-lib`" < LIB
+- rm -f "`head -n 1 conf-etc`"/default
+- ln -sf "`head -n 1 conf-lang`" "`head -n 1 conf-etc`"/default
++ ./installer "`head -1 conf-destdir``head -n 1 conf-bin`" < BIN
++ ./installer "`head -1 conf-destdir``head -n 1 conf-egdir`" < ETC
++ ./installer "`head -1 conf-destdir``head -n 1 conf-man`" < MAN
++ ./installer "`head -1 conf-destdir``head -n 1 conf-lib`" < LIB
++ rm -f "`head -1 conf-destdir``head -n 1 conf-egdir`"/default
++ ln -sf "`head -n 1 conf-lang`" "`head -1 conf-destdir``head -n 1 conf-egdir`"/default
- sgetopt.0: \
- sgetopt.3
+ installer: \
+ load installer.o getln.a strerr.a substdio.a stralloc.a alloc.a open.a error.a str.a fs.a
diff --git a/mail/ezmlm-idx/patches/patch-ezmlm-dispatch.c b/mail/ezmlm-idx/patches/patch-ezmlm-dispatch.c
new file mode 100644
index 00000000000..7751aed3e01
--- /dev/null
+++ b/mail/ezmlm-idx/patches/patch-ezmlm-dispatch.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-ezmlm-dispatch.c,v 1.1 2017/05/25 20:41:27 schmonz Exp $
+
+Fix Illumos build.
+
+--- ezmlm-dispatch.c.orig 2014-05-15 02:54:21.000000000 +0000
++++ ezmlm-dispatch.c
+@@ -4,6 +4,7 @@
+ #include "env.h"
+ #include "sender.h"
+ #include "strerr.h"
++#include "sgetopt.h"
+ #include "getconfopt.h"
+ #include "substdio.h"
+ #include "subfd.h"
diff --git a/mail/ezmlm-idx/patches/patch-test-getconfopt.c b/mail/ezmlm-idx/patches/patch-test-getconfopt.c
new file mode 100644
index 00000000000..3ff685976f7
--- /dev/null
+++ b/mail/ezmlm-idx/patches/patch-test-getconfopt.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-test-getconfopt.c,v 1.1 2017/05/25 20:41:27 schmonz Exp $
+
+Fix Illumos build.
+
+--- test-getconfopt.c.orig 2014-05-15 02:54:21.000000000 +0000
++++ test-getconfopt.c
+@@ -1,6 +1,7 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include "fmt.h"
++#include "sgetopt.h"
+ #include "getconfopt.h"
+ #include "stralloc.h"
+ #include "substdio.h"