summaryrefslogtreecommitdiff
path: root/net-mail
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/Freemail/Freemail-9999-r1.ebuild51
-rw-r--r--net-mail/Freemail/Manifest5
-rw-r--r--net-mail/Freemail/files/build.patch68
-rw-r--r--net-mail/Freemail/metadata.xml8
-rw-r--r--net-mail/altermime/Manifest7
-rw-r--r--net-mail/altermime/altermime-0.3.11.ebuild28
-rw-r--r--net-mail/altermime/files/altermime-0.3.10-MIME_headers-overflow.patch13
-rw-r--r--net-mail/altermime/files/altermime-0.3.11-respect-flags.patch20
-rw-r--r--net-mail/altermime/metadata.xml8
-rw-r--r--net-mail/amavis-logwatch/Manifest12
-rw-r--r--net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild46
-rw-r--r--net-mail/amavis-logwatch/amavis-logwatch-1.51.03.ebuild36
-rw-r--r--net-mail/amavis-logwatch/files/file-libmagic-errors.patch35
-rw-r--r--net-mail/amavis-logwatch/files/ignore-amavis-startup-notifications.patch31
-rw-r--r--net-mail/amavis-logwatch/files/ignore-utf8smtp-lines.patch32
-rw-r--r--net-mail/amavis-logwatch/files/redundant-argument-to-sprintf.patch48
-rw-r--r--net-mail/amavis-logwatch/files/unchecked-encrypted.patch41
-rw-r--r--net-mail/amavis-logwatch/files/unescaped-left-brace.patch38
-rw-r--r--net-mail/amavis-logwatch/metadata.xml10
-rw-r--r--net-mail/archivemail/Manifest5
-rw-r--r--net-mail/archivemail/archivemail-0.9.0-r1.ebuild40
-rw-r--r--net-mail/archivemail/metadata.xml11
-rw-r--r--net-mail/asmail/Manifest7
-rw-r--r--net-mail/asmail/asmail-2.1-r1.ebuild53
-rw-r--r--net-mail/asmail/asmail-2.1.ebuild47
-rw-r--r--net-mail/asmail/files/asmail-2.1-ldflags.patch19
-rw-r--r--net-mail/asmail/metadata.xml8
-rw-r--r--net-mail/automx/Manifest6
-rw-r--r--net-mail/automx/automx-0.10.2-r1.ebuild61
-rw-r--r--net-mail/automx/automx-0.10.2-r2.ebuild62
-rw-r--r--net-mail/automx/metadata.xml16
-rw-r--r--net-mail/autorespond/Manifest9
-rw-r--r--net-mail/autorespond/autorespond-2.0.4.ebuild36
-rw-r--r--net-mail/autorespond/autorespond-2.0.5.ebuild38
-rw-r--r--net-mail/autorespond/files/autorespond-2.0.5-no-include-bounce.patch23
-rw-r--r--net-mail/autorespond/metadata.xml14
-rw-r--r--net-mail/bincimap/Manifest9
-rw-r--r--net-mail/bincimap/bincimap-1.2.13-r1.ebuild101
-rw-r--r--net-mail/bincimap/bincimap-1.2.13.ebuild98
-rw-r--r--net-mail/bincimap/files/bincimap-1.2-gcc43.patch64
-rw-r--r--net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff32
-rw-r--r--net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch12
-rw-r--r--net-mail/bincimap/metadata.xml11
-rw-r--r--net-mail/checkpassword-pam/Manifest5
-rw-r--r--net-mail/checkpassword-pam/checkpassword-pam-0.99.ebuild19
-rw-r--r--net-mail/checkpassword-pam/metadata.xml11
-rw-r--r--net-mail/checkpassword/Manifest9
-rw-r--r--net-mail/checkpassword/checkpassword-0.90-r2.ebuild35
-rw-r--r--net-mail/checkpassword/checkpassword-0.90-r3.ebuild37
-rw-r--r--net-mail/checkpassword/files/0.90-errno.patch11
-rw-r--r--net-mail/checkpassword/files/0.90-exit.patch10
-rw-r--r--net-mail/checkpassword/files/0.90-head-1.patch39
-rw-r--r--net-mail/checkpassword/metadata.xml12
-rw-r--r--net-mail/cmd5checkpw/Manifest8
-rw-r--r--net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild68
-rw-r--r--net-mail/cmd5checkpw/files/euid_030.diff49
-rw-r--r--net-mail/cmd5checkpw/files/poppasswd3
-rw-r--r--net-mail/cmd5checkpw/files/reloc.diff63
-rw-r--r--net-mail/cmd5checkpw/metadata.xml8
-rw-r--r--net-mail/courier-imap/Manifest33
-rw-r--r--net-mail/courier-imap/courier-imap-4.15-r2.ebuild229
-rw-r--r--net-mail/courier-imap/courier-imap-4.16.2-r1.ebuild221
-rw-r--r--net-mail/courier-imap/courier-imap-4.17.3.ebuild231
-rw-r--r--net-mail/courier-imap/files/courier-authdaemond-r1.service11
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd-ssl.rc640
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.indirect3
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc635
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d-ssl.rc640
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.indirect3
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.rc635
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd-ssl.rc31
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc32
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d-ssl.rc29
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d.rc30
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.15-aclocal-fix.patch10
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.15-db4-bdbobj_configure.ac.patch33
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.15-db4-configure.ac.patch33
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.15-disable-fam-configure.ac.patch23
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.17-aclocal-fix.patch12
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.17-db4-bdbobj_configure.ac.patch33
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.17-db4-configure.ac.patch33
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.17-disable-fam-configure.ac.patch27
-rw-r--r--net-mail/courier-imap/files/courier-imap-gentoo.readme75
-rw-r--r--net-mail/courier-imap/files/courier-imapd-r1.service14
-rw-r--r--net-mail/courier-imap/files/courier-imapd-ssl-r1.service14
-rw-r--r--net-mail/courier-imap/files/mkimapdcert39
-rw-r--r--net-mail/courier-imap/files/mkpop3dcert39
-rw-r--r--net-mail/courier-imap/metadata.xml11
-rw-r--r--net-mail/courierpassd/Manifest6
-rw-r--r--net-mail/courierpassd/courierpassd-1.1.2-r1.ebuild28
-rw-r--r--net-mail/courierpassd/files/courierpassd15
-rw-r--r--net-mail/courierpassd/metadata.xml8
-rw-r--r--net-mail/cyrus-imapd/Manifest25
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-2.5.10.ebuild177
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-2.5.11-r1.ebuild180
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild178
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-3.0.3-r1.ebuild216
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild215
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-3.0.4.ebuild220
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-db.patch81
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-fix-tests.patch21
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-libcap-libs.patch35
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch127
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs.patch43
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.conf41
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.confd5
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.pam-include6
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.rc622
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.rc722
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.rc834
-rw-r--r--net-mail/cyrus-imapd/files/imapd.conf50
-rw-r--r--net-mail/cyrus-imapd/metadata.xml20
-rw-r--r--net-mail/dbmail/Manifest12
-rw-r--r--net-mail/dbmail/dbmail-3.2.2.ebuild140
-rw-r--r--net-mail/dbmail/dbmail-3.2.3-r1.ebuild133
-rw-r--r--net-mail/dbmail/dbmail-3.2.3.ebuild140
-rw-r--r--net-mail/dbmail/files/dbmail-imapd.initd68
-rw-r--r--net-mail/dbmail/files/dbmail-lmtpd.initd68
-rw-r--r--net-mail/dbmail/files/dbmail-pop3d.initd68
-rw-r--r--net-mail/dbmail/files/dbmail-timsieved.initd68
-rw-r--r--net-mail/dbmail/metadata.xml16
-rw-r--r--net-mail/dot-forward/Manifest6
-rw-r--r--net-mail/dot-forward/dot-forward-0.71-r3.ebuild48
-rw-r--r--net-mail/dot-forward/files/0.71-errno.patch11
-rw-r--r--net-mail/dot-forward/metadata.xml8
-rw-r--r--net-mail/dovecot/Manifest21
-rw-r--r--net-mail/dovecot/dovecot-2.2.19.ebuild305
-rw-r--r--net-mail/dovecot/dovecot-2.2.29.1.ebuild307
-rw-r--r--net-mail/dovecot/dovecot-2.2.30.1.ebuild290
-rw-r--r--net-mail/dovecot/dovecot-2.2.30.2.ebuild290
-rw-r--r--net-mail/dovecot/dovecot-2.2.31.ebuild290
-rw-r--r--net-mail/dovecot/dovecot-2.2.32.ebuild290
-rw-r--r--net-mail/dovecot/files/dovecot-10-ssl.patch15
-rw-r--r--net-mail/dovecot/files/dovecot.init-r457
-rw-r--r--net-mail/dovecot/metadata.xml27
-rw-r--r--net-mail/email/Manifest11
-rw-r--r--net-mail/email/email-2.5.0.ebuild48
-rw-r--r--net-mail/email/email-3.0.5.ebuild54
-rw-r--r--net-mail/email/email-3.1.2.ebuild48
-rw-r--r--net-mail/email/email-3.1.3.ebuild24
-rw-r--r--net-mail/email/metadata.xml11
-rw-r--r--net-mail/eps/Manifest6
-rw-r--r--net-mail/eps/eps-1.7-r1.ebuild37
-rw-r--r--net-mail/eps/eps-1.7.ebuild37
-rw-r--r--net-mail/eps/metadata.xml9
-rw-r--r--net-mail/ezmlm-idx/Manifest10
-rw-r--r--net-mail/ezmlm-idx/ezmlm-idx-6.0.0.ebuild76
-rw-r--r--net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r1.ebuild61
-rw-r--r--net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r2.ebuild61
-rw-r--r--net-mail/ezmlm-idx/ezmlm-idx-7.0.0.ebuild61
-rw-r--r--net-mail/ezmlm-idx/metadata.xml8
-rw-r--r--net-mail/fastforward/Manifest6
-rw-r--r--net-mail/fastforward/fastforward-0.51-r1.ebuild43
-rw-r--r--net-mail/fastforward/files/0.51-errno.patch11
-rw-r--r--net-mail/fastforward/metadata.xml8
-rw-r--r--net-mail/fdm/Manifest9
-rw-r--r--net-mail/fdm/fdm-1.7.ebuild47
-rw-r--r--net-mail/fdm/fdm-1.8.ebuild48
-rw-r--r--net-mail/fdm/fdm-1.9.ebuild41
-rw-r--r--net-mail/fdm/metadata.xml15
-rw-r--r--net-mail/fetchmail/Manifest13
-rw-r--r--net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild99
-rw-r--r--net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild101
-rw-r--r--net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch14
-rw-r--r--net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch11
-rw-r--r--net-mail/fetchmail/files/fetchmail.conf1
-rw-r--r--net-mail/fetchmail/files/fetchmail.confd9
-rw-r--r--net-mail/fetchmail/files/fetchmail.initd44
-rw-r--r--net-mail/fetchmail/files/fetchmail.service11
-rw-r--r--net-mail/fetchmail/files/fetchmail_at.service11
-rw-r--r--net-mail/fetchmail/metadata.xml16
-rw-r--r--net-mail/gensig/Manifest5
-rw-r--r--net-mail/gensig/gensig-2.3.ebuild15
-rw-r--r--net-mail/gensig/metadata.xml8
-rw-r--r--net-mail/getmail/Manifest7
-rw-r--r--net-mail/getmail/getmail-4.54.0.ebuild24
-rw-r--r--net-mail/getmail/getmail-5.4.ebuild24
-rw-r--r--net-mail/getmail/metadata.xml8
-rw-r--r--net-mail/gnubiff/Manifest10
-rw-r--r--net-mail/gnubiff/files/gnubiff-2.2.15-fix-nls.patch14
-rw-r--r--net-mail/gnubiff/files/gnubiff-2.2.15-gold.patch17
-rw-r--r--net-mail/gnubiff/files/gnubiff-2.2.15-underlink.patch12
-rw-r--r--net-mail/gnubiff/gnubiff-2.2.15-r2.ebuild50
-rw-r--r--net-mail/gnubiff/gnubiff-2.2.17.ebuild50
-rw-r--r--net-mail/gnubiff/metadata.xml14
-rw-r--r--net-mail/grepmail/Manifest7
-rw-r--r--net-mail/grepmail/files/5.30.33-fix_nonexistent_mailbox_test.patch33
-rw-r--r--net-mail/grepmail/files/5.30.33-midnight.patch17
-rw-r--r--net-mail/grepmail/grepmail-5.30.33-r2.ebuild43
-rw-r--r--net-mail/grepmail/metadata.xml11
-rw-r--r--net-mail/hotwayd/Manifest6
-rw-r--r--net-mail/hotwayd/files/hotwayd.xinetd25
-rw-r--r--net-mail/hotwayd/hotwayd-0.8.4.ebuild73
-rw-r--r--net-mail/hotwayd/metadata.xml14
-rw-r--r--net-mail/imapsync/Manifest11
-rw-r--r--net-mail/imapsync/imapsync-1.592-r1.ebuild33
-rw-r--r--net-mail/imapsync/imapsync-1.607-r1.ebuild34
-rw-r--r--net-mail/imapsync/imapsync-1.644.ebuild34
-rw-r--r--net-mail/imapsync/imapsync-1.684.ebuild36
-rw-r--r--net-mail/imapsync/metadata.xml8
-rw-r--r--net-mail/isync/Manifest7
-rw-r--r--net-mail/isync/isync-1.2.1.ebuild31
-rw-r--r--net-mail/isync/isync-1.2.2.ebuild31
-rw-r--r--net-mail/isync/metadata.xml14
-rw-r--r--net-mail/kuvert/Manifest5
-rw-r--r--net-mail/kuvert/kuvert-2.0.4.ebuild43
-rw-r--r--net-mail/kuvert/metadata.xml8
-rw-r--r--net-mail/lbdb/Manifest9
-rw-r--r--net-mail/lbdb/lbdb-0.41.ebuild50
-rw-r--r--net-mail/lbdb/lbdb-0.42.1.ebuild50
-rw-r--r--net-mail/lbdb/lbdb-0.42.ebuild50
-rw-r--r--net-mail/lbdb/metadata.xml12
-rw-r--r--net-mail/libdbx/Manifest6
-rw-r--r--net-mail/libdbx/files/bad_c.patch41
-rw-r--r--net-mail/libdbx/libdbx-1.0.3.ebuild31
-rw-r--r--net-mail/libdbx/metadata.xml8
-rw-r--r--net-mail/libpst/Manifest9
-rw-r--r--net-mail/libpst/files/libpst-0.6.52-no-static-python-lib.patch11
-rw-r--r--net-mail/libpst/files/libpst-0.6.53-pkgconfig-static.patch8
-rw-r--r--net-mail/libpst/libpst-0.6.64-r1.ebuild63
-rw-r--r--net-mail/libpst/libpst-0.6.66-r1.ebuild63
-rw-r--r--net-mail/libpst/metadata.xml8
-rw-r--r--net-mail/list-remote-forwards/Manifest4
-rw-r--r--net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r1.ebuild41
-rw-r--r--net-mail/list-remote-forwards/metadata.xml142
-rw-r--r--net-mail/mailbase/Manifest9
-rw-r--r--net-mail/mailbase/files/aliases33
-rw-r--r--net-mail/mailbase/files/common-pamd7
-rw-r--r--net-mail/mailbase/files/common-pamd-include7
-rw-r--r--net-mail/mailbase/files/mailcap25
-rw-r--r--net-mail/mailbase/mailbase-1.1.ebuild69
-rw-r--r--net-mail/mailbase/mailbase-1.ebuild68
-rw-r--r--net-mail/mailbase/metadata.xml8
-rw-r--r--net-mail/mailbox-count/Manifest4
-rw-r--r--net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild34
-rw-r--r--net-mail/mailbox-count/metadata.xml144
-rw-r--r--net-mail/maildirtree/Manifest6
-rw-r--r--net-mail/maildirtree/files/maildirtree-0.6-ldflags.patch19
-rw-r--r--net-mail/maildirtree/maildirtree-0.6-r1.ebuild23
-rw-r--r--net-mail/maildirtree/metadata.xml11
-rw-r--r--net-mail/mailfront/Manifest13
-rw-r--r--net-mail/mailfront/files/run-pop3front9
-rw-r--r--net-mail/mailfront/files/run-smtpfront14
-rw-r--r--net-mail/mailfront/mailfront-0.88.ebuild69
-rw-r--r--net-mail/mailfront/mailfront-0.98.ebuild63
-rw-r--r--net-mail/mailfront/mailfront-1.12.ebuild63
-rw-r--r--net-mail/mailfront/mailfront-1.16.ebuild63
-rw-r--r--net-mail/mailfront/metadata.xml14
-rw-r--r--net-mail/mailgraph/Manifest8
-rw-r--r--net-mail/mailgraph/files/mailgraph.confd-new18
-rw-r--r--net-mail/mailgraph/files/mailgraph.initd-new35
-rw-r--r--net-mail/mailgraph/files/mailgraph.logrotate-new30
-rw-r--r--net-mail/mailgraph/mailgraph-1.14-r2.ebuild124
-rw-r--r--net-mail/mailgraph/metadata.xml8
-rw-r--r--net-mail/mailman/Manifest13
-rw-r--r--net-mail/mailman/files/50_mailman.conf-r218
-rw-r--r--net-mail/mailman/files/README.gentoo-r3181
-rw-r--r--net-mail/mailman/files/mailman-2.1.14_rc1-directory-check.patch19
-rw-r--r--net-mail/mailman/files/mailman-2.1.9-icons.patch12
-rw-r--r--net-mail/mailman/files/mailman.rc26
-rw-r--r--net-mail/mailman/files/mailman.service13
-rw-r--r--net-mail/mailman/mailman-2.1.23.ebuild167
-rw-r--r--net-mail/mailman/mailman-2.1.24.ebuild167
-rw-r--r--net-mail/mailman/metadata.xml14
-rw-r--r--net-mail/mailshears/Manifest4
-rw-r--r--net-mail/mailshears/mailshears-0.0.3.ebuild30
-rw-r--r--net-mail/mailshears/metadata.xml8
-rw-r--r--net-mail/mailsync/Manifest5
-rw-r--r--net-mail/mailsync/mailsync-5.2.1.ebuild18
-rw-r--r--net-mail/mailsync/metadata.xml11
-rw-r--r--net-mail/mailutils/Manifest21
-rw-r--r--net-mail/mailutils/files/comsatd.initd24
-rw-r--r--net-mail/mailutils/files/hdr.at36
-rw-r--r--net-mail/mailutils/files/imap4d.initd24
-rw-r--r--net-mail/mailutils/files/mail5
-rw-r--r--net-mail/mailutils/files/mailutils-2.99.98-array_bounds.patch11
-rw-r--r--net-mail/mailutils/files/mailutils-2.99.98-readline-6.3.patch39
-rw-r--r--net-mail/mailutils/files/mailutils-3.2-fix-build.patch70
-rw-r--r--net-mail/mailutils/files/mailutils.rc11
-rw-r--r--net-mail/mailutils/files/nohdr.at26
-rw-r--r--net-mail/mailutils/files/pop3d.initd24
-rw-r--r--net-mail/mailutils/files/twomsg.at73
-rw-r--r--net-mail/mailutils/files/weed.at29
-rw-r--r--net-mail/mailutils/mailutils-2.99.98-r1.ebuild127
-rw-r--r--net-mail/mailutils/mailutils-3.1.1.ebuild134
-rw-r--r--net-mail/mailutils/mailutils-3.2.ebuild135
-rw-r--r--net-mail/mailutils/metadata.xml14
-rw-r--r--net-mail/mairix/Manifest6
-rw-r--r--net-mail/mairix/mairix-0.23.ebuild49
-rw-r--r--net-mail/mairix/metadata.xml16
-rw-r--r--net-mail/mboxgrep/Manifest6
-rw-r--r--net-mail/mboxgrep/files/mboxgrep-0.7.9-ldflags.patch52
-rw-r--r--net-mail/mboxgrep/mboxgrep-0.7.9-r1.ebuild31
-rw-r--r--net-mail/mboxgrep/metadata.xml11
-rw-r--r--net-mail/mess822/Manifest6
-rw-r--r--net-mail/mess822/files/mess822-0.58-implicit.patch66
-rw-r--r--net-mail/mess822/mess822-0.58-r2.ebuild50
-rw-r--r--net-mail/mess822/metadata.xml8
-rw-r--r--net-mail/metadata.xml36
-rw-r--r--net-mail/metamail/Manifest8
-rw-r--r--net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch40
-rw-r--r--net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch30
-rw-r--r--net-mail/metamail/metadata.xml8
-rw-r--r--net-mail/metamail/metamail-2.7.53.3-r1.ebuild68
-rw-r--r--net-mail/mhonarc-gentoo/Manifest6
-rw-r--r--net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch197
-rw-r--r--net-mail/mhonarc-gentoo/metadata.xml5
-rw-r--r--net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild28
-rw-r--r--net-mail/mhonarc/Manifest5
-rw-r--r--net-mail/mhonarc/metadata.xml8
-rw-r--r--net-mail/mhonarc/mhonarc-2.6.18-r2.ebuild32
-rw-r--r--net-mail/mlmmj/Manifest11
-rw-r--r--net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch30
-rw-r--r--net-mail/mlmmj/metadata.xml8
-rw-r--r--net-mail/mlmmj/mlmmj-1.2.18.0.ebuild40
-rw-r--r--net-mail/mlmmj/mlmmj-1.2.18.1.ebuild40
-rw-r--r--net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild43
-rw-r--r--net-mail/mlmmj/mlmmj-1.2.19.0.ebuild40
-rw-r--r--net-mail/mpack/Manifest14
-rw-r--r--net-mail/mpack/files/mpack-1.6-clang.patch11
-rw-r--r--net-mail/mpack/files/mpack-1.6-compile.patch129
-rw-r--r--net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch28
-rw-r--r--net-mail/mpack/files/mpack-1.6-filenames.patch30
-rw-r--r--net-mail/mpack/files/mpack-1.6-gentoo.patch69
-rw-r--r--net-mail/mpack/files/mpack-1.6-munpack.patch55
-rw-r--r--net-mail/mpack/files/mpack-1.6-paths.patch95
-rw-r--r--net-mail/mpack/files/mpack-1.6-usage.patch25
-rw-r--r--net-mail/mpack/metadata.xml8
-rw-r--r--net-mail/mpack/mpack-1.6-r3.ebuild37
-rw-r--r--net-mail/mpack/mpack-1.6-r4.ebuild38
-rw-r--r--net-mail/mpop/Manifest9
-rw-r--r--net-mail/mpop/metadata.xml14
-rw-r--r--net-mail/mpop/mpop-1.2.4.ebuild51
-rw-r--r--net-mail/mpop/mpop-1.2.5.ebuild51
-rw-r--r--net-mail/mpop/mpop-1.2.6.ebuild51
-rw-r--r--net-mail/mswatch/Manifest7
-rw-r--r--net-mail/mswatch/files/mswatch-1.2.0-gcc47.patch26
-rw-r--r--net-mail/mswatch/files/mswatch-1.2.0-gcc6.patch12
-rw-r--r--net-mail/mswatch/metadata.xml11
-rw-r--r--net-mail/mswatch/mswatch-1.2.0-r1.ebuild39
-rw-r--r--net-mail/mu/Manifest18
-rw-r--r--net-mail/mu/files/70mu-gentoo.el3
-rw-r--r--net-mail/mu/metadata.xml22
-rw-r--r--net-mail/mu/mu-0.9.15-r1.ebuild85
-rw-r--r--net-mail/mu/mu-0.9.16.ebuild85
-rw-r--r--net-mail/mu/mu-0.9.18-r1.ebuild87
-rw-r--r--net-mail/mu/mu-0.9.9.5.ebuild85
-rw-r--r--net-mail/mu/mu-0.9.9.6.ebuild88
-rw-r--r--net-mail/mu/mu-0.9.9.ebuild94
-rw-r--r--net-mail/muchsync/Manifest6
-rw-r--r--net-mail/muchsync/metadata.xml15
-rw-r--r--net-mail/muchsync/muchsync-3.ebuild22
-rw-r--r--net-mail/muchsync/muchsync-4.ebuild22
-rw-r--r--net-mail/nmzmail/Manifest5
-rw-r--r--net-mail/nmzmail/metadata.xml8
-rw-r--r--net-mail/nmzmail/nmzmail-1.1.ebuild22
-rw-r--r--net-mail/notmuch/Manifest13
-rw-r--r--net-mail/notmuch/files/50notmuch-gentoo.el7
-rw-r--r--net-mail/notmuch/metadata.xml26
-rw-r--r--net-mail/notmuch/notmuch-0.23.7.ebuild200
-rw-r--r--net-mail/notmuch/notmuch-0.24.2.ebuild206
-rw-r--r--net-mail/notmuch/notmuch-0.25.1.ebuild206
-rw-r--r--net-mail/notmuch/notmuch-0.25.ebuild208
-rw-r--r--net-mail/offlineimap/Manifest19
-rw-r--r--net-mail/offlineimap/files/offlineimap-6.5.3.1-darwin10.patch10
-rw-r--r--net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch12
-rw-r--r--net-mail/offlineimap/metadata.xml14
-rw-r--r--net-mail/offlineimap/offlineimap-6.5.6.ebuild81
-rw-r--r--net-mail/offlineimap/offlineimap-6.7.0.3.ebuild57
-rw-r--r--net-mail/offlineimap/offlineimap-7.0.14.ebuild52
-rw-r--r--net-mail/offlineimap/offlineimap-7.1.0.ebuild52
-rw-r--r--net-mail/offlineimap/offlineimap-7.1.1.ebuild52
-rw-r--r--net-mail/offlineimap/offlineimap-7.1.2.ebuild52
-rw-r--r--net-mail/offlineimap/offlineimap-7.1.3.ebuild52
-rw-r--r--net-mail/peephole/Manifest6
-rw-r--r--net-mail/peephole/files/peephole-1.4-gcc4.patch14
-rw-r--r--net-mail/peephole/metadata.xml11
-rw-r--r--net-mail/peephole/peephole-1.5.ebuild33
-rw-r--r--net-mail/pflogsumm/Manifest5
-rw-r--r--net-mail/pflogsumm/metadata.xml8
-rw-r--r--net-mail/pflogsumm/pflogsumm-1.1.5.ebuild21
-rw-r--r--net-mail/pfqueue/Manifest6
-rw-r--r--net-mail/pfqueue/files/pfqueue-0.5.6-tinfo.patch10
-rw-r--r--net-mail/pfqueue/metadata.xml14
-rw-r--r--net-mail/pfqueue/pfqueue-0.5.6.ebuild34
-rw-r--r--net-mail/pop-before-smtp/Manifest6
-rw-r--r--net-mail/pop-before-smtp/files/pop-before-smtp.init28
-rw-r--r--net-mail/pop-before-smtp/metadata.xml11
-rw-r--r--net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild35
-rw-r--r--net-mail/pop2imap/Manifest7
-rw-r--r--net-mail/pop2imap/metadata.xml8
-rw-r--r--net-mail/pop2imap/pop2imap-1.18.ebuild26
-rw-r--r--net-mail/pop2imap/pop2imap-1.21.ebuild26
-rw-r--r--net-mail/popa3d/Manifest8
-rw-r--r--net-mail/popa3d/files/popa3d-initrc19
-rw-r--r--net-mail/popa3d/metadata.xml11
-rw-r--r--net-mail/popa3d/popa3d-1.0.2-r1.ebuild180
-rw-r--r--net-mail/popick/Manifest5
-rw-r--r--net-mail/popick/metadata.xml9
-rw-r--r--net-mail/popick/popick-0.1.ebuild34
-rw-r--r--net-mail/poppassd_ceti/Manifest7
-rw-r--r--net-mail/poppassd_ceti/files/poppassd.xinetd12
-rw-r--r--net-mail/poppassd_ceti/metadata.xml17
-rw-r--r--net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r1.ebuild45
-rw-r--r--net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r2.ebuild40
-rw-r--r--net-mail/postfix-logwatch/Manifest9
-rw-r--r--net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch38
-rw-r--r--net-mail/postfix-logwatch/files/redundant-argument-to-sprintf.patch48
-rw-r--r--net-mail/postfix-logwatch/files/unescaped-left-brace.patch37
-rw-r--r--net-mail/postfix-logwatch/metadata.xml10
-rw-r--r--net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild43
-rw-r--r--net-mail/postfix-logwatch/postfix-logwatch-1.40.03.ebuild36
-rw-r--r--net-mail/qlogtools/Manifest6
-rw-r--r--net-mail/qlogtools/files/qlogtools-3.1-errno.patch13
-rw-r--r--net-mail/qlogtools/metadata.xml12
-rw-r--r--net-mail/qlogtools/qlogtools-3.1.ebuild39
-rw-r--r--net-mail/qmail-autoresponder/Manifest7
-rw-r--r--net-mail/qmail-autoresponder/files/qmail-autoresponder-0.97-remove-mysql.h.diff8
-rw-r--r--net-mail/qmail-autoresponder/metadata.xml15
-rw-r--r--net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild57
-rw-r--r--net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r2.ebuild57
-rw-r--r--net-mail/qmail-lint/Manifest5
-rw-r--r--net-mail/qmail-lint/metadata.xml15
-rw-r--r--net-mail/qmail-lint/qmail-lint-0.55.ebuild29
-rw-r--r--net-mail/qmail-notify/Manifest6
-rw-r--r--net-mail/qmail-notify/files/qmail-notify.cron6
-rw-r--r--net-mail/qmail-notify/metadata.xml8
-rw-r--r--net-mail/qmail-notify/qmail-notify-0.93-r1.ebuild43
-rw-r--r--net-mail/qmail-qfilter/Manifest6
-rw-r--r--net-mail/qmail-qfilter/metadata.xml13
-rw-r--r--net-mail/qmail-qfilter/qmail-qfilter-2.1-r1.ebuild41
-rw-r--r--net-mail/qmail-qfilter/qmail-qfilter-2.1.ebuild40
-rw-r--r--net-mail/qmail-qsanity/Manifest5
-rw-r--r--net-mail/qmail-qsanity/metadata.xml17
-rw-r--r--net-mail/qmail-qsanity/qmail-qsanity-0.52.ebuild29
-rw-r--r--net-mail/qmailadmin/Manifest15
-rw-r--r--net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch118
-rw-r--r--net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch41
-rw-r--r--net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch11
-rw-r--r--net-mail/qmailadmin/metadata.xml17
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.10.ebuild94
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.12.ebuild85
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild90
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.15.ebuild94
-rw-r--r--net-mail/qmailadmin/qmailadmin-1.2.16.ebuild98
-rw-r--r--net-mail/qmailanalog/Manifest7
-rw-r--r--net-mail/qmailanalog/files/0.70-errno.patch11
-rw-r--r--net-mail/qmailanalog/files/tai64nfrac.c66
-rw-r--r--net-mail/qmailanalog/metadata.xml12
-rw-r--r--net-mail/qmailanalog/qmailanalog-0.70-r1.ebuild46
-rw-r--r--net-mail/qmhandle/Manifest8
-rw-r--r--net-mail/qmhandle/files/qmHandle-gentoo-svc.patch17
-rw-r--r--net-mail/qmhandle/metadata.xml20
-rw-r--r--net-mail/qmhandle/qmhandle-1.2.0-r1.ebuild32
-rw-r--r--net-mail/qmhandle/qmhandle-1.3.2.ebuild33
-rw-r--r--net-mail/qmrtg/Manifest8
-rw-r--r--net-mail/qmrtg/files/mrtg.cfg.patch83
-rw-r--r--net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch11
-rw-r--r--net-mail/qmrtg/files/qmrtg.conf.sample.patch20
-rw-r--r--net-mail/qmrtg/metadata.xml8
-rw-r--r--net-mail/qmrtg/qmrtg-2.1-r1.ebuild52
-rw-r--r--net-mail/qpopper/Manifest9
-rw-r--r--net-mail/qpopper/files/qpopper-4.1-parallel-build.patch13
-rw-r--r--net-mail/qpopper/files/qpopper.conf679
-rw-r--r--net-mail/qpopper/files/qpopper.init.d20
-rw-r--r--net-mail/qpopper/files/qpopper.xinetd16
-rw-r--r--net-mail/qpopper/metadata.xml13
-rw-r--r--net-mail/qpopper/qpopper-4.1.0.ebuild123
-rw-r--r--net-mail/qprint/Manifest7
-rw-r--r--net-mail/qprint/metadata.xml9
-rw-r--r--net-mail/qprint/qprint-1.0.ebuild25
-rw-r--r--net-mail/qprint/qprint-1.1.ebuild20
-rw-r--r--net-mail/qtools/Manifest7
-rw-r--r--net-mail/qtools/files/qtools-0.56-errno.patch12
-rw-r--r--net-mail/qtools/files/qtools-0.56-head.patch76
-rw-r--r--net-mail/qtools/metadata.xml12
-rw-r--r--net-mail/qtools/qtools-0.56.ebuild40
-rw-r--r--net-mail/queue-fix/Manifest6
-rw-r--r--net-mail/queue-fix/metadata.xml17
-rw-r--r--net-mail/queue-fix/queue-fix-1.4-r2.ebuild36
-rw-r--r--net-mail/queue-repair/Manifest6
-rw-r--r--net-mail/queue-repair/metadata.xml14
-rw-r--r--net-mail/queue-repair/queue-repair-0.9.0-r1.ebuild29
-rw-r--r--net-mail/queue-repair/queue-repair-0.9.0.ebuild24
-rw-r--r--net-mail/randomsig/Manifest5
-rw-r--r--net-mail/randomsig/metadata.xml8
-rw-r--r--net-mail/randomsig/randomsig-1.10.0.ebuild35
-rw-r--r--net-mail/relay-ctrl/Manifest6
-rw-r--r--net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff28
-rw-r--r--net-mail/relay-ctrl/metadata.xml12
-rw-r--r--net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild65
-rw-r--r--net-mail/renattach/Manifest5
-rw-r--r--net-mail/renattach/metadata.xml5
-rw-r--r--net-mail/renattach/renattach-1.2.4-r1.ebuild21
-rw-r--r--net-mail/ripmime/Manifest7
-rw-r--r--net-mail/ripmime/files/ripmime-1.4.0.9-buffer-overflow.patch11
-rw-r--r--net-mail/ripmime/files/ripmime-1.4.0.9-makefile.patch79
-rw-r--r--net-mail/ripmime/metadata.xml8
-rw-r--r--net-mail/ripmime/ripmime-1.4.0.10.ebuild44
-rw-r--r--net-mail/ripole/Manifest8
-rw-r--r--net-mail/ripole/files/ripole-0.2.0-ldflags.patch19
-rw-r--r--net-mail/ripole/metadata.xml12
-rw-r--r--net-mail/ripole/ripole-0.2.1.ebuild28
-rw-r--r--net-mail/ripole/ripole-0.2.2.ebuild28
-rw-r--r--net-mail/rss2email/Manifest7
-rw-r--r--net-mail/rss2email/files/rss2email-2.69-config-location.patch16
-rw-r--r--net-mail/rss2email/metadata.xml17
-rw-r--r--net-mail/rss2email/rss2email-2.71-r1.ebuild68
-rw-r--r--net-mail/safecat/Manifest7
-rw-r--r--net-mail/safecat/files/safecat-1.11-gentoo.patch9
-rw-r--r--net-mail/safecat/files/safecat-1.13-makefile.patch20
-rw-r--r--net-mail/safecat/metadata.xml12
-rw-r--r--net-mail/safecat/safecat-1.13.ebuild52
-rw-r--r--net-mail/sendEmail/Manifest8
-rw-r--r--net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch11
-rw-r--r--net-mail/sendEmail/files/1.56-overzealous-version-check.patch11
-rw-r--r--net-mail/sendEmail/metadata.xml14
-rw-r--r--net-mail/sendEmail/sendEmail-1.56-r1.ebuild28
-rw-r--r--net-mail/sendEmail/sendEmail-1.56-r2.ebuild29
-rw-r--r--net-mail/serialmail/Manifest7
-rw-r--r--net-mail/serialmail/files/serialmail-0.75-implicit.patch42
-rw-r--r--net-mail/serialmail/metadata.xml8
-rw-r--r--net-mail/serialmail/serialmail-0.75-r4.ebuild49
-rw-r--r--net-mail/signify/Manifest5
-rw-r--r--net-mail/signify/metadata.xml8
-rw-r--r--net-mail/signify/signify-1.14.ebuild33
-rw-r--r--net-mail/smtptools/Manifest7
-rw-r--r--net-mail/smtptools/files/smtptools-0.2.3-autotools.patch120
-rw-r--r--net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch61
-rw-r--r--net-mail/smtptools/metadata.xml8
-rw-r--r--net-mail/smtptools/smtptools-0.2.3.ebuild26
-rw-r--r--net-mail/spamcup/Manifest5
-rw-r--r--net-mail/spamcup/metadata.xml11
-rw-r--r--net-mail/spamcup/spamcup-1.09.ebuild24
-rw-r--r--net-mail/swaks/Manifest6
-rw-r--r--net-mail/swaks/files/swaks-perl-5.18.patch106
-rw-r--r--net-mail/swaks/metadata.xml9
-rw-r--r--net-mail/swaks/swaks-20130209.0-r1.ebuild41
-rw-r--r--net-mail/t-prot/Manifest5
-rw-r--r--net-mail/t-prot/metadata.xml23
-rw-r--r--net-mail/t-prot/t-prot-3.4.ebuild24
-rw-r--r--net-mail/tnef/Manifest7
-rw-r--r--net-mail/tnef/metadata.xml11
-rw-r--r--net-mail/tnef/tnef-1.4.14.ebuild22
-rw-r--r--net-mail/tnef/tnef-1.4.15.ebuild23
-rw-r--r--net-mail/tpop3d/Manifest7
-rw-r--r--net-mail/tpop3d/files/tpop3d-1.5.4-gold.patch20
-rw-r--r--net-mail/tpop3d/files/tpop3d-1.5.4.init29
-rw-r--r--net-mail/tpop3d/metadata.xml16
-rw-r--r--net-mail/tpop3d/tpop3d-1.5.5.ebuild96
-rw-r--r--net-mail/up-imapproxy/Manifest10
-rw-r--r--net-mail/up-imapproxy/files/imapproxy.initd20
-rw-r--r--net-mail/up-imapproxy/files/imapproxyd.864
-rw-r--r--net-mail/up-imapproxy/files/pimpstat.827
-rw-r--r--net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch19
-rw-r--r--net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch20
-rw-r--r--net-mail/up-imapproxy/metadata.xml11
-rw-r--r--net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild65
-rw-r--r--net-mail/uw-imap/Manifest13
-rw-r--r--net-mail/uw-imap/files/uw-imap-2004c-amd64-so-fix.patch13
-rw-r--r--net-mail/uw-imap/files/uw-imap-ldflags.patch52
-rw-r--r--net-mail/uw-imap/files/uw-imap.xinetd14
-rw-r--r--net-mail/uw-imap/files/uw-imaps.xinetd15
-rw-r--r--net-mail/uw-imap/files/uw-ipop2.xinetd15
-rw-r--r--net-mail/uw-imap/files/uw-ipop3.xinetd14
-rw-r--r--net-mail/uw-imap/files/uw-ipop3s.xinetd14
-rw-r--r--net-mail/uw-imap/metadata.xml11
-rw-r--r--net-mail/uw-imap/uw-imap-2007f-r1.ebuild161
-rw-r--r--net-mail/uw-imap/uw-imap-2007f.ebuild157
-rw-r--r--net-mail/uw-mailutils/Manifest7
-rw-r--r--net-mail/uw-mailutils/files/uw-mailutils-2004g.patch38
-rw-r--r--net-mail/uw-mailutils/files/uw-mailutils-ssl.patch13
-rw-r--r--net-mail/uw-mailutils/metadata.xml11
-rw-r--r--net-mail/uw-mailutils/uw-mailutils-2007f.ebuild53
-rw-r--r--net-mail/vacation/Manifest5
-rw-r--r--net-mail/vacation/metadata.xml8
-rw-r--r--net-mail/vacation/vacation-1.2.7.0.ebuild36
-rw-r--r--net-mail/vchkuser/Manifest5
-rw-r--r--net-mail/vchkuser/metadata.xml14
-rw-r--r--net-mail/vchkuser/vchkuser-0.4.ebuild40
-rw-r--r--net-mail/vpopmail/Manifest12
-rw-r--r--net-mail/vpopmail/files/99vpopmail2
-rw-r--r--net-mail/vpopmail/files/vpopmail-5.4.9-access.violation.patch27
-rw-r--r--net-mail/vpopmail/files/vpopmail-Maildir-dotmaildir-fix.sh42
-rw-r--r--net-mail/vpopmail/files/vpopmail-double-free.patch13
-rw-r--r--net-mail/vpopmail/files/vpopmail-lazy.patch10
-rw-r--r--net-mail/vpopmail/files/vpopmail-vpgsql.patch94
-rw-r--r--net-mail/vpopmail/metadata.xml20
-rw-r--r--net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild251
-rw-r--r--net-mail/vpopmail/vpopmail-5.4.33.ebuild240
-rw-r--r--net-mail/vqadmin/Manifest6
-rw-r--r--net-mail/vqadmin/files/postinstall-en.txt12
-rw-r--r--net-mail/vqadmin/metadata.xml11
-rw-r--r--net-mail/vqadmin/vqadmin-2.3.7.ebuild63
-rw-r--r--net-mail/yosucker/Manifest7
-rw-r--r--net-mail/yosucker/metadata.xml14
-rw-r--r--net-mail/yosucker/yosucker-73.ebuild43
-rw-r--r--net-mail/yosucker/yosucker-77.ebuild39
-rw-r--r--net-mail/ytnef/Manifest3
-rw-r--r--net-mail/ytnef/metadata.xml11
-rw-r--r--net-mail/ytnef/ytnef-1.9.2.ebuild21
601 files changed, 23545 insertions, 0 deletions
diff --git a/net-mail/Freemail/Freemail-9999-r1.ebuild b/net-mail/Freemail/Freemail-9999-r1.ebuild
new file mode 100644
index 000000000000..5220b68419a4
--- /dev/null
+++ b/net-mail/Freemail/Freemail-9999-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+EGIT_REPO_URI="https://github.com/freenet/plugin-Freemail-official.git"
+EGIT_PROJECT="Freemail/official"
+EANT_BUILD_TARGET="dist"
+inherit eutils git-2 java-pkg-2 java-ant-2
+
+DESCRIPTION="Anonymous IMAP/SMTP e-mail server over Freenet"
+HOMEPAGE="https://github.com/freenet/plugin-Freemail"
+SRC_URI=""
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+CDEPEND="dev-java/bcprov:1.38
+ net-p2p/freenet"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+
+EANT_GENTOO_CLASSPATH="bcprov freenet"
+
+src_prepare() {
+ epatch "${FILESDIR}"/build.patch
+ java-ant_rewrite-classpath
+}
+
+src_install() {
+ java-pkg_dojar dist/"${PN}.jar"
+ dodir /var/freenet/plugins
+ fperms freenet:freenet /var/freenet/plugins
+ dodoc README || die "installation of documentation failed"
+}
+
+pkg_postinst () {
+ #force chmod for previously existing plugins dir owned by root
+ [[ $(stat --format="%U" /var/freenet/plugins) == "freenet" ]] || chown \
+ freenet:freenet /var/freenet/plugins
+ elog "To load Freemail, go to the plugin page of freenet and enter at"
+ elog "Plugin-URL: /usr/share/Freemail/lib/Freemail.jar"
+ elog " This should load the Freemail plugin."
+ elog "Set your email client to IMAP port 3143 and SMTP port 3025 on localhost."
+ elog "To bind freemail to different ports, or to a different freenet node, edit"
+ elog "/var/freenet/globalconfig."
+}
diff --git a/net-mail/Freemail/Manifest b/net-mail/Freemail/Manifest
new file mode 100644
index 000000000000..515f13a4f198
--- /dev/null
+++ b/net-mail/Freemail/Manifest
@@ -0,0 +1,5 @@
+AUX build.patch 2909 SHA256 11d42fda202e3dfe138fcbd9ed56465418dc480860d90cf96f5c00e85a61a72b SHA512 e1e1a30956d67ab97c0a4bedcbbb931184ca215f1f7843708855ef0da14aabcea841bbbc1a36d76673522059c6ec2865d958ce78027d62f8ed0a942957f5ed0b WHIRLPOOL 5411dfb40fc712a03d99c845ddfcb0318b246ac96730bd0cdb5ef2fe78f6ea1a0cba05c0b0e787d45f849dff5ad1f600b4ec819ff51b93d5f3cc5eb7fdec3b82
+EBUILD Freemail-9999-r1.ebuild 1473 SHA256 e7a7b06faeb23488ef62f61b23efac1cde24033a592f0bb2c89b66fd9b046149 SHA512 480b187b09f35f0888b815f103c11c56a6583f6424f32a245aad686a9deaf8a0fec332f5b9f5d6effeee42faf92c074df568032c1975ebdf39575de39cea5c27 WHIRLPOOL 9b83e0ad941d33395cb3163e0442dfd29278676c18038573678f40d7cda6af29f39887da693fda866f04016161fe618917e671997835ddac1f224e73b2495e8d
+MISC ChangeLog 2861 SHA256 32864ac87360fad6539bf682ddbf32707099f987ae8a96a9cfab49e11a0e27bb SHA512 0d63cb0145243a770c8e8684dce7b690e10fbaa5265a2aecb37d622508460beca7469234b7b5f1c061dac2f93c791c59696956aaeccf61dc41fc9b0d1cf2ca86 WHIRLPOOL 5a87d5616ee56d29c2393549bc2c57bbad3f021d7f6c816c330577d1197688da1854afa6d1a0fb51297c3480f438e1f224cf6fe2c3494e15923515d4b045937b
+MISC ChangeLog-2015 1253 SHA256 65a628e3cebdee63984483b5407495145701dc89a4c3298c08bf33dbe292264a SHA512 d28f4a7bf47eb720ff8b5e832728ab6a8562a119aa947306cac203fe819fdf365e8ac43ef5a51dcc90cd52a1b7781bb456194dbe8e1ed2c9b42dac7e3b5479fa WHIRLPOOL ee7efedf75d002be83c70814be13e3a21e45f26c625a2feef6c186e8f3a152ef2df019354dfc29956d4cbee19dd15fa887dd0093f7661aac525a3599f9e83118
+MISC metadata.xml 256 SHA256 b1fcbeb75e9059c70100ccf278d492d9d2678ba93411e576ae760b3f308675cb SHA512 26e53ead25d8fef36a3759518b200c6a4ea0fc24d2c1f054ed85772cba5644118b231438d723ca25c22a55ed2fcf54e2c467279c9f3b49b6c1ced9997e3f098c WHIRLPOOL 25a36b6972f88def1dae7e912650b8fe3a0383d551c4a57967e1b8f80cde478e680e30c034f0481366f2da1d38a10e092ab4392902fa1b7f93cd801bb3f46dfa
diff --git a/net-mail/Freemail/files/build.patch b/net-mail/Freemail/files/build.patch
new file mode 100644
index 000000000000..3fef282f74ad
--- /dev/null
+++ b/net-mail/Freemail/files/build.patch
@@ -0,0 +1,68 @@
+--- build.xml 2009-06-26 16:46:58.829728329 +0200
++++ build.xml.new 2009-06-26 16:48:44.654930593 +0200
+@@ -5,64 +5,7 @@
+ <property name="build" location="build"/>
+ <property name="lib" location="lib"/>
+ <property name="dist" location="dist"/>
+- <property name="deps" location="deps"/>
+-
+- <property name="bcdist" value="lcrypto-jdk14-138"/>
+- <property name="freenetjarurl.url" value="http://downloads.freenetproject.org/alpha/freenet-testing-latest.jar.url"/>
+- <property name="freenetjarurl.localpath" value="${deps}/freenet-testing-latest.jar.url"/>
+- <property name="freenetjar" value="freenet-main.jar"/>
+-
+- <target name="freenetjar-check">
+- <available file="${deps}/${freenetjar}" property="freenetjar.present" />
+- </target>
+-
+- <!-- Fetching the Freenet jar here is far from optimal:
+- Ideally we'd compile against a the freenet jar or class files
+- which the user almost certainly has on their computer already.
+- Unfortunately about the only sensible way of doing this would
+- be with Maven2, and both Freenet and Freemail import code from
+- other projects which would make things difficult and/or ugly.
+- -->
+- <target name="freenetjar-fetch" depends="freenetjar-check" unless="freenetjar.present">
+- <echo>
+- Attempting to fetch Freenet main jar - ant cannot do this reliably, so if it fails, delete ${deps}/${freenetjar} and ${freenetjarurl.localpath} and run ant again.
+- </echo>
+- <mkdir dir="${deps}" />
+- <!-- loadresource directly from an HTTP URL is causing problems -->
+- <get src="${freenetjarurl.url}"
+- dest="${freenetjarurl.localpath}" />
+- <loadfile property="freenetjar.url"
+- srcFile="${freenetjarurl.localpath}" />
+- <get src="${freenetjar.url}"
+- dest="${deps}/${freenetjar}"
+- verbose="true" />
+- </target>
+-
+- <target name="bouncycastle-check">
+- <available file="${deps}/${bcdist}" property="bouncycastle-dist.present" />
+- <available file="${build}/org/bouncycastle" property="bouncycastle-bin.present" />
+- </target>
+-
+- <target name="bouncycastle-fetch" depends="bouncycastle-check" unless="bouncycastle-dist.present">
+- <mkdir dir="${deps}" />
+- <get src="http://www.bouncycastle.org/download/${bcdist}.zip"
+- dest="${deps}/${bcdist}.zip"
+- verbose="true"
+- usetimestamp="true" />
+-
+- <unzip src="${deps}/${bcdist}.zip" dest="${deps}" />
+- </target>
+-
+- <target name="bouncycastle-compile" depends="bouncycastle-fetch" unless="bouncycastle-bin.present">
+- <mkdir dir="build" />
+- <javac srcdir="${deps}/${bcdist}/src" destdir="${build}" debug="on" optimize="on" source="1.4" nowarn="true">
+- <exclude name="**/test/*" />
+- <exclude name="org/bouncycastle/util/IPTest.java" />
+- <exclude name="org/bouncycastle/util/AllTests.java" />
+- </javac>
+- </target>
+-
+- <target name="compile" depends="bouncycastle-compile, freenetjar-fetch">
++ <target name="compile">
+ <mkdir dir="${build}"/>
+
+ <tstamp/>
diff --git a/net-mail/Freemail/metadata.xml b/net-mail/Freemail/metadata.xml
new file mode 100644
index 000000000000..3800f75787af
--- /dev/null
+++ b/net-mail/Freemail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tommy@gentoo.org</email>
+ <name>Thomas Sachau (Tommy[D])</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/altermime/Manifest b/net-mail/altermime/Manifest
new file mode 100644
index 000000000000..db6fb56711d8
--- /dev/null
+++ b/net-mail/altermime/Manifest
@@ -0,0 +1,7 @@
+AUX altermime-0.3.10-MIME_headers-overflow.patch 517 SHA256 268b72a52512f8537e3ef2518ebea4626ba1317aeac900feca5f51ef184f3104 SHA512 4123acf331afb19b4b4591edd2ac2f28ce81a7b5956928905153d2eef1293ca292f3768e0c547bbe55cc5d45750ef6df4dacbe56b1afef65968e613e27adc23d WHIRLPOOL 2022c384b90e49779f63885f86cfed859f5e784b02ee46b0fe90a2d1121b6959d79e3fdf896a0c36ef8b94a9e29ffc5f8ffb570dcc046398a573c1fa2ddb07ee
+AUX altermime-0.3.11-respect-flags.patch 606 SHA256 462a358d1a6317eb0a1239b83d0214b5b4419e6df159e66134891f486b4e691b SHA512 d3160df483a57d7fad6070d4270d2741273a738e1afad3e8fa95d1c8af990ca304bfe4ad43f162799aa82b2162d88aaebad3285eada29a2fc118c595a771fa4a WHIRLPOOL 03028f4908f7dbfd464f4bbd93b68cd7a903327ed1f4e6ba3b89bd12f832100773870a1cb4e9afc71184f65bd76389489b151fe8bab884efc9e560cbe32bda9b
+DIST altermime-0.3.11.tar.gz 90244 SHA256 0b1f18de400f3c30c2fef7f691f68a2fd3688a7e243d9fda8623fc5c207b2b97 SHA512 561e36398bafcd888e912b6291ec76ead881bac86a7d0b8072753012d4c4557e67f608a9d43c968c6521e5f35bdf7b98e2c73ab811dadaaf13dcefe35c2d9e68 WHIRLPOOL f21b723eff6f9092217a75971baee34145d8f659b000bc3aeccd416414d81bfa7fbbf52ed1e8290de38cd04dbc52f9e10982bd33fc8dc1e3bf3d53c5c179f958
+EBUILD altermime-0.3.11.ebuild 633 SHA256 fcd54fd9f87759a259a3f7ef0186f2a02dd7f507e5e77ee1b0579c4bad77895b SHA512 1f52184026958350e05c37360e72dd8db923639f2daa886b99917f1b279b9bf15e16cf288730437e9a6ce6bdeeaf7c0a02453b1784332b21260a52c1f1fedd11 WHIRLPOOL d8272954261e01c76741aba48129ace47f96bc2dadbc075d8fb0d15067b794d1622571b93326fc4e6cde3443c1acf16a35b789259ebe008db0104f2bd44ee8ae
+MISC ChangeLog 2990 SHA256 b9a66f73516c0d9e6e39bde85e8a240e927bbbca7da567d10a05875270581cca SHA512 938c8cfa8186b51f5c91634faa4fa0663a182ffb39670cfac3926863a658d50bb51b5ddc6fe55c1b1d9b6c2b91f7b2b414b1a4ee15b642f9fd7e813dc59f6900 WHIRLPOOL b5e50f41d26c3cf7a7a787e4d08ab92dd80278b5268265e646de9da5ae54b6591287df77635d210a73da0abb3c393c7bf0bb010129eba94346a47e7a34538243
+MISC ChangeLog-2015 3626 SHA256 eaf33f86780e4f20882c822a4c7f81dce8d2f9dd00327a9e9e606828f6762a96 SHA512 5b1874910b550220a485c65c4c0171d10b46dca265faa612e140f62a296901f332ae28a89f30d7086f9f1d43ce7c7d67b76571aa89512aec43a40cbbd11ea2a9 WHIRLPOOL c0bb2214454b5d56ca181f8c5d31c9f98c01e28b41f54d6ec3d9539e8e270bd04bd4c179912258dd702415d34fbfb24f78709aad274fef34ac40af90c7e89611
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/altermime/altermime-0.3.11.ebuild b/net-mail/altermime/altermime-0.3.11.ebuild
new file mode 100644
index 000000000000..9d8ff8c549ae
--- /dev/null
+++ b/net-mail/altermime/altermime-0.3.11.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION=" alterMIME is a small program which is used to alter your mime-encoded mailpacks"
+SRC_URI="http://www.pldaniels.com/altermime/${P}.tar.gz"
+HOMEPAGE="http://pldaniels.com/altermime/"
+
+LICENSE="Sendmail"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.3.10-MIME_headers-overflow.patch \
+ "${FILESDIR}"/${P}-respect-flags.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install () {
+ dobin altermime
+ dodoc CHANGELOG README
+}
diff --git a/net-mail/altermime/files/altermime-0.3.10-MIME_headers-overflow.patch b/net-mail/altermime/files/altermime-0.3.10-MIME_headers-overflow.patch
new file mode 100644
index 000000000000..bca39afba7f2
--- /dev/null
+++ b/net-mail/altermime/files/altermime-0.3.10-MIME_headers-overflow.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/320785
+
+--- MIME_headers.c
++++ MIME_headers.c
+@@ -2243,7 +2243,7 @@
+ {
+ if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: filename = %s\n", FL, p);
+ snprintf(hinfo->name, sizeof(hinfo->name),"%s",p);
+- snprintf(hinfo->filename, sizeof(hinfo->name),"%s",p);
++ snprintf(hinfo->filename, sizeof(hinfo->filename),"%s",p);
+ FNFILTER_filter(hinfo->filename, _MIMEH_FILENAMELEN_MAX);
+ SS_push(&(hinfo->ss_filenames), hinfo->filename, strlen(hinfo->filename));
+
diff --git a/net-mail/altermime/files/altermime-0.3.11-respect-flags.patch b/net-mail/altermime/files/altermime-0.3.11-respect-flags.patch
new file mode 100644
index 000000000000..9f114ca17491
--- /dev/null
+++ b/net-mail/altermime/files/altermime-0.3.11-respect-flags.patch
@@ -0,0 +1,20 @@
+--- altermime-0.3.11.orig/Makefile
++++ altermime-0.3.11/Makefile
+@@ -9,7 +9,7 @@
+ # opposite of a disclaimer.
+ ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT
+ #ALTERMIME_OPTIONS=
+-CFLAGS=-Wall -Werror -g -I. -O2 $(ALTERMIME_OPTIONS)
++CFLAGS+=-Wall $(ALTERMIME_OPTIONS)
+ OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o
+
+
+@@ -19,7 +19,7 @@
+ all: altermime
+
+ altermime: altermime.c ${OBJS}
+- ${CC} ${CFLAGS} altermime.c ${OBJS} -o altermime
++ ${CC} ${CFLAGS} ${LDFLAGS} altermime.c ${OBJS} -o altermime
+
+
+ # Build Install
diff --git a/net-mail/altermime/metadata.xml b/net-mail/altermime/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/altermime/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/amavis-logwatch/Manifest b/net-mail/amavis-logwatch/Manifest
new file mode 100644
index 000000000000..b8a5cd675aaa
--- /dev/null
+++ b/net-mail/amavis-logwatch/Manifest
@@ -0,0 +1,12 @@
+AUX file-libmagic-errors.patch 1330 SHA256 acefb89c493d34b5230b90f9f742af73df536c9d3525e00f66e92c6484573d44 SHA512 8b2603ef414bd54fc2007bccfe6d12083c95f1f4fd81bdbd0bea4c45e6be57d6f1fd7851587ac95c0be740366f536e04512a2ea5220bf7fdb7e3a6317b0ae177 WHIRLPOOL 94bc64e99dbd7c3adb540f2067333e2c121383f7dc38fb1000af323935c450575464f643d2d8290809771982970128d99d700cb25896bbbcd9b76b1f94417a18
+AUX ignore-amavis-startup-notifications.patch 939 SHA256 aabc4522c92644bba7ffefc494ac6bb59a4adeb3b6eaa58caa7dbb1778c8d086 SHA512 34f23c5ebf9676407cb4c16a6f273e7086de3f90587dd5ab2ecb1f20c035e3940fb3318a696f0d5e8901dad2908ef4d14b4489fcae822c83e4b9470d5d20f869 WHIRLPOOL 958017361e54f2dcff2dce564d199f2aac6426d8372b05e0c389f3a0d1e24a2b9108ae5b1ce942d372bb658cd667814717feb58c5bb3f8875057e1c4098a41a6
+AUX ignore-utf8smtp-lines.patch 1141 SHA256 c48cacad0f5cef569bba837dec590542cae77b3494a3c87b4127b2baeea716bb SHA512 4de215ca12ce744b0a9e22bd0e56702101b2ae122b342402eea1272b0e893ffe2f9bab2261eb626f5f9f7eb55ba0c527391d629f7dc2ce0faa3834d9c065f461 WHIRLPOOL 92949352c3b2c9b296968771543ae7b9dba951fca72d164c5e8e88c27ea7d2730dcfa73e967eaadb57cbe8324a3d36e64ab432393cabbfabd830cbc335bc462b
+AUX redundant-argument-to-sprintf.patch 1738 SHA256 6f7e911096abe09ccd88ed8fa326c80ee6ee2cfac39258fec0d98f1581d0f96c SHA512 51953b22000ee685e954967de3e8edd223400d1e9a5dab056258bbe3cad6795838aa1e20328b1f06dcc9de9e0900e1b87358b09b5845e1bdfb24119e94ab8db9 WHIRLPOOL 9130fad328a184419df8033064afa5df37cd2d1d2ffa39425afc74bf5f8559925208f58b86919ce9632d4785fc2d57deba435e5b5414ae98d474089b0f508ae1
+AUX unchecked-encrypted.patch 2022 SHA256 f6d4dba2dce5580f6ebbb6d0235b7841ea87b0105b3bbe1dc5740c4d4d8a2331 SHA512 6fc07898123012d2755851fa9a4ab026174fb82f1a85361ddc95f407c0f4ac9b1e8979215c1264c21775f997dff343f209676b6055728a52590b37d8e7e2f4ba WHIRLPOOL 9015a2527c6136731af83d0834f5ee8500ce6942d1965c30afc6d58b3afc517ebf6cbbbc51204ba8fa4d200502a15ce6642beb98dd15aacc919e11b87e7c8af7
+AUX unescaped-left-brace.patch 2043 SHA256 a1582521379af0bad46391de151fdf83144a67759ee32fe7cd1a8e2b9976359e SHA512 3e2f18070a76624b260bdb11586abf79ae16f237d0e765a766ce770e35c8aab6afbda58589514b65a3afedfc9104f491c1e69e3201f764b6590b5f34cde9e745 WHIRLPOOL 3cf1e2bafe00846d35dd41f9e57f679efd207837591598e02cb2b1fc1f26e48a2d0fb426d3676edcd514595ee8d4287621e23ed88f9574072527d4de930298c0
+DIST amavis-logwatch-1.51.03.tgz 87304 SHA256 247f12646f834f6ed067d7aa79ef89f458284a6141391c3d96d6225bb1679c92 SHA512 27338abf676f05ec77e3ffb65a1f9ab5274bf8de3ab65fa29d4584ed6fdeedcb85e9e95b124549afdc3fc47780540c1790fa8b273ee296fbd44378d4da450db5 WHIRLPOOL 3da18a7eedad87b609cf3b8573d1bdfb4ee3561776a500f88b58e5576e33a3184cc1deec32a8d0b9252ac51d9e97ba74c5b223080e82f4fce38a156f3ac6df3c
+EBUILD amavis-logwatch-1.51.03-r3.ebuild 1193 SHA256 ba2c74784ea248442c9c2b3abb892f8c41b4ac107315d1c2bc21a964cdc843b7 SHA512 ea96a9ea428d6b260266b74c44ca7eec0f6a760739439c1d36e66bfe89e37201546930ce89296b1750f15f4f41a17e712061abf0b07b14f4459499976092fac0 WHIRLPOOL 1290875ed39d80db0f6dba81f84386e97846cbb7857b25b09b277d41f0912b96b9f85109a2a59965e39c0a3a97eaca46176d85f3659299bfa99f7554c91152fe
+EBUILD amavis-logwatch-1.51.03.ebuild 893 SHA256 101cddc25741f51005e02d08bd4f90d612787c46bad197554b917b619bb42904 SHA512 f665e621e964bd62b2f76d9b893b172818a3a8f709e2fda4072f1b7a0751f8e9c5a42f2416bb93e4def055091b397247c04aef5911906932f9f077b01e0c07a3 WHIRLPOOL 98bc365221e2c819677fa934a32367c28fc3bf2aff0411de6aa6891c0e0b39163ba9bcab983db04eadc029667d424ffbd5df01e11e6bb211a588c7e43b1574f5
+MISC ChangeLog 2204 SHA256 95cbfb16c6eebcef18a8559e6b16f61f69b57ba7c2e60ff0e1506374a0669336 SHA512 46e9fc2dc8ec7db7ca1ef4110857c0f042427c47edb4d6d5d7fca65e372f93bf1d841c0207e1cebd9827406032360694c82cf43157ccabbd66d6d27e261bb00c WHIRLPOOL 494bbb01369304c7a8f4abb7fb85938d5cba9f3c245c7cf1e012e182d577fa492639dbfd347f107219b0c1f9910701089536b8fb31ce944b4dceda07a54dfaaa
+MISC ChangeLog-2015 928 SHA256 c1e501d8ed1ecb5abf16abb6df2ea2bc326df14796d05423505b27530e8ad746 SHA512 c553a5750544c2006c8aea1c1d32b7df8e1d90b2096f5369b50e288e2bf56300a0ac82318eec3626db8226dca67c3a100081e1f690677df6a2e4a4ae1927ea22 WHIRLPOOL 61d96d5f0d4233414a70181629fdad2c1f82a3b9c347de7722392b73dfd17cb793dc83234fd3c007b22b9866d4246d337abd13850d7a27622a108cbf590ad005
+MISC metadata.xml 296 SHA256 9964c7a00fb143c08fd771f7d3601f658282cf28e5eecf249487c4b5f1e95b23 SHA512 ba96de61eeaec557c21ba83c0701d6b83f0e25752a4b949a2562e3eb4a0ceef44d0029d5a5bf5fed5ff7d9add59b8d40cfeac7a57ec566a48d23dca3c327e720 WHIRLPOOL ce6b711172c28911c1b8a31a1d58eba66ca1ebdd5307efdfc3d5def0543de5d8c52830e7109252a91b1b425d7b385711972b4827693d9218f2dbb4d0891d1922
diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild
new file mode 100644
index 000000000000..e312caecfdf7
--- /dev/null
+++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A log analyzer for amavisd-new"
+HOMEPAGE="http://logreporters.sourceforge.net/"
+SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-lang/perl"
+
+PATCHES=(
+ "${FILESDIR}/unescaped-left-brace.patch"
+ "${FILESDIR}/redundant-argument-to-sprintf.patch"
+ "${FILESDIR}/ignore-amavis-startup-notifications.patch"
+ "${FILESDIR}/ignore-utf8smtp-lines.patch"
+ "${FILESDIR}/unchecked-encrypted.patch"
+ "${FILESDIR}/file-libmagic-errors.patch"
+)
+
+src_prepare() {
+ default
+ # Replace the default config file location with ours.
+ local cfg_default='/usr/local/etc/${progname_prefix}-logwatch.conf'
+ local cfg_gentoo='/etc/${progname_prefix}-logwatch.conf';
+ sed -i "s~${cfg_default}~${cfg_gentoo}~" ${PN} \
+ || die 'failed to update the default config location'
+}
+
+src_compile() {
+ # The default make target just outputs instructions. We don't want
+ # the user to see these, so we avoid the default emake.
+ :
+}
+
+src_install() {
+ dodoc Bugs Changes README
+ doman ${PN}.1
+ dobin ${PN}
+ insinto /etc
+ doins ${PN}.conf
+}
diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03.ebuild
new file mode 100644
index 000000000000..f8eb3efd3b4f
--- /dev/null
+++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A log analyzer for amavisd-new"
+HOMEPAGE="http://logreporters.sourceforge.net/"
+SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="dev-lang/perl"
+
+src_prepare() {
+ # Replace the default config file location with ours.
+ local cfg_default='/usr/local/etc/${progname_prefix}-logwatch.conf'
+ local cfg_gentoo='/etc/${progname_prefix}-logwatch.conf';
+ sed -i "s~${cfg_default}~${cfg_gentoo}~" ${PN} \
+ || die 'failed to update the default config location'
+}
+
+src_compile() {
+ # The default make target just outputs instructions. We don't want
+ # the user to see these, so we avoid the default emake.
+ :
+}
+
+src_install() {
+ dodoc Bugs Changes README
+ doman ${PN}.1
+ dobin ${PN}
+ insinto /etc
+ doins ${PN}.conf
+}
diff --git a/net-mail/amavis-logwatch/files/file-libmagic-errors.patch b/net-mail/amavis-logwatch/files/file-libmagic-errors.patch
new file mode 100644
index 000000000000..2a28c4ee623b
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/file-libmagic-errors.patch
@@ -0,0 +1,35 @@
+From 63421f1c92403149be838c64ebb731778c148dde Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 7 Sep 2017 07:36:39 -0400
+Subject: [PATCH 1/1] Ignore errors from the File::LibMagic describe_filename
+ function.
+
+Newer versions of amavisd-new can make use of the File::LibMagic
+library (as opposed to the "file" executable) to get information about
+attachments. Using the library should be faster, but when it fails, it
+does so in a novel way:
+
+ (02859-21) File::LibMagic::describe_filename failed on p003: libmagic
+ JPEG image data, Exif standard: [TIFF image data, big-endian,...
+
+This commit adds such lines to the global ignore list, since they
+don't provide us with any useful information.
+---
+ amavis-logwatch | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index 448de3a..ac93cbc 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -2033,6 +2033,7 @@ sub create_ignore_list() {
+
+ push @ignore_list_final, qr/^Inserting header field: X-Amavis-Hold: /;
+ push @ignore_list_final, qr/^Decoding of .* failed, leaving it unpacked: /;
++ push @ignore_list_final, qr/^File::LibMagic::describe_filename failed on p\d+: /;
+
+ # various forms of "Using ..."
+ # more specific, interesting variants already captured: search "Using"
+--
+2.13.0
+
diff --git a/net-mail/amavis-logwatch/files/ignore-amavis-startup-notifications.patch b/net-mail/amavis-logwatch/files/ignore-amavis-startup-notifications.patch
new file mode 100644
index 000000000000..4dd019186e41
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/ignore-amavis-startup-notifications.patch
@@ -0,0 +1,31 @@
+From 15bf4096ea496a28210e2f4c1f34ab28b413566a Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 24 Aug 2017 08:52:18 -0400
+Subject: [PATCH 3/4] Ignore amavisd-new "starting child processes"
+ notifications.
+
+Newer versions of amavisd-new log the following constantly:
+
+ sd_notify (no socket): STATUS=Starting child process(es), ready for work.
+
+It's of no use to us, so add it to the global "ignore" list.
+---
+ amavis-logwatch | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index 1aab787..06b60c8 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -2044,6 +2044,8 @@ sub create_ignore_list() {
+ # unanchored
+ push @ignore_list_final, qr/\bRUSAGE\b/;
+ push @ignore_list_final, qr/: Sending .* to UNIX socket/;
++
++ push @ignore_list_final, qr/sd_notify \(no socket\): STATUS=Starting child process\(es\), ready for work./
+ }
+
+ # Notes:
+--
+2.13.0
+
diff --git a/net-mail/amavis-logwatch/files/ignore-utf8smtp-lines.patch b/net-mail/amavis-logwatch/files/ignore-utf8smtp-lines.patch
new file mode 100644
index 000000000000..83fd4cb80a42
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/ignore-utf8smtp-lines.patch
@@ -0,0 +1,32 @@
+From a8dac25fe398e42abdb89b85b1435d52386827b4 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 24 Aug 2017 09:05:04 -0400
+Subject: [PATCH 4/4] Ignore UTF8SMTP lines.
+
+Lines that look like,
+
+ UTF8SMTP :10024 /var/...: <sender@example.net> -> <rcpt@example.com>
+ BODY=8BITMIME SMTPUTF8 Received: from mx.example.com ([127.0.0.1]) by...
+
+were previously unmatched because of the relatively-new "UTF8SMTP".
+Similar lines that have "ESMTP" instead of "UTF8SMTP" are already
+ignored, so it makes sense to ignore the "UTF8SMTP" lines too.
+---
+ amavis-logwatch | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index 06b60c8..deb9146 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -2132,6 +2132,7 @@ while (<>) {
+ or ($p1 =~ /^SpamControl/)
+ or ($p1 =~ /^Perl/)
+ or ($p1 =~ /^ESMTP/)
++ or ($p1 =~ /^UTF8SMTP/)
+ or ($p1 =~ /^(?:\(!+\))?(\S+ )?(?:FWD|SEND) from /) # log level 4
+ or ($p1 =~ /^(?:\(!+\))?(\S+ )?(?:ESMTP|FWD|SEND) via /) # log level 4
+ or ($p1 =~ /^tempdir being removed/)
+--
+2.13.0
+
diff --git a/net-mail/amavis-logwatch/files/redundant-argument-to-sprintf.patch b/net-mail/amavis-logwatch/files/redundant-argument-to-sprintf.patch
new file mode 100644
index 000000000000..91f456afdd11
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/redundant-argument-to-sprintf.patch
@@ -0,0 +1,48 @@
+From 02cf771776d2f1ad9d7872f3959e41a548adfab9 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 24 Aug 2017 08:20:59 -0400
+Subject: [PATCH 2/4] Fix redundant argument to sprintf warning.
+
+Perl 5.22 now warns about redundant (i.e. extra) arguments to the
+sprintf function. If your format string only has two place-holders but
+you pass three place-fillers, you get warned:
+
+ Redundant argument in sprintf at ./amavis-logwatch line 1338...
+
+The issue there was that the format string passed to sprintf was
+constructed dynamically; sometimes it would contain two place-holders,
+and sometimes three. Three place-fillers were always passed, so when
+only two place-holders were used, the warning would be thrown. This was
+fixed by testing whether or not there are two or three place-holders,
+and passing the appropriate number of place-fillers.
+---
+ amavis-logwatch | 13 +++++++++++--
+ 1 file changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index 8972497..1aab787 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -1334,8 +1334,17 @@ sub print_summary_report (\@) {
+ $$divisor == $Totals{$keyname} ? 100.00 : $Totals{$keyname} * 100 / $$divisor;
+ }
+ else {
+- push @{$lines[$cur_level]},
+- sprintf "$fmt %-23s $extra\n", $total, $desc, commify ($Totals{$keyname});
++ my $new_line;
++ if ($extra eq '') {
++ $new_line = sprintf("$fmt %-23s \n", $total, $desc);
++ }
++ else {
++ $new_line = sprintf("$fmt %-23s $extra\n",
++ $total,
++ $desc,
++ commify ($Totals{$keyname}));
++ }
++ push @{$lines[$cur_level]}, $new_line
+ }
+ }
+ }
+--
+2.13.0
+
diff --git a/net-mail/amavis-logwatch/files/unchecked-encrypted.patch b/net-mail/amavis-logwatch/files/unchecked-encrypted.patch
new file mode 100644
index 000000000000..33c2214a2d09
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/unchecked-encrypted.patch
@@ -0,0 +1,41 @@
+From e9f83dde1b241ce449264db7a517124bb115dd99 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Wed, 6 Sep 2017 09:19:42 -0400
+Subject: [PATCH 1/1] Catch mail that is passed UNCHECKED-ENCRYPTED.
+
+Some encrypted mail can pass through the system with a log line like,
+
+ (01495-17) Passed UNCHECKED-ENCRYPTED {RelayedTaggedInbound}, ...
+
+These were unmatched, because the "-ENCRYPTED" suffix is new. One
+regular expression and a dictionary have been updated to catch those
+lines and dump them into the "unchecked" bin with the rest of the
+UNCHECKED lines.
+---
+ amavis-logwatch | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index deb9146..448de3a 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -1799,6 +1799,7 @@ my %ccatmajor_to_sectkey = (
+ 'INFECTED' => 'malware',
+ 'BANNED' => 'bannedname',
+ 'UNCHECKED' => 'unchecked',
++ 'UNCHECKED-ENCRYPTED' => 'unchecked',
+ 'SPAM' => 'spam',
+ 'SPAMMY' => 'spammy',
+ 'BAD-HEADER' => 'badheader',
+@@ -2295,7 +2296,7 @@ while (<>) {
+ #XXX elsif (($action, $key, $ip, $from, $to) = ( $p1 =~ /^(?:Virus found - quarantined|(?:(Passed|Blocked) )?INFECTED) \(([^\)]+)\),[A-Z .]*(?: \[($re_IP)\])?(?: \[$re_IP\])* [<(]([^>)]*)[>)] -> [(<]([^(<]+)[(>]/o ))
+
+ # the first IP is the envelope sender.
+- if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) {
++ if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|UNCHECKED-ENCRYPTED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) {
+ inc_unmatched('passblock');
+ next;
+ }
+--
+2.13.0
+
diff --git a/net-mail/amavis-logwatch/files/unescaped-left-brace.patch b/net-mail/amavis-logwatch/files/unescaped-left-brace.patch
new file mode 100644
index 000000000000..2cb293b89e8b
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/unescaped-left-brace.patch
@@ -0,0 +1,38 @@
+From 79f37650aa72fe3feeed682ee2b79686ee2b6547 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 24 Aug 2017 08:16:05 -0400
+Subject: [PATCH 1/4] Fix unescaped left brace warning in monster regex.
+
+New versions of Perl are starting to complain about unescaped braces
+in regular expressions, and supposedly the warning will become a fatal
+error in Perl 5.30. This particular warning is,
+
+ Unescaped left brace in regex is deprecated, passed through in regex;
+ marked by <-- HERE in m/^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)
+ |BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?:
+ { <-- HERE [^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]),
+ (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/ at
+ /usr/bin/amavis-logwatch line 2286.
+
+and it was fixed by going to line 2286 and putting a backslash before
+the left brace.
+---
+ amavis-logwatch | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index 4ad07f6..8972497 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -2283,7 +2283,7 @@ while (<>) {
+ #XXX elsif (($action, $key, $ip, $from, $to) = ( $p1 =~ /^(?:Virus found - quarantined|(?:(Passed|Blocked) )?INFECTED) \(([^\)]+)\),[A-Z .]*(?: \[($re_IP)\])?(?: \[$re_IP\])* [<(]([^>)]*)[>)] -> [(<]([^(<]+)[(>]/o ))
+
+ # the first IP is the envelope sender.
+- if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: {[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) {
++ if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) {
+ inc_unmatched('passblock');
+ next;
+ }
+--
+2.13.0
+
diff --git a/net-mail/amavis-logwatch/metadata.xml b/net-mail/amavis-logwatch/metadata.xml
new file mode 100644
index 000000000000..04df72792f2a
--- /dev/null
+++ b/net-mail/amavis-logwatch/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">logreporters</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/archivemail/Manifest b/net-mail/archivemail/Manifest
new file mode 100644
index 000000000000..463ec7ed2d2c
--- /dev/null
+++ b/net-mail/archivemail/Manifest
@@ -0,0 +1,5 @@
+DIST archivemail-0.9.0.tar.gz 63482 SHA256 4b430e2fba6f24970a67bd61eef39d7eae8209c7bef001196b997be1916fc663 SHA512 7c36108919be22f8cf71aea91435084495ceef54c251ede0aca9d981bb9c01119925d334c1d84eb2c53657170ac6bf0897fccd1f9df05c59fc46e1177194dfb2 WHIRLPOOL a004ef0a4b830afb4ea9cc2d2275d5272c332caf2db4c40f59ead13e190795a1238f899c385d9218a9858d725d7201e1cea92fa857a190482df9306c572e268f
+EBUILD archivemail-0.9.0-r1.ebuild 911 SHA256 a84cb6f0830a8de18357cebf887657dec312975e0079f48f5ec6520a88e25a74 SHA512 d220df4d1115003fdfe93d99541eff93aa6fe8960d29f42394038dee64d0427bb872031c8ba55b9cf41b0f7484ac0e5c7645893507771d1417bcd7b9e4a31270 WHIRLPOOL 6e49ee5ca18f845cebcf773fc39313a9c14f30b5fdfe511f53049186ae9481f6dda7dd8331bf44fd94f4991570bb7d5d675ade64fe91f8aa8b1518f891b41d08
+MISC ChangeLog 2480 SHA256 328fa367fec524b1065c3cb76433b1d59f058c02ffc4bf8ab6bfb73ac47a7d16 SHA512 57915654b0a6bbe1a9d836ed0a911450fadf7b651c1bc60cf9329e3f1544b40b139cb277f75ba46eac1066dac4cc00cce588d24ce3280cb20f38b614dc00541f WHIRLPOOL b7bad98adfef6b9a83d7bbc65f585882818c777500e74050a8fbcc55a35f6a7a0ef4f24d451cae7afda92c6e1cd75df136639f2d7372f3364a013039cab497ff
+MISC ChangeLog-2015 3638 SHA256 110662c0d23eaf40e5902b86c662cb7ac56cab2f8dd4f06b3995f3cb508850c8 SHA512 a1098c37cfc422ec60efbbe0dbf8fb6f733dcf221134d23b27e2825be2ad6b4c4bfada2987434671b45698f4ea622a17db82ae4b7ac31881ce6caf24dba56a26 WHIRLPOOL 36da2a879fe67b699143b564f2b0eabc44b3f928f5dddef0fc27f9581a83bf2450949a3d0da018ea4aacea084209d8a9c5b59eac483af31ff3e1308f84e77853
+MISC metadata.xml 325 SHA256 663ccc76f4773e963fe1027b3869c7c96c51985fe086ef592d0cdfad93fc7133 SHA512 0725caf1503511e9a7ad14fbe52d2381753bf501cf9702dd16ee3cdb9132fc11318b0113f031f2d00eef8471e733113c4b1fa4ade25c9db3344fef5c3c29cab2 WHIRLPOOL 58560c8b15b64f954577d4e5e91a7c2c00089b742474fedcdfb33780ddb78f6eee49b05cc48a767b81755177c27b761b9a6fa09b35ae7e91bbafcf5a0d0314f6
diff --git a/net-mail/archivemail/archivemail-0.9.0-r1.ebuild b/net-mail/archivemail/archivemail-0.9.0-r1.ebuild
new file mode 100644
index 000000000000..ab850606ed47
--- /dev/null
+++ b/net-mail/archivemail/archivemail-0.9.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Tool written archiving old email in mailboxes"
+HOMEPAGE="http://archivemail.sourceforge.net/"
+SRC_URI="mirror://sourceforge/archivemail/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 sparc x86"
+IUSE=""
+
+python_prepare_all() {
+ # Fix tests for python-2.7
+ sed -i -e 's:\(fp_archive = \)FixedGzipFile:\1gzip.GzipFile:' \
+ test_archivemail || die "sed failed"
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${S}"/test_archivemail || die "test_archivemail failed"
+}
+
+python_install() {
+ distutils-r1_python_install --install-data=/usr/share
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ dodoc examples/* FAQ
+
+ mv "${D}/usr/share/share/man" "${D}/usr/share/" || die
+ rm -rf "${D}/usr/share/share" || die
+}
diff --git a/net-mail/archivemail/metadata.xml b/net-mail/archivemail/metadata.xml
new file mode 100644
index 000000000000..6763be63b688
--- /dev/null
+++ b/net-mail/archivemail/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">archivemail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/asmail/Manifest b/net-mail/asmail/Manifest
new file mode 100644
index 000000000000..67dea2aa4cc4
--- /dev/null
+++ b/net-mail/asmail/Manifest
@@ -0,0 +1,7 @@
+AUX asmail-2.1-ldflags.patch 584 SHA256 f02d8e04a1b216f45daa007ad93350f9b68b623118782f6bf032d6fd74621fb1 SHA512 d3714a3b250b434cd742c6a72afd73c673194375240c2d3ab3f61999be6c36f07dee9ed8cb86220b559613a10a00431757ad95121aba16196ecbc719eb347dc9 WHIRLPOOL c42a529df8449bffe28057ddb5f54eb29fba63cc2b5aba168b55c0cb2eb2c5849f4976d95425aa0573dedf0f1ba2f0865f9abb605169e5da3bb92d9e211fa5c1
+DIST asmail-2.1.tar.gz 271164 SHA256 9b20aff43d61511e9c24af5603a546e3709bad35c769074e2b66d818f33e8191 SHA512 1251c9f386c01c23673a6798eafd6a518a103da6d2ab78bb4e22c1107939423c44f555e331f79d1b5b509f271582de285481022ef32375b4267b1f3e398f67d8 WHIRLPOOL ee011fa0664fc80e967942ca48171edb778be9b4b28f745be1458dd73b3b36879c5570531afa26fdc11d071b64744bcd43c7c812352cb364ab459088fabcee48
+EBUILD asmail-2.1-r1.ebuild 1032 SHA256 34e3ea464cb99619376bbea2fb3824b122e0c880ca8215ce18ab06dc2ada43fd SHA512 21607ff725256053144d956974876af756b80bc210cf39b3c32b3c60f90d10f8dec1e44ceb3f104f9fe87bf88061b8988ff01d4b5deccc076f88b55197096fda WHIRLPOOL 1066b76675c1174f12ffcbf09ed0279a48592721d150ccfcaf6c3eaecd157caac223436c4433ae580419d5acb68bd7064bc201d246d554a630d81601db8e1d5e
+EBUILD asmail-2.1.ebuild 963 SHA256 847c834a7d2675728811e38ebc774c9d32d027426744897be094ff11db150630 SHA512 a17ed2d36afe19fb470ff4777202c1943840cb69904cc5c370218dabd6dc97179d0e72238ec5b1ce50ecc48fc1c63f0a54242a4c5ba0d7c1f3cdda7584775c62 WHIRLPOOL 80ec910095e898d0043658a4dc9ecfa68ad922f4a449a719a204a8880586a81f067f583d1ea6212d00af7f06e55242f678e213623dc26b587af2a7879a0efe96
+MISC ChangeLog 2630 SHA256 1d896de833642c30c5900e089f493ab8f08f73680ef73d9ae3280a006683daa5 SHA512 959b0230af9d679f8c3a19a502472631ed2bdd1706f53eb081509763bf49d2d6aa0a987ccde27788aaef9e4d0f78c5c02bb7953053c6fb4e8d46f054012e22ca WHIRLPOOL e3327bc9f660aa0edc00b48bf7a57e9d51e44ebd701ba4ae9bcd6afc1bf6e667975ccbb3daf2ac8d41fc74066ab302565b358b77dadad93e6f783b39d0ffb902
+MISC ChangeLog-2015 2044 SHA256 408cf147493c120a314800f036191cc8ddfe6323734c86ddb47ae9f7dec17ee1 SHA512 82880b21a4575796e24a3ce7f1ec5083888039e74cd95c8329775a1579210f58b712413ddd72c0a847994b535117d271290eac50e5955a5c786128efd8b50308 WHIRLPOOL c5a4d2be57756d46b1da929fef95956bd8ead92c1b44d030aff7a00f80b21dfcb90810c55273bf21602e2a225f299938b4313fcde4fd1788923be8a9847b490e
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/asmail/asmail-2.1-r1.ebuild b/net-mail/asmail/asmail-2.1-r1.ebuild
new file mode 100644
index 000000000000..ca22bcd63a64
--- /dev/null
+++ b/net-mail/asmail/asmail-2.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="a small mail monitor similar to xbiff"
+HOMEPAGE="http://www.tigr.net"
+SRC_URI="http://www.tigr.net/afterstep/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="jpeg libressl"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libICE
+ x11-libs/libSM
+ jpeg? ( virtual/jpeg:= )"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ sed -i -e "/LIB/s/-lssl/-lssl -lcrypto/g" \
+ configure
+}
+
+src_configure() {
+ tc-export CC
+ econf $(use_enable jpeg)
+}
+
+src_install() {
+ dobin ${PN}
+
+ newman ${PN}.man ${PN}.1
+ newman ${PN}rc.man ${PN}rc.5
+
+ insinto /usr/share/${PN}/pixmaps
+ doins pixmaps/cloud-e/*.xpm
+
+ insinto /usr/share/${PN}
+ doins -r sounds
+
+ dodoc ${PN}rc.s* CHANGES *.txt README* TODO
+}
diff --git a/net-mail/asmail/asmail-2.1.ebuild b/net-mail/asmail/asmail-2.1.ebuild
new file mode 100644
index 000000000000..ccd9e1cabdb8
--- /dev/null
+++ b/net-mail/asmail/asmail-2.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="a small mail monitor similar to xbiff"
+HOMEPAGE="http://www.tigr.net"
+SRC_URI="http://www.tigr.net/afterstep/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE="jpeg"
+
+RDEPEND="dev-libs/openssl
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libICE
+ x11-libs/libSM
+ jpeg? ( virtual/jpeg )"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto"
+
+src_compile() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ sed -i -e "/LIB/s/-lssl/-lssl -lcrypto/g" \
+ configure
+ tc-export CC
+ econf $(use_enable jpeg)
+ emake || die "emake failed."
+}
+
+src_install() {
+ dobin ${PN}
+
+ newman ${PN}.man ${PN}.1
+ newman ${PN}rc.man ${PN}rc.5
+
+ insinto /usr/share/${PN}/pixmaps
+ doins pixmaps/cloud-e/*.xpm
+
+ insinto /usr/share/${PN}
+ doins -r sounds
+
+ dodoc ${PN}rc.s* CHANGES *.txt README* TODO
+}
diff --git a/net-mail/asmail/files/asmail-2.1-ldflags.patch b/net-mail/asmail/files/asmail-2.1-ldflags.patch
new file mode 100644
index 000000000000..14d431c6da4b
--- /dev/null
+++ b/net-mail/asmail/files/asmail-2.1-ldflags.patch
@@ -0,0 +1,19 @@
+commit 89ac271856ad5ecc7bd38c5aabc393b41976aca2
+Author: Eray Aslan <eras@gentoo.org>
+Date: Tue Jun 7 18:11:43 2011 +0300
+
+ Respect LDFLAGS
+
+diff --git a/autoconf/Makefile.common.in b/autoconf/Makefile.common.in
+index de290d0..cebe471 100644
+--- a/autoconf/Makefile.common.in
++++ b/autoconf/Makefile.common.in
+@@ -49,7 +49,7 @@ indent:
+ done
+
+ $(PROG): $(OBJS)
+- $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)
++ $(CC) $(LDFLAGS) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)
+
+ .c.o:
+ $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
diff --git a/net-mail/asmail/metadata.xml b/net-mail/asmail/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/asmail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/automx/Manifest b/net-mail/automx/Manifest
new file mode 100644
index 000000000000..2681f4c0a201
--- /dev/null
+++ b/net-mail/automx/Manifest
@@ -0,0 +1,6 @@
+DIST automx-0.10.2.tgz 410456 SHA256 9ae30696ae691c673399cc0901ab245d3aec76ffe3d74382e6802287e186e4df SHA512 88f844d70439985dd55cc694a58bc1fe313162ba47c7675fb15143c107d76974eee043faf5715d7ba9a5918686d491f5efabe9785e90cf399492871f08b2e38d WHIRLPOOL 4a090b7457d0230944a4855aba1a1811ea1cb8a687efc5ff8bc1abe0506a9dc32f5e77384cb9958a112104729c6e46521ad39ef52ba2dba00492a70e7a65cd3b
+EBUILD automx-0.10.2-r1.ebuild 1421 SHA256 13c724ac383ce1fc76192efe6d6aa41989f6c43d915a79dc9ef3479a7802a78d SHA512 ac37eefebdd77d8fd5cc06d138b6413affb8cb0cb81e0037505446de1b5c1c4d23f62add350c1a1d7134c91bef0235eb601ea79d8676d8ec9ab6b2a0c7707f62 WHIRLPOOL a6bbaa81a43a149f11811ff2a15d2e4b4928006bfeb21b7da38586498e2cc4390d4079ad2e9c6d2827b9fa269ba11d634d2b1f0dc30d5e609ecc8bae620b068c
+EBUILD automx-0.10.2-r2.ebuild 1462 SHA256 78ae34d3f07f56667feb8b13e9d62f4686a40c8c09bf0c5fad953c20852c4625 SHA512 1e0ed494942cea9b1151086cd55fbcef173f3eee54f146c49acb219332087dfa3d374aa86395d27a2c472f402e67b80d1ef057a84c600788f69d4ddbd89c850f WHIRLPOOL ffa9a1e8dccfda4f5df67b39a16faf127522b3a085a26b4de747e54d3e3a682dc7532043e6b07d56356b1057ec705aeab2ac52b6ba5235d6ce090ec42dcd13b3
+MISC ChangeLog 2426 SHA256 dcd4f68ee33a6116657b1d3e6888d2d7e5014e26824b8575c83fb8d93e5be3a2 SHA512 e780adbf2429d1b284b0f24ff412ca1ddda8931d4bff60b59968c9631c752b3476cea5e2da99e709c3646a777833d7a0e2c6cb4ae86c6e4ec367fb4a5e1595ac WHIRLPOOL 232b2d62f0a5905ed7ee737e2cf3bce72cfdd5e7560b268674d653c8836d858c9418da5319caf20f194054b089fa6446faf439e2a74e84e9c0b386d33f34b1c9
+MISC ChangeLog-2015 3195 SHA256 09266927581a949978fa407ead4efdfa527fab8f2c33a61154932f555ad0fde1 SHA512 d88c15aa011e2becc845fe816dabee9430036131cb913aadd84961e03130c568fb4c71822500560bd72bd0ecd7bd4931e6d1d036699ec220dae0364f769559c3 WHIRLPOOL 9da15c47a1d8272ed45db5013edefdd2f9d85dbaacefaecf570b23737eabfeb20f61d669e7b49a5775e48be0130fa337271c061f3bcbb2df9d384392be0c3ba0
+MISC metadata.xml 538 SHA256 9ba8b3503027646d48a9414f6d81464b5a6ef71bab18c0265ed4bb3eee96f236 SHA512 851cb5d749750e3c8b360248d32bdf5c7c5fa626ff329e5104f0e9f8f639a42df12d36ddd93b6cb962567094fa1150666900491b8bcb906aadd427c38fa2c5f2 WHIRLPOOL 76746866c9e1da7cb079b6759a18126413c2b094d97688a274594362a754dc1709befd76ab3f4b60257383552bf7ccb74190a3f55fcbc8e986450bcdb2c48774
diff --git a/net-mail/automx/automx-0.10.2-r1.ebuild b/net-mail/automx/automx-0.10.2-r1.ebuild
new file mode 100644
index 000000000000..8e254aba86e7
--- /dev/null
+++ b/net-mail/automx/automx-0.10.2-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="A mail user agent auto configuration service"
+HOMEPAGE="http://www.automx.org"
+SRC_URI="https://github.com/sys4/${PN}/archive/v${PV}.tar.gz -> automx-${PV}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="ldap memcached sql +tools"
+
+DEPEND="
+ dev-python/ipaddr[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ || ( www-apache/mod_wsgi[${PYTHON_USEDEP}] www-servers/uwsgi )
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
+ memcached? ( dev-python/python-memcached[${PYTHON_USEDEP}] )
+ sql? ( dev-python/sqlalchemy[${PYTHON_USEDEP}] )
+ tools? ( net-dns/bind-tools net-misc/wget )
+ "
+RDEPEND="${DEPEND}"
+
+python_prepare_all() {
+ sed -i '/py_modules=/d' setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ DOCS=( INSTALL CREDITS CHANGES BASIC_CONFIGURATION_README )
+ HTML_DOCS=( doc/html/. )
+
+ distutils-r1_python_install_all
+
+ docinto examples
+ dodoc src/conf/*example*
+
+ doman doc/man/man5/*
+
+ if use tools; then
+ dobin src/automx-test
+ doman doc/man/man1/automx-test.1
+ fi
+
+ exeinto /usr/lib/${PN}
+ doexe src/automx_wsgi.py
+}
+
+pkg_postinst() {
+ echo
+ einfo "See /usr/share/doc/${PF}/INSTALL.bz2 for setup instructions"
+ echo
+}
diff --git a/net-mail/automx/automx-0.10.2-r2.ebuild b/net-mail/automx/automx-0.10.2-r2.ebuild
new file mode 100644
index 000000000000..f9f23a5e0950
--- /dev/null
+++ b/net-mail/automx/automx-0.10.2-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="A mail user agent auto configuration service"
+HOMEPAGE="http://www.automx.org"
+SRC_URI="https://github.com/sys4/${PN}/archive/v${PV}.tar.gz -> automx-${PV}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ldap memcached sql +tools"
+
+DEPEND="
+ dev-python/ipaddr[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/m2crypto[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ || ( www-apache/mod_wsgi[${PYTHON_USEDEP}] www-servers/uwsgi )
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
+ memcached? ( dev-python/python-memcached[${PYTHON_USEDEP}] )
+ sql? ( dev-python/sqlalchemy[${PYTHON_USEDEP}] )
+ tools? ( net-dns/bind-tools net-misc/wget )
+ "
+RDEPEND="${DEPEND}"
+
+python_prepare_all() {
+ sed -i '/py_modules=/d' setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ DOCS=( INSTALL CREDITS CHANGES BASIC_CONFIGURATION_README )
+ HTML_DOCS=( doc/html/. )
+
+ distutils-r1_python_install_all
+
+ docinto examples
+ dodoc src/conf/*example*
+
+ doman doc/man/man5/*
+
+ if use tools; then
+ dobin src/automx-test
+ doman doc/man/man1/automx-test.1
+ fi
+
+ exeinto /usr/lib/${PN}
+ doexe src/automx_wsgi.py
+}
+
+pkg_postinst() {
+ echo
+ einfo "See /usr/share/doc/${PF}/INSTALL.bz2 for setup instructions"
+ echo
+}
diff --git a/net-mail/automx/metadata.xml b/net-mail/automx/metadata.xml
new file mode 100644
index 000000000000..cbe246cebd3a
--- /dev/null
+++ b/net-mail/automx/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <use>
+ <flag name="memcached">Enable memcached support</flag>
+ <flag name="sql">Enable support for SQL backends</flag>
+ <flag name="tools">Install additional automx-test tool</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">sys4/automx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/autorespond/Manifest b/net-mail/autorespond/Manifest
new file mode 100644
index 000000000000..f3d8bf934fe1
--- /dev/null
+++ b/net-mail/autorespond/Manifest
@@ -0,0 +1,9 @@
+AUX autorespond-2.0.5-no-include-bounce.patch 1185 SHA256 d48d1d5a1d82aa9c2d5a5d4d4df709f92ec659689dd133838319c0013deda4ac SHA512 3503dc617e583a5c482251a3df459fea1cb7730cf835aba75537c957a1e07509db75fcf9de5514352b6518bc1bb3755c37ca09fc54592cfa17e113e10b273abf WHIRLPOOL bf49379ce9319388ac3f7ce63a41535e4969e4ebf589e3e8eedfe0cbaf606df4fac9c11714e1d76a3cb48a4ba808f2aa7ffb9987a3a37ed219cab052a841d256
+DIST autorespond-2.0.4.tar.gz 7884 SHA256 3778ffaea785ee1c0d949badca666423324b82ea101bba398b11c403451869a9 SHA512 0bde01482a1bf16f5c4e478fad8a36ef6a34dd3a753edfdea0787381380c50ab5a95b94e0464dd874cb1a666f9dfb196de55506503bbb589dd5974867298fc62 WHIRLPOOL b2ce903a29566fe1c0c4182f7311f832f662af89a69831b1f9bb39cef065955ce7fe5dc010352b14a0a7272e0d2b0c03ecbee15fac49431100a7f91e9a5e2eb9
+DIST autorespond-2.0.5.tar.gz 9707 SHA256 d678dbaaf059a146055ed0bf597b03d4bd2d0edb247bd066dfa488b6af8ef8b5 SHA512 c27565962677654251062538a76ebc0f5402cb8b0027352060e6aa51871be27c0e32c6898be7cee72d2a80680b79d1ce7bf23249abfb486a851d73005ef7e7bb WHIRLPOOL b282c2766b906a48dc36346bf6bf6b6bd493d02199f7c1db0f58a11d554f89105979e4f221fc99d024bfb302038b8906c3a41cbba290e5c29cce5910c04d289f
+DIST autorespond_2.0.4-1.diff.gz 2637 SHA256 1b7cdf34d295d041bf1d60b5078d3f0cb818ec75d5276746870ad4f28ef83608 SHA512 ef9ffc46c885d644b6f20107c03f0ed68ded577499d8b05ecae217fa43c6053de4a68666cd78a059d19ae1181b101a7de93f1d2ec0956dee7478e43c06b772b6 WHIRLPOOL 0a3344bff0d69a691ce7eb75156413b3749d973e5a18bab98b9f9bf09f9beb78bb172d34eed01fdb6170071f43c94926f5db23a01a07cbc5aa035ab1cb549b51
+EBUILD autorespond-2.0.4.ebuild 798 SHA256 3215bb1b10fb8b6ee92980b354209c05e7e925c6eb1427f50b89bea124fef72b SHA512 346c420efd27e16a4a97436d048f259d818f10bc3b9d55bce7504eb524fe2cd69115690636d53a99c5a7affcbdba0b8032672bffc7e7a16e307b8b4bc9f5bb6c WHIRLPOOL 9a6b4e9b0ab8da93493a31b22fa333a54bca8d00f95bfd09619ed763447bea34ac651f0a6132ccab5c4c59d6db3822c0dd5b2c74c59373c0c0427692a4c87dd7
+EBUILD autorespond-2.0.5.ebuild 861 SHA256 658ed48012507ab7e3fb7aca76c90a06dab8088915323c37a6ab53f9033ff5f7 SHA512 ab99722e3ce3e8ba6036e4702cc6fd142805215f8fe01ccd9cb7ccc0a8dd854943be2f6ca3cf0b2fed6b832c04ee54af8d929f9b570f8084237ebfa1fd53cced WHIRLPOOL dc0f6e8e39bc093b6a809af89d2fa47176d32abaa0efe019d8917547309c21f8f436c09bbb1e9ec85924a1002e1df1663c0833f318abaa9ea789253f1ef41c96
+MISC ChangeLog 3097 SHA256 123ee3db26d776973da19ef15d403cb29a6a8d7d03d4e469c81e2578485bf403 SHA512 a5eb201031ddfca4590314164f738df2553ea73ab260f1a6eff67fafb9ae544492fc18047b9387833b6d06ef55c501302c178221c8edb8ed99c1090bef895433 WHIRLPOOL 2f15bbe88eed5d2357af034c2f29bc35fcf35358c3cd6c096145a7eddae0558d22f456bd15db63e2f7c527d76b42228e58c56dbe89d61ee07220d24f4d731314
+MISC ChangeLog-2015 1731 SHA256 53b2a497bd84854cc753e144eca02b07311a182b0642edd087148c0ba81d5cca SHA512 857e280fb9e3147cf714b9b161dce7fa9d4f8c0f055dee60478bd9c06989b14cec9856e0c9b2aa6ea0d61044d4cceb9740e9556929b713599def2264887e04b1 WHIRLPOOL 2d204840ca879a68fd31e02e98e0207d7b51ac0ce37fc55a5047cb01c11c88cb058f4cd2c20760d899d7cac80600b143a4e8099e05547c82d30bb2cf95ca96de
+MISC metadata.xml 417 SHA256 3c036ed9b11617f9a025fbebbfa65ffc72b0b0302d27c170fc79b93fda1b8cdf SHA512 3c731894939bde8e8a168768342e54dff5a4a8dad799a0cae974d536cad501d9cb64d541474affa346779279fca82633077e779491b1f8b6664ead538242258e WHIRLPOOL 6468f2dba4dd3fbd582c31eeb5f635aa2bd9a14661056d677cd70fce222bae4c3f8f21e6a4be8cef2f1968f8fdc53aa66477985a2e100b34eac928aaa561b1df
diff --git a/net-mail/autorespond/autorespond-2.0.4.ebuild b/net-mail/autorespond/autorespond-2.0.4.ebuild
new file mode 100644
index 000000000000..392689e29e97
--- /dev/null
+++ b/net-mail/autorespond/autorespond-2.0.4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DEBIAN_PV="1"
+DEBIAN_P="${P/-/_}-${DEBIAN_PV}"
+DESCRIPTION="Autoresponder add on package for qmailadmin"
+HOMEPAGE="http://inter7.com/devel/"
+SRC_URI="mirror://sourceforge/qmailadmin/${P}.tar.gz
+ mirror://debian/pool/contrib/${PN:0:1}/${PN}/${DEBIAN_P}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/qmail"
+DEPEND=""
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch "${DISTDIR}"/${DEBIAN_P}.diff.gz
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install () {
+ into /var/qmail
+ dobin autorespond || die "dobin failed"
+ into /usr
+ dodoc README help_message qmail-auto ChangeLog
+ doman *.1
+}
diff --git a/net-mail/autorespond/autorespond-2.0.5.ebuild b/net-mail/autorespond/autorespond-2.0.5.ebuild
new file mode 100644
index 000000000000..f8b0e5f0413a
--- /dev/null
+++ b/net-mail/autorespond/autorespond-2.0.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Autoresponder add on package for qmailadmin"
+HOMEPAGE="http://inter7.com/devel/"
+SRC_URI="http://inter7.com/devel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/qmail"
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${P}-no-include-bounce.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install () {
+ into /var/qmail
+ dobin autorespond || die "dobin failed"
+ into /usr
+ dodoc README help_message qmail-auto #ChangeLog
+ doman *.1
+}
+
+pkg_postinst() {
+ ewarn "Please note that original messages are now NOT included with bounces"
+ ewarn "by default. Use the flag per the help output if you want them."
+}
diff --git a/net-mail/autorespond/files/autorespond-2.0.5-no-include-bounce.patch b/net-mail/autorespond/files/autorespond-2.0.5-no-include-bounce.patch
new file mode 100644
index 000000000000..5131ad16bcfa
--- /dev/null
+++ b/net-mail/autorespond/files/autorespond-2.0.5-no-include-bounce.patch
@@ -0,0 +1,23 @@
+diff -Nuar autorespond-2.0.5.orig/autorespond.c autorespond-2.0.5/autorespond.c
+--- autorespond-2.0.5.orig/autorespond.c 2003-09-18 13:17:57.000000000 -0700
++++ autorespond-2.0.5/autorespond.c 2008-06-24 20:46:15.615642827 -0700
+@@ -80,7 +80,7 @@
+ #include <sys/wait.h>
+ #include <ctype.h>
+
+-#define DEFAULT_MH 1 /* default value for message_handling flag */
++#define DEFAULT_MH 0 /* default value for message_handling flag */
+ #define DEFAULT_FROM "$" /* default "from" for the autorespond */
+
+ #define WITH_OMESSAGE 1
+@@ -562,8 +562,8 @@
+ fprintf(stderr, "dir - the directory to hold the log of messages\n\n");
+ fprintf(stderr, "optional parameters:\n\n");
+ fprintf(stderr, "flag - handling of original message:\n\n");
+- fprintf(stderr, "0 - append nothing\n");
+- fprintf(stderr, "1 - append quoted original message without attachments <default>\n\n");
++ fprintf(stderr, "0 - append nothing <default>\n");
++ fprintf(stderr, "1 - append quoted original message without attachments\n\n");
+ fprintf(stderr, "arsender - from address in generated message, or:\n\n");
+ fprintf(stderr, "+ = blank from envelope !\n");
+ fprintf(stderr, "$ = To: address will be used\n\n");
diff --git a/net-mail/autorespond/metadata.xml b/net-mail/autorespond/metadata.xml
new file mode 100644
index 000000000000..f46856f1a11c
--- /dev/null
+++ b/net-mail/autorespond/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">qmailadmin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/bincimap/Manifest b/net-mail/bincimap/Manifest
new file mode 100644
index 000000000000..6656ca9501a8
--- /dev/null
+++ b/net-mail/bincimap/Manifest
@@ -0,0 +1,9 @@
+AUX bincimap-1.2-gcc43.patch 1750 SHA256 e7894fbe54989dcff917c2b2b31dd94ef0e39997c90eadc04e2507e5756da870 SHA512 4c97a402394d5f984ad6f7f0fa777d2cca179bc378cc59e3a19823868e2b77edfb1c58371e2d89bcca1c62f6f4aec4b1519aeaaae50011d75da4654d7d8eedb7 WHIRLPOOL 0783e4a7e4bee299895a7184ce7a68f2eb74b139305e428931e40aa20c71593b90607c20e6dd92504a59c62f0866d37097f5d0e891a136c8cb1fa3f862c50a6a
+AUX bincimap-1.2.13-gentoo.diff 1438 SHA256 7c6c70dde65813a08edcad6044adc2d9c5829faaaa3bc5c7ff5c92d240c1a8d6 SHA512 559a1c58c81cef131e2dd902927df61a3de16e2a71daaff3102329a51dfa57c2fb9a37eec0720f19bbec5856d4c59ee030ac187df172f6ec957a54d56daaceef WHIRLPOOL 5e51ae2a72ab8c5c93155b9a94c3d5777271264ec68990d320e30edeeca4fcf6253e30feb90ef11cc22bd65d8b199c9ee41a5e3c60c47e507039ac0e0d3429cf
+AUX bincimap-1.2.13-glibc-2.10.patch 469 SHA256 80182151e35a2f1fa5f81c6fca1439d26d24d92903a32c61ca740c6475229dcf SHA512 36e8afcfeb40a650e8401a0481478714d65e6fbf63366fea2d2f5aba4633195a808ff1e2d1526c89b88020dab9f8671ec3c46db6d444de80c63f1887924c790a WHIRLPOOL eb52b05d8f7804906f3c9d9a2e5c9ded0f18c3d481fab40ab2f8430ea9fc9f25142fb47c99db44cb6610ee7d253ab75863a7e718c04318cc95cc0629c83076d5
+DIST bincimap-1.2.13final.tar.bz2 416152 SHA256 152368a1674a521a2006b8a27ff36c4db1b8bb0cf766ab1a0ada02698fae4528 SHA512 06c0487d214581293b45a2f189979ceecae5e02b74a8d22381e51aef9fb1ad595628d2aa94e7dbdac0ad544747138735aa61b00c50d83090bed4c41e11c3d2dc WHIRLPOOL 8ecbf359e22146d42f1a00a5520d4ede5b463ba82913b5b1ce735086dd86de3711612a4c6083b808783792040439d194733851c3cd5447ed941563c755afcc1b
+EBUILD bincimap-1.2.13-r1.ebuild 2657 SHA256 7a25fdc037ac4377b60a13f68a7269f59ee6c00a93dfc4a5708f75de7e0752dc SHA512 3baaa443d21071c57a57d88f87664b2791ddfcff1646ea531d71813fbf98454dec082a6cafd81a6d7fa1b489ab069878f22d0fdcdfde81ae82e04e1730275a52 WHIRLPOOL aa3e03cb236ce56e6b4b060927b3e297838f4151035e7a691b86dc0dd6c83586bf65d5979fc2d3aef66db9101eb771fa7d00922395ea4b623e724ce0fddb0317
+EBUILD bincimap-1.2.13.ebuild 2618 SHA256 c5ee5b4c023b932bbdb4d0a5fe797be6af16bfd201a914d64c9cafa599da526d SHA512 1d286ba7132cef7503957407a0d06ddb98a86a3b5d7a5ac02b41f662cd0a3b6d28b50e59e412dc1fcb8e09ec722d41e8e81d014f5cf464234a1955e72c1f5d11 WHIRLPOOL b3ab64226a757c61656d981efb0609d8af945f477909951f1cf5f4599075deadd94ccc9ddf79dfe3a32d3fc91fb3c6ec3bb970d7599d0a00544924273c066f44
+MISC ChangeLog 2898 SHA256 59cfcaaddb582e286b77548ac42eb0668e9b5075c2c0b660c36e855b797ddcfc SHA512 a46dfbbb049456c4187cb01885c3761cd26b85a82288412b8a5c6ff6cc78b0ea43d53a9e03e1c311bb13c739fe2ba1120c2077d68f46328ad3c0c507d576ba58 WHIRLPOOL 47a17c1f3662bfcf59f4787e8fdf6c06cdd8dbc39984d417227224708521bb4b3a3f48bc3714d8ed5b1dae24ddaa8e017435396b3051ec9aafdf6dfd90152a83
+MISC ChangeLog-2015 8364 SHA256 51488485736fdc03deca007b0f53ec4964fa134c2c6c8493ca4b6e9b5a91107a SHA512 e32e1227183ea6618e13d30458040ffecbdd801b378bdffa31e3ac0142afbb5f18c38d64223938c4a1fdfb0e14cceb73284282dc85063c89fa271c0ca0ed661d WHIRLPOOL 96e9384fc79308638009ab60fa467fc64f86a7f397298e12a45c16c6ec26dd07f30cd2a22fd88a99c00a2ef3b11ff69c61dccd27a6a4b770216c6be507ff0657
+MISC metadata.xml 320 SHA256 b7aa77b20cc64477abccd41cd67ad5598baf413ecb0a9e46c724d0d156ea19c4 SHA512 fb29a8a6386b26019a9cf2c5204daf2cb89fe8bcb5484efb392bba821600cf1a56837aea9f42f7961c9a895060709e5723bd0bb0bca201548b401702ae04bfeb WHIRLPOOL 24c432d2831b590f8e19afd668cb41b9ca44f8fba7d9423c10f87ef32e3ce782455bdcbecb4a7e36df0a782a08dd63b4ef4afff4890ebe7200ace9bc863377b8
diff --git a/net-mail/bincimap/bincimap-1.2.13-r1.ebuild b/net-mail/bincimap/bincimap-1.2.13-r1.ebuild
new file mode 100644
index 000000000000..4c68d7e65c58
--- /dev/null
+++ b/net-mail/bincimap/bincimap-1.2.13-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="IMAP server for Maildir"
+SRC_URI="http://www.bincimap.org/dl/tarballs/1.2/${P}final.tar.bz2"
+HOMEPAGE="http://freshmeat.net/projects/bincimap/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE="libressl ssl"
+
+DEPEND="ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+)"
+
+RDEPEND="${DEPEND}
+ virtual/daemontools
+ sys-apps/ucspi-tcp
+ net-mail/checkpassword"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !mail-mta/courier
+ !net-mail/courier-imap
+ !net-mail/cyrus-imapd
+ !net-mail/uw-imap"
+
+S="${WORKDIR}/${P}final"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ epatch "${FILESDIR}"/${PN}-1.2-gcc43.patch
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+}
+
+src_configure() {
+ econf $(use_enable ssl) --sysconfdir=/etc/bincimap
+}
+
+src_compile() {
+ emake localstatedir=/etc/bincimap
+}
+
+src_install () {
+ emake DESTDIR="${D}" localstatedir=/etc/bincimap prefix=/usr install
+ keepdir /var/log/bincimap || die
+ use ssl && keepdir /var/log/bincimap-ssl || die
+
+ dodoc AUTHORS ChangeLog INSTALL \
+ NEWS README README.SSL TODO
+ dohtml doc/*.{html,css}
+ rm -rf "${D}"/usr/share/doc/"${PN}"
+
+ # backward compatibility
+ dosym /etc/bincimap/service/bincimap /etc/bincimap/service/imap
+ dosym /etc/bincimap/service/bincimaps /etc/bincimap/service/imaps
+}
+
+pkg_postinst() {
+ elog "To start bicimap at boot you have to enable the /etc/init.d/svscan rc file"
+ elog "and create the following link:"
+ elog "ln -s /etc/bincimap/service/bincimap /service/bincimap"
+ elog
+
+ if use ssl; then
+ elog "If you want to use ssl connections, create the following link:"
+ elog "ln -s /etc/bincimap/service/bincimaps /service/bincimaps"
+ elog
+ elog "And this command will setup bincimap-ssl on your system."
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog
+ fi
+
+ elog "NOTE: Default Maildir path is '~/.maildir'. If you want to modify it,"
+ elog "edit /etc/bincimap/bincimap.conf"
+ elog
+}
+
+pkg_config() {
+ if use ssl; then
+ local pemfile=/etc/bincimap/bincimap.pem
+ if [ ! -f $pemfile ]; then
+ echo "Creating a self-signed ssl-cert:"
+ /usr/bin/openssl req -new -x509 -nodes -out $pemfile -days 366 -keyout $pemfile
+ chmod 640 $pemfile
+
+ einfo "If You want to have a signed cert, do the following:"
+ einfo "openssl req -new -nodes -out req.pem \\"
+ einfo "-keyout $pemfile"
+ einfo "chmod 640 $pemfile"
+ einfo "Send req.pem to your CA to obtain signed_req.pem, and do:"
+ einfo "cat signed_req.pem >> $pemfile"
+ fi
+ fi
+}
diff --git a/net-mail/bincimap/bincimap-1.2.13.ebuild b/net-mail/bincimap/bincimap-1.2.13.ebuild
new file mode 100644
index 000000000000..e08221517a80
--- /dev/null
+++ b/net-mail/bincimap/bincimap-1.2.13.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="IMAP server for Maildir"
+SRC_URI="http://www.bincimap.org/dl/tarballs/1.2/${P}final.tar.bz2"
+HOMEPAGE="http://freshmeat.net/projects/bincimap/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~ppc x86"
+IUSE="ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+
+RDEPEND="${DEPEND}
+ virtual/daemontools
+ sys-apps/ucspi-tcp
+ net-mail/checkpassword"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !mail-mta/courier
+ !net-mail/courier-imap
+ !net-mail/cyrus-imapd
+ !net-mail/uw-imap"
+
+S="${WORKDIR}/${P}final"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ epatch "${FILESDIR}"/${PN}-1.2-gcc43.patch
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+}
+
+src_compile() {
+ econf $(use_enable ssl) --sysconfdir=/etc/bincimap || die
+ emake localstatedir=/etc/bincimap || die
+}
+
+src_install () {
+ make DESTDIR="${D}" localstatedir=/etc/bincimap prefix=/usr install || die
+ keepdir /var/log/bincimap || die
+ if use ssl; then
+ keepdir /var/log/bincimap-ssl || die
+ fi
+
+ dodoc AUTHORS ChangeLog INSTALL \
+ NEWS README README.SSL TODO
+ dohtml doc/*.{html,css}
+ rm -rf "${D}"/usr/share/doc/"${PN}"
+
+ # backward compatibility
+ dosym /etc/bincimap/service/bincimap /etc/bincimap/service/imap
+ dosym /etc/bincimap/service/bincimaps /etc/bincimap/service/imaps
+}
+
+pkg_postinst() {
+ elog "To start bicimap at boot you have to enable the /etc/init.d/svscan rc file"
+ elog "and create the following link:"
+ elog "ln -s /etc/bincimap/service/bincimap /service/bincimap"
+ elog
+
+ if use ssl; then
+ elog "If you want to use ssl connections, create the following link:"
+ elog "ln -s /etc/bincimap/service/bincimaps /service/bincimaps"
+ elog
+ elog "And this command will setup bincimap-ssl on your system."
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog
+ fi
+
+ elog "NOTE: Default Maildir path is '~/.maildir'. If you want to modify it,"
+ elog "edit /etc/bincimap/bincimap.conf"
+ elog
+}
+
+pkg_config() {
+ if use ssl; then
+ local pemfile=/etc/bincimap/bincimap.pem
+ if [ ! -f $pemfile ]; then
+ echo "Creating a self-signed ssl-cert:"
+ /usr/bin/openssl req -new -x509 -nodes -out $pemfile -days 366 -keyout $pemfile
+ chmod 640 $pemfile
+
+ einfo "If You want to have a signed cert, do the following:"
+ einfo "openssl req -new -nodes -out req.pem \\"
+ einfo "-keyout $pemfile"
+ einfo "chmod 640 $pemfile"
+ einfo "Send req.pem to your CA to obtain signed_req.pem, and do:"
+ einfo "cat signed_req.pem >> $pemfile"
+ fi
+ fi
+}
diff --git a/net-mail/bincimap/files/bincimap-1.2-gcc43.patch b/net-mail/bincimap/files/bincimap-1.2-gcc43.patch
new file mode 100644
index 000000000000..76cb3a96d6b5
--- /dev/null
+++ b/net-mail/bincimap/files/bincimap-1.2-gcc43.patch
@@ -0,0 +1,64 @@
+diff -NrU5 bincimap-1.2.13final.orig/src/convert.cc bincimap-1.2.13final/src/convert.cc
+--- bincimap-1.2.13final.orig/src/convert.cc 2005-01-08 11:20:48.000000000 +0100
++++ bincimap-1.2.13final/src/convert.cc 2008-05-07 12:32:33.000000000 +0200
+@@ -37,10 +37,12 @@
+
+ #include "convert.h"
+ #include "io.h"
+ #include <string>
+
++#include <cstring>
++
+ using namespace ::std;
+ using namespace Binc;
+
+ //------------------------------------------------------------------------
+ BincStream::BincStream(void)
+diff -NrU5 bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h
+--- bincimap-1.2.13final.orig/src/convert.h 2005-02-08 21:30:22.000000000 +0100
++++ bincimap-1.2.13final/src/convert.h 2008-05-07 12:32:33.000000000 +0200
+@@ -35,10 +35,11 @@
+ #include <config.h>
+ #endif
+
+ #ifndef convert_h_included
+ #define convert_h_included
++#include <cstdlib>
+ #include <string>
+ #include <vector>
+ #include <iomanip>
+ #include <iostream>
+
+@@ -46,10 +47,12 @@
+ #include <sys/stat.h>
+
+ #include "address.h"
+ #include "depot.h"
+
++#include <cstring>
++
+ namespace Binc {
+
+ //----------------------------------------------------------------------
+ inline std::string toString(int i_in)
+ {
+diff -NrU5 bincimap-1.2.13final.orig/src/tools.cc bincimap-1.2.13final/src/tools.cc
+--- bincimap-1.2.13final.orig/src/tools.cc 2005-01-08 11:20:48.000000000 +0100
++++ bincimap-1.2.13final/src/tools.cc 2008-05-07 12:32:33.000000000 +0200
+@@ -33,13 +33,16 @@
+ */
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+ #include <errno.h>
++#include <cstdlib>
+
+ #include "tools.h"
+
++#include <cstring>
++
+ using namespace ::std;
+ using namespace Binc;
+
+ //------------------------------------------------------------------------
+ Tools::Tools(void)
diff --git a/net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff b/net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff
new file mode 100644
index 000000000000..d969622ab85f
--- /dev/null
+++ b/net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff
@@ -0,0 +1,32 @@
+diff -Naru bincimap-1.2.13final.org/conf/bincimap.conf bincimap-1.2.13final/conf/bincimap.conf
+--- bincimap-1.2.13final.org/conf/bincimap.conf 2004-04-18 20:23:28.000000000 +0100
++++ bincimap-1.2.13final/conf/bincimap.conf 2004-04-24 13:53:10.011618795 +0100
+@@ -56,7 +56,7 @@
+ type = "Maildir", /* only Maildir
+ * support */
+
+- path = "Maildir", /* default path */
++ path = ".maildir", /* default path */
+
+ auto create inbox = "yes", /* create INBOX in
+ * given format if
+diff -Naru bincimap-1.2.13final.org/service/log/run-ssl.in bincimap-1.2.13final/service/log/run-ssl.in
+--- bincimap-1.2.13final.org/service/log/run-ssl.in 2004-03-02 20:16:02.000000000 +0000
++++ bincimap-1.2.13final/service/log/run-ssl.in 2004-04-24 13:52:30.562843106 +0100
+@@ -14,5 +14,5 @@
+
+ exec 2>&1
+
+-exec multilog t n5 s1048576 @localstatedir@/log/bincimap-ssl
++exec multilog t n5 s1048576 /var/log/bincimap-ssl
+
+diff -Naru bincimap-1.2.13final.org/service/log/run.in bincimap-1.2.13final/service/log/run.in
+--- bincimap-1.2.13final.org/service/log/run.in 2004-03-02 20:16:02.000000000 +0000
++++ bincimap-1.2.13final/service/log/run.in 2004-04-24 13:52:37.988613029 +0100
+@@ -14,5 +14,5 @@
+
+ exec 2>&1
+
+-exec multilog t n5 s1048576 @localstatedir@/log/bincimap
++exec multilog t n5 s1048576 /var/log/bincimap
+
diff --git a/net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch b/net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch
new file mode 100644
index 000000000000..063f7a54dc3d
--- /dev/null
+++ b/net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch
@@ -0,0 +1,12 @@
+diff -ur bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h
+--- bincimap-1.2.13final.orig/src/convert.h 2005-02-08 22:30:22.000000000 +0200
++++ bincimap-1.2.13final/src/convert.h 2009-08-08 10:38:08.000000000 +0300
+@@ -111,7 +111,7 @@
+ unsigned char c = *i;
+ unsigned char d = *(i + 1);
+
+- char *t;
++ const char *t;
+ if ((t = strchr(hexchars, c)) == 0)
+ return "out of range";
+ n = (t - hexchars) << 4;
diff --git a/net-mail/bincimap/metadata.xml b/net-mail/bincimap/metadata.xml
new file mode 100644
index 000000000000..cf6abec6e10a
--- /dev/null
+++ b/net-mail/bincimap/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="freshmeat">bincimap</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/checkpassword-pam/Manifest b/net-mail/checkpassword-pam/Manifest
new file mode 100644
index 000000000000..adc634c72838
--- /dev/null
+++ b/net-mail/checkpassword-pam/Manifest
@@ -0,0 +1,5 @@
+DIST checkpassword-pam-0.99.tar.gz 83751 SHA256 014805350f6fc41362f82bef86b1c38d3301f1ac2f2a393afafa45baa840e122 SHA512 d7c9cbeec7fb15c07dcc3c6e6b7f38884bdf0fd2fe31d3a38b2f6f58deec57716b5d65387b03cb858c1bf5fbb5dce88e0451bf1b866b88fbc17165100040baec WHIRLPOOL 112ce527441687a12c14de4beb2f917ea9f1f625b8901c5ae30db8c50f01e8c3106f2c1b463a004735fdb0ec47c50cd5683738b0e4dcee996d623f98cad2c221
+EBUILD checkpassword-pam-0.99.ebuild 466 SHA256 0a92d8e30bb7f67dd78f3cbedb992a0a8dcff562793a8f301e4f84aec5ab9c52 SHA512 bafc7e468c7f4971821ae7036c7d57550d8ba9856cb79a28e521d36e4d60fd40cb2cefe6138d95f745cef34385a5ac2a49977817eb79aa2b8b18d4e688b66518 WHIRLPOOL 0376056397487b933d0ac6a0b47086f9d11115b78d12c3c0dbbd8c04e9d6e9a4b6d52bdcf579c2cabc56e996740c4a6075828f2ae485f685dc04fd1ed8b10c4c
+MISC ChangeLog 2455 SHA256 0b8ce132f133e27ed1a7cbb577a1e1ab9e013d0200fa12d81ec2d361754a18ea SHA512 a15b2246beb83aee182eae87392708f55ba86f5e05bbb0281e729bab6a3173802859383ae3ea85122044462d84adb5a82640f4a3042dfedf519c2e14ccb1899d WHIRLPOOL 46826412165f0fb7aa8ba0eaef15d2b51e9c09d874e60c1b87c67937e0e1c63ed111670049b0f5d17e5c7a00d1c9be127f97f13d14a60c3d15ceb29a1500207c
+MISC ChangeLog-2015 1962 SHA256 440ef4ad88916e53b1e48869ed184b46a9f677445f99e5072cbbb5624f57cb1d SHA512 f261af7e01277f987736693af577fc48392d365def015d461596ac07d7ad256e9d29e69b6e3cde3e00479d34c7072bceeec7ae91a6f71023ef3a9e86ce1e9c9e WHIRLPOOL b553887497b6f52ac8d004a9ce04d47984c410fed0b7715a729554d3521045113e6fede683cb6dddf8f65291a1ed17c0f479b44cd90601ee84d714f5177537b0
+MISC metadata.xml 329 SHA256 0df9cc10a178d0e94a11594a41b3dfb66a21c96e6c2b58eb22c39c0beae42969 SHA512 298da051a42e121ea93b48010a68c140291f87fddf92c203f7d0f6273388184923d9e96cc6020f0b2a5c009845b032a61f36cda409ca0dbebfe61536bb00bb51 WHIRLPOOL 94075f02c21ee789276aa20d5a6d5d7998ab376f73c71d1ac1d2d06cc2c3a0f1f4404143f0a783ab5d45d2c5728fc51c00a52825c980138081af882578e35c81
diff --git a/net-mail/checkpassword-pam/checkpassword-pam-0.99.ebuild b/net-mail/checkpassword-pam/checkpassword-pam-0.99.ebuild
new file mode 100644
index 000000000000..f1ec92eecf92
--- /dev/null
+++ b/net-mail/checkpassword-pam/checkpassword-pam-0.99.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+IUSE=""
+
+DESCRIPTION="checkpassword-compatible authentication program w/pam support"
+HOMEPAGE="http://checkpasswd-pam.sourceforge.net/"
+SRC_URI="mirror://sourceforge/checkpasswd-pam/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~amd64 ~arm64 hppa ppc x86"
+
+DEPEND=">=sys-libs/pam-0.75"
+
+src_install() {
+ einstall || die
+ dodoc AUTHORS NEWS README
+}
diff --git a/net-mail/checkpassword-pam/metadata.xml b/net-mail/checkpassword-pam/metadata.xml
new file mode 100644
index 000000000000..b22ef92dc18e
--- /dev/null
+++ b/net-mail/checkpassword-pam/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">checkpasswd-pam</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/checkpassword/Manifest b/net-mail/checkpassword/Manifest
new file mode 100644
index 000000000000..322dac4787f4
--- /dev/null
+++ b/net-mail/checkpassword/Manifest
@@ -0,0 +1,9 @@
+AUX 0.90-errno.patch 243 SHA256 fd888ebb9e6fc01ab9dcb0c88cbcc75cb6ab54ec90f41cf895d8776af5227e6e SHA512 97ce36c130989e6844d9308f56aeb97b17bd2b3c7dc0b8da69f12cf0f3dfe5bfd2fd43600c7a4d798f743ffeac9bfbd0de9918efaf2f2581c3c695bf58dc18de WHIRLPOOL b4abf9e9cc117405aa18f5e83734c43659b6bd417ad7d364c9ac4135ea633b38beb7688a0555b5ea84b73ab3be418f63a55b42192a57e9622f4475aeb90a3863
+AUX 0.90-exit.patch 294 SHA256 edf9747a4aa7b65d5fb537b3177d1a38a0b2376f2fcf9dc3d45a8909e970d538 SHA512 18935a04c6fb273ed5e813b2e4af65ff2c65bce8c7d45e93a28fe59068ba50fd7999c7f01c50834354ce3b79968e773a99e9e402b023f01bdb7183650cb50bd5 WHIRLPOOL c10604d876a4f83ae84e11c6f32b6f4398e41746379509dfc372d419dc442bc0fc691adc40486bda9f0252e2f0b49e9152ed62ceb61413091ab1fb906e79bf29
+AUX 0.90-head-1.patch 1201 SHA256 d4cc39783e8bc3d0862216f758be128ad333bf1575a4a943377ecccee71d3387 SHA512 b8fd43218a6b396b848e5e827ad30ce406b2c3860abbedf359c7649e4cbedac96968726e0a910c4e9f563d48ec924873c96f315392be2b4bbd252767bdb5f6a9 WHIRLPOOL 644943476c7dd3770a37d42ab94a03513aab1bc2f6e8ded03880c61c5e5c2b6679272222972b4295adcd241d0dce65bf7366cd0c82098079982180efdf146da0
+DIST checkpassword-0.90.tar.gz 15631 SHA256 74300364b6be26be08e34f768532e911789827179e680bc89db3525fe415762f SHA512 301d574c9f2c4c7fef6afb98818f424a43f644e456c6268234e73da898710b0f4b6797a80d240c270c5319398574349bedf6a2c9757e432f293f85ec8c01f51f WHIRLPOOL 7810b7de0006793f33a97b7c022e56c5e1d5a63a4124df83c6d0fc8c3a5e0ec165dcb1f4b29b2bc380f94eae25dc7df5b1daece8f8374528dd11776bf745c369
+EBUILD checkpassword-0.90-r2.ebuild 874 SHA256 497a6eacea29efb44f2557c2f667c5a48cf5b4675f5b3e07402b32c88549370c SHA512 4c171447e7cf0c0c4d5d547811ac66d76841e4922cc0cd1beef6dfc849e053147b35af0dab4fd500f79af0149eac769f9817fbeccecc8210d2d808286e69ed67 WHIRLPOOL e63326b83efaa491fbc6c2d711dfa482c610b11be870dca80dd043d518cd29bf41cd781a4d8325231dabec44bd6d55c1a124673c77b60cd31feadd2d5183527e
+EBUILD checkpassword-0.90-r3.ebuild 857 SHA256 f245ccae670b4f5a5be8cbbbb0382250359fcaa8f33dc4496df24d61479cb089 SHA512 e73a834d099085b8cc7a88642537bb33b4e46f6a00ef2b61d236725ed781a9131ad32d2ac2083d4e8502ef7295377e47b19f954dd58ac0825aa1f6b38ca45528 WHIRLPOOL 56ffab5d1ee4fd56365d19d975e0a294f20ae0b5420a3d07f5e566ddc35d9ffceaf5216633f758485d236bba5b5e130672b538392ea5606df4cba1950c9a77a4
+MISC ChangeLog 2596 SHA256 1f7dfb82bf63400451f0edaf01a3fb9a46f5bc0edb185ea5b219484652939864 SHA512 49569db96957ecd2f287576239abe302a966164136075ef4991d0cc9c0daf38642bb603da68bd579a6d6467f00d7836116b7aad7729aa570185758819f446c03 WHIRLPOOL 25988be33b68ac113b0c83542999aa455348960d67fc230119cced198b487d75085fe45b1f67d7c8753413fa82f64cbe0715a4806b93b66ad442a820cffcff96
+MISC ChangeLog-2015 3148 SHA256 10cd8c479de5701dcb680e6f1d45222041e496a5c8ef41d8228a1c8a4a7acc0a SHA512 3183ba4f556b159f06d8d939261411436ed3966e82c45949b8f4462f7e027d24c75e1a1f709bedb1c127f0bb16826ea0cb74d279914d7074c4c0cca99b086861 WHIRLPOOL 87a67b084ff7d45545d85330b1b40beb290d156ad6800065996440f69f29fd1701b01276586417bc616dd0027c194497677a91b0ab49728b00e7771889299746
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/checkpassword/checkpassword-0.90-r2.ebuild b/net-mail/checkpassword/checkpassword-0.90-r2.ebuild
new file mode 100644
index 000000000000..2b677c23353c
--- /dev/null
+++ b/net-mail/checkpassword/checkpassword-0.90-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="A uniform password checking interface for root applications"
+HOMEPAGE="http://cr.yp.to/checkpwd.html"
+SRC_URI="http://cr.yp.to/checkpwd/${P}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="static"
+RESTRICT="mirror bindist"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-errno.patch
+ epatch "${FILESDIR}"/${PV}-head-1.patch
+
+ use static && append-ldflags -static
+}
+
+src_compile() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ make || die "Error in make"
+}
+
+src_install() {
+ into /
+ dobin checkpassword || die
+ dodoc CHANGES README TODO VERSION FILES SYSDEPS TARGETS
+}
diff --git a/net-mail/checkpassword/checkpassword-0.90-r3.ebuild b/net-mail/checkpassword/checkpassword-0.90-r3.ebuild
new file mode 100644
index 000000000000..523406f0563b
--- /dev/null
+++ b/net-mail/checkpassword/checkpassword-0.90-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils fixheadtails flag-o-matic qmail
+
+DESCRIPTION="A uniform password checking interface for root applications"
+HOMEPAGE="http://cr.yp.to/checkpwd.html"
+SRC_URI="http://cr.yp.to/checkpwd/${P}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="static"
+RESTRICT="mirror bindist"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PV}-errno.patch
+ epatch "${FILESDIR}"/${PV}-exit.patch
+
+ ht_fix_file Makefile print-cc.sh
+
+ use static && append-ldflags -static
+}
+
+src_compile() {
+ qmail_set_cc
+ make || die
+}
+
+src_install() {
+ into /
+ dobin checkpassword || die
+ dodoc CHANGES README TODO VERSION FILES SYSDEPS TARGETS
+}
diff --git a/net-mail/checkpassword/files/0.90-errno.patch b/net-mail/checkpassword/files/0.90-errno.patch
new file mode 100644
index 000000000000..9cf40c689c1e
--- /dev/null
+++ b/net-mail/checkpassword/files/0.90-errno.patch
@@ -0,0 +1,11 @@
+--- error.h.orig 2003-03-05 15:48:54.000000000 -0500
++++ error.h 2003-03-05 15:49:08.000000000 -0500
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+
+-extern int errno;
++#include <errno.h>
+
+ extern int error_intr;
+ extern int error_nomem;
diff --git a/net-mail/checkpassword/files/0.90-exit.patch b/net-mail/checkpassword/files/0.90-exit.patch
new file mode 100644
index 000000000000..e8e4d2d1fc1e
--- /dev/null
+++ b/net-mail/checkpassword/files/0.90-exit.patch
@@ -0,0 +1,10 @@
+Index: checkpassword-0.90/checkpassword.c
+===================================================================
+--- checkpassword-0.90.orig/checkpassword.c
++++ checkpassword-0.90/checkpassword.c
+@@ -1,3 +1,5 @@
++#include <unistd.h>
++
+ #include "error.h"
+ #include "pathexec.h"
+ #include "prot.h"
diff --git a/net-mail/checkpassword/files/0.90-head-1.patch b/net-mail/checkpassword/files/0.90-head-1.patch
new file mode 100644
index 000000000000..08e54297de4e
--- /dev/null
+++ b/net-mail/checkpassword/files/0.90-head-1.patch
@@ -0,0 +1,39 @@
+diff -ur checkpassword-0.90.orig/Makefile checkpassword-0.90/Makefile
+--- checkpassword-0.90.orig/Makefile 2003-09-03 12:06:23.225291952 -0400
++++ checkpassword-0.90/Makefile 2003-09-03 12:06:29.578326144 -0400
+@@ -22,7 +22,7 @@
+
+ auto_home.c: \
+ auto-str conf-home
+- ./auto-str auto_home `head -1 conf-home` > auto_home.c
++ ./auto-str auto_home `head -n 1 conf-home` > auto_home.c
+
+ auto_home.o: \
+ compile auto_home.c
+@@ -91,7 +91,7 @@
+ choose: \
+ warn-auto.sh choose.sh conf-home
+ cat warn-auto.sh choose.sh \
+- | sed s}HOME}"`head -1 conf-home`"}g \
++ | sed s}HOME}"`head -n 1 conf-home`"}g \
+ > choose
+ chmod 755 choose
+
+@@ -166,7 +166,7 @@
+ warn-auto.sh conf-ld
+ ( cat warn-auto.sh; \
+ echo 'main="$$1"; shift'; \
+- echo exec "`head -1 conf-ld`" \
++ echo exec "`head -n 1 conf-ld`" \
+ '-o "$$main" "$$main".o $${1+"$$@"}' \
+ ) > load
+ chmod 755 load
+diff -ur checkpassword-0.90.orig/print-cc.sh checkpassword-0.90/print-cc.sh
+--- checkpassword-0.90.orig/print-cc.sh 2003-09-03 12:06:23.227291648 -0400
++++ checkpassword-0.90/print-cc.sh 2003-09-03 12:06:34.308607032 -0400
+@@ -1,4 +1,4 @@
+-cc="`head -1 conf-cc`"
++cc="`head -n 1 conf-cc`"
+ systype="`cat systype`"
+
+ cat warn-auto.sh
diff --git a/net-mail/checkpassword/metadata.xml b/net-mail/checkpassword/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/checkpassword/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/cmd5checkpw/Manifest b/net-mail/cmd5checkpw/Manifest
new file mode 100644
index 000000000000..f1a05eef4aef
--- /dev/null
+++ b/net-mail/cmd5checkpw/Manifest
@@ -0,0 +1,8 @@
+AUX euid_030.diff 1107 SHA256 32f1f3294e5df0980290b2fddc008526d8f92850d5d7162a08d359a0891ef9cd SHA512 648ded406e4818ba50597b010cedfae6436e3bbcf0c0e9a982b9656211fea7533dbc759434bade78f4df63e64231529ce4713bdf504244f3fe2e93c8bb5f995f WHIRLPOOL e3a9e2b3245b82c191d412797ddcf65ba98a15f0dfa8935993740237fb319340d7726b4b85ced18b62bc21c616281146becabe1ed2c82a358c3310da160e28c9
+AUX poppasswd 84 SHA256 1effea701373e52beff1b45b2d71ff1c215c4459a1f4c42c5950177c93a014cb SHA512 74eb9764b4c9fd251e9bb408d3ace9bcc30f9d638963cd5f385ee6c2c839f1de51b7f55c81d5e0111b568a308eea08185c8bcc965decf36a963b78bf4aea8671 WHIRLPOOL b2e3636b3c38b6a702147b83eaeec00a4384bea6ad5bebc1a9282fdb6a4a8fafaf7aad433f981eba24ae1930ae967915a8bfd4d694b45e1d05a7702780499e26
+AUX reloc.diff 2330 SHA256 bc75c9aaa7aded7ca662d0d34b956a91e5e5f11c1c89095bdbe4b49344e9bec3 SHA512 e18cab4bb02b2bac945d1857f70d6f5faa2296205f09c228d87d16dffb43de129a59ef0054dd6c54f1db7448b47f46a385dc81ffe769dc87d182d81031920369 WHIRLPOOL 5020371d137dfb89b53b641755b0bf304f470a87c7e3d9cf37801001c33577161d4ede2ac389c4d1f17999ceb4e0c25b26b9f3ebe4a1f3b047bcd69ff585e89c
+DIST cmd5checkpw-030_tgz.bin 25812 SHA256 88588e134a498f7efa69ee1d2a217aec7cb65a41b4206100455b5aa40d692f2d SHA512 c54792769097ac7e8a11c6a140a9eefdb090bad4a0336be9543549a232e4faa72f08baea7e746b9743e01ce40c0f7402f4584c53b5eedb3f2d1e457d1c8a45d5 WHIRLPOOL 4057387e78d3a059b17659cb9c0f4a098c36dfb1ba42e8efe377ccc6c912c82768254ec3a2c1fbbeddd78acbdc43c262f65c73a9fbe0a7ebb8e396268a220ff8
+EBUILD cmd5checkpw-0.30-r1.ebuild 1683 SHA256 b492df260527823e33eb51c47414620ce50cc1832046ee88e1f0e9c0957ab1ec SHA512 63ea35fbb395914fef54d289ebf082584107091af5b77facf37a5141521e3501773ab6f964cfbaf6307f91348b0fcf9c1043ed98059d4d8621a4a927948bd2eb WHIRLPOOL 282453d68afd5ebd25b47ccaa9e328154b6743383d497146912bd733f85287a0f076d7b43161530492235f6f649bff2f6af608d548a2f33b406a5728b869af93
+MISC ChangeLog 2504 SHA256 fc9ed34d86ec5740de8c6430c35b98cff0c4d6245b3cc733b13c226d4e582dca SHA512 7e23e40642373dec65617579d288ab2db882a6a1d36229d9a212462d1b6c0d323c241b8fe2c50457212b6e206b7ce4c10085d2b9cf6402030d659be22314888f WHIRLPOOL 2bc103532dc542b78f3ce227ce4b47419c31866d0e569ff5a391fdb698e9b9fbfc25150992ae5c72806b3a2108869cd813174ad07dad7326b60b27daff0a254e
+MISC ChangeLog-2015 7584 SHA256 afcdcfde356eb1ee57569f55fabce8894b2863cc65ef219c7ce4f772cc33fcd6 SHA512 18abe69708cb0e81b933d196749059ebdde8b391e7ca5a80428b059ece2b69a82384f4cf6554bbb562fef02bfcfaf37ee3e87655094d840bfed9cbacf1e73c00 WHIRLPOOL 841b4c88af34fba47be3093568f26a3979fc01acaa8e36a12d0c5330d075e0682143e441663148276ce685d23e8e0ad8efa802e37d60801312985ccbc027925b
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild b/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild
new file mode 100644
index 000000000000..6a2fd0767b51
--- /dev/null
+++ b/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils fixheadtails user
+
+MY_VER="030"
+
+DESCRIPTION="A checkpassword compatible authentication program that used CRAM-MD5 authentication mode"
+SRC_URI="http://www.fehcom.de/qmail/auth/${PN}-${MY_VER}_tgz.bin"
+HOMEPAGE="http://www.fehcom.de/qmail/smtpauth.html"
+
+LICENSE="public-domain RSA"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+ enewuser cmd5checkpw 212 -1 /dev/null bin
+ ewarn
+ ewarn "this version is in NO WAY COMPATIBLE with cmd5checkpw-0.2x"
+ ewarn "it actually receives the authentication credentials"
+ ewarn "in a different order then the old implementation"
+ ewarn "see bug #100693 for details"
+ ewarn "this version IS needed by >=qmail-1.03-r16"
+ ewarn
+}
+
+src_unpack() {
+ # The old code moved the file in DISTDIR, which is forbidden.
+ # It's read-only.
+ cd "${WORKDIR}"
+ rm -f ${PN}-${MY_VER}.tar.gz
+ ln -s "${DISTDIR}"/${PN}-${MY_VER}_tgz.bin ${PN}-${MY_VER}.tar.gz
+ unpack ./${PN}-${MY_VER}.tar.gz
+ cd "${S}"
+
+ epatch "${FILESDIR}"/euid_${MY_VER}.diff
+ epatch "${FILESDIR}"/reloc.diff
+
+ sed -e 's:-c -g -Wall -O3:$(OPTCFLAGS):' -i Makefile
+
+ ht_fix_file Makefile
+}
+
+src_compile() {
+ emake OPTCFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ insinto /etc
+ doins "${FILESDIR}"/poppasswd
+
+ exeinto /bin
+ doexe cmd5checkpw
+ doman cmd5checkpw.8
+
+ fowners cmd5checkpw /etc/poppasswd /bin/cmd5checkpw
+ fperms 400 /etc/poppasswd
+ fperms u+s /bin/cmd5checkpw
+}
+
+pkg_postinst() {
+ chmod 400 "${ROOT}"/etc/poppasswd
+ chown cmd5checkpw "${ROOT}"/etc/poppasswd
+}
diff --git a/net-mail/cmd5checkpw/files/euid_030.diff b/net-mail/cmd5checkpw/files/euid_030.diff
new file mode 100644
index 000000000000..12fa9ecc2e5d
--- /dev/null
+++ b/net-mail/cmd5checkpw/files/euid_030.diff
@@ -0,0 +1,49 @@
+diff -upr cmd5checkpw-0.30.orig/main.c cmd5checkpw-0.30/main.c
+--- cmd5checkpw-0.30.orig/main.c 2003-09-18 16:34:01.000000000 +0300
++++ cmd5checkpw-0.30/main.c 2005-07-31 13:19:25.000000000 +0300
+@@ -5,6 +5,7 @@
+ #include <pwd.h>
+ #include <stdio.h>
+ #include <unistd.h>
++#include <sys/types.h>
+
+ #define LINE_MAX 256
+ #define SASLUSERFILE "/var/qmail/users/authuser"
+@@ -23,10 +24,26 @@ int doit(unsigned char *testlogin, unsig
+ unsigned char h;
+ FILE *fp;
+ int j;
+-
++ uid_t uid;
++ gid_t gid;
+ char *linepnt;
+
+ if ((fp = fopen(SASLUSERFILE, READONLY)) == NULL) _exit(2);
++
++ uid = getuid();
++ gid = getgid();
++
++ if (gid != getegid()) {
++ if (setegid(gid))
++ _exit(2);
++ }
++
++
++ if (uid && (uid != geteuid())) {
++ if (seteuid(uid))
++ _exit(2);
++ }
++
+ while (fgets(line, LINE_MAX, fp) != NULL) {
+ if ((linepnt = strchr(line, '\n')) != NULL) {
+ *linepnt = 0;
+@@ -39,7 +56,8 @@ int doit(unsigned char *testlogin, unsig
+ break;
+ }
+ }
+- fclose(fp);
++
++ if (EOF == fclose(fp)) _exit(2);
+
+ if (!found_user) return(1);
+
diff --git a/net-mail/cmd5checkpw/files/poppasswd b/net-mail/cmd5checkpw/files/poppasswd
new file mode 100644
index 000000000000..8fc1d4275ecd
--- /dev/null
+++ b/net-mail/cmd5checkpw/files/poppasswd
@@ -0,0 +1,3 @@
+# Format of this file is one user:pass per line
+# Like so...
+# joedogger:sm311yf33t
diff --git a/net-mail/cmd5checkpw/files/reloc.diff b/net-mail/cmd5checkpw/files/reloc.diff
new file mode 100644
index 000000000000..7472436bf469
--- /dev/null
+++ b/net-mail/cmd5checkpw/files/reloc.diff
@@ -0,0 +1,63 @@
+diff -upr cmd5checkpw-0.30.orig/Makefile cmd5checkpw-0.30/Makefile
+--- cmd5checkpw-0.30.orig/Makefile 2003-09-18 16:34:01.000000000 +0300
++++ cmd5checkpw-0.30/Makefile 2005-07-31 14:41:16.000000000 +0300
+@@ -14,7 +14,7 @@ CFLAGS=-c -g -Wall -O3
+ LD=gcc
+ LDFLAGS=-g -o ${TARGET}
+
+-default: main man cmd5checkpw
++default: cmd5checkpw
+
+ main: cmd5checkpw.c conf-qmail
+ sed s}QMAILHOME}"`head -1 conf-qmail`"}g cmd5checkpw.c > main.c
+diff -upr cmd5checkpw-0.30.orig/cmd5checkpw.8 cmd5checkpw-0.30/cmd5checkpw.8
+--- cmd5checkpw-0.30.orig/cmd5checkpw.8 2003-09-18 16:34:01.000000000 +0300
++++ cmd5checkpw-0.30/cmd5checkpw.8 2005-07-31 14:43:20.000000000 +0300
+@@ -26,7 +26,7 @@ and a cram-md5 challenge terminated by \
+ .B cmd5checkpw
+ recalcuates a MD5 digest using the provided plain challenge
+ and the passwords from
+-.IR /var/qmail/users/authuser
++.IR /etc/poppasswd
+ and compares it with response (2nd parameter). If they are the same
+ then
+ .B cmd5checkpw
+@@ -50,7 +50,7 @@ exits 111.
+
+ .B cmd5checkpw
+ additionally compares the supplied password with the password in the
+-.IR /var/qmail/user/authuser
++.IR /etc/poppasswd
+ file. Thus it can be used as a plain-text checkpassword
+ for PLAIN & LOGIN authtype (but we recommend using a crypted version for
+ security reasons). To use it, simply provide it with clear text password
+@@ -68,7 +68,7 @@ interface.
+ Before invoking
+ .BR subprogram ,
+ .B cmd5checkpw
+-does not set up anything. Just because users from /var/qmail/user/authuser does not
++does not set up anything. Just because users from /etc/poppasswd does not
+ have to exist in the system so setting their uid,gid etc is not possible.
+
+ Other
+@@ -78,7 +78,7 @@ These effects must be documented;
+ applications will differ in their requirements.
+
+ .SH "FILES"
+-.IR /var/qmail/users/authuser
++.IR /etc/poppasswd
+ - this file contains pairs of logins and clear text passwords
+ separated by ":". It looks like this:
+
+diff -upr cmd5checkpw-0.30.orig/main.c cmd5checkpw-0.30/main.c
+--- cmd5checkpw-0.30.orig/main.c 2003-09-18 16:34:01.000000000 +0300
++++ cmd5checkpw-0.30/main.c 2005-07-31 14:43:36.000000000 +0300
+@@ -7,7 +7,7 @@
+ #include <unistd.h>
+
+ #define LINE_MAX 256
+-#define SASLUSERFILE "/var/qmail/users/authuser"
++#define SASLUSERFILE "/etc/poppasswd"
+ #define READONLY "r"
+ char up[513];
+ int uplen;
diff --git a/net-mail/cmd5checkpw/metadata.xml b/net-mail/cmd5checkpw/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/cmd5checkpw/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/courier-imap/Manifest b/net-mail/courier-imap/Manifest
new file mode 100644
index 000000000000..ad89b64396f0
--- /dev/null
+++ b/net-mail/courier-imap/Manifest
@@ -0,0 +1,33 @@
+AUX courier-authdaemond-r1.service 373 SHA256 c5b647b2f72f8f3097a093d929d021b2ec758e5f8183c7990dfb56af2eed9f8e SHA512 5ef9b65c24700f93a31626d2a657e19165853151e5c33eb96b0d41b818b4669a2785dfb868054231df20acfdfc4218a0bbc7e21260e337a3075c54f97ba9c46b WHIRLPOOL edc6e642105862d7cc3a2b10ae28ea08a9d17a30d99c7620615da74fe2f587a4fae827d656cba0ae0395126dfd72d171172b4ada611e1b0cb8669e02b45bb4f8
+AUX courier-imap-4.0.6-r1-courier-imapd-ssl.rc6 1041 SHA256 72954e740f802845ac00b9ccbaa2b5cedee16d611a7c9ddd7e0510130d631935 SHA512 62efe81649b35bbb08899352428742793ac2336f95e74f47b9d32c445ce943201fff2c7801f8ff2d9977f68cfdd8c0ef35223f5019642acbc3ba1298f81a6a59 WHIRLPOOL 3680daf522a10754ccb5797f994460b453162001b8aa62c7a2bda4de1af881133354d8625ddeee5ffab92ba1d69855ddf04e947fb7ed1217b25ce72b54919607
+AUX courier-imap-4.0.6-r1-courier-imapd.indirect 81 SHA256 5d2e175e20aa5d7b7049a76be847a9bd974d25625b5324ac8f23680cb7e734bc SHA512 22108e1a09e9fc6e6c035ca7f55ba382ec87bf889dd88c2f9934b087d285853a6eb8453fadfe456f9a6de57f973c988bbaba8ec449366f0df8396b430b1d64bf WHIRLPOOL c111c0cf627a4ca0287faeba60ed15a40b8925e1e0d0bec4b58a783feed2073a129a78b0578e0b309a0dafec00a2aac8b1427395bb65454a51d3c475c86a0f08
+AUX courier-imap-4.0.6-r1-courier-imapd.rc6 796 SHA256 cf9e28810503a1ccd9d9560cbc6709fa263e3606c1a79ecbe0b407e1cfa87718 SHA512 a51a098afd97948fc50747819ddcb9d96c3a79c1e13d3dee58f2e500808fa9ac6d87706b845b4a2abb0e55bebfb242f264cfc72062f84197805dd5fd27366e8d WHIRLPOOL 518a934be85f4d1f480e26e45c396a083e4af6f5aa1b9860867984139644900ff87aeab50da41cf2ec410f375694ab17be7cb40b68f8babeda2581a7024ca992
+AUX courier-imap-4.0.6-r1-courier-pop3d-ssl.rc6 1049 SHA256 11daba60e176d741ae0f3aab25c366135af70ea72fd287eabf1b5a48ec3c3f93 SHA512 f2d5682d66e418470f041fd1c0448dbf4ca2a093da167541ea33b49c293249d192b9516bfb48c16135fe7ecf183372362152fad3eeb0d17b0c4f62056eb91f2f WHIRLPOOL 289093efd7a045bb425a9a6b4514cbc1ce18df507cdac222e7d250eb814aab48509d6549023ba0d1171982e3c28447f0bf29e1ad55d6da5c4e347b4fd6f1ffdb
+AUX courier-imap-4.0.6-r1-courier-pop3d.indirect 81 SHA256 27fa269811a3f916b050166733232e5de1fa578c0f3cb79ca649e6b0cff67ea5 SHA512 30dc72519d582663fd08384e75e59504f5c2c7ba6a6e70ef03da56a05e271e46e38a992357f1e13a1026a471f3207cbc50ad70e5dabe169508580f693f953026 WHIRLPOOL 05af85166ba12d3c6a0dc185c05af7d31040cfae700d623ac5e901ac4e2363ee00bf58b88f648e751bddc10f51d30cd56d94ee12df57fdbd2dae771a80230b05
+AUX courier-imap-4.0.6-r1-courier-pop3d.rc6 804 SHA256 9f654d9be2e1f9b4f8a0d02eb4b9fa5f63af429f377f133698ed9084f53d2cbb SHA512 b1c1479d3a30e029f28820cac4c6001e7f757e3bb14472c4c60ac2b71570ff3a88441ccbf4c422846db9ef239c731c61ba100cc0f0ead6be0925212a5a1995f3 WHIRLPOOL af8ac7b87ba6fcd1b7271fbde00915e4baf094360a0d5f6daa3e3489dade5b5b1f6ea8b4e6745b0fda0e817cc49f96a1837f25a40715de50529368d200e595ed
+AUX courier-imap-4.0.6-r1-gentoo-imapd-ssl.rc 840 SHA256 3e4c904d77fa03f1c03fea88b58135d5771287f16461bddb5e9cadf9edd27a39 SHA512 a6317522d0c64656536e6fb16f3cd7a76b596a8d7e6d61a7233564141b14d9ea1db685f369e39b8c6d4bf5e6c762c6d4edd0da13de6d174ad5b35990f3323b1c WHIRLPOOL c3cd92230e623658e0d2c7f3dd8f37c9d53c394231afb78f643c89259c59e29a291990633ebb7140716cdaf1b18bf95a38273ac00976d725f4ae389e410fe9fd
+AUX courier-imap-4.0.6-r1-gentoo-imapd.rc 886 SHA256 0a07047f6be253564485713a02635b0bd90d27034755d5cb8748c13c9e4a9612 SHA512 ccb7f3fab4312918082df0e7f4875a70cd9c08ad69cd94b6bdd5f8a370eec64fd2a178e9806d5a8304711fce171222af4d4f19a59a700e5e6dfbd0ed7bcc3750 WHIRLPOOL 0446064efff411b53913d4ef026b7c54ba4cab3c774e32f822d928dc67a86c070fed5f72575ecf2a25672292a707e83488b854626a46afe435aff2069ffdaf84
+AUX courier-imap-4.0.6-r1-gentoo-pop3d-ssl.rc 813 SHA256 ec2059c05b1ac68ec2d5c247c31a02453edb0de1ed4e4a4af9166b26e8c5bc7d SHA512 9a61aab00d99255b0f3c1780b10eed50bc5a040aade30d1032d202df9be65be03b0c42d9b894e623843fef3e53a1d9fea09ed5a9269548cdf0305b78f109530a WHIRLPOOL 7e41a1d4d4344fc47411c5d33cbbd74739cc7315017abbb2ebdc06335060ba611dc7c6e69dd16ebd32fe1a8891761d81a55f78922b07bd59bc6d9908a649a652
+AUX courier-imap-4.0.6-r1-gentoo-pop3d.rc 859 SHA256 8a5461419bb805420c79b82d9a1b4218e453415ec81c359593a04db9ce0ca0fa SHA512 e86f7984a39aa1a40ff96eeb1d7967456660b7d0add1dfaf005e98313aeaaad645c503e79e9cb8a55bba7ff5f8164b43f0145aa4ef4c1df15f1659f09a97b040 WHIRLPOOL 950f5532528e57cfddc46eba7bfdf235816eab99b038fbea7ba2991f0a02ba7b0b740aec5560a046a2ca2ee618d1f875694e2a8645cf22d21a37fde83c392d87
+AUX courier-imap-4.15-aclocal-fix.patch 237 SHA256 d90bdec1e9f515a24e36d479c864b2260b40bb4b0a35d19e07d2e6424b81b955 SHA512 72cbb54c29dda061fabf96d7b415fcb9a3bf0faf527444c9d4f2a211238e54d516e77778efe31ab25476cbe47e554efd8a9175143a4a2a90c31f04631d6cdc29 WHIRLPOOL cb0a80ab615c808fa910c5c1fe4ed9037dda2b1c4922d1672f05d4591c6b68504a98109e5c96ca114b03e7efbe6b736e4a74bb01799006675172445c633b7e6f
+AUX courier-imap-4.15-db4-bdbobj_configure.ac.patch 1495 SHA256 fd2b75c0b0bd4aee48148f01cea55c4cb55b3521a943fba47ec0ea359b227385 SHA512 f4e40ac312d37499fbbe61fc7f1be3602aac2bac17d3da888c8db77b6f17bd2825c90286dd7669f08b0716e1686c42c5af7953eb949c5a9b4e614fc3a53dd37e WHIRLPOOL 722a612b50cdf05dca99a9b46534ade7e300c51c9f454c8a122f030eb6bbca0de7a3d31d6d214cc1d7317529c82974a648693736def4d2d115e70122bfd9e2b2
+AUX courier-imap-4.15-db4-configure.ac.patch 1460 SHA256 d5d5888ce3534740be0e307830bec325746758af80d6ccc8313173b8dceb8b0b SHA512 99897d152f44713adf746996b8d720af65cb8af46e1ade68f4f3336b59b7b8acfba2d2e35b1b818c440e847e8126e8cf683a17fa4e2bf593e42274da6e21ce15 WHIRLPOOL 2501509d58d128c66f63e391933a2ef77a76dd50def0a67a5471336ed6fa31837cd857a4bbd8d53a76e9970f6fcfb310867bdbe1cb98eff5315238dc91756dfb
+AUX courier-imap-4.15-disable-fam-configure.ac.patch 626 SHA256 53f8a4504580c50da590859eb1c2759ef6d8f8751d8243699a5192bde89dbbf7 SHA512 649de2e7137642702b78f4e37808479124b1e71b7a2d9299f450bcae969399f1efdbc8a6076783baf7a8437fd90dfa6cc3a41908eb46e628ca05901e71c43a08 WHIRLPOOL 5bf1af9cbab1e7d6d08266f1377de6ff3c9238aab9737c9cb233f7b1b16e4c71ba97e86a52e17a791f74bd1784c38d11612c8b5c067844cce361870508e10adf
+AUX courier-imap-4.17-aclocal-fix.patch 299 SHA256 e551782a5a45a0a581cc8fa3264749d97378a884d07ab744577d3f2434b26457 SHA512 a5771c2718d08386a3c36a1bb2812959c68af70049cb3833e49dd034126ae6ae278b51afd40301cc7ff6850efe8772889d05d90b0229be79d82cfd827f2ef75e WHIRLPOOL 2010eeef6fafe5dd607ae38ddd6aeb893c777f4efdcca2d2fb67474113d577bf07ef576b83289752f9b2ffd0f7f6cda2408d4dc6945d10e20cc474fdf50eefbc
+AUX courier-imap-4.17-db4-bdbobj_configure.ac.patch 1499 SHA256 62277124de80452c7453d3be8ce3f46efb7daab47df34136ec22f29f3f276d50 SHA512 2d1db6d13194b5e0866fadab40453264a07df8bf26b241af9f130b79dd800a4bb888a28151c7833b375315f43c9c42946312bc36220232a372179b23e5107b30 WHIRLPOOL 4f09a15157f9cba9cd8705d47dfc0cba3655d65ae2f5a8df08641d243b4d0d0fb774c8b83683a13d95fa8f0e3e695f3b5f4e8fdddde256f8b1a86fc65ff6e0e6
+AUX courier-imap-4.17-db4-configure.ac.patch 1464 SHA256 d7ee1d90348ea84df3387e617a84e651d546567072b2da5671db120bd029d3a7 SHA512 55433b330d1039cd177af058cbc4a2bf7a65e53b8ecf29955c499dd6a68d634d7582449f54d1c70675ed759586e4d9dc7f43ce3703113e76df81b2a8703085bd WHIRLPOOL e28667aade7c74332ee580488e1ed3322218a85afd67b851112bf985afb88cc8e6d82eb204e389b9db0ace8dd49e6ae8e2ada4686ac8e2d127b38aae3ebd9ac9
+AUX courier-imap-4.17-disable-fam-configure.ac.patch 807 SHA256 1b326229d62f42c9d27e08a5f5fd41f8adaf5978c4c25b3e0ff56929a44f6284 SHA512 c1933ab15843a7009f7d7408eb5085452b5575e01727980e3df2a2b79256fc7f8d0d62403ad6906f250249cbbbc516d442b29d5fc70537fa7aa67837366be164 WHIRLPOOL 5fe31b3d0a5aea692dffb432654425255bcf9111eadb86d830ea70d71480367cb9429e1f9c58e194473f0b15a8a9d835f55035397f5202311ba92fa95ad9a891
+AUX courier-imap-gentoo.readme 2827 SHA256 fbfe0396d87bcfe2722df94b2c68ef1a1993edcf776c8572604aed0390e4061f SHA512 a677218ed39483dbe07358382f557a877486d5028b890ce25822663a6fff58a4744d245537a5395c7a403a566522753c91f9c0c511b9a7229ac1ea2ba4a9c54c WHIRLPOOL 57e7f12fd054f5c22a4ec37bc7ff661dd07d09c4b95fb55849d7115a154a067ac1ff286445b987f39f83f3889c4dc82daeaa1cb9f72919bdea3486c22bdeab9b
+AUX courier-imapd-r1.service 299 SHA256 7c4800926bad3283164f91ba39a0aedc3404643062f7f508b1ed9bea71d34044 SHA512 5b44983d067b447bc60bd5365340c7ffd0c7102eba93fd87dda6cafb95c8625efe5badfaa4607c13a21ce37a7e781f5b81a47b9b18666403263e3d8789310d44 WHIRLPOOL 38310850fd03c76f72116862c97a0e1add1b7008b95416a2c6a3b7127b8a377d6ff497dbe9a36c085040e531716c0ece931266b055c7d7087c3cf2d8ec962c86
+AUX courier-imapd-ssl-r1.service 310 SHA256 c4705212124c13f01dd386ed4342c2a9d3ea436735fb3d8d066121b687eadcc2 SHA512 431a1113cbc10aa4042c621fda43eabaed79b4e0fabbc4692073c92368448324f958d3ad922b99b4290efad8a8164aff3698ac69e4e3c1f457d1616f769c11e5 WHIRLPOOL d13024f93ca06a3b019d6a9804d7ad3024bcc1cf6bb782fc27b4b7563492140ea4d13882e14150ccb60b2f7fe4a7fc7a298467e6627387e934d48d5d75dcae1a
+AUX mkimapdcert 996 SHA256 1ebd9ae44e3ca5fb906f5f399abec7d6f117d231db5725be0a1c4e043eaec4f6 SHA512 502eec64d1db7106ca83a38c18bb48ea9fa9d9a2526076fe45fbf54f7313866d9a4cf3bda7b0a8984af88fb8e8f35a24447071d3bc6882c8f158395d55548bf4 WHIRLPOOL de07fbe8ef656223a5fe43c5e8b6df909257e0c171978db30d0c43e3ef56a927dd26b11468545c89e431dceb34f75a44b290192d304c5e32eb29fe54aaf6d111
+AUX mkpop3dcert 996 SHA256 c241ccca359b5d126dc56fc73f21991d8a7bffb5c211d8b0a1e4e88e693eb7cb SHA512 eab113a442dd6b22b5d4eaa6beb755849e2af61dbb3f0bc3eb93c6e9240058c46e5220971504a18587eb2af8f5c8d8c7c44ce24ad898603319a78c1b11dec078 WHIRLPOOL 7b30ab63852376236717eb7cd230b453e2144f56641f506bd47b5fbea645fd7ac53c9147a9e3707a8b0233e74218f69c6b6d8c0f8ff764b3aa13a18d22d966b8
+DIST courier-imap-4.15.tar.bz2 3266353 SHA256 6c34107e7ba9e5396d50b58fb414a495806335cab7135c96ad85a3816785b109 SHA512 7829662282db5e6f414a1d34f06a94c2dd028e263510f01b49ebd3a1a4994055ecc08604568f5a44a30f6411e3a34e0d6c38807c29eaf255752191e885f82e1a WHIRLPOOL 1b5e42bd1f72e3205030b54e9564ce45c4eccb394b31c64a616f225def5a5df05f74ef62c59fbea63b18ce336d77cc2368170a982abb7a6e94d309d0c6ee4dd2
+DIST courier-imap-4.16.2.tar.bz2 3028445 SHA256 3be244b3c4d3d5c5e33efb37e4cf712ae83cbe21e43c31725e0d996ab4acc387 SHA512 42a685324b630835fe0c8735a67879e099f96eadf091c803368a9dd478a80b4ab47225fda6142942569c96b21355b5dac5e174ff434bcdc78784a810d2088609 WHIRLPOOL d1d8af441a8c6f13f81705489deded11fdd8f66bf79a66f9076ed4e7b6e0644d9f9034887a043d8c9c9a55031db9c2c9a2ca0ac53cbbef96c5ed25275c50e9e3
+DIST courier-imap-4.17.3.tar.bz2 3202534 SHA256 6dcbd913344634c8d7bde573c5fd55c86307181798df1192b7d777ec567898fc SHA512 3166cc703cdc09a71d33257671a662d95cfdb8977bc3b19e0218a4d25eb99a1a108d2868a6eb593106e6538aadf684f11ff0426cd58d522e3ca4b2988f0a88f1 WHIRLPOOL edc8249f2eb923121978bde8f2895add4d74e3e54839bbf63f4b2e8506d162796f91550d63e7491afbc6e589fe034aa9b91ce8789ec5bd64b0e48a6472243a8c
+EBUILD courier-imap-4.15-r2.ebuild 7383 SHA256 e1225c004ff78afa3603f31b4f341f319a90e60499e9d106dc3fc15db5418359 SHA512 e07b88d692df44d5ae6695ac38f24770aac5b1fb2efa5de5332b0c7ad599e2953185177029e73e6941dba3af10d65d800bad582b878fbdf2fdd071ed3c615c31 WHIRLPOOL d70c74937efe49552ef132680e09c40ed015fe1bbab00535b72b2e485db1fd4c4c59d54f9be0d73efde9b6f5b760e8bae12dffe8e30f38ddb8080238025aea6a
+EBUILD courier-imap-4.16.2-r1.ebuild 6923 SHA256 cfa1cc540aa3980d74b9d795d195d7c3946d317189bf839bc4a8eeac0d8f2ea9 SHA512 700768d7aa98e16955a02f6a8ada023653620e232d2660500a682bb12939a544133ff5a1ffa5075e5da226e6d0319257409ccc49aba2bcfb19905bf66285a129 WHIRLPOOL 4e9ebce2f8718dd1f1e4a9a271230b15f74c25252941f84dfbf78287736e22c38cfc48e9cea465145fae7e3d4fccfcd5f3ffcc21686b2d759838b41587762bf3
+EBUILD courier-imap-4.17.3.ebuild 6758 SHA256 ac7d9f763f8afe34d52385dc1e69b27893e2f1db26005ed70cfeede98f57a106 SHA512 b6bafde30307a1747a75b5038c7b3f425aabe6c866db798dd487c49b3b924ba4fde5f8da02caecc5e72e6c74d7b350a0fbe7236fc3b08ad253bd6833bf6e6fe5 WHIRLPOOL cbab2b9244e240c69616e48f4544a2e4c103d40e485b68e694bd89bf10e196ac5176225aff379d1748254ef4915bc7a2467d87bae85a6392a4caf60fb4289567
+MISC ChangeLog 5605 SHA256 85239e989467c9f1df21ab396cdf904e24eeb386c1af3eb6d530ef82df6e4609 SHA512 3c976dbf9b7d7282e48d2ddd13d9abf0a2bf1eb339339fba10b8839667d4ce17388bbe3a5e762920ced5cdcaec2c14bea56dad2a8b9a87a8cb4ceb1244eecaf3 WHIRLPOOL cefd6f6036161124fcf8690032fe9dc9005a9db74dda279d6a204cfbc16ec46da9d0939d2e50d9c28fda806db2eb233a7307f2e8df163d834c6686cfa253a5b0
+MISC ChangeLog-2015 45263 SHA256 d18a98970f653f5592dd13bba1142ad1ab798dccec39150a8908623e3ed96679 SHA512 2e54a72d070a1061ec7fb311ee1daac1b3bad3c674a6a39813a5d773209cfa0a8628d78584d9312b1139329a68f371becf20cbca9c99dc6b255e303a4f769ac9 WHIRLPOOL 3cda3ab0b2d6af652909d962fd39b0bc6eee88b9a37cb66583e8f3c9eb210b879b7a0e9f72346dc926badf3ae81ca889ee379e1aa2f32ae49f9caa07459b5f5e
+MISC metadata.xml 382 SHA256 afb0794e4998fd065ec1a821728cdaf1f60de70a4f213f72cf0bc4156209206c SHA512 2422c2a28ee3049a7b8da4b27f0dfca5699cb62ac77d39c89de4b9287f32f78167fc4b3eabf20e890c5c5dc1e00ccdce8a745501d3423846e42224f60e8ed110 WHIRLPOOL 5bce0d3cbea9fbd04ec8efb58b0871eb164d75cfef1bece8927e029894fe63d10069e4cbface3dd0f0c4996fcbae630f4a1b5964e51507224ffe12f8110e37eb
diff --git a/net-mail/courier-imap/courier-imap-4.15-r2.ebuild b/net-mail/courier-imap/courier-imap-4.15-r2.ebuild
new file mode 100644
index 000000000000..4a7ef1d07e13
--- /dev/null
+++ b/net-mail/courier-imap/courier-imap-4.15-r2.ebuild
@@ -0,0 +1,229 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils multilib libtool systemd
+
+DESCRIPTION="An IMAP daemon designed specifically for maildirs"
+HOMEPAGE="http://www.courier-mta.org/"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="berkdb debug fam +gdbm ipv6 selinux gnutls trashquota"
+
+REQUIRED_USE="|| ( berkdb gdbm )"
+
+CDEPEND="
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( >=dev-libs/openssl-0.9.6:0= )
+ >=net-libs/courier-authlib-0.61
+ >=net-mail/mailbase-0.00-r8
+ berkdb? ( sys-libs/db:= )
+ fam? ( virtual/fam )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )"
+DEPEND="${CDEPEND}
+ dev-lang/perl
+ !mail-mta/courier
+ userland_GNU? ( sys-process/procps )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-courier )"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/cyrus-imapd
+ !net-mail/uw-imap"
+
+RC_VER="4.0.6-r1"
+INITD_VER="4.0.6-r1"
+
+src_prepare() {
+ # Bug #48838. Patch to enable/disable FAM support.
+ # 20 Aug 2004 langthang@gentoo.org
+ # This patch should fix bug #51540. fam USE flag is not needed for shared folder support.
+ epatch "${FILESDIR}"/${P}-disable-fam-configure.ac.patch
+
+ # Kill unneeded call to AC_PROG_SYSCONFTOOL (bug #168206).
+ epatch "${FILESDIR}"/${P}-aclocal-fix.patch
+
+ # These patches should fix problems detecting BerkeleyDB.
+ # We now can compile with db4 support.
+ if use berkdb ; then
+ epatch \
+ "${FILESDIR}"/${P}-db4-bdbobj_configure.ac.patch \
+ "${FILESDIR}"/${P}-db4-configure.ac.patch
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=""
+
+ # 19 Aug 2004 langthang@gentoo.org
+ # Default to gdbm if both berkdb and gdbm are present.
+ if use gdbm ; then
+ einfo "Building with GDBM support"
+ myconf="${myconf} --with-db=gdbm"
+ elif use berkdb ; then
+ einfo "Building with BerkeleyDB support"
+ myconf="${myconf} --with-db=db"
+ fi
+
+ # Disabling unicode is no longer supported
+ # By default all available character sets are included
+ # Set ENABLE_UNICODE=iso-8859-1,utf-8,iso-8859-10
+ # to include only specified translation tables.
+ if [[ -z "${ENABLE_UNICODE}" ]] ; then
+ einfo "ENABLE_UNICODE is not set, building with all available character sets"
+ myconf="${myconf} --enable-unicode"
+ else
+ einfo "ENABLE_UNICODE is set, building with unicode=${ENABLE_UNICODE}"
+ myconf="${myconf} --enable-unicode=${ENABLE_UNICODE}"
+ fi
+
+ if use trashquota ; then
+ einfo "Building with Trash Quota Support"
+ myconf="${myconf} --with-trashquota"
+ fi
+
+ use debug && myconf="${myconf} debug=true"
+
+ # Do the actual build now
+ econf \
+ --disable-root-check \
+ --bindir=/usr/sbin \
+ --sysconfdir=/etc/${PN} \
+ --libexecdir=/usr/$(get_libdir)/${PN} \
+ --localstatedir=/var/lib/${PN} \
+ --with-authdaemonvar=/var/lib/${PN}/authdaemon \
+ --enable-workarounds-for-imap-client-bugs \
+ --with-mailuser=mail \
+ --with-mailgroup=mail \
+ $(use_with fam) \
+ $(use_with ipv6) \
+ $(use_with gnutls) \
+ ${myconf}
+
+ # Change the pem file location.
+ sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \
+ libs/imap/imapd-ssl.dist || \
+ die "sed failed"
+
+ sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \
+ libs/imap/pop3d-ssl.dist || \
+ die "sed failed"
+}
+
+src_compile() {
+ # spurious failures with parallel compiles
+ emake -j1
+}
+
+src_install() {
+ dodir /var/lib/${PN} /etc/pam.d
+ default
+ rm -Rf "${D}/etc/pam.d" || die
+
+ # Avoid name collisions in /usr/sbin wrt imapd and pop3d
+ cd "${D}/usr/sbin" || die
+ for name in imapd pop3d ; do
+ mv -f "${name}" "courier-${name}" || die "Failed to mv ${name} to courier-${name}"
+ done
+
+ # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of
+ # 'Maildir', and to use /usr/sbin/courier-foo names.
+ cd "${D}/usr/$(get_libdir)/${PN}" || die
+ for service in {imapd,pop3d}{,-ssl} ; do
+ sed -i -e 's/Maildir/${MAILDIR}/' "${service}.rc" || die "sed failed"
+ sed -i -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" "${service}.rc" || die "sed failed"
+ done
+
+ # Rename the config files correctly and add a value for ${MAILDIR} to them.
+ cd "${D}/etc/${PN}" || die
+ for service in {imapd,pop3d}{,-ssl} ; do
+ mv -f "${service}.dist" "${service}" || die "Failed to mv ${service}.dist to ${service}"
+ echo -e '\n# Hardwire a value for ${MAILDIR}' >> "${service}"
+ echo 'MAILDIR=.maildir' >> "${service}"
+ echo 'MAILDIRPATH=.maildir' >> "${service}"
+ done
+ for service in imapd pop3d ; do
+ echo -e '# Put any program for ${PRERUN} here' >> "${service}"
+ echo 'PRERUN=' >> "${service}"
+ echo -e '# Put any program for ${LOGINRUN} here' >> "${service}"
+ echo -e '# this is for relay-ctrl-allow in 4*' >> "${service}"
+ echo 'LOGINRUN=' >> "${service}"
+ done
+
+ cd "${D}/usr/sbin" || die
+ for x in * ; do
+ if [[ -L "${x}" ]] ; then
+ rm -f "${x}" || die "Failed to rm ${x}"
+ fi
+ done
+
+ cd ../share || die
+ mv -f * ../sbin || die
+ mv -f ../sbin/man . || die
+ cd .. || die
+
+ for x in mkimapdcert mkpop3dcert ; do
+ mv -f "${D}/usr/sbin/${x}" "${D}/usr/sbin/${x}.orig" || die "Failed to mv /usr/sbin/${x} to /usr/sbin/${x}.orig"
+ done
+
+ dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert"
+
+ dosym /usr/sbin/courierlogger /usr/$(get_libdir)/${PN}/courierlogger
+
+ mkdir "${WORKDIR}/tmp" && cd "${WORKDIR}/tmp" || die
+
+ for initd in courier-{imapd,pop3d}{,-ssl} ; do
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" > "${initd}" || die "initd libdir-sed failed"
+ doinitd "${initd}"
+ done
+
+ systemd_newunit "${FILESDIR}"/courier-authdaemond-r1.service courier-authdaemond.service
+ systemd_newunit "${FILESDIR}"/courier-imapd-ssl-r1.service courier-imapd-ssl.service
+ systemd_newunit "${FILESDIR}"/courier-imapd-r1.service courier-imapd.service
+
+ exeinto /usr/$(get_libdir)/${PN}
+ for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" "${FILESDIR}/${PN}-${RC_VER}-${exe}" > "${exe}" || die "exe libdir-sed failed"
+ doexe "${exe}"
+ done
+
+ dodir /usr/bin
+ mv -f "${D}/usr/sbin/maildirmake" "${D}/usr/bin/maildirmake" || die "Failed to mv /usr/sbin/maildirmake to /usr/bin/maildirmake"
+
+ # Bug #45953, more docs.
+ cd "${S}" || die
+ dohtml -r "${S}"/*
+ dodoc "${S}"/{AUTHORS,INSTALL,NEWS,README,ChangeLog} "${FILESDIR}"/${PN}-gentoo.readme
+ docinto imap
+ dodoc "${S}"/libs/imap/{ChangeLog,BUGS,BUGS.html,README}
+ docinto maildir
+ dodoc "${S}"/libs/maildir/{AUTHORS,INSTALL,README.maildirquota.txt,README.sharedfolders.txt}
+ docinto tcpd
+ dodoc "${S}"/libs/tcpd/README.couriertls
+}
+
+pkg_postinst() {
+ elog "Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading"
+ elog "and remove TLS_DHPARAMS from configuration files or run mkdhparams"
+
+ elog "For a quick-start howto please refer to"
+ elog "${PN}-gentoo.readme in /usr/share/doc/${PF}"
+ # Some users have been reporting that permissions on this directory were
+ # getting scrambled, so let's ensure that they are sane.
+ chmod 0755 "${ROOT}/usr/$(get_libdir)/${PN}" || die "Failed to ensure sane permissions on ${ROOT}/usr/$(get_libdir)/${PN}"
+}
+
+src_test() {
+ ewarn "make check is not supported by this package due to the"
+ ewarn "--enable-workarounds-for-imap-client-bugs option."
+}
diff --git a/net-mail/courier-imap/courier-imap-4.16.2-r1.ebuild b/net-mail/courier-imap/courier-imap-4.16.2-r1.ebuild
new file mode 100644
index 000000000000..83083366938a
--- /dev/null
+++ b/net-mail/courier-imap/courier-imap-4.16.2-r1.ebuild
@@ -0,0 +1,221 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils multilib libtool systemd
+
+DESCRIPTION="An IMAP daemon designed specifically for maildirs"
+HOMEPAGE="http://www.courier-mta.org/"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="berkdb debug fam +gdbm gnutls ipv6 libressl selinux trashquota"
+
+REQUIRED_USE="|| ( berkdb gdbm )"
+
+CDEPEND="
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ >=net-libs/courier-authlib-0.61
+ >=net-libs/courier-unicode-1.3
+ >=net-mail/mailbase-0.00-r8
+ berkdb? ( sys-libs/db:= )
+ fam? ( virtual/fam )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )"
+DEPEND="${CDEPEND}
+ dev-lang/perl
+ !mail-mta/courier
+ userland_GNU? ( sys-process/procps )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-courier )"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/cyrus-imapd
+ !net-mail/uw-imap"
+
+RC_VER="4.0.6-r1"
+INITD_VER="4.0.6-r1"
+
+src_prepare() {
+ # Bug #48838. Patch to enable/disable FAM support.
+ # 20 Aug 2004 langthang@gentoo.org
+ # This patch should fix bug #51540. fam USE flag is not needed for shared folder support.
+ epatch "${FILESDIR}"/${PN}-4.15-disable-fam-configure.ac.patch
+
+ # Kill unneeded call to AC_PROG_SYSCONFTOOL (bug #168206).
+ epatch "${FILESDIR}"/${PN}-4.15-aclocal-fix.patch
+
+ # These patches should fix problems detecting BerkeleyDB.
+ # We now can compile with db4 support.
+ if use berkdb ; then
+ epatch \
+ "${FILESDIR}"/${PN}-4.15-db4-bdbobj_configure.ac.patch \
+ "${FILESDIR}"/${PN}-4.15-db4-configure.ac.patch
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=""
+
+ # 19 Aug 2004 langthang@gentoo.org
+ # Default to gdbm if both berkdb and gdbm are present.
+ if use gdbm ; then
+ einfo "Building with GDBM support"
+ myconf="${myconf} --with-db=gdbm"
+ elif use berkdb ; then
+ einfo "Building with BerkeleyDB support"
+ myconf="${myconf} --with-db=db"
+ fi
+
+ if use trashquota ; then
+ einfo "Building with Trash Quota Support"
+ myconf="${myconf} --with-trashquota"
+ fi
+
+ use debug && myconf="${myconf} debug=true"
+
+ # Do the actual build now
+ econf \
+ --disable-root-check \
+ --bindir=/usr/sbin \
+ --sysconfdir=/etc/${PN} \
+ --libexecdir=/usr/$(get_libdir)/${PN} \
+ --localstatedir=/var/lib/${PN} \
+ --with-authdaemonvar=/var/lib/${PN}/authdaemon \
+ --enable-workarounds-for-imap-client-bugs \
+ --with-mailuser=mail \
+ --with-mailgroup=mail \
+ $(use_with fam) \
+ $(use_with ipv6) \
+ $(use_with gnutls) \
+ ${myconf}
+
+ # Change the pem file location.
+ sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \
+ libs/imap/imapd-ssl.dist || \
+ die "sed failed"
+
+ sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \
+ libs/imap/pop3d-ssl.dist || \
+ die "sed failed"
+}
+
+src_compile() {
+ # spurious failures with parallel compiles
+ emake -j1
+}
+
+src_install() {
+ dodir /var/lib/${PN} /etc/pam.d
+ default
+ rm -Rf "${D}/etc/pam.d" || die
+
+ # Avoid name collisions in /usr/sbin wrt imapd and pop3d
+ cd "${D}/usr/sbin" || die
+ for name in imapd pop3d ; do
+ mv -f "${name}" "courier-${name}" || die "Failed to mv ${name} to courier-${name}"
+ done
+
+ # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of
+ # 'Maildir', and to use /usr/sbin/courier-foo names.
+ cd "${D}/usr/$(get_libdir)/${PN}" || die
+ for service in {imapd,pop3d}{,-ssl} ; do
+ sed -i -e 's/Maildir/${MAILDIR}/' "${service}.rc" || die "sed failed"
+ sed -i -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" "${service}.rc" || die "sed failed"
+ done
+
+ # Rename the config files correctly and add a value for ${MAILDIR} to them.
+ cd "${D}/etc/${PN}" || die
+ for service in {imapd,pop3d}{,-ssl} ; do
+ mv -f "${service}.dist" "${service}" || die "Failed to mv ${service}.dist to ${service}"
+ echo -e '\n# Hardwire a value for ${MAILDIR}' >> "${service}"
+ echo 'MAILDIR=.maildir' >> "${service}"
+ echo 'MAILDIRPATH=.maildir' >> "${service}"
+ done
+ for service in imapd pop3d ; do
+ echo -e '# Put any program for ${PRERUN} here' >> "${service}"
+ echo 'PRERUN=' >> "${service}"
+ echo -e '# Put any program for ${LOGINRUN} here' >> "${service}"
+ echo -e '# this is for relay-ctrl-allow in 4*' >> "${service}"
+ echo 'LOGINRUN=' >> "${service}"
+ done
+
+ cd "${D}/usr/sbin"
+ for x in * ; do
+ if [[ -L "${x}" ]] ; then
+ rm -f "${x}" || die "Failed to rm ${x}"
+ fi
+ done
+
+ cd ../share
+ mv -f * ../sbin
+ mv -f ../sbin/man .
+ cd ..
+
+ for x in mkimapdcert mkpop3dcert ; do
+ mv -f "${D}/usr/sbin/${x}" "${D}/usr/sbin/${x}.orig" || die "Failed to mv /usr/sbin/${x} to /usr/sbin/${x}.orig"
+ done
+
+ dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert"
+
+ dosym /usr/sbin/courierlogger /usr/$(get_libdir)/${PN}/courierlogger
+
+ mkdir "${WORKDIR}/tmp" ; cd "${WORKDIR}/tmp"
+
+ for initd in courier-{imapd,pop3d}{,-ssl} ; do
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" > "${initd}" || die "initd libdir-sed failed"
+ doinitd "${initd}"
+ done
+
+ systemd_newunit "${FILESDIR}"/courier-authdaemond-r1.service courier-authdaemond.service
+ systemd_newunit "${FILESDIR}"/courier-imapd-ssl-r1.service courier-imapd-ssl.service
+ systemd_newunit "${FILESDIR}"/courier-imapd-r1.service courier-imapd.service
+
+ exeinto /usr/$(get_libdir)/${PN}
+ for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" "${FILESDIR}/${PN}-${RC_VER}-${exe}" > "${exe}" || die "exe libdir-sed failed"
+ doexe "${exe}"
+ done
+
+ dodir /usr/bin
+ mv -f "${D}/usr/sbin/maildirmake" "${D}/usr/bin/maildirmake" || die "Failed to mv /usr/sbin/maildirmake to /usr/bin/maildirmake"
+
+ # Bug #45953, more docs.
+ cd "${S}" || die
+ dohtml -r "${S}"/*
+ dodoc "${S}"/{AUTHORS,INSTALL,NEWS,README,ChangeLog} "${FILESDIR}"/${PN}-gentoo.readme
+ docinto imap
+ dodoc "${S}"/libs/imap/{ChangeLog,BUGS,BUGS.html,README}
+ docinto maildir
+ dodoc "${S}"/libs/maildir/{AUTHORS,INSTALL,README.maildirquota.txt,README.sharedfolders.txt}
+ docinto tcpd
+ dodoc "${S}"/libs/tcpd/README.couriertls
+}
+
+pkg_postinst() {
+ elog "Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading"
+ elog "and remove TLS_DHPARAMS from configuration files or run mkdhparams"
+
+ elog "For a quick-start howto please refer to"
+ elog "${PN}-gentoo.readme in /usr/share/doc/${PF}"
+ # Some users have been reporting that permissions on this directory were
+ # getting scrambled, so let's ensure that they are sane.
+ chmod 0755 "${ROOT}/usr/$(get_libdir)/${PN}" || die "Failed to ensure sane permissions on ${ROOT}/usr/$(get_libdir)/${PN}"
+}
+
+src_test() {
+ ewarn "make check is not supported by this package due to the"
+ ewarn "--enable-workarounds-for-imap-client-bugs option."
+}
diff --git a/net-mail/courier-imap/courier-imap-4.17.3.ebuild b/net-mail/courier-imap/courier-imap-4.17.3.ebuild
new file mode 100644
index 000000000000..8347c0afb219
--- /dev/null
+++ b/net-mail/courier-imap/courier-imap-4.17.3.ebuild
@@ -0,0 +1,231 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools libtool systemd
+
+DESCRIPTION="An IMAP daemon designed specifically for maildirs"
+HOMEPAGE="http://www.courier-mta.org/"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="berkdb debug fam +gdbm gnutls ipv6 libressl selinux trashquota"
+
+REQUIRED_USE="|| ( berkdb gdbm )"
+
+CDEPEND="
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ >=net-libs/courier-authlib-0.61
+ >=net-libs/courier-unicode-1.3
+ >=net-mail/mailbase-0.00-r8
+ berkdb? ( sys-libs/db:= )
+ fam? ( virtual/fam )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )"
+DEPEND="${CDEPEND}
+ dev-lang/perl
+ !mail-mta/courier
+ userland_GNU? ( sys-process/procps )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-courier )"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/cyrus-imapd
+ !net-mail/uw-imap"
+
+RC_VER="4.0.6-r1"
+INITD_VER="4.0.6-r1"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.17-disable-fam-configure.ac.patch"
+ "${FILESDIR}/${PN}-4.17-aclocal-fix.patch"
+)
+
+src_prepare() {
+ default
+
+ # These patches should fix problems detecting BerkeleyDB.
+ # We now can compile with db4 support.
+ if use berkdb ; then
+ eapply "${FILESDIR}/${PN}-4.17-db4-bdbobj_configure.ac.patch"
+ eapply "${FILESDIR}/${PN}-4.17-db4-configure.ac.patch"
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=""
+
+ # Default to gdbm if both berkdb and gdbm are present.
+ if use gdbm ; then
+ einfo "Building with GDBM support"
+ myconf="${myconf} --with-db=gdbm"
+ elif use berkdb ; then
+ einfo "Building with BerkeleyDB support"
+ myconf="${myconf} --with-db=db"
+ fi
+
+ if use trashquota ; then
+ einfo "Building with Trash Quota Support"
+ myconf="${myconf} --with-trashquota"
+ fi
+
+ use debug && myconf="${myconf} debug=true"
+
+ econf \
+ --disable-root-check \
+ --bindir=/usr/sbin \
+ --sysconfdir="/etc/${PN}" \
+ --libexecdir="/usr/$(get_libdir)/${PN}" \
+ --localstatedir="/var/lib/${PN}" \
+ --with-authdaemonvar="/var/lib/${PN}/authdaemon" \
+ --enable-workarounds-for-imap-client-bugs \
+ --with-mailuser=mail \
+ --with-mailgroup=mail \
+ $(use_with fam) \
+ $(use_with ipv6) \
+ $(use_with gnutls) \
+ ${myconf}
+
+ # Change the pem file location.
+ sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \
+ libs/imap/imapd-ssl.dist || \
+ die "sed failed"
+
+ sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \
+ libs/imap/pop3d-ssl.dist || \
+ die "sed failed"
+}
+
+src_compile() {
+ # spurious failures with parallel compiles
+ emake -j1
+}
+
+src_install() {
+ dodir "/var/lib/${PN}" /etc/pam.d
+ default
+ rm -r "${D}/etc/pam.d" || die
+
+ # Avoid name collisions in /usr/sbin wrt imapd and pop3d
+ for name in imapd pop3d ; do
+ mv "${D}/usr/sbin/"{,courier-}${name} \
+ || die "failed to rename ${name} to courier-${name}"
+ done
+
+ # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of
+ # 'Maildir', and to use /usr/sbin/courier-foo names.
+ for service in {imapd,pop3d}{,-ssl} ; do
+ sed -e 's/Maildir/${MAILDIR}/' \
+ -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \
+ || die "sed failed"
+ sed -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \
+ -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \
+ || die "sed failed"
+ done
+
+ # Rename the config files correctly and add a value for ${MAILDIR}
+ # to them.
+ for service in {imapd,pop3d}{,-ssl} ; do
+ mv "${D}/etc/${PN}/${service}"{.dist,} \
+ || die "failed to rename ${service}.dist to ${service}"
+ echo -e '\n# Hardwire a value for ${MAILDIR}' \
+ >> "${D}/etc/${PN}/${service}"
+ echo 'MAILDIR=.maildir' >> "${D}/etc/${PN}/${service}"
+ echo 'MAILDIRPATH=.maildir' >> "${D}/etc/${PN}/${service}"
+ done
+
+ for service in imapd pop3d ; do
+ echo -e '# Put any program for ${PRERUN} here' \
+ >> "${D}/etc/${PN}/${service}"
+ echo 'PRERUN=' >> "${D}/etc/${PN}/${service}"
+ echo -e '# Put any program for ${LOGINRUN} here' \
+ >> "${D}/etc/${PN}/${service}"
+ echo -e '# this is for relay-ctrl-allow in 4*' \
+ >> "${D}/etc/${PN}/${service}"
+ echo 'LOGINRUN=' >> "${D}/etc/${PN}/${service}"
+ done
+
+ for x in "${D}/usr/sbin"/* ; do
+ if [[ -L "${x}" ]] ; then
+ rm "${x}" || die "failed to remove ${x}"
+ fi
+ done
+
+ mv "${D}/usr/share"/* "${D}/usr/sbin/" || die
+ mv "${D}/usr/sbin/man" "${D}/usr/share/" || die
+
+ rm "${D}/usr/sbin/"{mkimapdcert,mkpop3dcert} || die
+
+ dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert"
+
+ dosym /usr/sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"
+
+ for initd in courier-{imapd,pop3d}{,-ssl} ; do
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \
+ "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" \
+ > "${T}/${initd}" \
+ || die "initd libdir-sed failed"
+ doinitd "${T}/${initd}"
+ done
+
+ systemd_newunit "${FILESDIR}"/courier-authdaemond-r1.service \
+ courier-authdaemond.service
+ systemd_newunit "${FILESDIR}"/courier-imapd-ssl-r1.service \
+ courier-imapd-ssl.service
+ systemd_newunit "${FILESDIR}"/courier-imapd-r1.service \
+ courier-imapd.service
+
+ exeinto "/usr/$(get_libdir)/${PN}"
+ for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do
+ sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \
+ "${FILESDIR}/${PN}-${RC_VER}-${exe}" \
+ > "${T}/${exe}" \
+ || die "exe libdir-sed failed"
+ doexe "${T}/${exe}"
+ done
+
+ # Avoid a collision with mail-mta/netqmail, bug 482098.
+ mv "${D}/usr/sbin/"{,courier-}maildirmake \
+ || die "failed to rename maildirmake to courier-maildirmake"
+ mv "${D}/usr/share/man/man1/"{,courier-}maildirmake.1 \
+ || die "failed to rename maildirmake.1 to courier-maildirmake.1"
+
+ dodoc AUTHORS INSTALL NEWS README ChangeLog
+ dodoc "${FILESDIR}/${PN}-gentoo.readme"
+ docinto imap
+ dodoc libs/imap/ChangeLog libs/imap/BUGS* libs/imap/README*
+ docinto maildir
+ dodoc libs/maildir/AUTHORS libs/maildir/*.html libs/maildir/README*
+ docinto rfc2045
+ dodoc libs/rfc2045/*.html
+ docinto tcpd
+ dodoc libs/tcpd/README* libs/tcpd/*.html
+}
+
+pkg_postinst() {
+ elog "Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading"
+ elog "and remove TLS_DHPARAMS from configuration files or run mkdhparams"
+
+ elog "For a quick-start howto please refer to"
+ elog "${PN}-gentoo.readme in /usr/share/doc/${PF}"
+ # Some users have been reporting that permissions on this directory were
+ # getting scrambled, so let's ensure that they are sane.
+ fperms 0755 "${ROOT}/usr/$(get_libdir)/${PN}"
+}
+
+src_test() {
+ ewarn "make check is not supported by this package due to the"
+ ewarn "--enable-workarounds-for-imap-client-bugs option."
+}
diff --git a/net-mail/courier-imap/files/courier-authdaemond-r1.service b/net-mail/courier-imap/files/courier-authdaemond-r1.service
new file mode 100644
index 000000000000..239821647c26
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-authdaemond-r1.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Courier Authentification Daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/courierlogger -pid=/var/run/authdaemon.pid -start /usr/lib/courier/courier-authlib/authdaemond
+ExecStop=/usr/sbin/courierlogger -pid=/var/run/authdaemon.pid -stop /usr/lib/courier/courier-authlib/authdaemond
+PIDFile=/var/run/authdaemon.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd-ssl.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd-ssl.rc6
new file mode 100644
index 000000000000..2386a8eb4d9a
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd-ssl.rc6
@@ -0,0 +1,40 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net courier-authlib
+ use famd
+}
+
+. /etc/courier-imap/imapd-ssl
+
+checkconfig() {
+ if [ ! -e /etc/courier-imap/imapd-ssl ] ; then
+ eerror "You need an /etc/courier-imap/imapd-ssl file to run courier-imapd-ssl"
+ return 1
+ fi
+ . /etc/courier-imap/imapd-ssl || {
+ eerror "There are syntax errors in /etc/courier-imap/imapd-ssl"
+ eerror "Please correct them before trying to start courier-imapd-ssl"
+ return 3
+ }
+ if [ ! -e "${TLS_CERTFILE}" ] ; then
+ eerror "You need to create a SSL certificate to use IMAP over SSL"
+ eerror "Edit /etc/courier-imap/imapd.cnf, then run: mkimapdcert"
+ return 2
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting courier-imapd over SSL"
+ /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-imapd-ssl.rc --pid=${SSLPIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping courier-imapd over SSL"
+ start-stop-daemon --quiet --stop --pid=${SSLPIDFILE}
+ eend $?
+}
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.indirect b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.indirect
new file mode 100644
index 000000000000..26e0ba2cd5c0
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.indirect
@@ -0,0 +1,3 @@
+#!/bin/bash
+XMAILDIR="$1"
+exec ${LOGINRUN} /usr/sbin/courier-imapd "${XMAILDIR}"
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
new file mode 100644
index 000000000000..0d5decf5d08f
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
@@ -0,0 +1,35 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net courier-authlib
+ use famd
+}
+
+. /etc/courier-imap/imapd
+
+checkconfig() {
+ if [ ! -e /etc/courier-imap/imapd ] ; then
+ eerror "You need an /etc/courier-imap/imapd file to run courier-imapd"
+ return 1
+ fi
+ . /etc/courier-imap/imapd || {
+ eerror "There are syntax errors in /etc/courier-imap/imapd"
+ eerror "Please correct them before trying to start courier-imapd"
+ return 2
+ }
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting courier-imapd"
+ /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-imapd.rc --pid=${PIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping courier-imapd"
+ start-stop-daemon --quiet --stop --pid=${PIDFILE}
+ eend $?
+}
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d-ssl.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d-ssl.rc6
new file mode 100644
index 000000000000..7d087776fbd9
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d-ssl.rc6
@@ -0,0 +1,40 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net courier-authlib
+ use famd
+}
+
+. /etc/courier-imap/pop3d-ssl
+
+checkconfig() {
+ if [ ! -e /etc/courier-imap/pop3d-ssl ] ; then
+ eerror "You need an /etc/courier-imap/pop3d-ssl file to run courier-pop3d-ssl"
+ return 1
+ fi
+ . /etc/courier-imap/pop3d-ssl || {
+ eerror "There are syntax errors in /etc/courier-imap/pop3d-ssl"
+ eerror "Please correct them before trying to start courier-pop3d-ssl"
+ return 3
+ }
+ if [ ! -e "${TLS_CERTFILE}" ] ; then
+ eerror "You need to create a SSL certificate to use POP3 over SSL"
+ eerror "Edit /etc/courier-imap/pop3d.cnf, then run: mkpop3dcert"
+ return 2
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting courier-pop3d over SSL"
+ /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-pop3d-ssl.rc --pidfile ${SSLPIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping courier-pop3d over SSL"
+ start-stop-daemon --quiet --stop --pidfile ${SSLPIDFILE}
+ eend $?
+}
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.indirect b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.indirect
new file mode 100644
index 000000000000..1a523f24db4f
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.indirect
@@ -0,0 +1,3 @@
+#!/bin/bash
+XMAILDIR="$1"
+exec ${LOGINRUN} /usr/sbin/courier-pop3d "${XMAILDIR}"
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.rc6
new file mode 100644
index 000000000000..80aeabdb3c71
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.rc6
@@ -0,0 +1,35 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net courier-authlib
+ use famd
+}
+
+. /etc/courier-imap/pop3d
+
+checkconfig() {
+ if [ ! -e /etc/courier-imap/pop3d ] ; then
+ eerror "You need an /etc/courier-imap/pop3d file to run courier-pop3d"
+ return 1
+ fi
+ . /etc/courier-imap/pop3d || {
+ eerror "There are syntax errors in /etc/courier-imap/pop3d"
+ eerror "Please correct them before trying to start courier-pop3d"
+ return 2
+ }
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting courier-pop3d"
+ /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-pop3d.rc --pidfile ${PIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping courier-pop3d"
+ start-stop-daemon --quiet --stop --pidfile ${PIDFILE}
+ eend $?
+}
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd-ssl.rc b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd-ssl.rc
new file mode 100644
index 000000000000..9a8db7cbd1c0
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd-ssl.rc
@@ -0,0 +1,31 @@
+#!/bin/bash
+#
+# Copyright 1998 - 2000 Double Precision, Inc.
+# See COPYING for distribution information.
+
+prefix=/usr
+exec_prefix=/usr
+bindir=/usr/sbin
+libexecdir=/usr/GENTOO_LIBDIR/courier-imap
+
+source /etc/courier-imap/imapd
+source /etc/courier-imap/imapd-ssl
+
+ulimit -d ${IMAP_ULIMITD}
+
+export IMAP_TLS=1
+
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd-ssl | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+
+eval ${PRERUN} ${libexecdir}/couriertcpd \
+ -address=${SSLADDRESS} \
+ -stderrlogger=${libexecdir}/courierlogger \
+ -stderrloggername=imapd-ssl \
+ -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \
+ -pid=${SSLPIDFILE} ${TCPDOPTS} ${SSLPORT} \
+ ${COURIERTLS} -server -tcpd \
+ ${bindir}/imaplogin \
+ ${libexecdir}/courier-imapd.indirect "${MAILDIR}"
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc
new file mode 100644
index 000000000000..bc534abfd9fa
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Copyright 1998 - 2000 Double Precision, Inc.
+# See COPYING for distribution information.
+
+prefix=/usr
+exec_prefix=/usr
+bindir=/usr/sbin
+libexecdir=/usr/GENTOO_LIBDIR/courier-imap
+
+source /etc/courier-imap/imapd-ssl
+source /etc/courier-imap/imapd
+
+ulimit -d ${IMAP_ULIMITD}
+
+IMAP_STARTTLS="${IMAPDSTARTTLS}"
+export IMAPDSTARTTLS IMAP_STARTTLS
+TLS_PROTOCOL="${TLS_STARTTLS_PROTOCOL}"
+
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd-ssl | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+
+eval ${PRERUN} ${libexecdir}/couriertcpd \
+ -address=${ADDRESS} \
+ -stderrlogger=${libexecdir}/courierlogger \
+ -stderrloggername=imapd \
+ -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \
+ -pid=${PIDFILE} ${TCPDOPTS} ${PORT} \
+ ${bindir}/imaplogin \
+ ${libexecdir}/courier-imapd.indirect "${MAILDIR}"
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d-ssl.rc b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d-ssl.rc
new file mode 100644
index 000000000000..5fa0ae9e5c06
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d-ssl.rc
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# Copyright 1998 - 2000 Double Precision, Inc.
+# See COPYING for distribution information.
+
+prefix=/usr
+exec_prefix=/usr
+bindir=/usr/sbin
+libexecdir=/usr/GENTOO_LIBDIR/courier-imap
+
+source /etc/courier-imap/pop3d
+source /etc/courier-imap/pop3d-ssl
+
+export POP3_TLS=1
+
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d-ssl | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+
+eval ${PRERUN} ${libexecdir}/couriertcpd \
+ -address=${SSLADDRESS} \
+ -stderrlogger=${libexecdir}/courierlogger \
+ -stderrloggername=pop3d-ssl \
+ -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \
+ -pid=${SSLPIDFILE} ${TCPDOPTS} ${SSLPORT} \
+ ${COURIERTLS} -server -tcpd \
+ ${bindir}/pop3login \
+ ${libexecdir}/courier-pop3d.indirect "${MAILDIR}"
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d.rc b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d.rc
new file mode 100644
index 000000000000..b9d8252c551e
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d.rc
@@ -0,0 +1,30 @@
+#!/bin/bash
+#
+# Copyright 1998 - 2000 Double Precision, Inc.
+# See COPYING for distribution information.
+
+prefix=/usr
+exec_prefix=/usr
+bindir=/usr/sbin
+libexecdir=/usr/GENTOO_LIBDIR/courier-imap
+
+source /etc/courier-imap/pop3d-ssl
+source /etc/courier-imap/pop3d
+
+POP3DSTARTTLS="${POP3_STARTTLS}"
+export POP3_STARTTLS POP3DSTARTTLS
+TLS_PROTOCOL="${TLS_STARTTLS_PROTOCOL}"
+
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d-ssl | \
+ sed 's/=.*//;s/^/export /;s/$/;/'`
+
+eval ${PRERUN} ${libexecdir}/couriertcpd \
+ -address=${ADDRESS} \
+ -stderrlogger=${libexecdir}/courierlogger \
+ -stderrloggername=pop3d \
+ -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \
+ -pid=${PIDFILE} ${TCPDOPTS} ${PORT} \
+ ${bindir}/pop3login \
+ ${libexecdir}/courier-pop3d.indirect "${MAILDIR}"
diff --git a/net-mail/courier-imap/files/courier-imap-4.15-aclocal-fix.patch b/net-mail/courier-imap/files/courier-imap-4.15-aclocal-fix.patch
new file mode 100644
index 000000000000..bc68698ea247
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.15-aclocal-fix.patch
@@ -0,0 +1,10 @@
+--- configure.ac.orig 2006-12-30 09:28:52.000000000 -0500
++++ configure.ac 2007-02-27 12:13:38.000000000 -0500
+@@ -15,7 +15,6 @@
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+-AC_PROG_SYSCONFTOOL
+ AC_LIBTOOL_DLOPEN
+ AM_PROG_LIBTOOL
+
diff --git a/net-mail/courier-imap/files/courier-imap-4.15-db4-bdbobj_configure.ac.patch b/net-mail/courier-imap/files/courier-imap-4.15-db4-bdbobj_configure.ac.patch
new file mode 100644
index 000000000000..ba75db9ff5dd
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.15-db4-bdbobj_configure.ac.patch
@@ -0,0 +1,33 @@
+--- libs/bdbobj/configure.ac.orig 2013-08-25 20:52:10.000000000 +0200
++++ libs/bdbobj/configure.ac 2013-11-22 10:39:25.787861774 +0100
+@@ -23,15 +23,22 @@
+ dnl Checks for libraries.
+
+ saveLIBS="$LIBS"
+-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
++ done
+ FOUND_DB=0
+-AC_CHECK_FUNC(dbopen, FOUND_DB=1)
+-AC_CHECK_FUNC(db_open, FOUND_DB=1)
+-AC_CHECK_FUNC(db_env_create, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4004, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4003, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1)
++AC_CHECK_FUNC(db_create, FOUND_DB=1)
+
+ LIBS="$saveLIBS"
+
diff --git a/net-mail/courier-imap/files/courier-imap-4.15-db4-configure.ac.patch b/net-mail/courier-imap/files/courier-imap-4.15-db4-configure.ac.patch
new file mode 100644
index 000000000000..19fe77e28f69
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.15-db4-configure.ac.patch
@@ -0,0 +1,33 @@
+--- configure.ac.orig 2013-09-28 19:44:24.000000000 +0200
++++ configure.ac 2013-11-22 10:46:34.910990069 +0100
+@@ -180,15 +180,21 @@
+ if test "$db" != "gdbm"
+ then
+
+- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create,
+- [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
+- AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_open, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
++ done
++AC_CHECK_FUNC(db_create_4004, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4003, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create, HAVE_BDB=1)
+ fi
+
+ LIBS="$saveLIBS"
diff --git a/net-mail/courier-imap/files/courier-imap-4.15-disable-fam-configure.ac.patch b/net-mail/courier-imap/files/courier-imap-4.15-disable-fam-configure.ac.patch
new file mode 100644
index 000000000000..940703d1b6ca
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.15-disable-fam-configure.ac.patch
@@ -0,0 +1,23 @@
+--- libs/maildir/configure.ac.orig 2004-06-08 15:44:23.000000000 -0700
++++ libs/maildir/configure.ac 2004-08-14 15:28:20.525714876 -0700
+@@ -73,6 +73,12 @@
+ dnl Checks for library functions.
+ AC_CHECK_HEADER(fam.h, :, :)
+ AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
++AC_ARG_WITH(fam, [ --with-fam Compile with FAM support],
++ fam="$withval",
++ fam="no")
++
++if test "$fam" != "no"
++then
+ AC_CHECK_LIB(fam, FAMOpen, [
+ LIBFAM=-lfam
+ AC_DEFINE_UNQUOTED(HAVE_FAM,1,
+@@ -87,6 +93,7 @@
+ AC_MSG_ERROR([[FAM development libraries not found.]]) ]
+ )
+ ])
++fi
+
+ AC_SUBST(LIBFAM)
+
diff --git a/net-mail/courier-imap/files/courier-imap-4.17-aclocal-fix.patch b/net-mail/courier-imap/files/courier-imap-4.17-aclocal-fix.patch
new file mode 100644
index 000000000000..9f88646b223a
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.17-aclocal-fix.patch
@@ -0,0 +1,12 @@
+Kill unneeded call to AC_PROG_SYSCONFTOOL (bug #168206).
+
+--- a/configure.ac.orig 2006-12-30 09:28:52.000000000 -0500
++++ b/configure.ac 2007-02-27 12:13:38.000000000 -0500
+@@ -15,7 +15,6 @@
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+-AC_PROG_SYSCONFTOOL
+ AC_LIBTOOL_DLOPEN
+ AM_PROG_LIBTOOL
+
diff --git a/net-mail/courier-imap/files/courier-imap-4.17-db4-bdbobj_configure.ac.patch b/net-mail/courier-imap/files/courier-imap-4.17-db4-bdbobj_configure.ac.patch
new file mode 100644
index 000000000000..1f9b7747a7f8
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.17-db4-bdbobj_configure.ac.patch
@@ -0,0 +1,33 @@
+--- a/libs/bdbobj/configure.ac.orig 2013-08-25 20:52:10.000000000 +0200
++++ b/libs/bdbobj/configure.ac 2013-11-22 10:39:25.787861774 +0100
+@@ -23,15 +23,22 @@
+ dnl Checks for libraries.
+
+ saveLIBS="$LIBS"
+-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
++ done
+ FOUND_DB=0
+-AC_CHECK_FUNC(dbopen, FOUND_DB=1)
+-AC_CHECK_FUNC(db_open, FOUND_DB=1)
+-AC_CHECK_FUNC(db_env_create, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4004, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4003, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1)
++AC_CHECK_FUNC(db_create, FOUND_DB=1)
+
+ LIBS="$saveLIBS"
+
diff --git a/net-mail/courier-imap/files/courier-imap-4.17-db4-configure.ac.patch b/net-mail/courier-imap/files/courier-imap-4.17-db4-configure.ac.patch
new file mode 100644
index 000000000000..e89c5618f842
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.17-db4-configure.ac.patch
@@ -0,0 +1,33 @@
+--- a/configure.ac.orig 2013-09-28 19:44:24.000000000 +0200
++++ b/configure.ac 2013-11-22 10:46:34.910990069 +0100
+@@ -180,15 +180,21 @@
+ if test "$db" != "gdbm"
+ then
+
+- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create,
+- [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
+- AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_open, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
++ done
++AC_CHECK_FUNC(db_create_4004, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4003, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1)
++AC_CHECK_FUNC(db_create, HAVE_BDB=1)
+ fi
+
+ LIBS="$saveLIBS"
diff --git a/net-mail/courier-imap/files/courier-imap-4.17-disable-fam-configure.ac.patch b/net-mail/courier-imap/files/courier-imap-4.17-disable-fam-configure.ac.patch
new file mode 100644
index 000000000000..6d26895c0d7b
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.17-disable-fam-configure.ac.patch
@@ -0,0 +1,27 @@
+Bug #48838. Patch to enable/disable FAM support (20 Aug 2004
+langthang@gentoo.org). This patch should fix bug #51540. The fam USE
+flag is not needed for shared folder support.
+
+--- a/libs/maildir/configure.ac.orig 2004-06-08 15:44:23.000000000 -0700
++++ b/libs/maildir/configure.ac 2004-08-14 15:28:20.525714876 -0700
+@@ -73,6 +73,12 @@
+ dnl Checks for library functions.
+ AC_CHECK_HEADER(fam.h, :, :)
+ AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
++AC_ARG_WITH(fam, [ --with-fam Compile with FAM support],
++ fam="$withval",
++ fam="no")
++
++if test "$fam" != "no"
++then
+ AC_CHECK_LIB(fam, FAMOpen, [
+ LIBFAM=-lfam
+ AC_DEFINE_UNQUOTED(HAVE_FAM,1,
+@@ -87,6 +93,7 @@
+ AC_MSG_ERROR([[FAM development libraries not found.]]) ]
+ )
+ ])
++fi
+
+ AC_SUBST(LIBFAM)
+
diff --git a/net-mail/courier-imap/files/courier-imap-gentoo.readme b/net-mail/courier-imap/files/courier-imap-gentoo.readme
new file mode 100644
index 000000000000..b11a804fc3ea
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-gentoo.readme
@@ -0,0 +1,75 @@
+// This quick guide is for mysql authentication support base on the Gentoo Virtual Mailhosting Guide
+// turn ON mysql USE flag for courier-authlib. Need to authenticate against mysql database backend.
+localhost ~ # nano -w /etc/portage/package.use
+net-libs/courier-authlib mysql
+net-mail/courier-imap mysql
+localhost ~ # emerge courier-imap
+// limit to mysql module only, instead load all of them.
+localhost ~ # nano -w /etc/courier/authlib/authdaemonrc
+authmodulelist="authmysql"
+
+// set variables to match your setup.
+localhost ~ # nano -w /etc/courier/authlib/authmysqlrc
+MYSQL_SERVER localhost
+MYSQL_USERNAME mailsql_admin_username
+MYSQL_PASSWORD password
+MYSQL_DATABASE mailsql_database
+MYSQL_USER_TABLE users
+# MYSQL_CRYPT_PWFIELD crypt (commented this out if you want CRAM-MD5)
+MYSQL_CLEAR_PWFIELD clear
+MYSQL_LOGIN_FIELD email
+MYSQL_HOME_FIELD homedir
+MYSQL_MAILDIR_FIELD maildir
+
+// Start authdaemond
+localhost ~ # etc/init.d/courier-authlib start
+* Starting courier-authlib: authdaemond ... [ ok ]
+
+### Courier-IMAP' ssl certificate setup
+localhost ~ # nano -w /etc/courier-imap/imapd.cnf
+localhost ~ # nano -w /etc/courier-imap/pop3.cnf
+// change to match your site.
+[ req_dn ]
+C=US
+ST=NY
+L=New York
+O=Courier Mail Server
+OU=Automatically-generated IMAP SSL key
+CN=mailhost.example.com
+emailAddress=postmaster@example.com
+
+// Generate Certificate
+localhost ~ # mkimapdcert
+...
+writing new private key to '/etc/courier-imap/imapd.pem'
+...
+localhost ~ # mkpop3dcert
+...
+writing new private key to '/etc/courier-imap/pop3d.pem'
+...
+
+### Secure Authentication Setup (CRAM-MD5)
+localhost ~ # nano -w /etc/courier-imap/imapd
+IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5"
+
+### Start Courier-imap daemons.
+localhost ~ # /etc/init.d/courier-pop3d start
+localhost ~ # /etc/init.d/courier-pop3d-ssl start
+localhost ~ # /etc/init.d/courier-imapd start
+localhost ~ # /etc/init.d/courier-imapd-ssl start
+
+### Checking authentication.
+// From your favorite client send an email to user@your_domain.com
+// so your mail user's maildir created by your MTA.
+// you can not login unless user maildir has been created.
+localhost ~ $ telnet mailexample.com 143
+Trying xxx.xxx.xxx.xxx...
+Connected to mail.example.com (xxx.xxx.xxx.xxx).
+Escape character is '^]'.
+* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5 ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
+a login user@example.com password
+a OK LOGIN Ok.
+ OK LOGOUT completed
+Connection closed by foreign host.
+
+### That's all folks.
diff --git a/net-mail/courier-imap/files/courier-imapd-r1.service b/net-mail/courier-imap/files/courier-imapd-r1.service
new file mode 100644
index 000000000000..9510b31041d8
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imapd-r1.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Courier IMAP Daemon
+After=network.target
+Wants=courier-authdaemond.service
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/courier-imap/imapd
+ExecStart=/usr/lib/courier-imap/gentoo-imapd.rc
+ExecStop=/bin/kill $MAINPID
+PIDFile=/var/run/imapd.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/courier-imap/files/courier-imapd-ssl-r1.service b/net-mail/courier-imap/files/courier-imapd-ssl-r1.service
new file mode 100644
index 000000000000..79ae0dc93cae
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imapd-ssl-r1.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Courier IMAP Daemon
+After=network.target
+Wants=courier-authdemond.service
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/courier-imap/imapd-ssl
+ExecStart=/usr/lib/courier-imap/gentoo-imapd-ssl.rc
+ExecStop=/bin/kill $MAINPID
+PIDFile=/var/run/imapd-ssl.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/courier-imap/files/mkimapdcert b/net-mail/courier-imap/files/mkimapdcert
new file mode 100644
index 000000000000..1261e12c9021
--- /dev/null
+++ b/net-mail/courier-imap/files/mkimapdcert
@@ -0,0 +1,39 @@
+#! /bin/sh
+#
+# mkimapdcert,v 1.1 2001/01/02 03:54:25 drobbins Exp
+#
+# Copyright 2000 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This is a short script to quickly generate a self-signed X.509 key for
+# IMAP over SSL. Normally this script would get called by an automatic
+# package installation routine.
+
+test -x /usr/bin/openssl || exit 0
+
+prefix="/usr"
+pemfile="/etc/courier-imap/imapd.pem"
+randfile="/etc/courier-imap/imapd.rand"
+
+if test -f $pemfile
+then
+ echo "$pemfile already exists."
+ exit 1
+fi
+
+cp /dev/null $pemfile
+chmod 600 $pemfile
+chown root $pemfile
+
+cleanup() {
+ rm -f $pemfile
+ rm -f $randfile
+ exit 1
+}
+
+dd if=/dev/urandom of=$randfile count=1 2>/dev/null
+/usr/bin/openssl req -new -x509 -days 365 -nodes \
+ -config /etc/courier-imap/imapd.cnf -out $pemfile -keyout $pemfile || cleanup
+/usr/bin/openssl gendh -rand $randfile 512 >> $pemfile || cleanup
+/usr/bin/openssl x509 -subject -dates -fingerprint -noout -in $pemfile || cleanup
+rm -f $randfile
diff --git a/net-mail/courier-imap/files/mkpop3dcert b/net-mail/courier-imap/files/mkpop3dcert
new file mode 100644
index 000000000000..6a55e99f9c8e
--- /dev/null
+++ b/net-mail/courier-imap/files/mkpop3dcert
@@ -0,0 +1,39 @@
+#! /bin/sh
+#
+# mkimapdcert,v 1.1 2001/01/02 03:54:25 drobbins Exp
+#
+# Copyright 2000 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This is a short script to quickly generate a self-signed X.509 key for
+# IMAP over SSL. Normally this script would get called by an automatic
+# package installation routine.
+
+test -x /usr/bin/openssl || exit 0
+
+prefix="/usr"
+pemfile="/etc/courier-imap/pop3d.pem"
+randfile="/etc/courier-imap/pop3d.rand"
+
+if test -f $pemfile
+then
+ echo "$pemfile already exists."
+ exit 1
+fi
+
+cp /dev/null $pemfile
+chmod 600 $pemfile
+chown root $pemfile
+
+cleanup() {
+ rm -f $pemfile
+ rm -f $randfile
+ exit 1
+}
+
+dd if=/dev/urandom of=$randfile count=1 2>/dev/null
+/usr/bin/openssl req -new -x509 -days 365 -nodes \
+ -config /etc/courier-imap/pop3d.cnf -out $pemfile -keyout $pemfile || cleanup
+/usr/bin/openssl gendh -rand $randfile 512 >> $pemfile || cleanup
+/usr/bin/openssl x509 -subject -dates -fingerprint -noout -in $pemfile || cleanup
+rm -f $randfile
diff --git a/net-mail/courier-imap/metadata.xml b/net-mail/courier-imap/metadata.xml
new file mode 100644
index 000000000000..de3c5e7d18cd
--- /dev/null
+++ b/net-mail/courier-imap/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="trashquota">include deleted messages, and the Trash folder, in the estimated quota usage for maildirs</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">courier</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/courierpassd/Manifest b/net-mail/courierpassd/Manifest
new file mode 100644
index 000000000000..8f5a427a3cba
--- /dev/null
+++ b/net-mail/courierpassd/Manifest
@@ -0,0 +1,6 @@
+AUX courierpassd 232 SHA256 d7d588921e9126a9f62b035db431d677a5b02f2c16d532172f5728a604c94ffd SHA512 c9251f6137f3fe6f58cad0fb5159359293e1e74dafcdd04d96da05f29b62fb5d5326f21fad358e98757df0808e5452246bcf4f732bb62cdf2214b9d209deb0f4 WHIRLPOOL 5518b9535b30c2d369f4328de851a163c281f09f6054d32561253de50e143d062cb782e66398769443b5485f106912f61588e38556431e3caf0794df50af9680
+DIST courierpassd-1.1.2.tar.gz 286929 SHA256 05fb991fd488dd798a231965db30753f4debc02b6e8403b8324a33a2f2c7ef50 SHA512 0cca32b19f9ebded8e388fbb5571dced4c2b9b9d47ab8e40d6b4351d77e31157bd7b97b58766bf673c38766e833206572526e27fdf6ca2d6a40f0961ef8bc7dd WHIRLPOOL 33929c1bd55d3ac318eaf85d6c61084116cc675a624270f48a9e9117348369a5fa8ecb253b2a58f7b9182285a733b195445e68b9de98368456970f7ea39cac45
+EBUILD courierpassd-1.1.2-r1.ebuild 614 SHA256 f6fa055eec0e7f0d95db973de3768601360e8a88ac3ff463f991e408e696c345 SHA512 61093737ef69e4f35921c38fe44ab1c95da825c25d04361d59ac2ec1bf938b652439f6d384a992a5ca74abd4c695e4b87672a1c9afe60651db0e975c7a66d4c4 WHIRLPOOL 2aab67fa90e0371bec02eb0f12ae635b0b6e889dd47847507ee16220cdecad335a3a9124db88d1c921f2d6f7644e63cbc7ada564a84a423bec23df2d268f5e52
+MISC ChangeLog 3016 SHA256 4ba7bc1a81b182f111f4ce42186e05a18c286b9c284dea75534144e2ede114d5 SHA512 ee1986d4d01449cc7881ac92104b8f8ac950b148171df19dc693a6074a781f638df649375d93faf9e21e0745b55284487a74ed5c74ae277677821cb138203299 WHIRLPOOL 594cdf6711c0fe96e5620ae5176400ac9b1fc531c177ece9839b0a4cf4d2d7e8273745a1d3be88d62655b4f8fc01613128927843ab00697d0ac194845efa6e55
+MISC ChangeLog-2015 803 SHA256 e238ff70e1997379bce9d282132c57fd91afff8e2a3e749f022c9ed20dd58c63 SHA512 97033d838e7988a9d9cfa1f69c7cffaa6da406c63dbaf1b808b065f639a69e7fcdfd62d8fd301ef9810f94c8d9e34316480613dbdc2629da671206d2615e8a2a WHIRLPOOL 15e761514469175be9d7506490af88112687a9a37dd49e679f50039cafcf4113c3a05537cc00a13957463f3080ac504152d3d279fb13c7f1f42fa4638f722a60
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/courierpassd/courierpassd-1.1.2-r1.ebuild b/net-mail/courierpassd/courierpassd-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..0c4a813b8eef
--- /dev/null
+++ b/net-mail/courierpassd/courierpassd-1.1.2-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils
+
+DESCRIPTION="Courierpassd is a utility for changing a user's password from across a network"
+HOMEPAGE="http://www.arda.homeunix.net/"
+SRC_URI="http://www.arda.homeunix.net/?ddownload=375 -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="xinetd"
+
+DEPEND="net-libs/courier-authlib
+ xinetd? ( sys-apps/xinetd )"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ default
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ doins "${FILESDIR}/courierpassd"
+ fi
+}
diff --git a/net-mail/courierpassd/files/courierpassd b/net-mail/courierpassd/files/courierpassd
new file mode 100644
index 000000000000..238702905aba
--- /dev/null
+++ b/net-mail/courierpassd/files/courierpassd
@@ -0,0 +1,15 @@
+service courierpassd
+{
+# This is for quick on or off of the service
+ disable = yes
+
+ port = 106
+ socket_type = stream
+ protocol = tcp
+ user = root
+ server = /usr/sbin/courierpassd
+ server_args = -s imap
+ wait = no
+ instances = 4
+}
+
diff --git a/net-mail/courierpassd/metadata.xml b/net-mail/courierpassd/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/courierpassd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest
new file mode 100644
index 000000000000..547efbb6d70f
--- /dev/null
+++ b/net-mail/cyrus-imapd/Manifest
@@ -0,0 +1,25 @@
+AUX cyrus-imapd-db.patch 2193 SHA256 b2b7520f59f109823db38a477aa2c953ce234cdb5fc17c19212ddc4d8c73290b SHA512 a756552c0f1dd548661b4402e170474977484f3a4b32e765f8648d02109dc131d313e924b07bb3ad704f34cab4aef079b206b6d1e8d97911657886bd2476910c WHIRLPOOL ac917da63126934a6e7e225cd35dcecc45d82e922b63a114e4f835753be9fbaac767bad03e1a1b2507ce91747d074bc2723869c117d66a07d99aeaaa47f5088d
+AUX cyrus-imapd-fix-tests.patch 471 SHA256 b752382470c5bcc475d02c5d7b9985c0d98614d2cc64e190b71543df2b769316 SHA512 ab967c8f493d902510f25268d3d63c3c60246cfd2661ae3a19e5a89cd238028ac3eac4369736b51fc2a0c27407958963ffb1e6f8ba19b5d19b53a680d3737fa0 WHIRLPOOL 3158d81e3ffde9913ec3b39778bd640e29d03cc9dd431632bfd24896564ee6a19a62fcce90627e3ac56ccbe15684e822a3f5b85cc48e2365f5babbd63928306b
+AUX cyrus-imapd-libcap-libs.patch 2251 SHA256 580fb014096a8f46f1e897cc8030c7574ed44a745b2b32df5bd3c99895d6b9b1 SHA512 c8f6676549f1e4e91be40da22a3061ae9b660d159c0d64e4848f0550214c190e7d1357dce20ba181ea2d8425e21552ce44faa04213b862740da62bf3f2f09b14 WHIRLPOOL 9caacf9eb91a2840fe983dcb76110c37d494e0a8d9f6ea2d97e1b2f7b95406b374fb593f4c945e870bf2b510f7546a28d18a6c1aadf6bad50832cb9ab6a45f77
+AUX cyrus-imapd-sieve-libs-v4.patch 5751 SHA256 2f4d89d26ae75ef8390933a5575cef29e1927b7cc7f2e6c9f0a0952563e38e72 SHA512 cd9f5c23f79720d768b3b8a089b3f5c078825465b3b0f28b7b629bc07415598f9195218e35bb7bebaca3499bdfdd30a137ea6a3a455a84386e9d02de41abba51 WHIRLPOOL e2fdc778dbdada3b3b24cee57db541f6d1ec27055d5c814686649d2d9e000ffc22a60da321deca27693ae0404f48c79e649101273bf598889b56f93590a8dd82
+AUX cyrus-imapd-sieve-libs.patch 2207 SHA256 a9cb5888e3208b0f125e32cc0671e22118caf63645a17e5d976048d2d80e8192 SHA512 1d198945b8522f587a84f6241dffe7e3390b4904b187d4d7b121a509f6d5d47270c2609eb6f3ffc0aa5a792cb576fd8e5572884439337f05485ada3533f81484 WHIRLPOOL 785c4681acfff9fd8ebdd572ae73aa45dacd2186d204836088b0208e9f2b12338140b3ac7c69e23014c8af19c84c51e23d648b356130faba1bb4e4635f653fb2
+AUX cyrus.conf 1236 SHA256 e90288f4fd9903841a8bf8b984970600f3983e2b7825e8bddb71fb898aaff1fa SHA512 e4e02ddd02b7c77a1b43ee49f7ab9dcada1d518aaeae6e285b206d67d05b96a2f9007264967984c18cedc62cd1e9e9f59c802eb37da6e77d6990db7ced5e559a WHIRLPOOL 9f163e9e99452e6fc830c6eba22e102ffe9626aa38aa5d99fde566b7aee0a18b2b931bff8923a8da2367f1930aa52b8db9757c81250c03587dc07f9246490bee
+AUX cyrus.confd 164 SHA256 4fd2424d388da2a821efbaf4cedcdeb6b15c832f64348fff8ae01264600d6c60 SHA512 52fda6a61a3cd1a4fa7579ea0eb1c9cba857f59b8ca9145f8bb73731c2a7e7f798663ef38b8c646aca066b0f571928fd13b2463415f8afd142fa45626ad8db20 WHIRLPOOL d9c0246bd0468f65e4b27b32920171adf6d3cede917c89d7b3656fd66bc55cc636f99f4420b4934a3807e067468b3504dbaccc0b866a454e66bb17638dc55471
+AUX cyrus.pam-include 109 SHA256 d4ef9ed9c7c9add97df75f0e19a833bee872d3863a2b3cb1d0674fefba54e3d8 SHA512 4c96d5b0a675ddb83f26200a8cbd18c7b663aec39eb78f8509751425fb062e39e6d13e4d06090c6765b32e1cce609db075d725a18cbd4638a7f8ce5c858c47a4 WHIRLPOOL 96661c7bfa33f47c15629ba1d4b7ff34a5a83a2334e2862706c6da4bf5c05092c987f6df81dda8f7427c209afe29bc566d81a92e1e79e3a054911969fd717b5b
+AUX cyrus.rc6 460 SHA256 43b297133b8ebf599761687bcf92f74942c641cc08fa77c67b5e6888bc726fc6 SHA512 926aa90c5285ed05bbc0cef5c4351acef26e70772bb7a0e490c05a9a4ce9e808e250e19bac1640a61852fa394e42368d33f88ea9b0b8d1751224daef04350920 WHIRLPOOL fcfce884577ae144bbb392b0d51927d990869e04984562eefaeeed5c99cfac3fd6cabb3a421868b0edf9914f76061711df5d8fbc383a4d6bdebaac0a6e420109
+AUX cyrus.rc7 459 SHA256 65de418dd52857ebbb09a4dfd6d90a8fdb6462aaafc791f5d16b8ba642a9efcf SHA512 acd561be944aa5ebfe4f89f19552b61416ee2355f37cf2c3d6e44294d7079e382a3e4ba2ce606842c283ce8c02cdc8c6dbbd4b08758d8e99f74fe8a258b89ca3 WHIRLPOOL e27828dea19af48907d6025f09b8afa64bf3d5792f5ff3d8c9bbe2c0354153da4375a78e5753ec2ab0f015640b805fcd36bac759ee397d40dc9980d355e7b4db
+AUX cyrus.rc8 699 SHA256 ab569f694e6c49e2c996d8f984e85bde22e202ad1321bee88eeec1b738640aba SHA512 9340877dd83cd4d5770c12a7f107ee697b42736a57cf304695f03f9f673c5c53b4477f20832ee4815515b2e33e8b33335b298cf5dd48015a6a581b8ab4f4f240 WHIRLPOOL 79a5377f949d8b100a3806a31e4170ed612784f1679a04c8a4a551c71b1d60c40d1b77696df0e01ca1b114d7e98a300d84a1ec385525f5befcea7d1c785aedf7
+AUX imapd.conf 1471 SHA256 f4ebbf5fa953a8b893d79a722c4be9633f420295ed256726aea9c33eb13e7937 SHA512 dd19551b6e254c5e132f28748435ee61f2df86d6503643cd4946efcfba998d7bd487818ceaab1ca320289077eddd2531f6b05a493a5b5040ee5121165c3a712f WHIRLPOOL 2809fb8c3283386ef55a1ae1779514c2f3c7b407a7560ee74c5bfabd29d6ae6158f8184b7ad17176a0b55ff1484baf66f0245d3a6fb21e55a03c502e35b4abb1
+DIST cyrus-imapd-2.5.10.tar.gz 3103914 SHA256 b38f4fd72825a298ac47426dcd2a50c8437c2947864ba50d79a9a53fe9845c5f SHA512 78b85e37c63f1dbb60898da229f70f45810326a01244067d23b1317e2c2ae3326e48b6944787d59024e44c48c441ed2b848d6a83c451c192a3bb95c8f37880fa WHIRLPOOL d2167900596c1b6f8e595de7aec499a7fbd6228537d7a27bec4fe0bda6a74b861303c4e9691ca829994972b099f29c362f9692f266df66d76c05a69629b52dfd
+DIST cyrus-imapd-2.5.11.tar.gz 3109188 SHA256 36a79117b320c78d62bc6842c3024d970d3bec7aa12908f862d92cf1d63397d5 SHA512 bbb0e11f31d91d85037306321165e3608f8d5e2699b971fc4fbdd1630ec0a1485c8f6f17900142dec584ab41b0ec0c65c11cfaf8c5bbf1054b194a8f5f361538 WHIRLPOOL e6aaedb642b634d9fc0c56f7ddd06e15130091bd21f4e089ae46168fb2976c7e1fa281f8c6fc0f3e171e70bbfeb5cec8f6cc613f62d5b769fb8b6af4dede6e67
+DIST cyrus-imapd-3.0.3.tar.gz 10819454 SHA256 6a76d8d00b26a2c9d03c65197724a28ab6d044527d7e230e6331f8de79af889a SHA512 0b5c3167d80d91371e3f07e64b8bc8c085481946e6536dd407976f6f8ae66405fd1f6d2ff5ad51e5e0eb827a64d90d93daf72d5a1afa409782a287bec29665df WHIRLPOOL 6d543b09d3f18d10c481133fafb78f82a6e2d0dd3fb7c4cdb1d181d906acef7db4c6da5dcc86254a836f69fc7cbd54034f889b0808da060a083f35dd8ee40434
+DIST cyrus-imapd-3.0.4.tar.gz 10819487 SHA256 ed17b4321bbe54df2c9b8832e189f52de4561f51e199f7c620216e79910c73a0 SHA512 9ceb7ac837c932c70fa0c1583bf8700b3ec27568d72538ae8d59f2f551e3007b3c2fc68fd29c009597c3949345dbe1bf2eb614bea038d70a5b49e5507df6b69a WHIRLPOOL a67a9d033ddb601608590f085f513a6f8b220cf5a0df786c68dcb642bb9f72018ca220ce8abdc57221aac81c60e3bddee7c8dd3ad8b1fb61ead8d653400f8b51
+EBUILD cyrus-imapd-2.5.10.ebuild 4676 SHA256 7b86bec0be67cc662712fe6734b8c0c011a296eeb56bdc01f075d1a0495143ca SHA512 80bd9c18c80d5408862f4ad20b4f0f82c21b3a11f5ef54e504cdea454e0a7fde5f0cd8ffbf455665b0a907eadc243c45d5ccae9a08dde5faca7ff2f9cddb1ceb WHIRLPOOL c7fdd4647ed6d211520da29f619a6442377e8d6a6ef93b6dbdee3148fc8ce071ee42f0055026923d6b7231b542d11fcb7dfda224fbb5566c1fbdf213a9f33c81
+EBUILD cyrus-imapd-2.5.11-r1.ebuild 4772 SHA256 27af620af50e6d70d44c781dc9a01f3ef99afdbf13378ac4e2842657ca361a58 SHA512 c14ac12b41bb9594b7686ff6f1fe44e9af160f8eed4cfa7e1c94d1c5098fb55ec160b7b6bfe30bfca494278d18bfd3c9c37a8ed3991e02889512d43f9dd4ceb1 WHIRLPOOL 6a0db0e1440225bd693a35efdee364913007f445d184df5235a8851644051ce3e925dc7472207a62b6f6c3c17b3a1c8b1ee0547003a930d6561ac915b536bd51
+EBUILD cyrus-imapd-2.5.11.ebuild 4709 SHA256 6ccf2d3c818f0e387ce8652c0a3e745134bd88df4e62aab70f3c6ea32e886fcf SHA512 a07326ba69a7f81d900838e4796f85c90c00aaf16385818b8d3f47f70e77ff9a2de135a76effda42db5656b96f70c3369632c1138cb5fd377a2b8507da6e9d71 WHIRLPOOL e6c8f37a65d43a81a38065ca7b60521f6b769c48f8bbd0ef8f89c67b703cd8e2b3e4feffd679b0b7c3dcbd7cda3480fe41c73b802dc8f9b3dee83d527c9cd5c1
+EBUILD cyrus-imapd-3.0.3-r1.ebuild 5754 SHA256 652447ca47a913dd53d20ed976f630351d86e69104dc11afa01c7125a2a1b0c2 SHA512 d345ee957cbeca761b6bc6f60fa4c010e2887f73a08cec49c16fb7082450258d3d900856e6773ba9ffa7fdba5ddf061616adc626c61b44e6f98b1dea8c218a1b WHIRLPOOL 87519e916aab206173862f4c55e59a1d2b23cc0a7d38b9ad341da236a0be17115297b9d013310fb7effa173279f2f3ab4aac10a20d6992f867e78e2f8a04b12a
+EBUILD cyrus-imapd-3.0.3.ebuild 5702 SHA256 e47b9be010571ac5f464486dfd1f84ef1afeb57ea35a0f9ee87251f3c185d5c0 SHA512 35aaa7a6d27ac8186fde64371b9866cd1683e923d31a04cf2a11207955e0b92a181fba5a2707ccf8e4dd3906a7041046c9254fd09b18e6f110a58416e98cdecb WHIRLPOOL e5a165c709ceb05acb009db4ce7bab6277efde3dcfa5b2668d0e052e6fec7fb2a881f8b7c8b6a70be443936795638b8c10a896aa8e7f2d64ea9a4f80412c9060
+EBUILD cyrus-imapd-3.0.4.ebuild 5901 SHA256 266a142ed7cf94cd2833c4ae6cb2c32d29f7ec4bb10d550c5a9c0fa54da5c3a5 SHA512 8c55945b34ce08e5f333bafb04a60d9bc2b112c3c0374a98ad989c0b641b4f1efeb464f2453b040666a0cd5643f4dabc7e0a1cf0802b21c32021eec59e54ed5d WHIRLPOOL 15863a548ffd0d0acd70d15757ea647494c67b04d844dbf394a413b4dae5d27c0f9c2b92fcb65a9caf08f8a11943791995425608de8c26d6f325c0679ab2d1b9
+MISC ChangeLog 4804 SHA256 d41f017230fe0f2251e7c5f25cbcb6bacde54806993d247f4efb5707312f7298 SHA512 f9109b2a23461c41b418476e2ce4c9a0bee7ee5572213406ffe74c4d1733f207bc8971cd6dac4fd77a762cbc294f5bf84d7ee8031acb39ad799f46b48e925213 WHIRLPOOL dfe3c74426eb843f9cb6b47c37702c2050769434c2e805beb793389d7081c37e69f02ed08389b8906823da724e075ffc4c300a5e0d542d3d328e560b7888f037
+MISC ChangeLog-2015 39151 SHA256 c2bd8f1276a9e00cef3d08c00d5f78aa34a4732c654c3f126ac3d126f804244d SHA512 253f158b336687ed21cdc0507c03bde6e440dc6ea0080d80ca6dd883c279db4f72b9e25f69ceed7c9300011a7705d040c64d2d8445bf45bcaf3e53c1afc08458 WHIRLPOOL ce61597c095271d0d4d613c89b734ac5f12c1f8f04a535cc9bb0e6cc7b5928c5ebc9c69c6f80b0badec8846109ab31f47f4276ecbf47a95167f361c5d1d675bb
+MISC metadata.xml 871 SHA256 2534843965cc06933180f661fe8126b607696e39f1c77112446ae262a5c7fe16 SHA512 25449c1218dfad7b692b37b799a659b6a10e0e31bb003fbed27b3b43ce3610f9ee5f17a995cf9244d5027ad84889a8e79a774f63101bb6ea35054ce9dbb1fe20 WHIRLPOOL 506cdb8d91ee25f145e2cb784612a5fada49974bc6e674ea5068ef1d3a445a747f44b60b59f693f6aeae609f683cfd643498fd6c36973436901217fc6b6ed3ad
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.10.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.10.ebuild
new file mode 100644
index 000000000000..7d18d33ec917
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-2.5.10.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools multilib pam ssl-cert user toolchain-funcs
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server"
+HOMEPAGE="http://www.cyrusimap.org/"
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="amd64 ~arm hppa ~ia64 ppc ppc64 sparc x86"
+IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \
+ replication +server sieve snmp sqlite ssl static-libs tcpd"
+
+# virtual/mysql-5.5 added for the --variable= option below
+DEPEND="sys-libs/zlib
+ dev-libs/libpcre
+ >=dev-libs/cyrus-sasl-2.1.13
+ dev-libs/jansson
+ afs? ( net-fs/openafs )
+ berkdb? ( >=sys-libs/db-3.2:* )
+ clamav? ( app-antivirus/clamav )
+ http? ( dev-libs/libxml2 dev-libs/libical )
+ kerberos? ( virtual/krb5 )
+ mysql? ( >=virtual/mysql-5.5 )
+ nntp? ( !net-nntp/leafnode )
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ postgres? ( dev-db/postgresql:* )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )"
+
+# all blockers really needed?
+RDEPEND="${DEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/courier-imap
+ !net-mail/uw-imap
+ !net-mail/cyrus-imap-admin"
+
+REQUIRED_USE="afs? ( kerberos )
+ http? ( sqlite )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-db.patch"
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # lock.h to afs/lock.h
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
+ ptclient/afskrb.c || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use afs ; then
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
+ myconf+=" --with-afs-incdir=/usr/include/afs"
+ fi
+ econf \
+ --enable-murder \
+ --enable-netscapehack \
+ --enable-idled \
+ --enable-event-notification \
+ --enable-autocreate \
+ --enable-pcre \
+ --with-service-path=/usr/$(get_libdir)/cyrus \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --with-sasl \
+ --without-krb \
+ --without-krbdes \
+ --with-zlib \
+ $(use_enable afs) \
+ $(use_enable afs krb5afspts) \
+ $(use_with berkdb bdb) \
+ $(use_with clamav) \
+ $(use_enable nntp) \
+ $(use_enable http) \
+ $(use_enable replication) \
+ $(use_enable kerberos gssapi) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with perl) \
+ $(use_with sqlite) \
+ $(use_with ssl openssl) \
+ $(use_enable server) \
+ $(use_enable sieve) \
+ $(use_with snmp) \
+ $(use_enable static-libs static) \
+ $(use_with tcpd libwrap) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install
+
+ dodoc README*
+ dodoc -r doc
+ cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html"
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ rm -f doc/text/Makefile*
+
+ insinto /etc
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf"
+
+ # turn off sieve if not installed
+ if ! use sieve; then
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_preinst() {
+ if ! has_version ${CATEGORY}/${PN} ; then
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+ fi
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they exist.
+ if use ssl ; then
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ fi
+}
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.11-r1.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.11-r1.ebuild
new file mode 100644
index 000000000000..cbe960377731
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-2.5.11-r1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools multilib pam ssl-cert user toolchain-funcs
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server"
+HOMEPAGE="http://www.cyrusimap.org/"
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \
+ replication +server sieve snmp sqlite ssl static-libs tcpd"
+
+# virtual/mysql-5.5 added for the --variable= option below
+DEPEND="sys-libs/zlib
+ dev-libs/libpcre
+ >=dev-libs/cyrus-sasl-2.1.13
+ dev-libs/jansson
+ afs? ( net-fs/openafs )
+ berkdb? ( >=sys-libs/db-3.2:* )
+ clamav? ( app-antivirus/clamav )
+ http? ( dev-libs/libxml2 dev-libs/libical )
+ kerberos? ( virtual/krb5 )
+ mysql? ( >=virtual/mysql-5.5 )
+ nntp? ( !net-nntp/leafnode )
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ perl? ( dev-lang/perl:= )
+ postgres? ( dev-db/postgresql:* )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )"
+
+# all blockers really needed?
+RDEPEND="${DEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/courier-imap
+ !net-mail/uw-imap
+ !net-mail/cyrus-imap-admin"
+
+REQUIRED_USE="afs? ( kerberos )
+ http? ( sqlite )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-db.patch"
+ # bug 604470
+ eapply -p1 "${FILESDIR}/${PN}-sieve-libs.patch"
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # lock.h to afs/lock.h
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
+ ptclient/afskrb.c || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use afs ; then
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
+ myconf+=" --with-afs-incdir=/usr/include/afs"
+ fi
+ econf \
+ --enable-murder \
+ --enable-netscapehack \
+ --enable-idled \
+ --enable-event-notification \
+ --enable-autocreate \
+ --enable-pcre \
+ --with-service-path=/usr/$(get_libdir)/cyrus \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --with-sasl \
+ --without-krb \
+ --without-krbdes \
+ --with-zlib \
+ $(use_enable afs) \
+ $(use_enable afs krb5afspts) \
+ $(use_with berkdb bdb) \
+ $(use_with clamav) \
+ $(use_enable nntp) \
+ $(use_enable http) \
+ $(use_enable replication) \
+ $(use_enable kerberos gssapi) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with perl) \
+ $(use_with sqlite) \
+ $(use_with ssl openssl) \
+ $(use_enable server) \
+ $(use_enable sieve) \
+ $(use_with snmp) \
+ $(use_enable static-libs static) \
+ $(use_with tcpd libwrap) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install
+
+ dodoc README*
+ dodoc -r doc
+ cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html"
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ rm -f doc/text/Makefile*
+
+ insinto /etc
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf"
+
+ # turn off sieve if not installed
+ if ! use sieve; then
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_preinst() {
+ if ! has_version ${CATEGORY}/${PN} ; then
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+ fi
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they exist.
+ if use ssl ; then
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ fi
+}
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild
new file mode 100644
index 000000000000..5ed4f1309661
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-2.5.11.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools multilib pam ssl-cert user toolchain-funcs
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server"
+HOMEPAGE="http://www.cyrusimap.org/"
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \
+ replication +server sieve snmp sqlite ssl static-libs tcpd"
+
+# virtual/mysql-5.5 added for the --variable= option below
+DEPEND="sys-libs/zlib
+ dev-libs/libpcre
+ >=dev-libs/cyrus-sasl-2.1.13
+ dev-libs/jansson
+ afs? ( net-fs/openafs )
+ berkdb? ( >=sys-libs/db-3.2:* )
+ clamav? ( app-antivirus/clamav )
+ http? ( dev-libs/libxml2 dev-libs/libical )
+ kerberos? ( virtual/krb5 )
+ mysql? ( >=virtual/mysql-5.5 )
+ nntp? ( !net-nntp/leafnode )
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ perl? ( dev-lang/perl:= )
+ postgres? ( dev-db/postgresql:* )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )"
+
+# all blockers really needed?
+RDEPEND="${DEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/courier-imap
+ !net-mail/uw-imap
+ !net-mail/cyrus-imap-admin"
+
+REQUIRED_USE="afs? ( kerberos )
+ http? ( sqlite )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-db.patch"
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # lock.h to afs/lock.h
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
+ ptclient/afskrb.c || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use afs ; then
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
+ myconf+=" --with-afs-incdir=/usr/include/afs"
+ fi
+ econf \
+ --enable-murder \
+ --enable-netscapehack \
+ --enable-idled \
+ --enable-event-notification \
+ --enable-autocreate \
+ --enable-pcre \
+ --with-service-path=/usr/$(get_libdir)/cyrus \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --with-sasl \
+ --without-krb \
+ --without-krbdes \
+ --with-zlib \
+ $(use_enable afs) \
+ $(use_enable afs krb5afspts) \
+ $(use_with berkdb bdb) \
+ $(use_with clamav) \
+ $(use_enable nntp) \
+ $(use_enable http) \
+ $(use_enable replication) \
+ $(use_enable kerberos gssapi) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with perl) \
+ $(use_with sqlite) \
+ $(use_with ssl openssl) \
+ $(use_enable server) \
+ $(use_enable sieve) \
+ $(use_with snmp) \
+ $(use_enable static-libs static) \
+ $(use_with tcpd libwrap) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install
+
+ dodoc README*
+ dodoc -r doc
+ cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html"
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ rm -f doc/text/Makefile*
+
+ insinto /etc
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf"
+
+ # turn off sieve if not installed
+ if ! use sieve; then
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_preinst() {
+ if ! has_version ${CATEGORY}/${PN} ; then
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+ fi
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they exist.
+ if use ssl ; then
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ fi
+}
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.0.3-r1.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.0.3-r1.ebuild
new file mode 100644
index 000000000000..6743077fa02e
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.0.3-r1.ebuild
@@ -0,0 +1,216 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools pam ssl-cert user
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server"
+HOMEPAGE="http://www.cyrusimap.org/"
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="afs backup calalarm caps clamav http jmap kerberos ldap lmdb \
+ mysql nntp pam perl postgres replication +server sieve snmp \
+ sphinx sqlite ssl static-libs tcpd test xapian"
+
+# virtual/mysql-5.5 added for the --variable= option below
+CDEPEND="sys-libs/zlib
+ dev-libs/libpcre
+ >=dev-libs/cyrus-sasl-2.1.13
+ dev-libs/jansson
+ dev-libs/icu:=
+ afs? ( net-fs/openafs )
+ caps? ( sys-libs/libcap )
+ clamav? ( app-antivirus/clamav )
+ http? ( dev-libs/libxml2 dev-libs/libical )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lmdb? ( dev-db/lmdb )
+ mysql? ( >=virtual/mysql-5.5 )
+ nntp? ( !net-nntp/leafnode )
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ perl? ( dev-lang/perl:= )
+ postgres? ( dev-db/postgresql:* )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
+ sqlite? ( dev-db/sqlite:3 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )
+ xapian? ( >=dev-libs/xapian-1.4.0 )"
+
+DEPEND="${CDEPEND}
+ test? ( dev-util/cunit )"
+
+# all blockers really needed?
+RDEPEND="${CDEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/courier-imap
+ !net-mail/uw-imap
+ !net-mail/cyrus-imap-admin"
+
+REQUIRED_USE="afs? ( kerberos )
+ backup? ( sqlite )
+ calalarm? ( http )
+ http? ( sqlite )
+ jmap? ( http xapian )
+ sphinx? ( mysql )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_prepare() {
+ # bug 604470
+ eapply -p1 "${FILESDIR}/${PN}-sieve-libs-v4.patch"
+ eapply -p1 "${FILESDIR}/${PN}-libcap-libs.patch"
+ eapply -p1 "${FILESDIR}/${PN}-fix-tests.patch"
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # lock.h to afs/lock.h
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
+ ptclient/afskrb.c || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use afs ; then
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
+ myconf+=" --with-afs-incdir=/usr/include/afs"
+ fi
+ econf \
+ --enable-unit-tests \
+ --enable-murder \
+ --enable-idled \
+ --enable-event-notification \
+ --enable-autocreate \
+ --enable-pcre \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --with-sasl \
+ --without-krb \
+ --without-krbdes \
+ --enable-squat \
+ --with-zlib \
+ $(use_enable afs) \
+ $(use_enable afs krb5afspts) \
+ $(use_enable backup) \
+ $(use_enable calalarm calalarmd) \
+ $(use_with caps libcap) \
+ $(use_with clamav) \
+ $(use_enable jmap) \
+ $(use_enable nntp) \
+ $(use_enable http) \
+ $(use_enable replication) \
+ $(use_enable kerberos gssapi) \
+ $(use_with ldap) \
+ $(use_with lmdb) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with perl) \
+ $(use_with sqlite) \
+ $(use_with ssl openssl) \
+ $(use_enable server) \
+ $(use_enable sieve) \
+ $(use_with snmp) \
+ $(use_enable sphinx) \
+ $(use_enable static-libs static) \
+ $(use_with tcpd libwrap) \
+ $(use_enable xapian) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install
+
+ dodoc README*
+ dodoc -r doc
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ rm -f doc/text/Makefile*
+
+ mv "${D}"usr/libexec/{master,cyrusmaster} || die
+
+ insinto /etc
+ newins "${D}usr/share/doc/${PF}/doc/examples/cyrus_conf/normal.conf" cyrus.conf
+ newins "${D}usr/share/doc/${PF}/doc/examples/imapd_conf/normal.conf" imapd.conf
+
+ sed -i -e '/^configdirectory/s|/var/.*|/var/imap|' \
+ -e '/^partition-default/s|/var/.*|/var/spool/imap|' \
+ -e '/^sievedir/s|/var/.*|/var//imap/sieve|' \
+ "${D}"etc/imapd.conf
+
+ # turn off sieve if not installed
+ if ! use sieve; then
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+ # same thing for http(s) as well
+ if ! use http; then
+ sed -i -e "/http/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+
+ newinitd "${FILESDIR}/cyrus.rc7" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_preinst() {
+ if ! has_version ${CATEGORY}/${PN} ; then
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+ fi
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they exist
+ if use ssl ; then
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ fi
+
+ echo
+ ewarn "Please see http://www.cyrusimap.org/imap/download/upgrade.html"
+ ewarn "for upgrade instructions."
+ echo
+}
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild
new file mode 100644
index 000000000000..f4638e0cc79e
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.0.3.ebuild
@@ -0,0 +1,215 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools pam ssl-cert user
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server"
+HOMEPAGE="http://www.cyrusimap.org/"
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="afs backup calalarm caps clamav http jmap kerberos ldap lmdb \
+ mysql nntp pam perl postgres replication +server sieve snmp \
+ sphinx sqlite ssl static-libs tcpd test xapian"
+
+# virtual/mysql-5.5 added for the --variable= option below
+CDEPEND="sys-libs/zlib
+ dev-libs/libpcre
+ >=dev-libs/cyrus-sasl-2.1.13
+ dev-libs/jansson
+ dev-libs/icu:=
+ afs? ( net-fs/openafs )
+ caps? ( sys-libs/libcap )
+ clamav? ( app-antivirus/clamav )
+ http? ( dev-libs/libxml2 dev-libs/libical )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lmdb? ( dev-db/lmdb )
+ mysql? ( >=virtual/mysql-5.5 )
+ nntp? ( !net-nntp/leafnode )
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ perl? ( dev-lang/perl:= )
+ postgres? ( dev-db/postgresql:* )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
+ sqlite? ( dev-db/sqlite:3 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )
+ xapian? ( >=dev-libs/xapian-1.4.0 )"
+
+DEPEND="${CDEPEND}
+ test? ( dev-util/cunit )"
+
+# all blockers really needed?
+RDEPEND="${CDEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/courier-imap
+ !net-mail/uw-imap
+ !net-mail/cyrus-imap-admin"
+
+REQUIRED_USE="afs? ( kerberos )
+ backup? ( sqlite )
+ calalarm? ( http )
+ http? ( sqlite )
+ jmap? ( http xapian )
+ sphinx? ( mysql )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_prepare() {
+ # bug 604470
+ eapply -p1 "${FILESDIR}/${PN}-sieve-libs-v4.patch"
+ eapply -p1 "${FILESDIR}/${PN}-fix-tests.patch"
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # lock.h to afs/lock.h
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
+ ptclient/afskrb.c || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use afs ; then
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
+ myconf+=" --with-afs-incdir=/usr/include/afs"
+ fi
+ econf \
+ --enable-unit-tests \
+ --enable-murder \
+ --enable-idled \
+ --enable-event-notification \
+ --enable-autocreate \
+ --enable-pcre \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --with-sasl \
+ --without-krb \
+ --without-krbdes \
+ --enable-squat \
+ --with-zlib \
+ $(use_enable afs) \
+ $(use_enable afs krb5afspts) \
+ $(use_enable backup) \
+ $(use_enable calalarm calalarmd) \
+ $(use_with caps libcap) \
+ $(use_with clamav) \
+ $(use_enable jmap) \
+ $(use_enable nntp) \
+ $(use_enable http) \
+ $(use_enable replication) \
+ $(use_enable kerberos gssapi) \
+ $(use_with ldap) \
+ $(use_with lmdb) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with perl) \
+ $(use_with sqlite) \
+ $(use_with ssl openssl) \
+ $(use_enable server) \
+ $(use_enable sieve) \
+ $(use_with snmp) \
+ $(use_enable sphinx) \
+ $(use_enable static-libs static) \
+ $(use_with tcpd libwrap) \
+ $(use_enable xapian) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install
+
+ dodoc README*
+ dodoc -r doc
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ rm -f doc/text/Makefile*
+
+ mv "${D}"usr/libexec/{master,cyrusmaster} || die
+
+ insinto /etc
+ newins "${D}usr/share/doc/${P}/doc/examples/cyrus_conf/normal.conf" cyrus.conf
+ newins "${D}usr/share/doc/${P}/doc/examples/imapd_conf/normal.conf" imapd.conf
+
+ sed -i -e '/^configdirectory/s|/var/.*|/var/imap|' \
+ -e '/^partition-default/s|/var/.*|/var/spool/imap|' \
+ -e '/^sievedir/s|/var/.*|/var//imap/sieve|' \
+ "${D}"etc/imapd.conf
+
+ # turn off sieve if not installed
+ if ! use sieve; then
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+ # same thing for http(s) as well
+ if ! use http; then
+ sed -i -e "/http/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+
+ newinitd "${FILESDIR}/cyrus.rc7" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_preinst() {
+ if ! has_version ${CATEGORY}/${PN} ; then
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+ fi
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they exist
+ if use ssl ; then
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ fi
+
+ echo
+ ewarn "Please see http://www.cyrusimap.org/imap/download/upgrade.html"
+ ewarn "for upgrade instructions."
+ echo
+}
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.0.4.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.0.4.ebuild
new file mode 100644
index 000000000000..9b55bcb7b8f7
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.0.4.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools pam ssl-cert user
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server"
+HOMEPAGE="http://www.cyrusimap.org/"
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="afs backup calalarm caps clamav http jmap kerberos ldap lmdb \
+ mysql nntp pam perl postgres replication +server sieve snmp \
+ sphinx sqlite ssl static-libs tcpd test xapian"
+
+# virtual/mysql-5.5 added for the --variable= option below
+CDEPEND="sys-libs/zlib
+ dev-libs/libpcre
+ >=dev-libs/cyrus-sasl-2.1.13
+ dev-libs/jansson
+ dev-libs/icu:=
+ afs? ( net-fs/openafs )
+ caps? ( sys-libs/libcap )
+ clamav? ( app-antivirus/clamav )
+ http? ( dev-libs/libxml2 dev-libs/libical )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lmdb? ( dev-db/lmdb )
+ mysql? ( >=virtual/mysql-5.5 )
+ nntp? ( !net-nntp/leafnode )
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ perl? ( dev-lang/perl:= )
+ postgres? ( dev-db/postgresql:* )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ ssl? ( >=dev-libs/openssl-1.0.1e:0[-bindist] )
+ sqlite? ( dev-db/sqlite:3 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )
+ xapian? ( >=dev-libs/xapian-1.4.0 )"
+
+DEPEND="${CDEPEND}
+ test? ( dev-util/cunit )"
+
+# all blockers really needed?
+RDEPEND="${CDEPEND}
+ !mail-mta/courier
+ !net-mail/bincimap
+ !net-mail/courier-imap
+ !net-mail/uw-imap
+ !net-mail/cyrus-imap-admin"
+
+REQUIRED_USE="afs? ( kerberos )
+ backup? ( sqlite )
+ calalarm? ( http )
+ http? ( sqlite )
+ jmap? ( http xapian )
+ sphinx? ( mysql )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+src_prepare() {
+ # bug 604470
+ eapply -p1 "${FILESDIR}/${PN}-sieve-libs-v4.patch"
+ eapply -p1 "${FILESDIR}/${PN}-libcap-libs.patch"
+ eapply -p1 "${FILESDIR}/${PN}-fix-tests.patch"
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # lock.h to afs/lock.h
+ sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \
+ ptclient/afskrb.c || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use afs ; then
+ myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
+ myconf+=" --with-afs-incdir=/usr/include/afs"
+ fi
+ econf \
+ --enable-unit-tests \
+ --enable-murder \
+ --enable-idled \
+ --enable-event-notification \
+ --enable-autocreate \
+ --enable-pcre \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --with-sasl \
+ --without-krb \
+ --without-krbdes \
+ --enable-squat \
+ --with-zlib \
+ $(use_enable afs) \
+ $(use_enable afs krb5afspts) \
+ $(use_enable backup) \
+ $(use_enable calalarm calalarmd) \
+ $(use_with caps libcap) \
+ $(use_with clamav) \
+ $(use_enable jmap) \
+ $(use_enable nntp) \
+ $(use_enable http) \
+ $(use_enable replication) \
+ $(use_enable kerberos gssapi) \
+ $(use_with ldap) \
+ $(use_with lmdb) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with perl) \
+ $(use_with sqlite) \
+ $(use_with ssl openssl) \
+ $(use_enable server) \
+ $(use_enable sieve) \
+ $(use_with snmp) \
+ $(use_enable sphinx) \
+ $(use_enable static-libs static) \
+ $(use_with tcpd libwrap) \
+ $(use_enable xapian) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install
+
+ dodoc README*
+ dodoc -r doc
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ rm -f doc/text/Makefile*
+
+ mv "${D}"usr/libexec/{master,cyrusmaster} || die
+
+ insinto /etc
+ newins "${D}usr/share/doc/${PF}/doc/examples/cyrus_conf/normal.conf" cyrus.conf
+ newins "${D}usr/share/doc/${PF}/doc/examples/imapd_conf/normal.conf" imapd.conf
+
+ sed -i -e '/^configdirectory/s|/var/.*|/var/imap|' \
+ -e '/^partition-default/s|/var/.*|/var/spool/imap|' \
+ -e '/^sievedir/s|/var/.*|/var/imap/sieve|' \
+ "${D}"etc/imapd.conf
+
+ sed -i -e 's|/var/imap/socket/lmtp|/run/cyrus/socket/lmtp|' \
+ -e 's|/var/imap/socket/notify|/run/cyrus/socket/notify|' \
+ "${D}"etc/cyrus.conf
+
+ # turn off sieve if not installed
+ if ! use sieve; then
+ sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+ # same thing for http(s) as well
+ if ! use http; then
+ sed -i -e "/http/s/^/#/" "${D}/etc/cyrus.conf" || die
+ fi
+
+ newinitd "${FILESDIR}/cyrus.rc8" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_preinst() {
+ if ! has_version ${CATEGORY}/${PN} ; then
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+ fi
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they exist
+ if use ssl ; then
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ fi
+
+ echo
+ ewarn "Please see http://www.cyrusimap.org/imap/download/upgrade.html"
+ ewarn "for upgrade instructions."
+ echo
+}
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-db.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-db.patch
new file mode 100644
index 000000000000..f720cf2cb127
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-db.patch
@@ -0,0 +1,81 @@
+--- configure.ac 2015-07-06 01:22:19.000000000 +0000
++++ configure.ac 2015-07-22 11:18:33.000000000 +0000
+@@ -236,50 +236,29 @@
+ dnl Berkeley DB Detection
+
+ AC_ARG_WITH(bdb,
+- [AS_HELP_STRING([--with-bdb=DIR], [use Berkeley DB (in DIR) [yes]])],
+- with_bdb=$withval, with_bdb="yes")
+-
+-dnl support old-style
+-AC_ARG_WITH(dbdir,, with_bdb=$withval)
++ [AS_HELP_STRING([--with-bdb], [use Berkeley DB [yes]])],
++ [],
++ [with_bdb="yes"])
+
++# On a properly installed system, we build
++# by including <db.h> and by linking with -ldb
+ case "$with_bdb" in
+- no)
+- use_berkeley="no"
+- ;;
+- yes)
+- use_berkeley="yes"
+- with_bdb_lib=none
+- with_bdb_inc=none
+- ;;
+- *)
+- use_berkeley="yes"
+- with_bdb_lib="$with_bdb/lib"
+- with_bdb_inc="$with_bdb/include"
++ no) ;;
++ *) AC_CHECK_FILE([/usr/include/db.h],
++ [],
++ AC_CHECK_FILE([/usr/include/db/db.h]),
++ [BDB_INC="-I/usr/include/db"],
++ AC_MSG_ERROR([No <db.h> include file is found. Install the
++ appropriate db*-devel package first.]))
++ BDB_LIB="-ldb"
++ AC_SUBST(BDB_INC)
++ AC_SUBST(BDB_LIB)
++ LIBS="${LIBS} ${BDB_LIB}"
++ CPPFLAGS="${CPPFLAGS} ${BDB_INC}"
++ AC_DEFINE(HAVE_BDB,[],[Build in Berkeley DB support?])
+ ;;
+ esac
+-
+-if test "$use_berkeley" != "no"; then
+- CYRUS_BERKELEY_DB_CHK()
+-
+- if test "$dblib" = "no"; then
+- AC_MSG_ERROR([Berkeley DB 3.x or later was not found. You may need to
+- supply the --with-bdb-libdir or --with-bdb-incdir configure options.])
+- fi
+-
+- if test "$with_bdb_lib" != "none"; then
+- CMU_ADD_LIBPATH($with_bdb_lib)
+- fi
+-
+- BDB_INC=${BDB_INCADD}
+- BDB_LIB=${BDB_LIBADD}
+- AC_SUBST(BDB_INC)
+- AC_SUBST(BDB_LIB)
+-
+- LIBS="${LIBS} ${BDB_LIBADD}"
+- CPPFLAGS="${BDB_INCADD} ${CPPFLAGS}"
+- AC_DEFINE(HAVE_BDB,[],[Build in Berkeley DB support?])
+-fi
+-AM_CONDITIONAL([USE_BERKELEY], [test "$use_berkeley" != "no"])
++AM_CONDITIONAL([USE_BERKELEY], [test "$with_bdb" != "no"])
+
+ dnl End Berkeley DB Detection
+
+@@ -1800,7 +1779,7 @@
+ pcre: $cyrus_cv_pcre_utf8
+
+ Database support:
+- bdb: $use_berkeley
++ bdb: $with_bdb
+ mysql: $with_mysql
+ postgresql: $use_pgsql
+ sqlite: $use_sqlite
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-fix-tests.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-fix-tests.patch
new file mode 100644
index 000000000000..c32f2065db00
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-fix-tests.patch
@@ -0,0 +1,21 @@
+--- a/Makefile.am 2017-05-16 15:48:55.943709210 +0300
++++ b/Makefile.am 2017-05-16 15:50:20.950184710 +0300
+@@ -635,7 +635,6 @@
+ cunit/guid.testc \
+ cunit/hash.testc \
+ cunit/imapurl.testc \
+- cunit/jmapauth.testc \
+ cunit/libconfig.testc \
+ cunit/mboxname.testc \
+ cunit/md5.testc \
+@@ -654,6 +653,10 @@
+ cunit_TESTS += cunit/sieve.testc
+ endif
+
++if JMAP
++cunit_TESTS += cunit/jmapauth.testc
++endif
++
+ cunit_TESTS += \
+ cunit/spool.testc \
+ cunit/squat.testc \
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-libcap-libs.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-libcap-libs.patch
new file mode 100644
index 000000000000..e1f5332c6e83
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-libcap-libs.patch
@@ -0,0 +1,35 @@
+--- a/configure.ac 2017-07-15 07:26:38.375295969 +0200
++++ b/configure.ac 2017-07-15 07:28:33.250194410 +0200
+@@ -1351,7 +1351,9 @@
+ AC_CHECK_HEADERS([sys/capability.h sys/prctl.h], , have_libcap=no)
+ if test "$have_libcap" = "yes"; then
+ AC_DEFINE(HAVE_LIBCAP, [], [Do we have libcap system capabilities handling (Linux systems only)?])
+- LIBS="$LIBS -lcap"
++ LIBCAP="-lcap"
++ AC_SUBST(LIBCAP)
++ LIBS="$LIBS $LIBCAP"
+ fi
+ fi
+ ;;
+--- a/perl/imap/Makefile.PL.in 2017-07-15 07:28:49.886034889 +0200
++++ b/perl/imap/Makefile.PL.in 2017-07-15 07:29:10.621836046 +0200
+@@ -90,7 +90,7 @@
+ 'clean' => {'FILES' => 'libcyrperl.a cyradm'},
+ 'OBJECT' => 'IMAP.o',
+ 'MYEXTLIB' => '@top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
+- 'LIBS' => [ "$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"],
++ 'LIBS' => [ "$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@ @LIBCAP@"],
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "-I@top_srcdir@ -I@top_srcdir@/com_err/et @SASLFLAGS@ @SSL_CPPFLAGS@ -I@top_srcdir@/perl/imap",
+ 'EXE_FILES' => [cyradm],
+--- a/perl/sieve/managesieve/Makefile.PL.in 2017-07-15 07:29:29.433655659 +0200
++++ b/perl/sieve/managesieve/Makefile.PL.in 2017-07-15 07:29:44.593510288 +0200
+@@ -69,7 +69,7 @@
+ 'ABSTRACT' => 'Cyrus Sieve management interface',
+ 'VERSION_FROM' => "@top_srcdir@/perl/sieve/managesieve/managesieve.pm", # finds $VERSION
+ 'MYEXTLIB' => '../lib/.libs/libisieve.a @top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
+- 'LIBS' => ["$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"],
++ 'LIBS' => ["$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@ @LIBCAP@"],
+ 'CCFLAGS' => '@GCOV_CFLAGS@',
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "-I@top_srcdir@/lib -I@top_srcdir@/perl/sieve -I@top_srcdir@/perl/sieve/lib @SASLFLAGS@ @SSL_CPPFLAGS@",
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch
new file mode 100644
index 000000000000..4a7bac2e3c1f
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs-v4.patch
@@ -0,0 +1,127 @@
+--- a/configure.ac 2017-04-20 04:21:48.000000000 +0300
++++ b/configure.ac 2017-05-16 10:30:37.337965921 +0300
+@@ -666,7 +666,9 @@
+ fi
+
+ if test "$cyrus_cv_pcre_utf8" = "yes"; then
+- LIBS="$LIBS -lpcre -lpcreposix";
++ PCRE_LIBS="-lpcre -lpcreposix"
++ AC_SUBST(PCRE_LIBS)
++ LIBS="$LIBS $PCRE_LIBS"
+ AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
+ AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?])
+ else
+@@ -1938,6 +1940,7 @@
+ fi
+
+ LIBS="${LIBS} ${SQLITE_LIBADD}"
++ AC_SUBST(SQLITE_LIBADD)
+ CPPFLAGS="${SQLITE_INCADD} ${CPPFLAGS}"
+ AC_DEFINE(HAVE_SQLITE,[],[Build in SQLite support?])
+ else
+--- a/perl/imap/Makefile.PL.in 2017-04-07 08:31:10.000000000 +0300
++++ b/perl/imap/Makefile.PL.in 2017-05-16 10:26:08.193965921 +0300
+@@ -90,7 +90,7 @@
+ 'clean' => {'FILES' => 'libcyrperl.a cyradm'},
+ 'OBJECT' => 'IMAP.o',
+ 'MYEXTLIB' => '@top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
+- 'LIBS' => [ "$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@"],
++ 'LIBS' => [ "$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"],
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "-I@top_srcdir@ -I@top_srcdir@/com_err/et @SASLFLAGS@ @SSL_CPPFLAGS@ -I@top_srcdir@/perl/imap",
+ 'EXE_FILES' => [cyradm],
+--- a/perl/sieve/managesieve/Makefile.PL.in 2017-04-07 08:31:10.000000000 +0300
++++ b/perl/sieve/managesieve/Makefile.PL.in 2017-05-16 10:26:31.048965921 +0300
+@@ -69,7 +69,7 @@
+ 'ABSTRACT' => 'Cyrus Sieve management interface',
+ 'VERSION_FROM' => "@top_srcdir@/perl/sieve/managesieve/managesieve.pm", # finds $VERSION
+ 'MYEXTLIB' => '../lib/.libs/libisieve.a @top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
+- 'LIBS' => ["$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@"],
++ 'LIBS' => ["$LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"],
+ 'CCFLAGS' => '@GCOV_CFLAGS@',
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "-I@top_srcdir@/lib -I@top_srcdir@/perl/sieve -I@top_srcdir@/perl/sieve/lib @SASLFLAGS@ @SSL_CPPFLAGS@",
+--- a/configure.ac 2017-05-16 15:18:23.648756211 +0300
++++ b/configure.ac 2017-05-16 15:26:49.241756211 +0300
+@@ -633,8 +633,6 @@
+
+ AC_ARG_ENABLE(sieve,
+ [AS_HELP_STRING([--disable-sieve], [disable Sieve support])],,[enable_sieve="yes";])
+-AC_ARG_ENABLE(pcre,
+- [AS_HELP_STRING([--disable-pcre], [disable PCRE library])])
+
+ if test "$enable_sieve" != "no"; then
+ AC_DEFINE(USE_SIEVE,[],[Build in Sieve support?])
+@@ -650,42 +648,46 @@
+ if test -z "$ac_cv_prog_LEX"; then
+ AC_MSG_ERROR([Sieve requires flex/lex, but none is installed])
+ fi
++fi
++AM_CONDITIONAL([SIEVE], [test "${enable_sieve}" != "no"])
++
+
+- if test "$enable_pcre" != "no"; then
+- AC_CHECK_HEADER(pcreposix.h)
+- if test "$ac_cv_header_pcreposix_h" = "yes"; then
+- AC_MSG_CHECKING(for utf8 enabled pcre)
+- AC_CACHE_VAL(cyrus_cv_pcre_utf8, AC_TRY_CPP([#include <pcreposix.h>
++AC_ARG_ENABLE(pcre,
++ [AS_HELP_STRING([--disable-pcre], [disable PCRE library])])
++
++if test "$enable_pcre" != "no"; then
++ AC_CHECK_HEADER(pcreposix.h)
++ if test "$ac_cv_header_pcreposix_h" = "yes"; then
++ AC_MSG_CHECKING(for utf8 enabled pcre)
++ AC_CACHE_VAL(cyrus_cv_pcre_utf8, AC_TRY_CPP([#include <pcreposix.h>
+ #ifndef REG_UTF8
+ #include </nonexistent>
+ #endif],cyrus_cv_pcre_utf8=yes,cyrus_cv_pcre_utf8=no))
+- AC_MSG_RESULT($cyrus_cv_pcre_utf8)
+- else
+- cyrus_cv_pcre_utf8="no"
+- fi
++ AC_MSG_RESULT($cyrus_cv_pcre_utf8)
++ else
++ cyrus_cv_pcre_utf8="no"
+ fi
++fi
+
+- if test "$cyrus_cv_pcre_utf8" = "yes"; then
+- PCRE_LIBS="-lpcre -lpcreposix"
+- AC_SUBST(PCRE_LIBS)
+- LIBS="$LIBS $PCRE_LIBS"
+- AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
+- AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?])
++if test "$cyrus_cv_pcre_utf8" = "yes"; then
++ PCRE_LIBS="-lpcre -lpcreposix"
++ AC_SUBST(PCRE_LIBS)
++ LIBS="$LIBS $PCRE_LIBS"
++ AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
++ AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?])
++else
++ AC_CHECK_HEADERS(rxposix.h)
++ if test "$ac_cv_header_rxposix_h" = "yes"; then
++ LIBS="$LIBS -lrx"
++ AC_DEFINE(ENABLE_REGEX, [],
++ [Do we have a regex library?])
+ else
+- AC_CHECK_HEADERS(rxposix.h)
+- if test "$ac_cv_header_rxposix_h" = "yes"; then
+- LIBS="$LIBS -lrx"
+- AC_DEFINE(ENABLE_REGEX, [],
+- [Do we have a regex library?])
+- else
+- AC_SEARCH_LIBS(regcomp, regex,
+- AC_DEFINE(ENABLE_REGEX, [],
+- [Do we have a regex library?]), [])
+- fi
++ AC_SEARCH_LIBS(regcomp, regex,
++ AC_DEFINE(ENABLE_REGEX, [],
++ [Do we have a regex library?]), [])
+ fi
+ fi
+
+-AM_CONDITIONAL([SIEVE], [test "${enable_sieve}" != "no"])
+
+ dnl look for an option to disable sign-comparison warnings (needed for
+ dnl flex-generated sieve sources when building with -Werror)
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs.patch
new file mode 100644
index 000000000000..0bfdc1d31550
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-sieve-libs.patch
@@ -0,0 +1,43 @@
+--- a/configure.ac 2016-10-17 23:01:04.000000000 +0200
++++ b/configure.ac 2016-12-28 02:42:37.936610002 +0100
+@@ -400,6 +379,7 @@
+ fi
+
+ LIBS="${LIBS} ${SQLITE_LIBADD}"
++ AC_SUBST(SQLITE_LIBADD)
+ CPPFLAGS="${SQLITE_INCADD} ${CPPFLAGS}"
+
+ AC_DEFINE(HAVE_SQLITE,[],[Build in SQLite support?])
+@@ -437,7 +416,9 @@
+ fi
+
+ if test "$cyrus_cv_pcre_utf8" = "yes"; then
+- LIBS="$LIBS -lpcre -lpcreposix";
++ PCRE_LIBS="-lpcre -lpcreposix"
++ AC_SUBST(PCRE_LIBS)
++ LIBS="$LIBS $PCRE_LIBS"
+ AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
+ AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?])
+ else
+--- a/perl/imap/Makefile.PL.in 2016-10-17 23:01:04.000000000 +0200
++++ b/perl/imap/Makefile.PL.in 2016-12-28 02:42:04.559449967 +0100
+@@ -69,7 +69,7 @@
+ 'clean' => {'FILES' => 'libcyrperl.a cyradm'},
+ 'OBJECT' => 'IMAP.o',
+ 'MYEXTLIB' => '@top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
+- 'LIBS' => [ "@BDB_LIB@ $LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@"],
++ 'LIBS' => [ "@BDB_LIB@ $LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"],
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "@BDB_INC@ -I@top_srcdir@ -I@top_srcdir@/com_err/et @SASLFLAGS@ @SSL_CPPFLAGS@ -I@top_srcdir@/perl/imap",
+ 'EXE_FILES' => [cyradm],
+--- a/perl/sieve/managesieve/Makefile.PL.in 2016-10-17 23:01:04.000000000 +0200
++++ b/perl/sieve/managesieve/Makefile.PL.in 2016-12-28 02:42:34.496490437 +0100
+@@ -52,7 +52,7 @@
+ 'ABSTRACT' => 'Cyrus Sieve management interface',
+ 'VERSION_FROM' => "@top_srcdir@/perl/sieve/managesieve/managesieve.pm", # finds $VERSION
+ 'MYEXTLIB' => '../lib/libisieve.a @top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
+- 'LIBS' => ["@BDB_LIB@ $LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@"],
++ 'LIBS' => ["@BDB_LIB@ $LIB_SASL @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ @ZLIB@ @PCRE_LIBS@ @SQLITE_LIBADD@"],
+ 'CCFLAGS' => '@COV_CFLAGS@',
+ 'DEFINE' => '-DPERL_POLLUTE', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "@BDB_INC@ -I@top_srcdir@/lib -I@top_srcdir@/perl/sieve/lib @SASLFLAGS@ @SSL_CPPFLAGS@",
diff --git a/net-mail/cyrus-imapd/files/cyrus.conf b/net-mail/cyrus-imapd/files/cyrus.conf
new file mode 100644
index 000000000000..ab084d51a024
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.conf
@@ -0,0 +1,41 @@
+# Standard standalone server configuration.
+
+START {
+ # Do not delete this entry!
+ recover cmd="ctl_cyrusdb -r"
+
+ # This is only necessary if using idled for IMAP IDLE.
+ #idled cmd="idled"
+}
+
+# UNIX sockets start with a slash and are put into /var/imap/socket.
+SERVICES {
+ # Add or remove based on preferences.
+ imap cmd="imapd" listen="imap2" prefork=0
+ pop3 cmd="pop3d" listen="pop-3" prefork=0
+
+ # Don't forget to generate the needed keys for SSL or TLS
+ # (see doc/html/install-configure.html).
+ #imaps cmd="imapd -s" listen="imaps" prefork=0
+ #pop3s cmd="pop3d -s" listen="pop3s" prefork=0
+
+ sieve cmd="timsieved" listen="sieve" prefork=0
+
+ # at least one LMTP is required for delivery
+ #lmtp cmd="lmtpd" listen="lmtp" prefork=0
+ lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
+
+ # this is only necessary if using notifications
+ #notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
+}
+
+EVENTS {
+ # This is required.
+ checkpoint cmd="ctl_cyrusdb -c" period=30
+
+ # This is only necessary if using duplicate delivery suppression.
+ delprune cmd="ctl_deliver -E 3" period=1440
+
+ # This is only necessary if caching TLS sessions.
+ tlsprune cmd="tls_prune" period=1440
+}
diff --git a/net-mail/cyrus-imapd/files/cyrus.confd b/net-mail/cyrus-imapd/files/cyrus.confd
new file mode 100644
index 000000000000..b11c6780bdc4
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Additional options for the cyrus master
+CYRUS_OPTS=""
diff --git a/net-mail/cyrus-imapd/files/cyrus.pam-include b/net-mail/cyrus-imapd/files/cyrus.pam-include
new file mode 100644
index 000000000000..6e47645bd7d6
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.pam-include
@@ -0,0 +1,6 @@
+#%PAM-1.0
+
+auth required pam_nologin.so
+auth include system-auth
+
+account include system-auth
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc6 b/net-mail/cyrus-imapd/files/cyrus.rc6
new file mode 100644
index 000000000000..119de24c188c
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.rc6
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ use dns logger
+ after drac saslauthd
+}
+
+start() {
+ ebegin "Starting cyrus imapd"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/lib/cyrus/master -- ${CYRUS_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cyrus imapd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/cyrus-master.pid
+ eend $?
+}
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc7 b/net-mail/cyrus-imapd/files/cyrus.rc7
new file mode 100644
index 000000000000..348b01c04921
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.rc7
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ use dns logger
+ after drac saslauthd
+}
+
+start() {
+ ebegin "Starting cyrus imapd"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/libexec/cyrusmaster -- ${CYRUS_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cyrus imapd"
+ start-stop-daemon --stop --quiet --pidfile /run/cyrus-master.pid
+ eend $?
+}
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc8 b/net-mail/cyrus-imapd/files/cyrus.rc8
new file mode 100644
index 000000000000..9d9e9452f565
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.rc8
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ use dns logger
+ after drac saslauthd
+}
+
+checkdirs() {
+ for dir in /run/cyrus/{,proc,lock,socket,sync}
+ do
+ checkpath -q -d -o cyrus:mail -m 0750 "${dir}" || {
+ eerror "Failed to create directory at $dir"
+ return 1
+ }
+ done
+}
+
+
+start() {
+ checkdirs || return 1
+ ebegin "Starting cyrus imapd"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/libexec/cyrusmaster -- ${CYRUS_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cyrus imapd"
+ start-stop-daemon --stop --quiet --pidfile /run/cyrus-master.pid
+ eend $?
+}
diff --git a/net-mail/cyrus-imapd/files/imapd.conf b/net-mail/cyrus-imapd/files/imapd.conf
new file mode 100644
index 000000000000..e77ff2f4b887
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/imapd.conf
@@ -0,0 +1,50 @@
+# Don't forget to use chattr +S (if you are using ext[23])
+# when you change these directories (read the docs).
+configdirectory: /var/imap
+partition-default: /var/spool/imap
+sievedir: /var/imap/sieve
+
+tls_ca_path: /etc/ssl/certs
+tls_cert_file: /etc/ssl/cyrus/server.crt
+tls_key_file: /etc/ssl/cyrus/server.key
+
+# Don't use an everyday user as admin.
+admins: cyrus
+
+hashimapspool: yes
+allowanonymouslogin: no
+allowplaintext: no
+
+# Allow renaming of top-level mailboxes.
+#allowusermoves: yes
+
+# Use this if sieve-scripts could be in ~user/.sieve.
+#sieveusehomedir: yes
+
+# Use saslauthd if you want to use pam for imap.
+# But be warned: login with DIGEST-MD5 or CRAM-MD5
+# is not possible using pam.
+#sasl_pwcheck_method: saslauthd
+
+####################################################
+## This is a recommended authentication method if you
+## emerge cyrus-sasl with 'postgres' or 'mysql'
+## To use with mysql database uncomment those lines below.
+
+#sasl_pwcheck_method: auxprop
+#sasl_auxprop_plugin: sql
+
+## possible values for sasl_auxprop_plugin 'mysql', 'pgsql', 'sqlite'.
+#sasl_sql_engine: mysql
+
+## all possible values.
+#sasl_mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM
+## or limit to CRAM-MD5 only
+#sasl_mech_list: CRAM-MD5
+
+## change below to suit your setup.
+sasl_sql_user: mailsqluser
+sasl_sql_passwd: password
+sasl_sql_database: mailsqldb
+sasl_sql_hostnames: localhost
+sasl_sql_select: SELECT clear FROM users WHERE email = '%u@%r'
diff --git a/net-mail/cyrus-imapd/metadata.xml b/net-mail/cyrus-imapd/metadata.xml
new file mode 100644
index 000000000000..23dc96dc53ab
--- /dev/null
+++ b/net-mail/cyrus-imapd/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="replication">Enable replication support</flag>
+ <flag name="sieve">Enable sieve support</flag>
+ <flag name="http">Enable http support</flag>
+ <flag name="server">Enable building server binaries</flag>
+ <flag name="backup">Enable backup service support</flag>
+ <flag name="calalarm">Enable CalDAV alarm support</flag>
+ <flag name="jmap">Enable JMAP support</flag>
+ <flag name="sphinx">Enable Sphinx search engine support</flag>
+ <flag name="xapian">Enable Xapian search engine support</flag>
+ <flag name="lmdb">Enable support for using <pkg>dev-db/lmdb</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/dbmail/Manifest b/net-mail/dbmail/Manifest
new file mode 100644
index 000000000000..c1a5596f9455
--- /dev/null
+++ b/net-mail/dbmail/Manifest
@@ -0,0 +1,12 @@
+AUX dbmail-imapd.initd 1543 SHA256 b8d50a3879e0e0c4fc5e451a26bcb6a8f9a3d353d7fe9cec4186ca542943237b SHA512 31b7dcb5a1af0aa5a8244371a2f81619c2191a7755340768e1aad694fde7876e4ad7040d0758dafd0a332eefd24b790a83e8ba95f13fe5d1d2e09ef7551d41cc WHIRLPOOL 84dfe3344e209874cd89c46f2b4a445fa5ce383ca06319ba2ec6c5f7147e3bf11b332193c0bb57ad850d8042173fdd6ad1e6ba506a1e9c51444e1f963944ba45
+AUX dbmail-lmtpd.initd 1543 SHA256 6cbc8149cfd6a8fea1f61e972ee4ada776f9d10784da37e27cf30cae5156268a SHA512 c79f50c56538643b3203d238cc5ef6f4c407951ff3279ba15b695479f7667be8120ded07daa55c1d01409a2921d5579ffa47cd612cba08f558bc5ba84f5809b7 WHIRLPOOL bdb2fd1b9b366ba3716725629ec3616c3d4fef5e2aa132d440c10a52f72f8594bb24054287476db274eada68790d8c2621523d1893494ca898d3bfa68cf147b2
+AUX dbmail-pop3d.initd 1543 SHA256 c083dd9557313c0fc85df4990848cd32173554c41a9b2e0f568bd56da27f798e SHA512 6b1d3f10caf0afb5d5e41e95055368f11c2864204eafa94d22c93ba9f765419e69bb5e9a03d497d1e9a00d0c6a31c823be1449590331d24d6eb02d1f194a4941 WHIRLPOOL 3d483b6322dd9c096c9a0172a2410fb6b8fe7043d46feb837c6c39be307344db6293a76a4cd079b0e323c3c393769516a43047d0e313e349d6b33d33d9345f4b
+AUX dbmail-timsieved.initd 1558 SHA256 314896ce17d64f5a725c1582383b462c891c610c803ee5a9d7662bf052ec7f95 SHA512 e9192c17772e208e5a57e185d970b605941dcb2472347858d2da45493084e666840dd13a4ee7c74ffce8eca975116fb8d78b0474bfe022089c859dd54a6e139e WHIRLPOOL 71bc652d8ea631a6d897ab1230b55e93c59ecc2b4640769b1d416db3645d3438d44c5c7bafc264284605e6c512f6a64b44bf4215004cfbb08374a694cc211364
+DIST dbmail-3.2.2.tar.gz 2444241 SHA256 77d2fcf343cc1312fca565a9eeef3927b257b55910be2b198562516334a2c62a SHA512 a2125ea3b9d0ec387135d87854510f36ef0fe87b70f33d54f8af89f22a83802e5838979ba94d6ba66ef986f6f67b08aa6d5e2bfc2f1f2bc44edf03a9f51afb37 WHIRLPOOL 8fa60754e55b56e293a187cd10922586e1c38c0079e8f6eb98b8aaba503705046cf7b6954f677bb295ea799f9261ef62c8589433657a0ad2775dd2cfa1d1ee15
+DIST dbmail-3.2.3.tar.gz 2444227 SHA256 fd4d90e3e5ddb0c3fbdaa766d19d2464b5027a8c8d0b0df614418a3aac811832 SHA512 29cc89830278f2ff28a4221fc81d4ff13cc371fbca7fb51d5376e9243234220b552cb4b6ec035c150e6cfa178435c4f36b9ce132fc02334bc6cdeb1a41c8ed85 WHIRLPOOL 05284ae622078584e35583ba5a6b340d9500c46dcf820b851810a2bbf6ac39ee57080d9e23ee82c6b64af3f76de6ef6eb0ec925a9615d4a4dc2e19e5f06e9a5d
+EBUILD dbmail-3.2.2.ebuild 4851 SHA256 26e32fad99b9b4abb770c85502d5dfe8138d1c64861bf81a505affcf97321758 SHA512 a94c7341158cb6d10d56c16b93d9d34f317f0cccd4cd70365267b4fac2c64dc1dea2e1d392baddf013cff7a97bcd8487c86466d8a6d6f150475baeb908349aca WHIRLPOOL 8d414bdde83877524f41daddeb0470de1ade0d6228657331c76f940501defdbca5604002879c82e8c5fd8ba2c11253c5a56ad1001e14748cdc30424252f0d6e0
+EBUILD dbmail-3.2.3-r1.ebuild 4613 SHA256 56aa97877ce556b6b4c90c3e335fcfe6c84322e1b16fd1a63036bc875ddbce07 SHA512 c1957a239fd669a6262bc22a2fa30649640cc67af44cd29a299ea0d1bb2f5a7689fc77376123e7ede1ad5eed10554dfa8c100ff4497c5bb5ae1b3168103202b0 WHIRLPOOL 50028d27087997eed05079db458e349109065423dde03f9b1d41eb5f2b39b8c8e00a36efa9ae15cacb8862cb6c847e4c3f20e303265fa6387ec7f40bb60d7966
+EBUILD dbmail-3.2.3.ebuild 4853 SHA256 e525570917d6eb8ca00ef1fe37d9f7965d112c53ae8a99895b8ce78126f7ce34 SHA512 a52a6edfe30085c263c4f3b4b83e475917d63f68a36f765fea643a30845d0eac2ed503b499b0d0a4351426b4cee839bccd30cecaa6f22c6f80deb226aa5c7427 WHIRLPOOL 580c30ee532368643e09b79f8ef7013c04d6fbeb6695e9e7584ac582df0c32fbdc8d97b15c9c5a2a0b77d9d713ae8658bfaa5a4ed05e6c085292dd3ede9ab648
+MISC ChangeLog 3203 SHA256 fb218c3cb4c87cdfbc3e186e93be3c21fdc7584d288c019aefb1219ee800b582 SHA512 d6db1732636704f3559f439bf97f0fb410a4bd82c9959295a67be06a12476efc1705a3d33035ebd8676c009a788ed95c7c1cd4e171ef3618f01cca1870dca07b WHIRLPOOL 52af754268a46e8eaad85116e209f7005cd64eba89100c06ef2afb2263c3d544ca8251f9e0a07ab50687de14d87de7295d49de7e73a159b1a77b8dd165e03a70
+MISC ChangeLog-2015 13312 SHA256 c1cb328fb7df829326c6f8446933d596bef3eeebd8155bcb9489bf16f58eac70 SHA512 58c75da8b1d84228e70f51a80b33d55672843b815575598a3e24b08219ebfa83f4ccaefa2acf69e7779a6888fc8fc38731e4e43ebb0f88776e5deb66bd9e9e2c WHIRLPOOL fb82b34678a460dc54470eb1b17a3ae94db5188d6425adee1ab85533d97fabbdf0d95d6a2641cd933322612d86fba7e5243c007646a046a29e128cc29588c897
+MISC metadata.xml 681 SHA256 2fc6ecff087d6bc6e33fe8a809ba2f8cc686bcd2b88ec991ae041f42299a83c2 SHA512 905c493d1ec543b10a58a152a4ea78ce59e831eb477baebfef4e930c39f268f24bccacb06ebc9ddbe398da27bf222910004fc6b74712b48bc619f7dbb94c60e5 WHIRLPOOL 7f6fca68a588ed9a1299d924766169ce3bc1011bc976395c6b56cd076df729ebc0a00d37c71dd4509c37280f9bfd0b16475dbce40e6aee9404e00901a661fe4a
diff --git a/net-mail/dbmail/dbmail-3.2.2.ebuild b/net-mail/dbmail/dbmail-3.2.2.ebuild
new file mode 100644
index 000000000000..419c1fcda267
--- /dev/null
+++ b/net-mail/dbmail/dbmail-3.2.2.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils multilib versionator user
+
+DESCRIPTION="DBMail is an open-source project that enables storage of mail messages in a relational database"
+HOMEPAGE="http://www.dbmail.org/"
+SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="ldap sieve +sqlite ssl static"
+
+DEPEND="dev-db/libzdb
+ sieve? ( >=mail-filter/libsieve-2.2.1 )
+ ldap? ( >=net-nds/openldap-2.3.33 )
+ app-text/asciidoc
+ app-text/xmlto
+ app-crypt/mhash
+ sys-libs/zlib
+ dev-libs/gmime:2.6
+ >=dev-libs/glib-2.16
+ dev-libs/libevent
+ ssl? ( dev-libs/openssl )"
+#asciidoc and xmlto needed?
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup dbmail
+ enewuser dbmail -1 -1 /var/lib/dbmail dbmail
+}
+
+src_configure() {
+ local myconf=""
+ use ldap && myconf=${myconf}" --with-auth-ldap"
+
+ econf \
+ --sysconfdir=/etc/dbmail \
+ $(use_enable static) \
+ $(use_with sieve) \
+ ${myconf}
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING
+
+ docompress -x /usr/share/doc/${PF}/sql
+ dodoc -r sql
+ dodoc -r test-scripts
+ dodoc -r contrib
+ ## TODO: install other contrib stuff
+
+ sed -i -e "s:nobody:dbmail:" dbmail.conf
+ sed -i -e "s:nogroup:dbmail:" dbmail.conf
+ sed -i -e "s:/var/run:/var/run/dbmail:" dbmail.conf
+ #sed -i -e "s:#library_directory:library_directory:" dbmail.conf
+
+ insinto /etc/dbmail
+ newins dbmail.conf dbmail.conf.dist
+
+ # change config path to our default and use the conf.d and init.d files from the contrib dir
+ sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
+ #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
+ #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail
+ #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
+ #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
+ # use custom init scripts until updated in upstream contrib
+ newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
+ newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
+ newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
+ newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
+
+ dobin contrib/mailbox2dbmail/mailbox2dbmail
+ doman contrib/mailbox2dbmail/mailbox2dbmail.1
+ #doman man/*.{1,5,8}
+
+ # ldap schema
+ if use ldap; then
+ insinto /etc/openldap/schema
+ doins "${S}/dbmail.schema"
+ fi
+
+ keepdir /var/lib/dbmail
+ fperms 750 /var/lib/dbmail
+ fowners dbmail:dbmail /var/lib/dbmail
+ # create this through init-scripts instead of at installt ime (bug #455002)
+ #keepdir /var/run/dbmail
+ #fowners dbmail:dbmail /var/run/dbmail
+}
+
+pkg_postinst() {
+ elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
+ elog "for remaining instructions on setting up dbmail users and "
+ elog "for finishing configuration to connect to your MTA and "
+ elog "to connect to your db."
+ echo
+ elog "DBMail requires either SQLite, PostgreSQL or MySQL."
+ elog "Database schemes can be found in /usr/share/doc/${PF}/"
+ elog "You will also want to follow the installation instructions"
+ elog "on setting up the maintenance program to delete old messages."
+ elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
+ echo
+ elog "For regular maintenance, add this to crontab:"
+ elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
+ echo
+ elog "Please make sure to run etc-update."
+ elog "If you get an error message about plugins not found"
+ elog "please add the library_directory configuration switch to"
+ elog "dbmail.conf and set it to the correct path"
+ elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
+ elog "A sample can be found in dbmail.conf.dist after etc-update."
+ echo
+ elog "We are now using the init script from upstream."
+ elog "Please edit /etc/conf.d/dbmail to set which services to start"
+ elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
+ elog "forget to rc-update del dbmail-* first)"
+ echo
+ elog "Changed pid directory to /var/run/dbmail (see"
+ elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
+ echo
+ ewarn "The database config has changed to support libzdb db URI"
+ ewarn "Please check the documentation (or Bug #479664)"
+ echo
+ ewarn "The database schema has changed since 3.0.x make sure"
+ ewarn "to run the migration script"
+ echo
+ ewarn "Please be aware, that the single init-script for all services"
+ ewarn "has been replaced with seperate init scripts for the individual services."
+ ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
+ ewarn "and remove dbmail if you want to take advantage of this change."
+ echo
+}
diff --git a/net-mail/dbmail/dbmail-3.2.3-r1.ebuild b/net-mail/dbmail/dbmail-3.2.3-r1.ebuild
new file mode 100644
index 000000000000..61bff9022a7b
--- /dev/null
+++ b/net-mail/dbmail/dbmail-3.2.3-r1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator user
+
+DESCRIPTION="Enables storage of mail messages in a relational database"
+HOMEPAGE="http://www.dbmail.org/"
+SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="ldap sieve ssl static"
+
+DEPEND="dev-db/libzdb
+ sieve? ( >=mail-filter/libsieve-2.2.1 )
+ ldap? ( >=net-nds/openldap-2.3.33 )
+ app-text/asciidoc
+ app-text/xmlto
+ app-crypt/mhash
+ sys-libs/zlib
+ dev-libs/gmime:2.6
+ >=dev-libs/glib-2.16
+ dev-libs/libevent
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+DOCS="AUTHORS README.md INSTALL THANKS UPGRADING"
+
+pkg_setup() {
+ enewgroup dbmail
+ enewuser dbmail -1 -1 /var/lib/dbmail dbmail
+}
+
+src_configure() {
+ econf \
+ --enable-manpages \
+ --sysconfdir=/etc/dbmail \
+ $(use_enable static) \
+ $(use_with sieve) \
+ $(use_with ldap auth-ldap)
+}
+
+src_install() {
+ default
+
+ docompress -x /usr/share/doc/${PF}/sql
+ dodoc -r sql
+ dodoc -r test-scripts
+ dodoc -r contrib
+ ## TODO: install other contrib stuff
+
+ sed -i -e "s:nobody:dbmail:" dbmail.conf || die
+ sed -i -e "s:nogroup:dbmail:" dbmail.conf || die
+ sed -i -e "s:/var/run:/run/dbmail:" dbmail.conf || die
+
+ insinto /etc/dbmail
+ newins dbmail.conf dbmail.conf.dist
+
+ # change config path to our default and use the conf.d and init.d files from the contrib dir
+ sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail || die
+ #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail || die
+ #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail || die
+ #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
+ #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
+ # use custom init scripts until updated in upstream contrib
+ newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
+ newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
+ newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
+ newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
+ sed -i -e "s:/var/run:/run:" "${D}"/etc/init.d/dbmail-* || die
+
+ dobin contrib/mailbox2dbmail/mailbox2dbmail
+ doman contrib/mailbox2dbmail/mailbox2dbmail.1
+
+ # ldap schema
+ if use ldap; then
+ insinto /etc/openldap/schema
+ doins "${S}/dbmail.schema"
+ fi
+
+ keepdir /var/lib/dbmail
+ fperms 750 /var/lib/dbmail
+ fowners dbmail:dbmail /var/lib/dbmail
+ # create this through init-scripts instead of at install time (bug #455002)
+ #keepdir /run/dbmail
+ #fowners dbmail:dbmail /run/dbmail
+}
+
+pkg_postinst() {
+ elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
+ elog "for remaining instructions on setting up dbmail users and "
+ elog "for finishing configuration to connect to your MTA and "
+ elog "to connect to your db."
+ echo
+ elog "DBMail requires either SQLite, PostgreSQL or MySQL."
+ elog "Database schemes can be found in /usr/share/doc/${PF}/"
+ elog "You will also want to follow the installation instructions"
+ elog "on setting up the maintenance program to delete old messages."
+ elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
+ echo
+ elog "For regular maintenance, add this to crontab:"
+ elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
+ echo
+ elog "Please make sure to run etc-update."
+ elog "If you get an error message about plugins not found"
+ elog "please add the library_directory configuration switch to"
+ elog "dbmail.conf and set it to the correct path"
+ elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
+ elog "A sample can be found in dbmail.conf.dist after etc-update."
+ echo
+ elog "We are now using the init script from upstream."
+ elog "Please edit /etc/conf.d/dbmail to set which services to start"
+ elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
+ elog "forget to rc-update del dbmail-* first)"
+ echo
+ elog "Changed pid directory to /run/dbmail (see"
+ elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
+ echo
+ ewarn "The database config has changed to support libzdb db URI"
+ ewarn "Please check the documentation (or Bug #479664)"
+ echo
+ ewarn "The database schema has changed since 3.0.x make sure"
+ ewarn "to run the migration script"
+ echo
+ ewarn "Please be aware, that the single init-script for all services"
+ ewarn "has been replaced with seperate init scripts for the individual services."
+ ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
+ ewarn "and remove dbmail if you want to take advantage of this change."
+ echo
+}
diff --git a/net-mail/dbmail/dbmail-3.2.3.ebuild b/net-mail/dbmail/dbmail-3.2.3.ebuild
new file mode 100644
index 000000000000..6aa8cf25470e
--- /dev/null
+++ b/net-mail/dbmail/dbmail-3.2.3.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils multilib versionator user
+
+DESCRIPTION="DBMail is an open-source project that enables storage of mail messages in a relational database"
+HOMEPAGE="http://www.dbmail.org/"
+SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ldap sieve +sqlite ssl static"
+
+DEPEND="dev-db/libzdb
+ sieve? ( >=mail-filter/libsieve-2.2.1 )
+ ldap? ( >=net-nds/openldap-2.3.33 )
+ app-text/asciidoc
+ app-text/xmlto
+ app-crypt/mhash
+ sys-libs/zlib
+ dev-libs/gmime:2.6
+ >=dev-libs/glib-2.16
+ dev-libs/libevent
+ ssl? ( dev-libs/openssl )"
+#asciidoc and xmlto needed?
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup dbmail
+ enewuser dbmail -1 -1 /var/lib/dbmail dbmail
+}
+
+src_configure() {
+ local myconf=""
+ use ldap && myconf=${myconf}" --with-auth-ldap"
+
+ econf \
+ --sysconfdir=/etc/dbmail \
+ $(use_enable static) \
+ $(use_with sieve) \
+ ${myconf}
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING
+
+ docompress -x /usr/share/doc/${PF}/sql
+ dodoc -r sql
+ dodoc -r test-scripts
+ dodoc -r contrib
+ ## TODO: install other contrib stuff
+
+ sed -i -e "s:nobody:dbmail:" dbmail.conf
+ sed -i -e "s:nogroup:dbmail:" dbmail.conf
+ sed -i -e "s:/var/run:/var/run/dbmail:" dbmail.conf
+ #sed -i -e "s:#library_directory:library_directory:" dbmail.conf
+
+ insinto /etc/dbmail
+ newins dbmail.conf dbmail.conf.dist
+
+ # change config path to our default and use the conf.d and init.d files from the contrib dir
+ sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
+ #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
+ #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail
+ #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
+ #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
+ # use custom init scripts until updated in upstream contrib
+ newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
+ newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
+ newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
+ newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
+
+ dobin contrib/mailbox2dbmail/mailbox2dbmail
+ doman contrib/mailbox2dbmail/mailbox2dbmail.1
+ #doman man/*.{1,5,8}
+
+ # ldap schema
+ if use ldap; then
+ insinto /etc/openldap/schema
+ doins "${S}/dbmail.schema"
+ fi
+
+ keepdir /var/lib/dbmail
+ fperms 750 /var/lib/dbmail
+ fowners dbmail:dbmail /var/lib/dbmail
+ # create this through init-scripts instead of at installt ime (bug #455002)
+ #keepdir /var/run/dbmail
+ #fowners dbmail:dbmail /var/run/dbmail
+}
+
+pkg_postinst() {
+ elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
+ elog "for remaining instructions on setting up dbmail users and "
+ elog "for finishing configuration to connect to your MTA and "
+ elog "to connect to your db."
+ echo
+ elog "DBMail requires either SQLite, PostgreSQL or MySQL."
+ elog "Database schemes can be found in /usr/share/doc/${PF}/"
+ elog "You will also want to follow the installation instructions"
+ elog "on setting up the maintenance program to delete old messages."
+ elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
+ echo
+ elog "For regular maintenance, add this to crontab:"
+ elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
+ echo
+ elog "Please make sure to run etc-update."
+ elog "If you get an error message about plugins not found"
+ elog "please add the library_directory configuration switch to"
+ elog "dbmail.conf and set it to the correct path"
+ elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
+ elog "A sample can be found in dbmail.conf.dist after etc-update."
+ echo
+ elog "We are now using the init script from upstream."
+ elog "Please edit /etc/conf.d/dbmail to set which services to start"
+ elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
+ elog "forget to rc-update del dbmail-* first)"
+ echo
+ elog "Changed pid directory to /var/run/dbmail (see"
+ elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
+ echo
+ ewarn "The database config has changed to support libzdb db URI"
+ ewarn "Please check the documentation (or Bug #479664)"
+ echo
+ ewarn "The database schema has changed since 3.0.x make sure"
+ ewarn "to run the migration script"
+ echo
+ ewarn "Please be aware, that the single init-script for all services"
+ ewarn "has been replaced with seperate init scripts for the individual services."
+ ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
+ ewarn "and remove dbmail if you want to take advantage of this change."
+ echo
+}
diff --git a/net-mail/dbmail/files/dbmail-imapd.initd b/net-mail/dbmail/files/dbmail-imapd.initd
new file mode 100644
index 000000000000..9914f6a58bf3
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-imapd.initd
@@ -0,0 +1,68 @@
+#!/sbin/openrc-run
+#
+# chkconfig: - 91 35
+# description: Starts and stops dbmail-impad
+#
+
+
+PROGRAM=dbmail-imapd
+
+BIN_DIR=/usr/sbin
+PID_DIR=/var/run/dbmail
+PID=pid
+
+# Where is the dbmail.conf file located?
+CONFIG=/etc/dbmail/dbmail.conf
+
+## not in 3.1.x yet
+#extra_started_commands="reload"
+
+depend() {
+ need net
+ # This won't cause a hard failure if neither is installed, however.
+ use mysql
+ use pgsql
+ after mta
+}
+
+initService() {
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+
+ # Check that config file exists.
+ if [ ! -e $CONFIG ]; then
+ eerror "Config file not found ($CONFIG)"
+ eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+
+ checkpath -d $PID_DIR -m 750 -o dbmail:dbmail
+
+ RETVAL=0
+}
+
+start() {
+ initService
+ ebegin "Starting DBMail IMAP daemon ($PROGRAM)"
+ start-stop-daemon --start --quiet \
+ --pidfile $PID_DIR/$PROGRAM.$PID \
+ --exec $BIN_DIR/$PROGRAM \
+ --name $PROGRAM \
+ -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail IMAP daemon ($PROGRAM)"
+ start-stop-daemon --stop --quiet --retry 15 \
+ --pidfile $PID_DIR/$PROGRAM.$PID
+ eend $?
+}
+
+## not in 3.1.x yet
+#reload() {#
+# ebegin "Reloading DBMail IMAP daemon ($PROGRAM)"
+# start-stop-daemon --quiet --signal HUP \
+# --pidfile $PID_DIR/$PROGRAM.$PID
+# eend $?
+#}
diff --git a/net-mail/dbmail/files/dbmail-lmtpd.initd b/net-mail/dbmail/files/dbmail-lmtpd.initd
new file mode 100644
index 000000000000..68e41c34e247
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-lmtpd.initd
@@ -0,0 +1,68 @@
+#!/sbin/openrc-run
+#
+# chkconfig: - 91 35
+# description: Starts and stops dbmail-lmtpd
+#
+
+
+PROGRAM=dbmail-lmtpd
+
+BIN_DIR=/usr/sbin
+PID_DIR=/var/run/dbmail
+PID=pid
+
+# Where is the dbmail.conf file located?
+CONFIG=/etc/dbmail/dbmail.conf
+
+## not in 3.1.x yet
+#extra_started_commands="reload"
+
+depend() {
+ need net
+ # This won't cause a hard failure if neither is installed, however.
+ use mysql
+ use pgsql
+ after mta
+}
+
+initService() {
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+
+ # Check that config file exists.
+ if [ ! -e $CONFIG ]; then
+ eerror "Config file not found ($CONFIG)"
+ eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+
+ checkpath -d $PID_DIR -m 750 -o dbmail:dbmail
+
+ RETVAL=0
+}
+
+start() {
+ initService
+ ebegin "Starting DBMail LMTP daemon ($PROGRAM)"
+ start-stop-daemon --start --quiet \
+ --pidfile $PID_DIR/$PROGRAM.$PID \
+ --exec $BIN_DIR/$PROGRAM \
+ --name $PROGRAM \
+ -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail LMTP daemon ($PROGRAM)"
+ start-stop-daemon --stop --quiet --retry 15 \
+ --pidfile $PID_DIR/$PROGRAM.$PID
+ eend $?
+}
+
+## not in 3.1.x yet
+#reload() {#
+# ebegin "Reloading DBMail LMTP daemon ($PROGRAM)"
+# start-stop-daemon --quiet --signal HUP \
+# --pidfile $PID_DIR/$PROGRAM.$PID
+# eend $?
+#}
diff --git a/net-mail/dbmail/files/dbmail-pop3d.initd b/net-mail/dbmail/files/dbmail-pop3d.initd
new file mode 100644
index 000000000000..6629a9a610af
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-pop3d.initd
@@ -0,0 +1,68 @@
+#!/sbin/openrc-run
+#
+# chkconfig: - 91 35
+# description: Starts and stops dbmail-pop3d
+#
+
+
+PROGRAM=dbmail-pop3d
+
+BIN_DIR=/usr/sbin
+PID_DIR=/var/run/dbmail
+PID=pid
+
+# Where is the dbmail.conf file located?
+CONFIG=/etc/dbmail/dbmail.conf
+
+## not in 3.1.x yet
+#extra_started_commands="reload"
+
+depend() {
+ need net
+ # This won't cause a hard failure if neither is installed, however.
+ use mysql
+ use pgsql
+ after mta
+}
+
+initService() {
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+
+ # Check that config file exists.
+ if [ ! -e $CONFIG ]; then
+ eerror "Config file not found ($CONFIG)"
+ eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+
+ checkpath -d $PID_DIR -m 750 -o dbmail:dbmail
+
+ RETVAL=0
+}
+
+start() {
+ initService
+ ebegin "Starting DBMail POP3 daemon ($PROGRAM)"
+ start-stop-daemon --start --quiet \
+ --pidfile $PID_DIR/$PROGRAM.$PID \
+ --exec $BIN_DIR/$PROGRAM \
+ --name $PROGRAM \
+ -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail POP3 daemon ($PROGRAM)"
+ start-stop-daemon --stop --quiet --retry 15 \
+ --pidfile $PID_DIR/$PROGRAM.$PID
+ eend $?
+}
+
+## not in 3.1.x yet
+#reload() {#
+# ebegin "Reloading DBMail POP3 daemon ($PROGRAM)"
+# start-stop-daemon --quiet --signal HUP \
+# --pidfile $PID_DIR/$PROGRAM.$PID
+# eend $?
+#}
diff --git a/net-mail/dbmail/files/dbmail-timsieved.initd b/net-mail/dbmail/files/dbmail-timsieved.initd
new file mode 100644
index 000000000000..fdd809c5485c
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-timsieved.initd
@@ -0,0 +1,68 @@
+#!/sbin/openrc-run
+#
+# chkconfig: - 91 35
+# description: Starts and stops dbmail-timsieved
+#
+
+
+PROGRAM=dbmail-timsieved
+
+BIN_DIR=/usr/sbin
+PID_DIR=/var/run/dbmail
+PID=pid
+
+# Where is the dbmail.conf file located?
+CONFIG=/etc/dbmail/dbmail.conf
+
+## not in 3.1.x yet
+#extra_started_commands="reload"
+
+depend() {
+ need net
+ # This won't cause a hard failure if neither is installed, however.
+ use mysql
+ use pgsql
+ after mta
+}
+
+initService() {
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+
+ # Check that config file exists.
+ if [ ! -e $CONFIG ]; then
+ eerror "Config file not found ($CONFIG)"
+ eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+
+ checkpath -d $PID_DIR -m 750 -o dbmail:dbmail
+
+ RETVAL=0
+}
+
+start() {
+ initService
+ ebegin "Starting DBMail SIEVE daemon ($PROGRAM)"
+ start-stop-daemon --start --quiet \
+ --pidfile $PID_DIR/$PROGRAM.$PID \
+ --exec $BIN_DIR/$PROGRAM \
+ --name $PROGRAM \
+ -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail SIEVE daemon ($PROGRAM)"
+ start-stop-daemon --stop --quiet --retry 15 \
+ --pidfile $PID_DIR/$PROGRAM.$PID
+ eend $?
+}
+
+## not in 3.1.x yet
+#reload() {#
+# ebegin "Reloading DBMail SIEVE daemon ($PROGRAM)"
+# start-stop-daemon --quiet --signal HUP \
+# --pidfile $PID_DIR/$PROGRAM.$PID
+# eend $?
+#}
diff --git a/net-mail/dbmail/metadata.xml b/net-mail/dbmail/metadata.xml
new file mode 100644
index 000000000000..60981ee8e971
--- /dev/null
+++ b/net-mail/dbmail/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lordvan@gentoo.org</email>
+ <name>Thomas Raschbacher</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>Dbmail is the name of a group of programs that enable the possiblilty of storing and retrieving mail messages from a database. Currently MySQL, PostgreSQL and SQLite can be used as database backends.</longdescription>
+ <use>
+ <flag name="sieve">Enable sieve filter support</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/dot-forward/Manifest b/net-mail/dot-forward/Manifest
new file mode 100644
index 000000000000..4851b3cbcde5
--- /dev/null
+++ b/net-mail/dot-forward/Manifest
@@ -0,0 +1,6 @@
+AUX 0.71-errno.patch 243 SHA256 924e0154181011e67dde22da580af340d7feb9aacc8fa350112eab00a7514c54 SHA512 1d4c1abde8eb0b4d6dd2254be29b685c922265ededa02a19010bc487e2e2013ef2df9a86a5dd797e0d7a30567cc18ae72324f2a67558633aae76262b2a9681a1 WHIRLPOOL 4816f339c317b6a3283498462ced0353bc5db7d57bacd3c421b1179f988172472f9839a1f918b482f19603df18e082da13eb1d815a6699fd57b97b2336bb0bb4
+DIST dot-forward-0.71.tar.gz 26352 SHA256 18086b59edf113aaeb02a770afb5429c3200e8637d06ce15094247416fc6e258 SHA512 f37a30eabf3a7e7258bfbe9178218d053a5164a9698fbc34954eb8bd588fe2bbf61ffd85f5b817e3ce65d7c0efac1735b59b11faa4d425e2df4089769af94b8b WHIRLPOOL 7289b796ad1d5a626ff4e0bbf10e97127171a43a7ada7ed99b3d3a92a085828a80c28af651625a6c7f49e572cd50d9e811e66c4fc7a9b3f21292d5292bf83245
+EBUILD dot-forward-0.71-r3.ebuild 876 SHA256 39facd5dd7e773e18bcae5010a05202f88e2861d4e684885df07547ac1045a8b SHA512 5b68a436d7f063096fa043563bf68f3870fca32b6c96ec18a70c7b2286e79ac33bc8c2f521e8b5e58eb7b9fcf46827af0508fbe3c70a566227e9d039214a40bd WHIRLPOOL d155da8ac606b7acbcca902ffb746cbcf2ecaa53b977ff361259fd46035e9bbea97152b7f91f2e3c700d5d2b585af6439d5587cae452fc32ecde0c9b5dbe5f34
+MISC ChangeLog 2686 SHA256 a2f083e227848ec6fe7d6fb678e53689da6fc97ea9af9d72d0a82ebf75e36ffa SHA512 be5fbd4603b67557c13debff6af0259c30ea9c9947ebc43364dd5f0a3e89ffb57f1aca462b83fda9e5ec3f8f5236ebc5768d29f8dd5bbf59b059e91198386664 WHIRLPOOL 10a34dd2aad67195f86cb1cacf1a308420b802fe601b9eedcc4ba245f120078838a75be9dfeed3bdf229adb40f13251cf6b34a53e6b9c1cb1e18c0901aa7a842
+MISC ChangeLog-2015 4421 SHA256 7a4798e61459f135190904a1ce693633e1447e714931b286f2d5c50de8ab20d2 SHA512 1433c8bc760b6aecad2243ffa1c6311fb59af121126b0bdccd03841116e87eaca250671e5f23587c5357cf5f2a649d9bf530a14e80acc95d7903e33a3e24ba1b WHIRLPOOL cba267e11a24b2f967fed0a89f5556e2393c531ea1b817e91de053c4c85012d60e18ef69ffcdf9c799080720d39d6d173a7c5156642a2e8dd3b6ade3a70f6050
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/dot-forward/dot-forward-0.71-r3.ebuild b/net-mail/dot-forward/dot-forward-0.71-r3.ebuild
new file mode 100644
index 000000000000..b1856f0c40f8
--- /dev/null
+++ b/net-mail/dot-forward/dot-forward-0.71-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils fixheadtails qmail
+
+DESCRIPTION="reads sendmail's .forward files under qmail"
+HOMEPAGE="http://cr.yp.to/dot-forward.html"
+SRC_URI="http://cr.yp.to/software/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+# See bug 97850
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+ qmail_create_groups
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PV}-errno.patch
+
+ ht_fix_file Makefile
+
+ qmail_set_cc
+}
+
+src_compile() {
+ emake prog || die
+}
+
+src_install() {
+ dodoc BLURB CHANGES FILES INSTALL README SYSDEPS TARGETS THANKS
+ dodoc TODO VERSION
+ doman *.1
+
+ insopts -o root -g qmail -m 755
+ insinto "${QMAIL_HOME}"/bin
+ doins dot-forward || die
+}
diff --git a/net-mail/dot-forward/files/0.71-errno.patch b/net-mail/dot-forward/files/0.71-errno.patch
new file mode 100644
index 000000000000..4aca1b2b4e58
--- /dev/null
+++ b/net-mail/dot-forward/files/0.71-errno.patch
@@ -0,0 +1,11 @@
+--- error.h.orig 2003-03-05 15:42:51.000000000 -0500
++++ error.h 2003-03-05 15:43:00.000000000 -0500
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+
+-extern int errno;
++#include <errno.h>
+
+ extern int error_intr;
+ extern int error_nomem;
diff --git a/net-mail/dot-forward/metadata.xml b/net-mail/dot-forward/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/dot-forward/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
new file mode 100644
index 000000000000..a70fd60ddd85
--- /dev/null
+++ b/net-mail/dovecot/Manifest
@@ -0,0 +1,21 @@
+AUX dovecot-10-ssl.patch 550 SHA256 04e3fe4d9d974be45c60e461884ad6a0f76803370f9f538eb4ddbc5a788bd667 SHA512 7acc31dd4a3f51a9c13d590fd2803c2cb98c281e0595ca2a800539a143f89b95f923a3678beb0aa2b254a54385522329e0f3e1e8ba4c5852e7b51f8f111122a9 WHIRLPOOL 357aa348975d85fa861cbdca402104db5763cce271c8d20f26d6831dd2c5ab8e527c67f0d4110d21de3977ad8a184a2294ea00d81f3771c3a0a523d935283d8a
+AUX dovecot.init-r4 1499 SHA256 54f6710ea0560db3e62fb910662d8bbce71b330067dc856d17777115658f086c SHA512 8fbc80bc0efa6b83685da19b6a5c2a2d2ca7e59be7f1f7352984fe30004175330e53f3db1c4c2471f1d7d5e088bef0b4dced97d29d32be8b50d000987b6eeb09 WHIRLPOOL f228ba0709928c0a4744cea37aea227408c29b7c8eb8893105ee1ca1f806687509a6c3510ea8fff2e48c6fc093bd08d7ac836238f453529d7a8c98d68117cf85
+DIST dovecot-2.2-pigeonhole-0.4.18.tar.gz 1742357 SHA256 dd871bb57fad22795460f613f3c9484a8bf229272ac00956d837a34444f1c3a9 SHA512 6f49a6a6435b0e4dcbe29f852ce17c016df2f367f5460301a2a2c6bd5f5ba6260b23bfe1c5e78b91c6041554ee67d1ce14ad3adf219505f692c61681d9e70cc4 WHIRLPOOL 809ca6efbdf8688087bbfa48902d7c5467a5313135ce23d621eb84541854140e48c94e7ce8180f9e64816df8c1faf85a8cb42c29bf749da1eb7ebfb125469080
+DIST dovecot-2.2-pigeonhole-0.4.19.tar.gz 1743025 SHA256 629204bfbdcd3480e1ebcdc246da438323c3ea5fea57480ab859e8b201ad8793 SHA512 c1211a3c65b25995770309c427ec5cd888ddb962f2f64884640163b492a11ffa8937aac1eb66d25e48f0e00131da1cc98c1cb307781576780de47b8816333ff1 WHIRLPOOL 67867f93b5b4e0c1d73d9312ec47b135ffacdfd7e74329bdcb94cdbfbe2f5309189b562719db8b79c6a5581796627155f57fccddf2775110209ab536f85d8289
+DIST dovecot-2.2-pigeonhole-0.4.20.tar.gz 1745121 SHA256 6fe17d0b8f25f2ad580e01ad81ce47a9e965255e383a1f80e455f9ca0f00be5b SHA512 84a28842be206e05cb96c07cf1c1b62c9c378ba4c952caa47cf79a44b9428e076f4182eadd9c4fb8f45d3605b881f91e8e520c41705017ac4039240d4bcace39 WHIRLPOOL ed2ebb1d0d6f09b4ec9055fa5539bd308c3f454192a57691de62b3b0695afc0e61890275b5545338cfb7cb0ac843327962bada62df839fd64e1294f95085a706
+DIST dovecot-2.2-pigeonhole-0.4.9.tar.gz 1577127 SHA256 82892f876d26008a076973dfddf1cffaf5a0451825fd44e06287e94b89078649 SHA512 9e7a18b43d59ed955b142d16696ca221822a547ea59ac70c1bb374eedb28b6ed99ea49f34ead1f9a16ded4573605e410a5cc8e038e1bdf5f943a65588b5d3af2 WHIRLPOOL be309436b43af82a7cb8eff205e1638b2c59751927fdab187e6fde72330e4abd99878cbfa94ca50440ec8de1f9b569bf334d426891ddc73d5f647ee2040c193f
+DIST dovecot-2.2.19.tar.gz 5256627 SHA256 759e1e3f9d907cdaabad1f5fbacc793ca191d234c084bec3bba42966952a4e9f SHA512 1b9d605a6a5862ade9d1ca634a9e0171b7c212ab025fc2059051c3795470685b66516fa9fbe5ad91d84388268ea15795f2dcd70ffdf81736ce4d80fd284835e9 WHIRLPOOL 30dbe70bfeef10dbe414ebf3f091041ad66926a8748cd401ecaf9ed5c7602939e86943d98bfb839f32c0aa1d0081ab71adacf23bb4adba34e828ee296e9a7278
+DIST dovecot-2.2.29.1.tar.gz 5972119 SHA256 ccfa9ffb7eb91e9e87c21c108324b911250c9ffa838bffb64b1caafadcb0f388 SHA512 1e5ea6080ebe7dd4afe6fcfe8e98ed6d2ad2735655a18cc96e439dd044ccc3a1a6a80428bc746b4d6250820895d6a62121562e97e4b46c8b1cf88a19443bc111 WHIRLPOOL 97a3b45191a32e78a08b4113a6e8b34e0bc538ec8359210d0bdf63990246af89be25cdaf9017c46f3107a7ec82758fa25820d61c25eda94f14ce7351d3aaea7a
+DIST dovecot-2.2.30.1.tar.gz 6004223 SHA256 9049db49f7ccd76850a17872896dfb8778676bab38454575f59bb39f16b083a4 SHA512 f95e85093e1f671b1e9d067974880eaaf8ab021df1f6d298977c40146a1db2a2b71b4029842785ffaae1aeedec83b2218ff03112537045e08dfc7c845f9e27c3 WHIRLPOOL c4c180b3f92c5af832e6da95173eacf52e16680221968d03c62cec59d96fde84975c81687a2bd256c4f2ed4720690b278f4f706bc0d16710f6b043a6bb348797
+DIST dovecot-2.2.30.2.tar.gz 6008134 SHA256 f3dba79c1ceeaa9dd0633f648d3a607704bf3d0591e7d48168084c8add87189e SHA512 740118e3081864234168593bd83f2f5e7b9f5c7cefff3a3a7795369cf791f300c0881fbfacae2c76c0bb42e366ad26e7613c487708d113b19887ebe869d711ea WHIRLPOOL 34eaa59d3cbd837ae92aa9e7e3640cfd181ff2ce01ab80aa27143cb70987e4e5e1369ace7f5d7f2cf7f564a3e26e8c31368d0e60a1716abfed250dc812af0dcb
+DIST dovecot-2.2.31.tar.gz 5993283 SHA256 034be40907748128d65088a4f59789b2f99ae7b33a88974eae0b6a68ece376a1 SHA512 071797e260a75de9117b03c0fa9d903de82b1f1c039c2aece2d7313587e6673c49174bfce17b80fe3f3725fcbc42ed3a1bd1f1c22efef5bc016752277eff3266 WHIRLPOOL cc54758f65cc1f6295cc5533dd784b888d53d9b884016de08ddd16d893f3dc43df2cff87e474dd9f0f4b9df1c90f62330f7c70f051497f34729829849b39e519
+DIST dovecot-2.2.32.tar.gz 6100268 SHA256 160b2151e2af359877f69cb2dcdfe1a3f4138ad3766e3b8562b96616e2f6bc2e SHA512 a26ce763fdea7d72ff9801d3b7d57a1f0d00278e4a1aa60d1be070fe5a6d2c6a15f266a519119492bee7a3e7a6b7d0732e9879e5c5841adbab8c0952cd1b7c7c WHIRLPOOL 11ec82d0648a3fcbeb803f23672c2a734b2bc41828d71990ff72d5f6bfa56e3b294034de615b5b34da257477727832025988446f0baa92a0a56f61aa1d695297
+EBUILD dovecot-2.2.19.ebuild 9085 SHA256 c6ba82ed8109d79688c2127479da169fdf6dc5a65552cf13af3d81e681c274d2 SHA512 cb619f9f5588ab1be1b5de749663e4798044d695a359c96182037c8b3cdb94c8a7b41eac93054f2979b30d09405a3396e83d0d08cad3ad964654ae98f7632098 WHIRLPOOL 170cd361c69375216783253103dd28fd9cb51ba4d46f800e2dc196aaeef26acb917fcdbb4b16c90e0fcc740449304c8170fa3fa9fa39e0d88ecbb5c3739d8860
+EBUILD dovecot-2.2.29.1.ebuild 9207 SHA256 9b76684eb0c7052510f3e29a3e03458235f6ea1327f6dae0d24a759148ef8d1c SHA512 ca5a2af20756d5ac72dc96dd2a80334a3dc533a55b13b1d78ffaf29754795c4af353e39ea34d8e76f82054cec154d4128dc958c855aefdc5ca1877f7c0f3d06b WHIRLPOOL 2087852cf3a36a46f25ecb200f80f7dfbc1d215f48ff574856124a7bdfb0d3a692793c98889797ef58dcd3d4f2c4fc23ff8b60ab9dbcf98e4de6b016fa035305
+EBUILD dovecot-2.2.30.1.ebuild 8646 SHA256 5abad12b2792e8d8022d9bf51485ecb472bc83243f44c1bc751932c1966fdd22 SHA512 b9460cd076d8cb35699abe54ed7dcffa77c83f920bc01ae451fcfefa609850323d6da91e84deb77f38c48174e60c7a9d26e7f086a0e65c7dfb96e3e2e0d8eb0a WHIRLPOOL b4299ee41581612994709e02350ddd4572c82a19bd4832d2d7d444afa36fdf2087437c99b8a771ac1157270f7d791b1447a41486014c9fdddeb71e60df7f568b
+EBUILD dovecot-2.2.30.2.ebuild 8646 SHA256 5abad12b2792e8d8022d9bf51485ecb472bc83243f44c1bc751932c1966fdd22 SHA512 b9460cd076d8cb35699abe54ed7dcffa77c83f920bc01ae451fcfefa609850323d6da91e84deb77f38c48174e60c7a9d26e7f086a0e65c7dfb96e3e2e0d8eb0a WHIRLPOOL b4299ee41581612994709e02350ddd4572c82a19bd4832d2d7d444afa36fdf2087437c99b8a771ac1157270f7d791b1447a41486014c9fdddeb71e60df7f568b
+EBUILD dovecot-2.2.31.ebuild 8652 SHA256 e6d18d821a52fdec681e96f909d47c55c22b1857d574d7ed6af3cde2cdc796a6 SHA512 c2780f5ecbe58947fd9ef01f5df4ee371aa224f63b86b9ddcee4c38cc11eeceff96880b29a29739b7b2479bc0b646ae09b57f38ee4cb31b005b5576e2edbffec WHIRLPOOL 0f3d2437d8d5e6ede3b4b4580513ae48863ddc6f52fb65efb97f46d0a6f1b4d3a01a8e12c836d4315c41cf364dd1cb35a83c1f88336dc6204d7fd8551d0fb568
+EBUILD dovecot-2.2.32.ebuild 8652 SHA256 9df1365c5c087b3fbb1f6aa5da885c203ff5a4bb06a8b2b36ff089ade4bc0c58 SHA512 67464014935e1996e5f2ac20207cb85e2e14e056fb223675fc8eac8559e45cd7a8c0b61217bea4baa63b730d603dcc20cca3cf78f7751b0a5fba436cada25f0d WHIRLPOOL 4b67791ad2088e73a761d23677afa97fa279372d8001cfd14b0b1fed9f24334d44f69f4f427197c6364fdd75648b223aba59d4659024531f61464d6210c17f36
+MISC ChangeLog 9857 SHA256 973c08c13df5fb24d94aed96c681cf0ec7539b24581fd0caac2ab3c6e0b192e1 SHA512 0ff9e788bd55fac94e1e641edcbe7849e0dfc0d8152a2df047353f90c8de61655e79f450dbaedec27ffaa29853d3bd603960567109c41500aafafc77cb646206 WHIRLPOOL 32858c3ace71c60b6f0cd95b2dd380acee65dabf57253dc2be4a4dfe11b5468708a351a6591d5cbfa72b054666a0a0221d5e68702f530faf06e40d2d6a11a8bf
+MISC ChangeLog-2015 75391 SHA256 223be6e013f9d10fafa0176b5aee5e71b049add2a493aaa0cf379d9ea40aa04b SHA512 f333fd9ab300bfde52a6ca236fea8110f49362bfc2852783cb483f3769ab8df8c68f1fed0ac2271226bf5a829dc711dd683d5ee7a18313429f027e718cdf4c3d WHIRLPOOL fd8f34b8e8e18c13f98b668e0323d15bd75ee4fbd30258edaf46b93caf3beae51a189bc685b1b2fa3d0c565d5c57ca8f57ef8c89edc9fca362edece65b2c2c12
+MISC metadata.xml 1303 SHA256 50a1e4e8eec92e6c44f7bdb75934727fe0334e6ec6454946c4664a63b0303d16 SHA512 6c574a0373c64e3eaeb6f8a3f4ea88437afe8c43cae6ab7c9144cb75973e0e8b4d66f805fecc7aca62257f0e7ad581a6834d1ad06e5773b6617f0d0e8b623e7d WHIRLPOOL 00ca51b94155b00b3b2fae67daaeb9afb8e8a6fee12fc768964926914cae389053369fc0a73b6826fb24b8d0f4356d3e901f9dbd41b27eb354d852f26f36f592
diff --git a/net-mail/dovecot/dovecot-2.2.19.ebuild b/net-mail/dovecot/dovecot-2.2.19.ebuild
new file mode 100644
index 000000000000..afb1f739bdb6
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.19.ebuild
@@ -0,0 +1,305 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.9"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="http://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ http://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ http://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="ia64 ~mips ~sh sparc"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv
+ dev-libs/icu:="
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-10-ssl.patch"
+ epatch_user
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ local storages=""
+ for storage in ${IUSE_DOVECOT_STORAGE//+/}; do
+ use ${storage} && storages="${storage} ${storages}"
+ done
+ [ "${storages}" ] || storages="maildir"
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --runstatedir="${EPREFIX}/run" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --with-storages="${storages}" \
+ --disable-rpath \
+ --with-icu \
+ $( systemd_with_unitdir ) \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with lz4 ) \
+ $( use_with lzma ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ if ! use maildir; then
+ if use mbox; then
+ mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
+ keepdir /var/dovecot
+ sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \
+ "${confd}/10-mail.conf" || die "sed failed"
+ elif use mdbox ; then
+ mail_location="mdbox:~/.mdbox"
+ elif use sdbox ; then
+ mail_location="sdbox:~/.sdbox"
+ fi
+ fi
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ docinto plugins
+ dodoc doc/plugins/*.txt
+ docinto extensions
+ dodoc doc/extensions/*.txt
+ docinto locations
+ dodoc doc/locations/*.txt
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}
diff --git a/net-mail/dovecot/dovecot-2.2.29.1.ebuild b/net-mail/dovecot/dovecot-2.2.29.1.ebuild
new file mode 100644
index 000000000000..3bddce897e0a
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.29.1.ebuild
@@ -0,0 +1,307 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.18"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~s390 x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_STORAGE="cydir imapc +maildir mbox mdbox pop3c sdbox"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ textcat? ( app-text/libexttextcat )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv
+ dev-libs/icu:="
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
+ eapply_user
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ local storages=""
+ for storage in ${IUSE_DOVECOT_STORAGE//+/}; do
+ use ${storage} && storages="${storage} ${storages}"
+ done
+ [ "${storages}" ] || storages="maildir"
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --runstatedir="${EPREFIX}/run" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --with-storages="${storages}" \
+ --disable-rpath \
+ --with-icu \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with lz4 ) \
+ $( use_with lzma ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with textcat ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ if ! use maildir; then
+ if use mbox; then
+ mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
+ keepdir /var/dovecot
+ sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' \
+ "${confd}/10-mail.conf" || die "sed failed"
+ elif use mdbox ; then
+ mail_location="mdbox:~/.mdbox"
+ elif use sdbox ; then
+ mail_location="sdbox:~/.sdbox"
+ fi
+ fi
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ docinto plugins
+ dodoc doc/plugins/*.txt
+ docinto extensions
+ dodoc doc/extensions/*.txt
+ docinto locations
+ dodoc doc/locations/*.txt
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}
diff --git a/net-mail/dovecot/dovecot-2.2.30.1.ebuild b/net-mail/dovecot/dovecot-2.2.30.1.ebuild
new file mode 100644
index 000000000000..9a811261c576
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.30.1.ebuild
@@ -0,0 +1,290 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.18"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ textcat? ( app-text/libexttextcat )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv
+ dev-libs/icu:="
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+# Dovecot does not support building without ssl. Force it for now
+REQUIRED_USE="ssl"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
+ eapply_user
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --runstatedir="${EPREFIX}/run" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --disable-rpath \
+ --with-icu \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with lz4 ) \
+ $( use_with lzma ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with textcat ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ docinto plugins
+ dodoc doc/plugins/*.txt
+ docinto extensions
+ dodoc doc/extensions/*.txt
+ docinto locations
+ dodoc doc/locations/*.txt
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}
diff --git a/net-mail/dovecot/dovecot-2.2.30.2.ebuild b/net-mail/dovecot/dovecot-2.2.30.2.ebuild
new file mode 100644
index 000000000000..9a811261c576
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.30.2.ebuild
@@ -0,0 +1,290 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.18"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ textcat? ( app-text/libexttextcat )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv
+ dev-libs/icu:="
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+# Dovecot does not support building without ssl. Force it for now
+REQUIRED_USE="ssl"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
+ eapply_user
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --runstatedir="${EPREFIX}/run" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --disable-rpath \
+ --with-icu \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with lz4 ) \
+ $( use_with lzma ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with textcat ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ docinto plugins
+ dodoc doc/plugins/*.txt
+ docinto extensions
+ dodoc doc/extensions/*.txt
+ docinto locations
+ dodoc doc/locations/*.txt
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}
diff --git a/net-mail/dovecot/dovecot-2.2.31.ebuild b/net-mail/dovecot/dovecot-2.2.31.ebuild
new file mode 100644
index 000000000000..b0f8239fae9c
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.31.ebuild
@@ -0,0 +1,290 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.19"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ textcat? ( app-text/libexttextcat )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv
+ dev-libs/icu:="
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+# Dovecot does not support building without ssl. Force it for now
+REQUIRED_USE="ssl"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
+ eapply_user
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --runstatedir="${EPREFIX}/run" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --disable-rpath \
+ --with-icu \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with lz4 ) \
+ $( use_with lzma ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with textcat ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ docinto plugins
+ dodoc doc/plugins/*.txt
+ docinto extensions
+ dodoc doc/extensions/*.txt
+ docinto locations
+ dodoc doc/locations/*.txt
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}
diff --git a/net-mail/dovecot/dovecot-2.2.32.ebuild b/net-mail/dovecot/dovecot-2.2.32.ebuild
new file mode 100644
index 000000000000..d9c47813f507
--- /dev/null
+++ b/net-mail/dovecot/dovecot-2.2.32.ebuild
@@ -0,0 +1,290 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ssl-cert systemd user versionator
+
+MY_P="${P/_/.}"
+major_minor="$(get_version_component_range 1-2)"
+sieve_version="0.4.20"
+if [[ ${PV} == *_rc* ]] ; then
+ rc_dir="rc/"
+else
+ rc_dir=""
+fi
+SRC_URI="https://dovecot.org/releases/${major_minor}/${rc_dir}${MY_P}.tar.gz
+ sieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ )
+ managesieve? (
+ https://pigeonhole.dovecot.org/releases/${major_minor}/${PN}-${major_minor}-pigeonhole-${sieve_version}.tar.gz
+ ) "
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://www.dovecot.org/"
+
+SLOT="0"
+LICENSE="LGPL-2.1 MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86"
+
+IUSE_DOVECOT_AUTH="kerberos ldap mysql pam postgres sqlite vpopmail"
+IUSE_DOVECOT_COMPRESS="bzip2 lzma lz4 zlib"
+IUSE_DOVECOT_OTHER="caps doc ipv6 libressl lucene managesieve selinux sieve solr +ssl static-libs suid tcpd textcat"
+
+IUSE="${IUSE_DOVECOT_AUTH} ${IUSE_DOVECOT_STORAGE} ${IUSE_DOVECOT_COMPRESS} ${IUSE_DOVECOT_OTHER}"
+
+DEPEND="bzip2? ( app-arch/bzip2 )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ lucene? ( >=dev-cpp/clucene-2.3 )
+ lzma? ( app-arch/xz-utils )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:* !dev-db/postgresql[ldap,threads] )
+ selinux? ( sec-policy/selinux-dovecot )
+ solr? ( net-misc/curl dev-libs/expat )
+ sqlite? ( dev-db/sqlite:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ textcat? ( app-text/libexttextcat )
+ vpopmail? ( net-mail/vpopmail )
+ zlib? ( sys-libs/zlib )
+ virtual/libiconv
+ dev-libs/icu:="
+
+RDEPEND="${DEPEND}
+ net-mail/mailbase"
+
+# Dovecot does not support building without ssl. Force it for now
+REQUIRED_USE="ssl"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use managesieve && ! use sieve; then
+ ewarn "managesieve USE flag selected but sieve USE flag unselected"
+ ewarn "sieve USE flag will be turned on"
+ fi
+ # default internal user
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+ # default login user
+ enewuser dovenull -1 -1 /dev/null
+ # add "mail" group for suid'ing. Better security isolation.
+ if use suid; then
+ enewgroup mail
+ fi
+}
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-10-ssl.patch"
+ eapply_user
+}
+
+src_configure() {
+ local conf=""
+
+ if use postgres || use mysql || use sqlite; then
+ conf="${conf} --with-sql"
+ fi
+
+ # turn valgrind tests off. Bug #340791
+ VALGRIND=no econf \
+ --localstatedir="${EPREFIX}/var" \
+ --runstatedir="${EPREFIX}/run" \
+ --with-moduledir="${EPREFIX}/usr/$(get_libdir)/dovecot" \
+ --without-stemmer \
+ --disable-rpath \
+ --with-icu \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
+ $( use_with bzip2 bzlib ) \
+ $( use_with caps libcap ) \
+ $( use_with kerberos gssapi ) \
+ $( use_with ldap ) \
+ $( use_with lucene ) \
+ $( use_with lz4 ) \
+ $( use_with lzma ) \
+ $( use_with mysql ) \
+ $( use_with pam ) \
+ $( use_with postgres pgsql ) \
+ $( use_with sqlite ) \
+ $( use_with solr ) \
+ $( use_with ssl ) \
+ $( use_with tcpd libwrap ) \
+ $( use_with textcat ) \
+ $( use_with vpopmail ) \
+ $( use_with zlib ) \
+ $( use_enable static-libs static ) \
+ ${conf}
+
+ if use sieve || use managesieve ; then
+ # The sieve plugin needs this file to be build to determine the plugin
+ # directory and the list of libraries to link to.
+ emake dovecot-config
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ econf \
+ $( use_enable static-libs static ) \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-shared \
+ --with-dovecot="../${MY_P}" \
+ $( use_with managesieve )
+ fi
+}
+
+src_compile() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+ fi
+}
+
+src_test() {
+ default
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ default
+ fi
+}
+
+src_install () {
+ default
+
+ # insecure:
+ # use suid && fperms u+s /usr/libexec/dovecot/deliver
+ # better:
+ if use suid;then
+ einfo "Changing perms to allow deliver to be suided"
+ fowners root:mail "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fperms 4750 "${EPREFIX}/usr/libexec/dovecot/dovecot-lda"
+ fi
+
+ newinitd "${FILESDIR}"/dovecot.init-r4 dovecot
+
+ rm -rf "${ED}"/usr/share/doc/dovecot
+
+ dodoc AUTHORS NEWS README TODO
+ dodoc doc/*.{txt,cnf,xml,sh}
+ docinto example-config
+ dodoc doc/example-config/*.{conf,ext}
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.{conf,ext}
+ docinto wiki
+ dodoc doc/wiki/*
+ doman doc/man/*.{1,7}
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ local conf="${ED}/etc/dovecot/dovecot.conf"
+ local confd="${ED}/etc/dovecot/conf.d"
+
+ insinto /etc/dovecot
+ doins doc/example-config/*.{conf,ext}
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/*.{conf,ext}
+ fperms 0600 "${EPREFIX}"/etc/dovecot/dovecot-{ldap,sql}.conf.ext
+ rm -f "${confd}/../README"
+
+ # .maildir is the Gentoo default
+ local mail_location="maildir:~/.maildir"
+ sed -i -e \
+ "s|#mail_location =|mail_location = ${mail_location}|" \
+ "${confd}/10-mail.conf" \
+ || die "failed to update mail location settings in 10-mail.conf"
+
+ # We're using pam files (imap and pop3) provided by mailbase
+ if use pam; then
+ sed -i -e '/driver = pam/,/^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
+ "${confd}/auth-system.conf.ext" \
+ || die "failed to update PAM settings in auth-system.conf.ext"
+ # mailbase does not provide a sieve pam file
+ use managesieve && dosym imap /etc/pam.d/sieve
+ sed -i -e \
+ 's/#!include auth-system.conf.ext/!include auth-system.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update PAM settings in 10-auth.conf"
+ fi
+
+ # Disable ipv6 if necessary
+ if ! use ipv6; then
+ sed -i -e 's/^#listen = \*, ::/listen = \*/g' "${conf}" \
+ || die "failed to update listen settings in dovecot.conf"
+ fi
+
+ # Update ssl cert locations
+ if use ssl; then
+ sed -i -e 's:^#ssl = yes:ssl = yes:' "${confd}/10-ssl.conf" \
+ || die "ssl conf failed"
+ sed -i -e 's:^ssl_cert =.*:ssl_cert = </etc/ssl/dovecot/server.pem:' \
+ -e 's:^ssl_key =.*:ssl_key = </etc/ssl/dovecot/server.key:' \
+ "${confd}/10-ssl.conf" || die "failed to update SSL settings in 10-ssl.conf"
+ fi
+
+ # Install SQL configuration
+ if use mysql || use postgres; then
+ sed -i -e \
+ 's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/' \
+ "${confd}/10-auth.conf" || die "failed to update SQL settings in \
+ 10-auth.conf"
+ fi
+
+ # Install LDAP configuration
+ if use ldap; then
+ sed -i -e \
+ 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update ldap settings in 10-auth.conf"
+ fi
+
+ if use vpopmail; then
+ sed -i -e \
+ 's/#!include auth-vpopmail.conf.ext/!include auth-vpopmail.conf.ext/' \
+ "${confd}/10-auth.conf" \
+ || die "failed to update vpopmail settings in 10-auth.conf"
+ fi
+
+ if use sieve || use managesieve ; then
+ cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
+ emake DESTDIR="${ED}" install
+ sed -i -e \
+ 's/^[[:space:]]*#mail_plugins = $mail_plugins/mail_plugins = sieve/' "${confd}/15-lda.conf" \
+ || die "failed to update sieve settings in 15-lda.conf"
+ rm -rf "${ED}"/usr/share/doc/dovecot
+ docinto example-config/conf.d
+ dodoc doc/example-config/conf.d/*.conf
+ insinto /etc/dovecot/conf.d
+ doins doc/example-config/conf.d/90-sieve{,-extprograms}.conf
+ use managesieve && doins doc/example-config/conf.d/20-managesieve.conf
+ docinto sieve/rfc
+ dodoc doc/rfc/*.txt
+ docinto sieve/devel
+ dodoc doc/devel/DESIGN
+ docinto plugins
+ dodoc doc/plugins/*.txt
+ docinto extensions
+ dodoc doc/extensions/*.txt
+ docinto locations
+ dodoc doc/locations/*.txt
+ doman doc/man/*.{1,7}
+ fi
+
+ use static-libs || find "${ED}"/usr/lib* -name '*.la' -delete
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
+ -e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
+ einfo "Creating SSL certificate"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
+ install_cert /etc/ssl/dovecot/server
+ fi
+ fi
+
+ elog "Please read http://wiki2.dovecot.org/Upgrading/ for upgrade notes."
+}
diff --git a/net-mail/dovecot/files/dovecot-10-ssl.patch b/net-mail/dovecot/files/dovecot-10-ssl.patch
new file mode 100644
index 000000000000..8173bacc0bc5
--- /dev/null
+++ b/net-mail/dovecot/files/dovecot-10-ssl.patch
@@ -0,0 +1,15 @@
+--- doc/example-config/conf.d/10-ssl.conf 2014-12-08 07:58:21.000000000 +0000
++++ doc/example-config/conf.d/10-ssl.conf 2014-12-08 08:02:19.000000000 +0000
+@@ -49,6 +49,12 @@
+ #ssl_protocols = !SSLv2
+
+ # SSL ciphers to use
++# ###############
++# Added by Gentoo
++# You are encouraged to change the cipher list to
++#ssl_cipher_list = DEFAULT:!EXPORT:!LOW:!MEDIUM:!MD5
++# if you are not required to support legacy mail clients.
++# ###############
+ #ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
+
+ # Prefer the server's order of ciphers over client's.
diff --git a/net-mail/dovecot/files/dovecot.init-r4 b/net-mail/dovecot/files/dovecot.init-r4
new file mode 100644
index 000000000000..665aa0dc7333
--- /dev/null
+++ b/net-mail/dovecot/files/dovecot.init-r4
@@ -0,0 +1,57 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+extra_started_commands="reload"
+
+depend() {
+ need localmount
+ before postfix
+ after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd
+ use logger net
+}
+
+checkconfig() {
+ DOVECOT_INSTANCE=${SVCNAME##*.}
+ if [ -n "${DOVECOT_INSTANCE}" -a "${SVCNAME}" != "dovecot" ]; then
+ DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf
+ else
+ DOVECOT_CONF=/etc/dovecot/dovecot.conf
+ fi
+ if [ ! -e ${DOVECOT_CONF} ]; then
+ eerror "You will need an ${DOVECOT_CONF} first"
+ return 1
+ fi
+ if [ -x /usr/sbin/dovecot ]; then
+ DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | grep '^base_dir = ' | sed 's/^base_dir = //')
+ else
+ eerror "dovecot not executable"
+ return 1
+ fi
+ DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/var/run/dovecot}
+ DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/sbin/dovecot \
+ --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}"
+ eend $?
+}
+
+stop() {
+ checkconfig || return 1
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/sbin/dovecot \
+ --pidfile "${DOVECOT_PIDFILE}"
+ eend $?
+}
+
+reload() {
+ checkconfig || return 1
+ ebegin "Reloading ${SVCNAME} configs and restarting auth/login processes"
+ start-stop-daemon --signal HUP --exec /usr/sbin/dovecot \
+ --pidfile "${DOVECOT_PIDFILE}"
+ eend $?
+}
diff --git a/net-mail/dovecot/metadata.xml b/net-mail/dovecot/metadata.xml
new file mode 100644
index 000000000000..20701cc88ba4
--- /dev/null
+++ b/net-mail/dovecot/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>eras@gentoo.org</email>
+ <name>Eray Aslan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="cydir">Add cydir storage support</flag>
+ <flag name="managesieve">Add managesieve protocol support</flag>
+ <flag name="mdbox">Add mdbox storage support</flag>
+ <flag name="sdbox">Add sdbox storage support</flag>
+ <flag name="sieve">Add sieve support</flag>
+ <flag name="vpopmail">Add vpopmail support</flag>
+ <flag name="imapc">Add imap client storage support</flag>
+ <flag name="pop3c">Add pop3 client storage support</flag>
+ <flag name="lucene">Add lucene full text search (FTS) support using <pkg>dev-cpp/clucene</pkg></flag>
+ <flag name="lzma">Add support for lzma (de)compression</flag>
+ <flag name="lz4">Add support for lz4 (de)compression</flag>
+ <flag name="solr">Add solr full text search (FTS) support</flag>
+ <flag name="textcat">Add libtextcat language guessing support for full text search (FTS)</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/email/Manifest b/net-mail/email/Manifest
new file mode 100644
index 000000000000..2cbeaa6e25dc
--- /dev/null
+++ b/net-mail/email/Manifest
@@ -0,0 +1,11 @@
+DIST email-2.5.0.tar.bz2 133167 SHA256 617d6d9cca146cdf3985c3432408ce8e855c8394d54824736fab549ec351935b SHA512 e1f56a875262db6dc79bd0e58e73875cc86bbc73c91c71fb44e9325e4d95b4133f32ca2f299e9bcdbb8217eb20ce155382f0c8d35c48f4d03caf88ef82193ad7 WHIRLPOOL 643f251519fcc27614c93fb49672c77e625e7791f037d9880e40aa0d28993e3fed73109056c1d052e5eaa3a956e6144dc22b693fdad6dbc65e2f0233ffe80b86
+DIST email-3.0.5.tar.bz2 176575 SHA256 811d99654df55c98ca29d6467cfe8489eb52b3a724e6f61dfeadb5bea89ecc58 SHA512 9cb664be7e23c7509d9091115b9ea5450bc90a78c16c3ac514cdff08a4d13f687c25ea5e10f9a644158e2f001c1022e03ba8d1994fcafa1605986c394f54621e WHIRLPOOL c591d2331c66dbfcd3d4ba5cd328d9c5d75f68ca1fc166e88fc7935c65d8d8f6886d1a9d64b24c7f710360c0bca5a0eb02e4cfa100228abca3a076a738f807e8
+DIST email-3.1.2.tar.bz2 179546 SHA256 3b82d877276bc9f8eb58c613daf011454d5f4f0600335bc770cb4c3562547f75 SHA512 cd005a59b45985ec9ae3cfe86e989568732eaf1e2a127028d0faa7abc0e704ab59668c48b7249e8829fd4944ca8bb27fb3bd23bfe23df5f6fc861d1385f531d1 WHIRLPOOL f802f2ab001fb253527df0e8593c661fa83af65700a5b16cf3570898df3fddbf64de71c0d6c334867683bc496fe096b3301d9bcbb7d0f5f6615f3984dc81c075
+DIST email-3.1.3.tar.bz2 178396 SHA256 e96b9341946878c68c3143ac77ddf78e8dc07772056e47cc5781daf804789092 SHA512 3fc1a8aa653a519261614e54b3215b89e41273207aa63f64572c8820093922a820ecad5e939b0eadf8d4c0587be83ffcb239bb31fd959b96dcf566157420f33b WHIRLPOOL 5b766ea81e4a16c5b0f1b810619c044a772c7935a51df3049e21e1efbbc14ec9e71900d1849fdb27c438b484b71841d04c4578d7f7eb07daab626cd41b6fbce1
+EBUILD email-2.5.0.ebuild 1063 SHA256 a1705cffa1490f24582be25275318c086791bf87d0bbac160cbd960ddb75c24a SHA512 ac8c1c9cec018c75549b1ad4c5bbab27ae6efa9968ff6c97bfbf594471c3217e9f3b8ada39b8960ba81cd4dfe5d6ba6f17c51fbc09d55cea129e85a5bdc2d87e WHIRLPOOL f19c3941887ec4943b45ffa2d22694c66e1a1b9132548c0d645ef0cdb06a7404671a2951dcc40f95da8af4d1a2ad0c23ca80551a3f2447d91cdfe8962a759578
+EBUILD email-3.0.5.ebuild 1155 SHA256 f9bf3ba2c7f0daa65584c0de1e0fd3838b0959be5298ad12d00da54e7bbbc7ba SHA512 b9104c899e33711359c689ec9d2403317add5cb1206e604afd3fab3544e55fabec089205761f608db64d8d9acba406a83d8ed79e73661c1011d842faf75cc8e9 WHIRLPOOL 8c250d1eeffb1910759814126c496447d8ecc7877af20037bef9fc8fefad4ac3f080e4f7a43f565036bba0e9f09cb126691c0028d1e0c0f6a0fdaccf538ce730
+EBUILD email-3.1.2.ebuild 1084 SHA256 0c091cbda4f26e4f1fea3c64b2daad74416c5bb31a7b7fc6aca1d52a61fd1fb9 SHA512 7012af1eb39ff514e41e1ce644e7108e41d387dbc9af62578b2f97671969d2a4f3bfc33558d2c9beff327bfc38ebf0146d1278dd124f6f956c71b29a2937a458 WHIRLPOOL c56c23d411f09e79c433cf9df8bb08ff02b25b8d3efc75ce4688f79d857bacd72ca5068571af6ba0a1aa7251d21189b429ba27afbf8ac8dae9ae26c3922cd23d
+EBUILD email-3.1.3.ebuild 558 SHA256 fd7de6a5d45c339119b2f3ac516c0e10a26b8e3a1cd2385da6d904d7c9e7ec15 SHA512 849dbb318fb20a479fe2c46fb8bd7fad9679d8983de5ec4c27040d75401d703c96073fea84e1b39474a07bc1e6d014175de0de3ea1429eb82fcdfc31aed33593 WHIRLPOOL bce6cea95acc162f9eb66d3a8d6c4229f6a3798527b3b79968baf34c88dd43bb541fe69ec5f175dfa5f3a6510b17f70948eccd74c54e9d802dfd2061d7698f2e
+MISC ChangeLog 2567 SHA256 e01d4f7e373a475f4886e66d76937fd7367562a7083c29ba6b47348d1ba73058 SHA512 7f2c8ff02f8e72dc90efb00cdbd85afd235434f03c5a4eafc6a4a8c56bfef4542abca3210f00eb74187c6176a67dd00c606d8a0993a8aaba73270357492cc1c8 WHIRLPOOL 7f3a8b8240f5eac4aab1e21798a4f25fb2926dc295c88688fd70d6043872d18e578a001b6d5dd5abd09a5b1689864f57da7a93e9f49f635bfb3d284edafe06cd
+MISC ChangeLog-2015 4804 SHA256 94066702d55daf6976bee508120031794188ee8be281dc9a9bfb1bfb828b8f1a SHA512 c52878dd66ecc7b7f5dd1e43ab1b82fbdc21b2fcfcbe3c8bfbfff17a14c550cfdd7b020fa0277e1766bffdf31afcd7b9201353d00017a0095cab56357dbad3ad WHIRLPOOL 354a0e29eedab1f5de52b7cd0683d6057f823aded6216e8b901bc004d44ddf4494f4ab6d61732e1a258d4f61b37b691c77a85ad931572c38997f363bd6cb4168
+MISC metadata.xml 341 SHA256 b5f229406b29f78ee4c444fd0333b20bdaca347846235a014020efb3acba1791 SHA512 8f94720f124779c884470d421573bbf405a5cd82877a2487d3cb0231255a9052f8666f015b62c1ac895b82f2b4eb9ad57fa8cabced7e0fe78d2429f74dcebb24 WHIRLPOOL d37d657af74edb9e980ed25c4fc2ced982820dc3635b60eabe6f9fbe13d46531d2ae26f231fb6ec0ab931530cae32e758ea5fef0f9fa239f3c76996bae19944a
diff --git a/net-mail/email/email-2.5.0.ebuild b/net-mail/email/email-2.5.0.ebuild
new file mode 100644
index 000000000000..c33c1f68e091
--- /dev/null
+++ b/net-mail/email/email-2.5.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Advanced CLI tool for sending email"
+HOMEPAGE="http://email.cleancode.org"
+SRC_URI="http://email.cleancode.org/download/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="alpha amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ local myconf=""
+
+ if [ -f /etc/conf.d/clock ]; then
+ . /etc/conf.d/clock
+ if [ x$CLOCK = "xUTC" ]; then
+ elog "Using UTC timestamps (from /etc/conf.d/clock)"
+ myconf="${myconf} --with-utc"
+ fi
+ fi
+
+ sed -i -e "s:/doc/email-\${version}:/share/doc:" configure
+ sed -i -e "s:DIVIDER = '---':DIVIDER = '-- ':" email.conf
+
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ doman email.1
+ dodoc INSTALL quoted-printable.rfc RFC821 TODO
+ make DESTDIR="${D}" install || die "install failed"
+}
+
+pkg_preinst() {
+ rm "${D}"/usr/share/doc/"${P}"/email.1
+}
+
+pkg_postinst() {
+ echo
+ elog "Do not forget to edit /etc/email/email.conf file before using email."
+ echo
+}
diff --git a/net-mail/email/email-3.0.5.ebuild b/net-mail/email/email-3.0.5.ebuild
new file mode 100644
index 000000000000..7882010380fe
--- /dev/null
+++ b/net-mail/email/email-3.0.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit flag-o-matic
+
+DESCRIPTION="Advanced CLI tool for sending email"
+HOMEPAGE="http://www.cleancode.org/projects/email"
+SRC_URI="http://www.cleancode.org/downloads/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ append-ldflags $(no-as-needed)
+}
+
+src_compile() {
+ local myconf=""
+
+ if [ -f /etc/conf.d/clock ]; then
+ . /etc/conf.d/clock
+ if [ x$CLOCK = "xUTC" ]; then
+ elog "Using UTC timestamps (from /etc/conf.d/clock)"
+ myconf="${myconf} --with-utc"
+ fi
+ fi
+
+ sed -i -e "s:/doc/email-\${version}:/share/doc:" configure
+ sed -i -e "s:DIVIDER = '---':DIVIDER = '-- ':" email.conf
+
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ doman email.1
+ dodoc INSTALL quoted-printable.rfc RFC821 TODO
+ make DESTDIR="${D}" install || die "install failed"
+}
+
+pkg_preinst() {
+ rm "${D}"/usr/share/doc/"${P}"/email.1
+}
+
+pkg_postinst() {
+ echo
+ elog "Do not forget to edit /etc/email/email.conf file before using email."
+ echo
+}
diff --git a/net-mail/email/email-3.1.2.ebuild b/net-mail/email/email-3.1.2.ebuild
new file mode 100644
index 000000000000..78ef342e6352
--- /dev/null
+++ b/net-mail/email/email-3.1.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Advanced CLI tool for sending email"
+HOMEPAGE="http://www.cleancode.org/projects/email"
+SRC_URI="http://www.cleancode.org/downloads/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ local myconf=""
+
+ if [ -f /etc/conf.d/clock ]; then
+ . /etc/conf.d/clock
+ if [ x$CLOCK = "xUTC" ]; then
+ elog "Using UTC timestamps (from /etc/conf.d/clock)"
+ myconf="${myconf} --with-utc"
+ fi
+ fi
+
+ sed -i -e "s:/doc/email-\${version}:/share/doc:" configure
+ sed -i -e "s:DIVIDER = '---':DIVIDER = '-- ':" email.conf
+
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ doman email.1
+ dodoc INSTALL quoted-printable.rfc RFC821 TODO
+ make DESTDIR="${D}" install || die "install failed"
+}
+
+pkg_preinst() {
+ rm "${D}"/usr/share/doc/"${P}"/email.1
+}
+
+pkg_postinst() {
+ echo
+ elog "Do not forget to edit /etc/email/email.conf file before using email."
+ echo
+}
diff --git a/net-mail/email/email-3.1.3.ebuild b/net-mail/email/email-3.1.3.ebuild
new file mode 100644
index 000000000000..24fdb011d93f
--- /dev/null
+++ b/net-mail/email/email-3.1.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="Advanced CLI tool for sending email"
+HOMEPAGE="http://www.cleancode.org/projects/email"
+SRC_URI="http://www.cleancode.org/downloads/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="alpha amd64 x86"
+IUSE=""
+
+src_prepare() {
+ sed -i -e "s:/doc/email-\${version}:/share/doc:" configure || die
+ sed -i -e "s:DIVIDER = '---':DIVIDER = '-- ':" email.conf || die
+}
+
+src_install() {
+ default
+ doman email.1
+ dodoc README TODO
+}
diff --git a/net-mail/email/metadata.xml b/net-mail/email/metadata.xml
new file mode 100644
index 000000000000..94c164d89e8d
--- /dev/null
+++ b/net-mail/email/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription lang="en">
+ Advanced CLI tool for sending mail.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/eps/Manifest b/net-mail/eps/Manifest
new file mode 100644
index 000000000000..b5c6b4f6e94d
--- /dev/null
+++ b/net-mail/eps/Manifest
@@ -0,0 +1,6 @@
+DIST eps-1.7.tar.gz 29913 SHA256 8eb7ebb0331a8a604d4f3d029b9ec90debef40be4a4b71a7364cfec4c4175bd5 SHA512 be7df0d5bce5798afda0573b5d943da7e69e6b99817f4ed6d87e2858e75d7c2408d7fa9942dfc6277db0bedb73cf1f5ca64542d070075dda544cbc695134b1a0 WHIRLPOOL f9880bf40050e2ff4abbe5c03263eedb6523ce7bf11dcd0b3e25919eb49ae04d7f56d5f259318088655e2d7c7a44738dab099d642f11ad36ce04d05e60f01510
+EBUILD eps-1.7-r1.ebuild 811 SHA256 60637ad1b02e42d564a7036aa15a23b0e8149b6451055d6731f737c4847d1807 SHA512 369559c14811774f3ac1fcea634009cbc565ad67b8d0a3388a166817cf161a02b9ed3596d7e57dc11874628cccd98091e2d39a7a25f26d3c54f2ef3603338e05 WHIRLPOOL 82b15893293c12426bd2baa38f8e5f99bd981ea3c8a2e18d0ee630fd9d0cc853d54ac1f6514a6c1e69ee3c0f080ff17791cdc4474489662c20b09d6004b4d36c
+EBUILD eps-1.7.ebuild 858 SHA256 ae85d59f8a6a8b063716a0ad8f2cf456e0c621d8712a24b41abf227184f6f395 SHA512 2faabd69b0a6a53101201d1e20d83027b7550e19d968cb9a28407f8a1555a1f5692a8a4f5a3df72dea1fa0b4c84181b21e6f239ddefe952be243702be9aa56f8 WHIRLPOOL 16dba23a15738ab78c685c5927f6dc8711974f57f56223903d40fdd0022f00d75680c1149e4e011df8445b5d420303baac1cc5c1f7158b9f334e6ce2f678055a
+MISC ChangeLog 2411 SHA256 f5ff6ecaf6f47c78d5c76a64651c8da37e42de2af494dfde04c8402b0323f160 SHA512 2d170f4427a2fe1f375711cc895e4ee24cd05d127da344633a8a667dcda2adb0dcdc36d1f87378fb3fa32c87ab9930ccab38c14a32c5c82e6ee54630faa744a9 WHIRLPOOL 589210a241a479609aa6377ec96473b4c0e54564935e577ece7389ed662177a0af99f36076a6890209f32fd32bb3cd2847cdd44dd5c5a0cf94b926c7fafebcbe
+MISC ChangeLog-2015 1823 SHA256 86dff6c86cd0b120eef55269bb1c863b990f1fa504e5dc6df5e6812a824721e0 SHA512 25d86ef6833b871a112ff303bcbc10f8014957cd9ad4e8a8a0bdc7b2e56b870ef97b6b7bfacf231f500ec2d2a581e7efcbef70cbce3433bb0ca8c01a7b4702cb WHIRLPOOL 2c2cf6def27f8afa09b7dca7aa0133eb99001479d617a1365cfe45d142059e4998dc178e648a6b419d2da831913846d15f018a0a5d3d942b764f144118cde7ed
+MISC metadata.xml 524 SHA256 467e64d317b244cc7a851c313eeac97fddefd6b3231de668e4448ff5f4087f43 SHA512 a1432bfc8582f30d2a012452dbc686b10524abff01dba3aaef5a591eff74e3b3b0eddbe10a6c897dfd7e116fcd73c925bda598d81f7c37affc0444d0c9754ae8 WHIRLPOOL 64068fdd5539060f700430fd4a3370c47a173a2576bff6f341ae3cafc93b33fd47a42f712d20715d85b23f2b69c035f2c8e25f1b95fd764385211315191cabfc
diff --git a/net-mail/eps/eps-1.7-r1.ebuild b/net-mail/eps/eps-1.7-r1.ebuild
new file mode 100644
index 000000000000..f0109531933b
--- /dev/null
+++ b/net-mail/eps/eps-1.7-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Inter7 Email Processing and mht System library"
+HOMEPAGE="http://www.inter7.com/eps"
+SRC_URI="http://www.inter7.com/eps/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_prepare() {
+ sed -i -e 's:/usr:$(DESTDIR)$(prefix):g' \
+ -e 's:\(DEFS.*\):\1 $(CFLAGS):' \
+ -e 's:$(DEFS):$(DEFS) -fPIC:' \
+ -e 's:-shared:-shared -Wl,-soname,libeps.so $(LDFLAGS):' \
+ -e 's:cp -pf:cp -f:g' \
+ Makefile || die
+ default
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake prefix=/usr DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog TODO doc/*
+}
diff --git a/net-mail/eps/eps-1.7.ebuild b/net-mail/eps/eps-1.7.ebuild
new file mode 100644
index 000000000000..c938746bdb4e
--- /dev/null
+++ b/net-mail/eps/eps-1.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="Inter7 Email Processing and mht System library"
+HOMEPAGE="http://www.inter7.com/eps"
+SRC_URI="http://www.inter7.com/eps/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_prepare() {
+ sed -i -e 's:/usr:$(DESTDIR)$(prefix):g' \
+ -e 's:\(DEFS.*\):\1 $(CFLAGS):' \
+ -e 's:$(DEFS):$(DEFS) -fPIC:' \
+ -e 's:-shared:-shared -Wl,-soname,libeps.so $(LDFLAGS):' \
+ -e 's:cp -pf:cp -f:g' \
+ Makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" || die "emake failed"
+}
+
+src_install() {
+ emake prefix=/usr DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install \
+ || die "emake install failed"
+ dodoc ChangeLog TODO doc/*
+}
diff --git a/net-mail/eps/metadata.xml b/net-mail/eps/metadata.xml
new file mode 100644
index 000000000000..282fe23db404
--- /dev/null
+++ b/net-mail/eps/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>EPS (Email Parsing System) is intended to give people the ability to write their own email processing tools. Whether you want to process incoming and outgoing emails, or just analyze a message, this package is intended to aid in that endeavor.</longdescription>
+</pkgmetadata>
diff --git a/net-mail/ezmlm-idx/Manifest b/net-mail/ezmlm-idx/Manifest
new file mode 100644
index 000000000000..46bb7d192f47
--- /dev/null
+++ b/net-mail/ezmlm-idx/Manifest
@@ -0,0 +1,10 @@
+DIST ezmlm-0.53.tar.gz 62693 SHA256 9639c3a5cc49d417f30e6cd7d8c5e2c6945262953c143134035889d8aa1004b9 SHA512 0dc1c64168428c531dbf78ca99582de4d4193d10bb38e87d3ee8f33f78083dc696bfd0681e3f2f690d7aa78b55b1b91c4ea6900c109406063445104826ff6d94 WHIRLPOOL ae48ec86a66c99debebd0a7b1beafe2deeeb48061ae729ecc315f8e4f7d226be4d34cce93db122bb0210a35335fe5d89aa28f02df866d75580ad02a5619492ef
+DIST ezmlm-idx-6.0.0.tar.gz 659996 SHA256 625b2e54818e694c04a4c8d32bd0e382867df29a147067073a8cdb9b252aa54e SHA512 547186a2e32f3861ef51a9012442e7d8b553d90f2af949bb51845c29178ee2a44760471852c7c23fbd241c14753f22357463c5d5f10b70eceb05603cc6d83d4a WHIRLPOOL 0024d67e535d02bd00f82f394f57d8125a0d31c5cf25bb6c498952634bec83428ba6e6e4d708fc750ffc2d3add1ef3b205e2856969fd7fbd5d2bb0ca11d700dc
+DIST ezmlm-idx-7.0.0.tar.gz 689019 SHA256 4d2c93e6102c72be39912e4e5a783931e1593a8793af72f2cc884702e1edbc6c SHA512 c0fc35aef4a72aefa4cdaee4c1933cc00aab82ee81ad7577793952fbf57106c06e4a5844a2bbf3919ad2985d2062ba1edf8831e6aa66d7e762210e7e147210ef WHIRLPOOL e790cef52d871e4cf66f75097f0ab3e84350ecd581f20d5c7ee519b27b592e8ea250e1dae4c69820c3dea0c3e1f20bf46d29e4f7ea3169bc3f3bc9f7579b8fa6
+EBUILD ezmlm-idx-6.0.0.ebuild 1732 SHA256 b1c1ba740d2926c0b2d892d867f37b4223a930f1cce4a05eebb338502884937d SHA512 869442eee4edd905989d9ab09380a9f565ca3dd7d27adf88aad0713e7cab0c15378306dfae860930996095683191ea67b2b21a168739a62afc5b3cb7626d1e84 WHIRLPOOL b80c8e1d142ead62da98dc6bffc7d2827e1044fd6d1bdf7c3b484d6ca7c0a00c6cc44139364b23619933dc78d408095e0e2582ed4e8c21412c838c924b74bfda
+EBUILD ezmlm-idx-7.0.0-r1.ebuild 1513 SHA256 68803cd00c4d93c2f86ee0d1b239700f439cc9254c6bbdedc3bb7701ed838a58 SHA512 80cd530de77d7f526068df444b900beae73bb08995fcdd0fee43668605d2a388db89d8e553e7130157432181b9fb70805df0f0ff01018b565a5deb7aaa32d86d WHIRLPOOL 9509a50cc63e0688ed81973f95f431457c6d034535c65b833ea6d607809e4b98bca5aff3ae91355d50959a4fdde6a8f59f5a077019b4c7bcc577040818cfc9db
+EBUILD ezmlm-idx-7.0.0-r2.ebuild 1526 SHA256 a42cba9508d9b02413e0a883f8eafcf9843ad146d16c4f44431072de5e336ef1 SHA512 1a517b5f53d76ce30e4bcfa47dde98aaa767adece86e03de8485728973673dcee45a2f0da9bff00f4fe1c3bec37c7a75ddf484b4badfcb93877cb36c0b23d099 WHIRLPOOL e218a594c9117caef7f7a442ed39ad124653fb277deb6ad61e91e70eff4bff1a9932a00e5f2fabf835c050c7709670bc57bb183412d34940cae48ce35b6e313b
+EBUILD ezmlm-idx-7.0.0.ebuild 1484 SHA256 7eb121c133927df6ee78eac32446990486a94b5a359ee4b5bdf68c1c6bbd9a8b SHA512 cdf40e84ed8e3701d11ae3981a326d74cc937e213271ae9db48cbbc3b00215cfecaa6c6598a0cf05b81840c90c5adf9891132e654c42d6c6ed34fa4606f90427 WHIRLPOOL 3656858e23bfa5b58b02b5608762ff1ab7671baa01b619254df57f26e843686005a89fb27ef0d3bc079cc50be256f2e6e2285151b1a53a79ba5b49ad9af53b2c
+MISC ChangeLog 2718 SHA256 94981f96e4e0cd65822d6a7fea9b9ccaef132e79ff7f3bf20840359697fdc179 SHA512 bb63ae2304ba5f83a04a4d3f27f830d35880dde2d8290fff09f0ececfb919670f0d598389d41a5dedd3175266037f32bc9fa1b3f87a4ab73c6f94a1744af1961 WHIRLPOOL 1069e003135be2a58aefb27513f7273bbe1eb93afc14b23e711cad042c9c5ebc40f4f75a15d5a61b41d232e990e505e88f88702156caa3ab804c8ddad03e3a3b
+MISC ChangeLog-2015 4962 SHA256 726502396f1cf77ab0ad88d8e96daf98ebce864deefe543e653ceaae6b82b952 SHA512 82f0339bf077bdd58bc47912064159e8610df9a4938840110d189481394162616a039c7e76236fba5cf932890d2a09768a73eccb891ba8c710f7975a8a0cbae1 WHIRLPOOL fe5ff040dc288b4b02d3a17768b563a6bf34198ec25436464e0e4b3555fa2cd6d7acd29d0f94fd2146174f0c9f1a7850d9387b7cd1cab5ab657c774be0d46cb2
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/ezmlm-idx/ezmlm-idx-6.0.0.ebuild b/net-mail/ezmlm-idx/ezmlm-idx-6.0.0.ebuild
new file mode 100644
index 000000000000..d85c320c1d02
--- /dev/null
+++ b/net-mail/ezmlm-idx/ezmlm-idx-6.0.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EZMLM_P=ezmlm-0.53
+
+inherit eutils fixheadtails
+
+DESCRIPTION="Simple yet powerful mailing list manager for qmail"
+HOMEPAGE="http://www.ezmlm.org"
+SRC_URI="http://cr.yp.to/software/${EZMLM_P}.tar.gz
+ http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86"
+IUSE="mysql postgres"
+
+DEPEND="
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+"
+RDEPEND="${DEPEND}
+ virtual/qmail"
+
+S="${WORKDIR}"/${EZMLM_P}
+
+pkg_setup() {
+ if use mysql && use postgres; then
+ die "cannot build mysql and pgsql support at the same time"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ mv "${WORKDIR}"/${P}/* "${S}" || die
+ cd "${S}"
+
+ epatch "${S}"/idx.patch
+
+ ht_fix_file Makefile
+
+ echo /usr/bin > conf-bin
+ echo /usr/lib/ezmlm > conf-lib
+ echo /etc/ezmlm > conf-etc
+ echo /usr/share/man > conf-man
+ echo /var/qmail > conf-qmail
+
+ echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc
+ echo $(tc-getCC) ${CFLAGS} > conf-ld
+
+ # fix DESTDIR and skip cat man-pages
+ sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
+ -e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
+ -e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
+ -i Makefile
+
+ # ezmlm-mktab-{my|pg}sql may or may not be made
+ sed -i -e "s/\(^.*mktab\)/?\1/" BIN
+}
+
+src_compile() {
+ emake it man || die "make failed"
+
+ if use mysql; then
+ emake mysql || die "make mysql failed"
+ elif use postgres; then
+ emake pgsql || die "make pgsql failed"
+ fi
+}
+
+src_install () {
+ dodir /usr/bin /usr/lib/ezmlm /etc/ezmlm /usr/share/man
+ dobin ezmlm-cgi
+
+ make DESTDIR="${D}" setup || die "make setup failed"
+}
diff --git a/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r1.ebuild b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r1.ebuild
new file mode 100644
index 000000000000..d2804201c7ed
--- /dev/null
+++ b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail multilib
+
+DESCRIPTION="Simple yet powerful mailing list manager for qmail"
+HOMEPAGE="http://www.ezmlm.org"
+SRC_URI="http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="mysql postgres"
+
+DEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )"
+RDEPEND="${DEPEND}
+ virtual/qmail"
+
+pkg_setup() {
+ if use mysql && use postgres; then
+ die "cannot build mysql and pgsql support at the same time"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+
+ echo /usr/bin > conf-bin
+ echo /usr/$(get_libdir)/ezmlm > conf-lib
+ echo /etc/ezmlm > conf-etc
+ echo /usr/share/man > conf-man
+ echo ${QMAIL_HOME} > conf-qmail
+
+ echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc
+ echo $(tc-getCC) ${CFLAGS} -Wl,-E > conf-ld
+
+ # fix DESTDIR and skip cat man-pages
+ sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
+ -e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
+ -e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
+ -i Makefile
+}
+
+src_compile() {
+ emake it man || die "make failed"
+
+ if use mysql; then
+ emake mysql || die "make mysql failed"
+ elif use postgres; then
+ emake pgsql || die "make pgsql failed"
+ fi
+}
+
+src_install () {
+ dodir /usr/bin /usr/$(get_libdir)/ezmlm /etc/ezmlm /usr/share/man
+ dobin ezmlm-{cgi,checksub}
+
+ make DESTDIR="${D}" setup || die "make setup failed"
+}
diff --git a/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r2.ebuild b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r2.ebuild
new file mode 100644
index 000000000000..356a65c7241d
--- /dev/null
+++ b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail multilib
+
+DESCRIPTION="Simple yet powerful mailing list manager for qmail"
+HOMEPAGE="http://www.ezmlm.org"
+SRC_URI="http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="mysql postgres"
+
+DEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )"
+RDEPEND="${DEPEND}
+ virtual/qmail"
+
+pkg_setup() {
+ if use mysql && use postgres; then
+ die "cannot build mysql and pgsql support at the same time"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+
+ echo /usr/bin > conf-bin
+ echo /usr/$(get_libdir)/ezmlm > conf-lib
+ echo /etc/ezmlm > conf-etc
+ echo /usr/share/man > conf-man
+ echo ${QMAIL_HOME} > conf-qmail
+
+ echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc
+ echo $(tc-getCC) ${CFLAGS} -Wl,-E > conf-ld
+
+ # fix DESTDIR and skip cat man-pages
+ sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
+ -e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
+ -e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
+ -i Makefile
+}
+
+src_compile() {
+ emake it man || die "make failed"
+
+ if use mysql; then
+ emake mysql || die "make mysql failed"
+ elif use postgres; then
+ emake pgsql || die "make pgsql failed"
+ fi
+}
+
+src_install () {
+ dodir /usr/bin /usr/$(get_libdir)/ezmlm /etc/ezmlm /usr/share/man
+ dobin ezmlm-{cgi,checksub,import,rmtab}
+
+ make DESTDIR="${D}" setup || die "make setup failed"
+}
diff --git a/net-mail/ezmlm-idx/ezmlm-idx-7.0.0.ebuild b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0.ebuild
new file mode 100644
index 000000000000..b43261b504ea
--- /dev/null
+++ b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail
+
+DESCRIPTION="Simple yet powerful mailing list manager for qmail"
+HOMEPAGE="http://www.ezmlm.org"
+SRC_URI="http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="mysql postgres"
+
+DEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )"
+RDEPEND="${DEPEND}
+ virtual/qmail"
+
+pkg_setup() {
+ if use mysql && use postgres; then
+ die "cannot build mysql and pgsql support at the same time"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+
+ echo /usr/bin > conf-bin
+ echo /usr/lib/ezmlm > conf-lib
+ echo /etc/ezmlm > conf-etc
+ echo /usr/share/man > conf-man
+ echo ${QMAIL_HOME} > conf-qmail
+
+ echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc
+ echo $(tc-getCC) ${CFLAGS} -Wl,-E > conf-ld
+
+ # fix DESTDIR and skip cat man-pages
+ sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
+ -e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
+ -e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
+ -i Makefile
+}
+
+src_compile() {
+ emake it man || die "make failed"
+
+ if use mysql; then
+ emake mysql || die "make mysql failed"
+ elif use postgres; then
+ emake pgsql || die "make pgsql failed"
+ fi
+}
+
+src_install () {
+ dodir /usr/bin /usr/lib/ezmlm /etc/ezmlm /usr/share/man
+ dobin ezmlm-{cgi,checksub}
+
+ make DESTDIR="${D}" setup || die "make setup failed"
+}
diff --git a/net-mail/ezmlm-idx/metadata.xml b/net-mail/ezmlm-idx/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/ezmlm-idx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/fastforward/Manifest b/net-mail/fastforward/Manifest
new file mode 100644
index 000000000000..8c6213ec537e
--- /dev/null
+++ b/net-mail/fastforward/Manifest
@@ -0,0 +1,6 @@
+AUX 0.51-errno.patch 243 SHA256 924e0154181011e67dde22da580af340d7feb9aacc8fa350112eab00a7514c54 SHA512 1d4c1abde8eb0b4d6dd2254be29b685c922265ededa02a19010bc487e2e2013ef2df9a86a5dd797e0d7a30567cc18ae72324f2a67558633aae76262b2a9681a1 WHIRLPOOL 4816f339c317b6a3283498462ced0353bc5db7d57bacd3c421b1179f988172472f9839a1f918b482f19603df18e082da13eb1d815a6699fd57b97b2336bb0bb4
+DIST fastforward-0.51.tar.gz 40659 SHA256 45a1a071d54701bf973fed7582b5ff76cb6ed3e43089da6da87caabbb4b4fd7e SHA512 7206f72dc7bb42d7e0cc63980eda7bc2b93c7ca6639db810f6d28476ab58d3e4bb6e441f4eef2149c5fe933c2f9effe2f2b3101d02cf9f6e922a678e7466b132 WHIRLPOOL 913c24f8f9ac081056e516e90bf9bdd7d14f9680067a028b11fec45e4dcdfd00cdf0a0ac6b8bfeb5f7e0f54419ed5a883971364b33001064376c413f55fee12e
+EBUILD fastforward-0.51-r1.ebuild 943 SHA256 0f9d20b8d7581e37164417805c44650cd33ace40e7e2714100316444edb17632 SHA512 8473f5f17c6b77204f94f601f7a06cae4db082ebd995f0fa8d6bb0b66c89ff9b595ed43059370585f2c53d4d557c626d863dbecf381ac52aaf6c247d2becaab3 WHIRLPOOL 02df9706f3b9f2fd531b8091f5c0575c1abdde52157cb67fd23d9a101c84230b60234099f772bcc48e49d377c366cce635464cfb64220c79747a0be02d940283
+MISC ChangeLog 2468 SHA256 5de996d5d96d995acf763cbf6d6dcbe0bb0d78907f35713b9f6d6ba5516f52cd SHA512 6c07b4e587e0af7a0a8d2ac6d7c81883b1d8aef1a619e0426393947090ee8e20bc9ae44deff61a520990c248171900187c6e6a313e1b595127a1abc726330918 WHIRLPOOL 172f14c4d5c5f929e4436a76dd49629e9fe0382e30dbd1fde5b8c7a3b991248770d5c4663f157ad3c53992077f4ab20b16ebc6f9c04adcfc701f642ccebd793e
+MISC ChangeLog-2015 1579 SHA256 8de5db2b80d7e0a0d2f7dd130f5108f8b8e411b19b306968f90faecc70f4bef7 SHA512 b37549aa021e90d9eff5d3499301999652bcbb21da66304659f197c1211ca4372abfcbce37564af528b8c662cb1592951b2aba1320930d12271320507087f6fd WHIRLPOOL 6307b01c0245c594181fc10cc427df812016252b396b0be61d39ac9f32147bbdf84d91ca76a08a43f8d520c241bcc5d1018d43fdead5568de592bdadb17fb634
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/fastforward/fastforward-0.51-r1.ebuild b/net-mail/fastforward/fastforward-0.51-r1.ebuild
new file mode 100644
index 000000000000..289cedaf538a
--- /dev/null
+++ b/net-mail/fastforward/fastforward-0.51-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils fixheadtails
+
+DESCRIPTION="handle qmail forwarding according to a cdb database"
+HOMEPAGE="http://cr.yp.to/fastforward.html"
+SRC_URI="http://cr.yp.to/software/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="x86 sparc ~ppc"
+IUSE=""
+
+DEPEND="sys-apps/groff"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PV}-errno.patch"
+ ht_fix_file Makefile
+
+ echo "gcc ${CFLAGS}" > conf-cc
+ echo "gcc" > conf-ld
+}
+
+src_compile() {
+ emake it || die
+}
+
+# make check is actually an install-check target, see bug #283177
+src_test() { :; }
+
+src_install() {
+ dodoc ALIASES BLURB CHANGES FILES INSTALL README SYSDEPS TARGETS
+ dodoc THANKS TODO VERSION
+ doman *.1
+
+ insopts -o root -g qmail -m 755
+ insinto /var/qmail/bin
+ doins fastforward newaliases newinclude printforward printmaillist \
+ setforward setmaillist
+}
diff --git a/net-mail/fastforward/files/0.51-errno.patch b/net-mail/fastforward/files/0.51-errno.patch
new file mode 100644
index 000000000000..4aca1b2b4e58
--- /dev/null
+++ b/net-mail/fastforward/files/0.51-errno.patch
@@ -0,0 +1,11 @@
+--- error.h.orig 2003-03-05 15:42:51.000000000 -0500
++++ error.h 2003-03-05 15:43:00.000000000 -0500
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+
+-extern int errno;
++#include <errno.h>
+
+ extern int error_intr;
+ extern int error_nomem;
diff --git a/net-mail/fastforward/metadata.xml b/net-mail/fastforward/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/fastforward/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/fdm/Manifest b/net-mail/fdm/Manifest
new file mode 100644
index 000000000000..006d8e96d7b7
--- /dev/null
+++ b/net-mail/fdm/Manifest
@@ -0,0 +1,9 @@
+DIST fdm-1.7.tar.gz 199808 SHA256 484474094f124ce438c89dfab05519fe7b3aa8c8346d00f790a512ab950cef2a SHA512 d438c96b1d3bdf08d14cfbb3b78ab5180e6bbc32121b7dfdd47ac14a4f8a19d1309f7742f78cc9db2d68b64b3422ec96f8f729931168d2fc411c36d0cc3e9386 WHIRLPOOL ad5f7b1253f660424f29237d99b9ec0f9d7c9e701e76ea1d49a0fd340527e20f429f517333a1eeee08b81f23a29488c7fc25cc0fda4d9e44b26b16222075209c
+DIST fdm-1.8.tar.gz 193220 SHA256 4f4c000d3e2cd11936c23c0d7a95da860743b7543790d5797268df18864b2342 SHA512 eaf868628c7c98385804ebdcf1756547ee487109fe02ca3d8177eb25ebdc4c61e6d4ad820c52fd9e39ac4d2f93408aa6787446e8330a87a6cb75da2be0b5f337 WHIRLPOOL 6ad9ceae0c11ea1d7e83dd5378fc5c75885fea5d2871919c6c32bd27a814612a309583b13cfa8acf592efb2a6d5f33393c2fe965120d842b7ef123376ba348bf
+DIST fdm-1.9.tar.gz 299916 SHA256 16416c38a9a7e32d187220cc5ae61a51463d5e4e47419c5c513f422523d39914 SHA512 e7e5c8aae8be3e82ff6015d2d87fd9d0dad4fe24796b4f30d6874f761e2df6900c8940d39de28bb2db6ee3ea3faf494c57149037657d986a3b54db3a6a601ca7 WHIRLPOOL 62f214ac4bbb388864c383b3e84910fb275970f4a326e2c3ad712e3f19208d2a660f771d63577288123269b64896ecfb1ce680e394d8a8aea3f6750615ddb112
+EBUILD fdm-1.7.ebuild 991 SHA256 8302a80bdc8cf646a8605561a053a5dcd2193600619d39b582ec96281dd0347a SHA512 cddfbf40bd164a5bb4d95830d8ab4dd990482f7d51a75af9d30b887c907941d7b4878042956274ab5525b715236c3ca60c6a29289033672081c398634c76289c WHIRLPOOL c64c1726c746949720ebac0a29e7a43dcfec55646c225f969d18df68610908ae73fa5c586419c4dae3462c33c0218841a18790796f558db431b2aa34bb88d437
+EBUILD fdm-1.8.ebuild 1055 SHA256 f085b045abf59381b8dc2f76b6e14860fb706545a4119317c6f8bfd83c8651fe SHA512 2e67a0a22033cd129d1adbfdab588d991cb98f3cb4f04b8aed4ac85e31a3bcdd572f0846e9127ecd9b28e82fd3c5784f18543329f2e3bb71891717a62fdf5688 WHIRLPOOL 379c868b023be2dd58ae0ce87c79d68e919c2bd69df634898f64381f5d5e363cc9043a6af2e6a19d0f96f000414dbaf6a77807d7002920dfe7873a95712c43e7
+EBUILD fdm-1.9.ebuild 925 SHA256 616f4d68117cf04758e5229d7900b544a575fd9f238454162a940385b8146cda SHA512 dae397937fd70d3245d692bccf34e4d801133f0ac1db10d35039573546a753fc498ba210c09ad6aa8a858a99c5ce04185fdbd0fdbfc454ef80d544ad1591ca24 WHIRLPOOL 47e9394eb784358acaab5ccc2a4847f2b3f7973db7434d26f76a445cb8687e3d706691a48106ecb9ef67f95ad3dda0e7071ee2a61e16e8b5b6a8e22cb53104af
+MISC ChangeLog 2763 SHA256 ff732eb0f695a054d8ae770d8a50e68916701024977fff970f39ef11b3590785 SHA512 dbfe980297e8ebd272a6239d1b1caf2311653e5da2aea03cea0c7ea6d528bc5bff7a94bb246c9508cebda1c9265a0c20bc8fc2deca9ab30f7a7d1e8ab541bfa1 WHIRLPOOL 5ede8cdc4de22cf1a1ba405a43cb14a1cdd2eeee5eb2640a15b0624a624154e7d64e04e4b3c21208ee50ad0fe56eaf516ed1305d475c46031569535a8c268151
+MISC ChangeLog-2015 2174 SHA256 9755a45ae545d3d1a39cfddd53dd1a5ff18f007a8ddca3812a0debeb9ab436ce SHA512 67d3c36c4469f86b54ab526ca59fc8861b5103bf036458791b47ded51ec94b70e6445b7f3930e2bc95cb0d06ced8f5dcd4056e955b822196a73b0dc5058a68a4 WHIRLPOOL 0ad0e9c1b9d3145b04621173da28e88834d27e96b78ed09f5945c6a539c3219df8fe8e2c8dccce2040f86f28ec20886e03ed59c2731d6ea5c9e8f14afa8a025e
+MISC metadata.xml 476 SHA256 50491c0042afd19a27bfe64f290d5870e07234c1adb5d6523efe87903aa3c19a SHA512 0dbe01719cbaea9c6ee28e58cf7d608c72e1169ba65961100788960cbc03771ca8552299dc628b769132b82aa31a683b24853ba113b3bccc2417956d270d2908 WHIRLPOOL b46d09e9f3742ca71db01e82d2456378604defc27e418ef1069448c17c419c12d0281fb22f3546fe8ee4dcd69544f64ab000117e322c0bd8f94bf4d5c86d5059
diff --git a/net-mail/fdm/fdm-1.7.ebuild b/net-mail/fdm/fdm-1.7.ebuild
new file mode 100644
index 000000000000..0c5d011d77b0
--- /dev/null
+++ b/net-mail/fdm/fdm-1.7.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="fetch, filter and deliver mail"
+HOMEPAGE="http://fdm.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="courierauth examples pcre"
+
+DEPEND="dev-libs/openssl:0
+ sys-libs/tdb
+ courierauth? ( net-libs/courier-authlib )
+ pcre? ( dev-libs/libpcre )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewuser _fdm
+}
+
+src_prepare() {
+ rm Makefile || die
+ sed -e '/^FDEBUG=/s:=.*:=:' \
+ -e "/ifdef COURIER/aLIBS+=-L/usr/$(get_libdir)/courier-authlib" \
+ -i GNUmakefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ COURIER=$(use courierauth && echo 1) \
+ PCRE=$(use pcre && echo 1)
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man install
+ dodoc CHANGES README TODO
+ if use examples ; then
+ docinto examples
+ dodoc examples/*
+ fi
+}
diff --git a/net-mail/fdm/fdm-1.8.ebuild b/net-mail/fdm/fdm-1.8.ebuild
new file mode 100644
index 000000000000..f3143004b7cb
--- /dev/null
+++ b/net-mail/fdm/fdm-1.8.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="fetch, filter and deliver mail"
+HOMEPAGE="https://github.com/nicm/fdm"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="courierauth examples pcre"
+
+DEPEND="dev-libs/openssl:0
+ sys-libs/tdb
+ courierauth? ( net-libs/courier-authlib )
+ pcre? ( dev-libs/libpcre )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewuser _fdm
+}
+
+src_prepare() {
+ rm Makefile || die
+ sed -e '/^FDEBUG=/s:=.*:=:' \
+ -e "/ifdef COURIER/aLIBS+=-L${EROOT}usr/$(get_libdir)/courier-authlib" \
+ -e '/CPPFLAGS/s: -I/usr/local/include : :' \
+ -i GNUmakefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ COURIER=$(use courierauth && echo 1) \
+ PCRE=$(use pcre && echo 1)
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man install
+ dodoc CHANGES README TODO MANUAL
+ if use examples ; then
+ docinto examples
+ dodoc examples/*
+ fi
+}
diff --git a/net-mail/fdm/fdm-1.9.ebuild b/net-mail/fdm/fdm-1.9.ebuild
new file mode 100644
index 000000000000..149768ca55e5
--- /dev/null
+++ b/net-mail/fdm/fdm-1.9.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="fetch, filter and deliver mail"
+HOMEPAGE="https://github.com/nicm/fdm"
+SRC_URI="https://github.com/nicm/fdm/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="courierauth examples libressl pcre"
+
+DEPEND="!libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ sys-libs/tdb
+ courierauth? ( net-libs/courier-authlib )
+ pcre? ( dev-libs/libpcre )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewuser _fdm
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ COURIER=$(use courierauth && echo 1) \
+ PCRE=$(use pcre && echo 1)
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man install
+ dodoc CHANGES README TODO MANUAL
+ if use examples ; then
+ docinto examples
+ dodoc examples/*
+ fi
+}
diff --git a/net-mail/fdm/metadata.xml b/net-mail/fdm/metadata.xml
new file mode 100644
index 000000000000..0366e483b639
--- /dev/null
+++ b/net-mail/fdm/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <use>
+ <flag name="courierauth">Add support for Courier authentication library</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">fdm</remote-id>
+ <remote-id type="github">nicm/fdm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/fetchmail/Manifest b/net-mail/fetchmail/Manifest
new file mode 100644
index 000000000000..e0a4e1312d3e
--- /dev/null
+++ b/net-mail/fetchmail/Manifest
@@ -0,0 +1,13 @@
+AUX fetchmail-6.3.26-python-optional.patch 285 SHA256 06c88a081bd0fb92f069691f17fda9f6dda7bef68428c25467685290285c7cfa SHA512 38f39ea656d42852a05508caf6a2c444b47dea007265ca4373b4ebe7632c5477fb03edd4769576a79199425e3660ee098297beee19fa96f35301ed209b751e39 WHIRLPOOL 6c9f32831d7730669a45f57d5dae3211fd78b33ec59aff544a6594f8dfad507ba16d396866c07d66bf73c52594e0166a2411bb0e6db4a52dafe9bf1abc50d9f8
+AUX fetchmail-6.3.26-tests.patch 374 SHA256 c380ab23102d966e5a079df441b502d6d87065884a3f3e6b1da057092c1e1419 SHA512 9b65f3a70e52c25a90768228433f6c40da62d5627245ce862e23ebfae244209a9557731b7beec2be65b338c6670464fa0121b50c25154719cbc052c59f74841b WHIRLPOOL 3f7ba52be3e34b5fc4e6ceba2028c7c755dd252375a0de4588c3ee7796a69fad508e1a0af0fd04fc969836b9d0c50f2446e1511d68a35a8b764bd9e5de1036b3
+AUX fetchmail.conf 38 SHA256 09e82568992f79acc7be4aea217e420339705e790d4ba44217a30afe9a88a173 SHA512 f6e3eb409a1d88bcfb02012491fdbbf859803dbee45998879525fd35a2377bae95504da8aafcb24bcc2e695e15c96f6ec6f7e6521d28012370a4ec5e2a25a351 WHIRLPOOL 8f8452883893262d961bf70b607f7c7a07512900bce6ce1429675c7b18330764efd4a413bc3ec9efb6c9ed36fa00fbcd65bc7af99032bc569c0f22f114b8aa36
+AUX fetchmail.confd 297 SHA256 da3055b2474329ff24b77a0d0e3e32a71e50e433342eb69949b063367125eae4 SHA512 4dacd025d76a22c991c6dabe7c3d5b33b49348e83534d4de300a1b0d55a62dc0195e19065cb0a3a5da72f50700e7b92d4579be795a899f680e2a8be7dd508532 WHIRLPOOL 9105ec12feca4b38a837501b6e65f046b2eeefca9bf117a65b73e94099e7d10e5213547bda1c7da09bba6540272d467cb362cebe61bb57436e47b7a1dab95a42
+AUX fetchmail.initd 993 SHA256 ddf1a95ebe33532fe53178029cef9989beb15caa484d1d82d41384b0013e1259 SHA512 06091152111059425e86207e968ad5819eb67cd2dd264855e7b77a163b95591abc29befe4b3eb8bf2d2af105efb5006bb048f3db4ef3f8f4fafbb78767f69ebb WHIRLPOOL 8a2f0c6c8f613ef92ecca098431a215672cf3f6a78c7acac65611d548f1aa74daefbbed0298f3e828f66be58e11eac70630adc8e877dee44aad4fd4a0b3b15ac
+AUX fetchmail.service 204 SHA256 b76363eadbc7a4cc80719da0387507ccfdd18f134c65d6ae8a1e20430eb37756 SHA512 088d7ff2c473d4b514cc5349ba6f10bb7f29ace1141d152db082c801a9dd0e6144a2dd350e27e97f633aaf286c2daa5253e52b5c410737c44f3fd9b5b57bab75 WHIRLPOOL 883c10162088d36bc66b6100d33246e4869b1e488da08590ff83961347ce7a7eb73150724746c0fc33a77f70fb28a29a1d9227521deb84c2643a3e1a9e71d959
+AUX fetchmail_at.service 289 SHA256 9ad907a8c456e9f9135b6e425fe57259fd6c7f629dea3731c5e9b0b0be482a7a SHA512 4f8208a286f2868a466e69919b7c9d965da099b44675105689bcc52b0d16acc8d46e77f6b9a72968e82a6cf900e20d07a9a7373fe26a1ba9c925edf6663180ed WHIRLPOOL f2ac655454966d4ed92bee8e485d27bfe7ef2492406321fde70da848ac8216071b63a909633e46fab46abac8125254f393f0416577c186bd813553aa4eea9a9a
+DIST fetchmail-6.3.26.tar.xz 1283816 SHA256 79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850 SHA512 8e0a2484e60eaf6c0231e2599e10fec6d207fa1c0fa02ec99b3ef9aea00b6d87275434e79470a25f06e358cdd4a293f9c46a82dd128fe733a99c85144e6caa63 WHIRLPOOL 275d7b121a7fcec239e074d2dadc8d1645633d7f8335d760ceba98042b8b3bfe67cdacb9e247a072a8c587f821b23f89c1c7e654fd171ad4372dbb69bcf1021a
+EBUILD fetchmail-6.3.26-r2.ebuild 2462 SHA256 c2d6855a2b1475a34ca5fc0cb333605bae0ab7e27de814fd6e74470fb19f5f4f SHA512 2c1e61eff77d6f852686e29bdf80141ff416a8c875b53e47e383c40bcbe3a6cb0ffc2fa32ee12410aeb0ff2a13f7d100606675bd2eb240fcb71ccefd88f1ee5d WHIRLPOOL 66fb1c571e5215e078eee2e219026afbab4e1e679091d252784dbd3b2bcd0b582153be8d049bffea082b1b5703787bbec7d777140c17c1077b3d75bef0cba39e
+EBUILD fetchmail-6.3.26-r3.ebuild 2529 SHA256 ff4fde237169eca7ae3affc6de677b2c90046895b5e099e231dee4eab41c7797 SHA512 701fd1fca24e49fa5be8387f125b2ba472e5856d89851b69d2dce3680a050d830fc211d7482ddca79d418a8c27ebb2f173f8a55b5aaaa083a1c2580f87fa7cae WHIRLPOOL 8bda730cfabbaa78a181730b96a39822c0bd33909fd5b741eaf9265f0afbe795d271ddbc2db2ff8dbbbc86c43a4392755a99e3c3f09aa2de0c78a4b3f5a3599e
+MISC ChangeLog 2760 SHA256 5efdcc59e9e613e976437648e88ac9938454502f1d695c019ab64ae856b29819 SHA512 bfdb5d7abeb1685e60a536a354f40526c71db1450198eedaae2290d284d506f9bf3cf58747da63a10836f640bba5714f6d947939b5721b1126dbe810060f2dbd WHIRLPOOL 960904e1e4faa451fe9a6036729db08f52029830cc71a7642af0652d3b810f62600a56247caaee9ae26856fbf2a505b1d7577444cb9b1c68759898b3c5e15170
+MISC ChangeLog-2015 38353 SHA256 1dd9e96b9ccff1aa28c6f90c206326c0de56ab717db4f8036c09c1a105c1a0da SHA512 8bae65e98056a8e84cec370b8791feec075a7bf23db54dcba37f06e3a2e2c9c0b11b4b97c96f70fccd53a272df29d57942a49fbd87ee26c8df0b6ec429925092 WHIRLPOOL fc55fb54bb38267165cbbcb38ca269d4ae240ea90430c844b23135b52d84eeaca83db21284997a18d154f1d40b71020dd17da79369ff4b319ca4f93ad0b36c83
+MISC metadata.xml 570 SHA256 5490391a3e2533690f658512bb4f18ea3e10fc7e31d8bb6e541601590a1ca9cc SHA512 446f71d0bfbfc84d52d8f99ad13574976366edebcf38d14573056ab093cfe5406a6198e980430319e681d86dd33e9d96a390b744cd31b345681334232b8e949e WHIRLPOOL 3f89b90e11d51ad3f0cfab53f5ac159dabf6b77294c062f6ddaaf5659b5b5d2822bab5f9c16c59192e2dfff86002f6f91655f8a932da7699dab99b28de44bcc7
diff --git a/net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild b/net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild
new file mode 100644
index 000000000000..3ba19eb6b659
--- /dev/null
+++ b/net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="tk"
+
+inherit python-single-r1 user systemd toolchain-funcs autotools eutils
+
+DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
+HOMEPAGE="http://www.fetchmail.info/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="ssl nls kerberos hesiod tk socks"
+REQUIRED_USE="tk? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="hesiod? ( net-dns/hesiod )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ kerberos? ( virtual/krb5 >=dev-libs/openssl-0.9.6 )
+ nls? ( virtual/libintl )
+ !elibc_glibc? ( sys-libs/e2fsprogs-libs )
+ socks? ( net-proxy/dante )
+ tk? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ sys-devel/flex
+ nls? ( sys-devel/gettext )"
+
+DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+
+ use tk && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # don't compile during src_install
+ use tk && : > "${S}"/py-compile
+
+ epatch "${FILESDIR}"/${P}-python-optional.patch
+ epatch "${FILESDIR}"/${P}-tests.patch
+ eautoreconf
+}
+
+src_configure() {
+ use tk || export PYTHON=:
+
+ econf \
+ --enable-RPA \
+ --enable-NTLM \
+ --enable-SDPS \
+ $(use_enable nls) \
+ $(use_with ssl ssl "${EPREFIX}/usr") \
+ $(use kerberos && echo "--with-ssl=${EPREFIX}/usr") \
+ $(use_with kerberos gssapi) \
+ $(use_with kerberos kerberos5) \
+ $(use_with hesiod) \
+ $(use_with socks)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ # fetchmail's homedir (holds fetchmail's .fetchids)
+ keepdir /var/lib/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN}
+ fperms 700 /var/lib/${PN}
+
+ default
+
+ dohtml *.html
+
+ newinitd "${FILESDIR}"/fetchmail.initd fetchmail
+ newconfd "${FILESDIR}"/fetchmail.confd fetchmail
+ systemd_dounit "${FILESDIR}"/${PN}.service
+ systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
+
+ docinto contrib
+ local f
+ for f in contrib/* ; do
+ [ -f "${f}" ] && dodoc "${f}"
+ done
+
+ use tk && python_optimize
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Please see /etc/conf.d/fetchmail if you want to adjust"
+ elog "the polling delay used by the fetchmail init script."
+ fi
+}
diff --git a/net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild b/net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild
new file mode 100644
index 000000000000..eae9513c0d11
--- /dev/null
+++ b/net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="tk"
+
+inherit python-single-r1 user systemd toolchain-funcs autotools eutils
+
+DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
+HOMEPAGE="http://www.fetchmail.info/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="ssl nls kerberos hesiod tk socks"
+REQUIRED_USE="tk? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="hesiod? ( net-dns/hesiod )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ kerberos? ( virtual/krb5 >=dev-libs/openssl-0.9.6 )
+ nls? ( virtual/libintl )
+ !elibc_glibc? ( sys-libs/e2fsprogs-libs )
+ socks? ( net-proxy/dante )
+ tk? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ sys-devel/flex
+ nls? ( sys-devel/gettext )"
+
+DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+
+ use tk && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # don't compile during src_install
+ use tk && : > "${S}"/py-compile
+
+ epatch "${FILESDIR}"/${P}-python-optional.patch
+ epatch "${FILESDIR}"/${P}-tests.patch
+ eautoreconf
+}
+
+src_configure() {
+ use tk || export PYTHON=:
+
+ econf \
+ --enable-RPA \
+ --enable-NTLM \
+ --enable-SDPS \
+ $(use_enable nls) \
+ $(use_with ssl ssl "${EPREFIX}/usr") \
+ $(use kerberos && echo "--with-ssl=${EPREFIX}/usr") \
+ $(use_with kerberos gssapi) \
+ $(use_with kerberos kerberos5) \
+ $(use_with hesiod) \
+ $(use_with socks)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ # fetchmail's homedir (holds fetchmail's .fetchids)
+ keepdir /var/lib/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN}
+ fperms 700 /var/lib/${PN}
+
+ default
+
+ dohtml *.html
+
+ newinitd "${FILESDIR}"/fetchmail.initd fetchmail
+ newconfd "${FILESDIR}"/fetchmail.confd fetchmail
+
+ systemd_dounit "${FILESDIR}"/${PN}.service
+ systemd_newunit "${FILESDIR}"/${PN}_at.service "${PN}@.service"
+ systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
+
+ docinto contrib
+ local f
+ for f in contrib/* ; do
+ [ -f "${f}" ] && dodoc "${f}"
+ done
+
+ use tk && python_optimize
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Please see /etc/conf.d/fetchmail if you want to adjust"
+ elog "the polling delay used by the fetchmail init script."
+ fi
+}
diff --git a/net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch b/net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch
new file mode 100644
index 000000000000..2eafe4dcbb24
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch
@@ -0,0 +1,14 @@
+--- fetchmail-6.3.26/Makefile.am
++++ fetchmail-6.3.26/Makefile.am
+@@ -16,9 +16,11 @@
+ pys= fetchmailconf.py
+ pym= fetchmailconf.man
+
++if HAVE_PYTHON
+ nodist_bin_SCRIPTS= fetchmailconf
+ python_PYTHON= $(pys)
+ dist_man1_MANS+= $(pym)
++endif
+
+ CLEANFILES= $(nodist_bin_SCRIPTS)
+
diff --git a/net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch b/net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch
new file mode 100644
index 000000000000..a0b3e8b5dfbb
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch
@@ -0,0 +1,11 @@
+--- fetchmail-6.3.26/Makefile.am
++++ fetchmail-6.3.26/Makefile.am
+@@ -45,7 +47,7 @@
+ check_PROGRAMS=
+
+ TESTS= t.smoke t.validate-xhtml10 t.validate-xhtml t.x509_name_match
+-TESTS_ENVIRONMENT= srcdir="$(srcdir)" LC_ALL=C TZ=UTC SHELL="$(SHELL)" $(SHELL)
++TESTS_ENVIRONMENT= srcdir="$(srcdir)" LC_ALL=C TZ=UTC SHELL="$(SHELL)"
+
+ if NEED_TRIO
+ noinst_LIBRARIES+= libtrio.a
diff --git a/net-mail/fetchmail/files/fetchmail.conf b/net-mail/fetchmail/files/fetchmail.conf
new file mode 100644
index 000000000000..07945f876468
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail.conf
@@ -0,0 +1 @@
+d /run/fetchmail 700 fetchmail nobody
diff --git a/net-mail/fetchmail/files/fetchmail.confd b/net-mail/fetchmail/files/fetchmail.confd
new file mode 100644
index 000000000000..67feed2e6401
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail.confd
@@ -0,0 +1,9 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Polling frequency in seconds
+# (fetchmail will daemonize and check for new mail at this interval)
+polling_period="60"
+
+# Directory where the pid file is kept
+pid_dir="/var/run/fetchmail"
diff --git a/net-mail/fetchmail/files/fetchmail.initd b/net-mail/fetchmail/files/fetchmail.initd
new file mode 100644
index 000000000000..f967e5aed552
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail.initd
@@ -0,0 +1,44 @@
+#!/sbin/openrc-run
+
+piddir=${pid_dir:-/var/run/fetchmail}
+pid_file=${piddir}/${RC_SVCNAME}.pid
+rcfile=/etc/${RC_SVCNAME}rc
+
+depend() {
+ need net
+ use mta
+}
+
+checkconfig() {
+ if [ ! -f ${rcfile} ]; then
+ eerror "Configuration file ${rcfile} not found"
+ return 1
+ fi
+ local fetchmail_instance
+ fetchmail_instance=${RC_SVCNAME##*.}
+ if [ -n "${fetchmail_instance}" -a "${RC_SVCNAME}" != "fetchmail" ]; then
+ fidfile=/var/lib/fetchmail/.fetchids.${RC_SVCNAME}
+ else
+ fidfile=/var/lib/fetchmail/.fetchids
+ fi
+ if [ ! -d ${piddir} ]; then
+ checkpath -q -d -o fetchmail:fetchmail -m 0755 ${piddir} || return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ${RC_SVCNAME}"
+ start-stop-daemon --start --pidfile ${pid_file} \
+ --user fetchmail --exec /usr/bin/fetchmail \
+ -- -d ${polling_period} -f ${rcfile} \
+ --pidfile ${pid_file} -i ${fidfile}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping ${RC_SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile ${pid_file}
+ eend ${?}
+}
+
diff --git a/net-mail/fetchmail/files/fetchmail.service b/net-mail/fetchmail/files/fetchmail.service
new file mode 100644
index 000000000000..954f06e27be0
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=A remote-mail retrieval utility
+After=network.target
+
+[Service]
+User=fetchmail
+ExecStart=/usr/bin/fetchmail -d 60 -f /etc/fetchmailrc
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/fetchmail/files/fetchmail_at.service b/net-mail/fetchmail/files/fetchmail_at.service
new file mode 100644
index 000000000000..7e23bf1ed2a4
--- /dev/null
+++ b/net-mail/fetchmail/files/fetchmail_at.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=A remote-mail retrieval utility for %i
+After=network.target
+
+[Service]
+User=fetchmail
+ExecStart=/usr/bin/fetchmail --pidfile %t/fetchmail/fetchmail-%i.pid -i /var/lib/fetchmail/.fetchids.%i -f /etc/fetchmailrc-%i -d 60
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/fetchmail/metadata.xml b/net-mail/fetchmail/metadata.xml
new file mode 100644
index 000000000000..f94033e0aa90
--- /dev/null
+++ b/net-mail/fetchmail/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="hesiod">Enable support for hesiod</flag>
+ <flag name="tk">Enable support for Tk GUI toolkit, in particular it installs fetchmailconf</flag>
+ <flag name="socks">Enable support for socks proxy</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">fetchmail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/gensig/Manifest b/net-mail/gensig/Manifest
new file mode 100644
index 000000000000..79cebaf3e7a3
--- /dev/null
+++ b/net-mail/gensig/Manifest
@@ -0,0 +1,5 @@
+DIST gensig-2.3.tar.gz 96744 SHA256 fbb7c90f3d5800058ce43cffa6345b18b3ce619164e724548c16967b797de48f SHA512 2d54f85be472f94f0c5edccc1d84d3c140e8f91d8d9dd50f404ec3a9856c2a5a9f74e6f6e315243c4d5cc60c9a817c8c50501056c2327f65e3218952e6e44aec WHIRLPOOL 9cd5a2d5a299e14e8e32f2c81cc0be458af8f7f177481963f3f19cc5eca4119af3352fd6db9009f288671d3a857e2ef3b44e311ee72ab296f5662d890d4d6541
+EBUILD gensig-2.3.ebuild 382 SHA256 19a78ef94b0158c7c65c6446cb6016f0cb245d9a39aa966da3655d87c677a063 SHA512 eed771b1aeefe5b42d938001298cc95f39def653546b96f665191c04c57438891d37515e1e94b08fc24d2b7527bb2b0d0b94f384bb16e63b53a6fbd4dec144b9 WHIRLPOOL d65b1592d504edccc6393a5a16c7484e3c365fc84dc9f91fc9819430466004248c7a5d06e566adde7c3c98894dbccfa534a4f784d85b75c20a0421c06248b2a1
+MISC ChangeLog 2420 SHA256 32366569f1f67eec7d9e56f034f68b33f8f69e939146c5f918dafbc1c5e011b5 SHA512 d2d3406f40310f17653060c13456cd6741640dd65efee2e531b4a881223646c71edf01c1d1fddb9e07292270854eeefa852038c9a766cbc21e6d7bd46adf1ab5 WHIRLPOOL 858935780996edc2505ea2f6e852490bcf11e74e230e60a80aaf01168192bc44cf27a2b1eda2ec92d66a675800d5f0f15eea9fae7cef6a58f0c93d6e4445a6ea
+MISC ChangeLog-2015 1029 SHA256 51a501ed52969f9ae82e10566ee2454c855aa80dfd481a8194c21ebbda27e131 SHA512 1244367fc52ca453f652c33a9cf7ee9d783e2b35f565771271ce4e89bcfcd19ff9983cb8e06af4ecf2d2435a257e5c0cee788a74771d208196766bcead5393fe WHIRLPOOL 284310cb049e5d6b8290307666dd95d7590f653263a7a10ce85bb4a176be4f29c8e224dd5c58f8f32b46b5c567fa6e307390436ca06b2a690d319825f2d3249a
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/gensig/gensig-2.3.ebuild b/net-mail/gensig/gensig-2.3.ebuild
new file mode 100644
index 000000000000..f2064574f115
--- /dev/null
+++ b/net-mail/gensig/gensig-2.3.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Random ~/.signature generator"
+HOMEPAGE="http://www.geekthing.com/~robf/gensig/ChangeLog"
+SRC_URI="http://www.geekthing.com/~robf/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+DEPEND=""
+
+src_install () {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-mail/gensig/metadata.xml b/net-mail/gensig/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/gensig/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/getmail/Manifest b/net-mail/getmail/Manifest
new file mode 100644
index 000000000000..a881ef1890bd
--- /dev/null
+++ b/net-mail/getmail/Manifest
@@ -0,0 +1,7 @@
+DIST getmail-4.54.0.tar.gz 192000 SHA256 d45657945353c68785b106dd9c5fae6bc2cec8f99fbb202d9dddd4967f483a65 SHA512 006503c6b5f523ad409d99e7e520b4801f1610d47aba70a1a8044380449cbd6a39a6d74ed2b940d317382111adedd3b45d9fa4dc614ce00821937da5186e08d5 WHIRLPOOL 977912bac3f492f2168ed1f892b4973ae70a0daaa21ca3f0622a4156646d9ec1dc9272b18de9ff3b4e4e9e59bbdba779f758f3066775aeea9bcde2bfd3f8a80e
+DIST getmail-5.4.tar.gz 194884 SHA256 ba896f7b3fbae4e9e79f7135e6c2b10b281170d2877b91fb2b265c927ed29ac7 SHA512 6557cc46df1d31116f9d28cda1232737c01a568e6ada44edb14cdec30a42160966e1e69f42c46855ce139c3b70d77747324adda8abff3dd772a54a79015b0050 WHIRLPOOL 5dffecaf8dfe96e052368d0df0632f9ef0c98064bcdb40bae2a5e35e37f144cf1cbdda847b627a6b62bd4fb40dcf4465fb4279fcf3d26da81b6641581b4e0ad0
+EBUILD getmail-4.54.0.ebuild 638 SHA256 14d8129065e03118b0f378e0964a1893a7b60b2700c417ac29b42c49da65f37c SHA512 f48009f9e1103f55c0d8b567cd00d05c53bee812e1c1f3e85444f115e8068f2ed214fd148065671ab24bd982947ee027b7eff49c9a94b817dba810f6b4706a08 WHIRLPOOL 90b38413c7abd3614c985ec801fa3c71aaf37a294a10bca563b8d40f44badd8e3617be0c85254fffd38a06813745ae2ab2753eff11d70d0b3b833aafb7e86eee
+EBUILD getmail-5.4.ebuild 641 SHA256 6d167956f29b839c5b7f71bf980062a272f5b5d2a59353c2528ede25c8772c75 SHA512 d4430e8e529bc431dd195c88c3c1aeaa8f5ae27bcff0c8f87031921e8f508c7a4bfc5271a1f063893bde4dd95cc8f7cdd8135b691c383ae2e5f1019e9e63c804 WHIRLPOOL adb01b13ac09195fcfa4ccf9a36d119c8fc432b3b33eca05fd4738894a5ddd2fd36a8d11926ceb380349de2bc96afcc24ed2b7101bd6bba24c9d2618a8643ab2
+MISC ChangeLog 3516 SHA256 57b76384403c538b5b76729f8b2e4d87534668f5e5f1c8984ca64e4873d53208 SHA512 14cd5cbda896b8e7db96d3c7a0c118b27594ec6e97f5e263b615384e746b8e8cc95912a73ec6508248ba2fd64dc02018097341980d19e8cf53b5b15f5d51b5e4 WHIRLPOOL 31fbdd20e6be2f2299ca2b7403d48ab719b436f0806e7fcc0e0e8981641e9b7fb13b42fdd3f4738a031f10ea35b7c0e34e01e63a7c2c2ebf63448125f8b00a92
+MISC ChangeLog-2015 31131 SHA256 f59838362a21225713dd8a11a53596ce18a76e5369804f71e2689badfe58d514 SHA512 fa16ba79adc33893eb2f48afb699fa661903e7141c4355c18333f2caff72bde77b14ce4830acb7523a41d4014480a56b04e29e25f006506c4ce76ac578e0dd8f WHIRLPOOL c2d9beb958a7dbe27c6ca993239fe259b4bcc96a0d5108f34c3e6ff94554d7910cd1dce5d21160fb5cb61d991a8e31432d0af45b7369f32625559e8b5347a160
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/getmail/getmail-4.54.0.ebuild b/net-mail/getmail/getmail-4.54.0.ebuild
new file mode 100644
index 000000000000..2fadbd7fdfea
--- /dev/null
+++ b/net-mail/getmail/getmail-4.54.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="A POP3 mail retriever with reliable Maildir and mbox delivery"
+HOMEPAGE="http://pyropus.ca/software/getmail/"
+SRC_URI="http://pyropus.ca/software/getmail/old-versions/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="amd64 ppc x86 ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE="ssl"
+
+python_prepare_all() {
+ sed -i -e "s,'getmail-%s' % __version__,'${PF}'," \
+ -e "/docs\/COPYING/d" "${S}"/setup.py || die
+
+ distutils-r1_python_prepare_all
+}
diff --git a/net-mail/getmail/getmail-5.4.ebuild b/net-mail/getmail/getmail-5.4.ebuild
new file mode 100644
index 000000000000..a213f82d8658
--- /dev/null
+++ b/net-mail/getmail/getmail-5.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="A POP3 mail retriever with reliable Maildir and mbox delivery"
+HOMEPAGE="http://pyropus.ca/software/getmail/"
+SRC_URI="http://pyropus.ca/software/getmail/old-versions/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE="ssl"
+
+python_prepare_all() {
+ sed -i -e "s,'getmail-%s' % __version__,'${PF}'," \
+ -e "/docs\/COPYING/d" "${S}"/setup.py || die
+
+ distutils-r1_python_prepare_all
+}
diff --git a/net-mail/getmail/metadata.xml b/net-mail/getmail/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/getmail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/gnubiff/Manifest b/net-mail/gnubiff/Manifest
new file mode 100644
index 000000000000..aeda42efd221
--- /dev/null
+++ b/net-mail/gnubiff/Manifest
@@ -0,0 +1,10 @@
+AUX gnubiff-2.2.15-fix-nls.patch 427 SHA256 03dfa95ccb1a404b3700a43720f13681840a312bbe0dbda22bf0057feebe0977 SHA512 6eacfb95520449bc5ecb5183ffbf8e2362157dfd75af4ec749cd54fc75de38177d70a12ac446f1e1cba158d64b151b85ec37f011ad0822ea45659c21e8b9984f WHIRLPOOL 61be2c18ae71e345742db458c27d358ade5bf5e5b58c4ca7ed3cd7098200ee714afdcf46fb8b72a49762e24e6d4cff3c8604745d0d71d51b51f94a797c104b49
+AUX gnubiff-2.2.15-gold.patch 511 SHA256 d0086f1c762e66d18e41d604606a82c3e4f070fa538142d70d160621a478b7a4 SHA512 3811028380a2a8d2cf641ec15c4a0645ead86008f478137767e8b9e6fd4ced2421050c3d9163b01a47830e2e09af62e0af6155d17e8a5f165baa4779a0ce02b6 WHIRLPOOL c2041e352937ff0aea0ef7f06cf12887da956e476ab6e197aec078d81c096e471cfef4a45adfbfdc8a7fa6a9f22dcf7449ae992c2ca6871e288f0125586d077e
+AUX gnubiff-2.2.15-underlink.patch 337 SHA256 ead14aa6e9be136dba5557e06c41e2c6a4ba8eef2cffe78c3fd863fa228cb87f SHA512 6d03040784eed725848cde01533304e33c8b0045e0488936a9782ec2edcb8492ebd47fb263ff142510e0e96c06e60c3de84bb074171e54ad2860e6b3c1d4eeb4 WHIRLPOOL 39bf4c414fc786d19e3f032a4fd51d6c09cfad3a924a37960066ab52e77c8aedac985ac56b7eae448c22e4614f83af66adc8a91ffc7a35092873d8ae4da8005a
+DIST gnubiff-2.2.15.tar.gz 851638 SHA256 1565af4084f1f6335ab4df412e60bca14591cc2ca35db60d950972b7240f80d9 SHA512 592a9934f34cec65869bef6bb7a488fd1a44515d513e47b440a36ef15ff9c44dbedb33c27e375ac6cc9590d9a0f02b315307913059f3d7e44ee64a87d95f52c4 WHIRLPOOL ac04fdb2aab577cc93df5aeef82ea3a93200728d6fbc0bdd3172dda011aad5507b6b448515dda1b1d855b2074891afb7ac983f5bfafbd6af2d31d7a5d72c8274
+DIST gnubiff-2.2.17.tar.gz 897817 SHA256 e616ab031d493e4b9b27a2bccc810e4b2ada912b3cf8d44f39325cbc5293fb2c SHA512 2fe715d584fb057255d4922275de152ff5b1167abcbdd27d33124921a4c659c3db301944a73d58622ecd22f62615d44b5bebb83838bbd53c67a2dd8286592d89 WHIRLPOOL b0d7b793b3bb3d70479e1701721eee4d5c54014eaa9498c4bb2aaffe398c95ced55ff71f6d700214b0eb4002d053126d14b20758b522b0ec9b7c28d7b6956909
+EBUILD gnubiff-2.2.15-r2.ebuild 1077 SHA256 bc61674873a9745a46b9dea8a523ba02977fcbeb02bc0fb7dc10383c90d45b20 SHA512 c673ae24f23dbd097bdfcaa68be4a456f8a77a790881e406ffdef3f7b9f15cf0c6878f22aaaa0440c5aba6412bf012d6c1e15df2b4fbf2a1b3ba121dbd3894ed WHIRLPOOL ea85001bc53bbae291f794eb8735b4c202dbe0cc1e98130db3222a4d25b22c8aa1b50686a4f789acfa06c57749903115b902cbb58a44830a849cba493534943c
+EBUILD gnubiff-2.2.17.ebuild 1127 SHA256 a6310dc13f2003a62c35ab244538a1bc1abd23008aab28884ee03a98eb8b51cb SHA512 2bfd8d085705f1dc3cad98f00c6a49c7ac9ae44262f8118728f8c263a06f5bf7eed406184028d49f472503025e6f8521db4b22a26ecbf43bcbeab6bd9b53243e WHIRLPOOL c205cf0638156b5e87ab23e300dfd79d40db856be6f3d1b0e52c3133d58ec81401fea78db25942665e33bad560674c137339b12cd7ed9c5da5a898efb1874543
+MISC ChangeLog 2549 SHA256 2d8e21e70749e9f9cb3bc6ed0fad8a7feba9ba7d4667dbfb318effac0185e01b SHA512 4682d5daa9f6bc54b172d21b00cd697de1dd5dc69e2bab63c15b4bb9339fc84f389e3f069ab2e51031f40b5686502d1d3e5a524c5d5b17770d6d2fde93bd57fc WHIRLPOOL a5a2338037e5143bf7aa543a44ce8317a8d9dad3c39318596f42df4f46988eb5dd52358205c6ab11233f5bd6a0585af74473f4576a8cf1a9dd9c677108e476d2
+MISC ChangeLog-2015 7337 SHA256 70d4f89d103de5f2ce85e7b9c06e05bb180bf5784f9d85dada7af3bea4419be3 SHA512 a4f93dabf5e2d8361e2fb9f08b7ae6d425924ba25833ce50621e7c285b1e1d0c0ce11e481a0472a139e4df90ca61710ab007661d5a7c37354613aa280b3f1d1f WHIRLPOOL a2dd8f66cc670b0e33fe874fc388d2b1188461e8dad5e5394e884f801b5be1729621f544c44791f28822e9d329eb52c67dbe935332bfd5a613ef677fe9359c96
+MISC metadata.xml 441 SHA256 4c028b40789978877d0d7140c5afcc65f87a912587ab7e7693fb9593f8b4973a SHA512 05e73c040168ab771d6b48e72ad1f24ff2e85fd6aef619f0bff8cc06b0f0ffd52816ee48ae2c3d7c58fab4630242c9d20945ea8a06698db7f768074328690a27 WHIRLPOOL 2b7e1d2191d8cc2241bfe7a8c02a549d4c55f91be7574276f729b4bf0ab60320d9f1b12d844fceefb1b2d37fed5a224e02b26d00c5078426b65067036b3c7317
diff --git a/net-mail/gnubiff/files/gnubiff-2.2.15-fix-nls.patch b/net-mail/gnubiff/files/gnubiff-2.2.15-fix-nls.patch
new file mode 100644
index 000000000000..db83cde41676
--- /dev/null
+++ b/net-mail/gnubiff/files/gnubiff-2.2.15-fix-nls.patch
@@ -0,0 +1,14 @@
+--- src/nls.h 2009-01-01 16:45:39.000000000 -0800
++++ src/nls.h 2010-10-01 17:13:03.595458860 -0700
+@@ -49,11 +49,6 @@
+ #else
+ # define _(String) (String)
+ # define N_(String) (String)
+-# define textdomain(String) (String)
+-# define gettext(String) (String)
+-# define dgettext(Domain,String) (String)
+-# define dcgettext(Domain,String,Type) (String)
+-# define bindtextdomain(Domain,Directory) (Domain)
+ #endif
+
+ #endif
diff --git a/net-mail/gnubiff/files/gnubiff-2.2.15-gold.patch b/net-mail/gnubiff/files/gnubiff-2.2.15-gold.patch
new file mode 100644
index 000000000000..fa31316671fd
--- /dev/null
+++ b/net-mail/gnubiff/files/gnubiff-2.2.15-gold.patch
@@ -0,0 +1,17 @@
+Author: Eray Aslan <eras@gentoo.org>
+Date: Sat Jun 4 19:54:16 2011 +0000
+
+ do not underlink - needed for gold
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -117,6 +117,9 @@ AC_CHECK_LIB(ssl, AES_encrypt, AC_DEFINE_UNQUOTED(HAVE_AES, 1,
+ Define to 1 if AES encryption is available), [
+ AC_CHECK_LIB(crypto, AES_encrypt, AC_DEFINE_UNQUOTED(HAVE_AES, 1))])
+
++dnl needed for gold
++AC_CHECK_LIB([X11],[XSync])
++
+ dnl GLIB, GTK, ...
+ GTK_REQUIRED="gtk+-2.0 >= 2.6"
+ GDK_PIXBUF_REQUIRED="gdk-pixbuf-2.0 >= 2.4"
diff --git a/net-mail/gnubiff/files/gnubiff-2.2.15-underlink.patch b/net-mail/gnubiff/files/gnubiff-2.2.15-underlink.patch
new file mode 100644
index 000000000000..a3f8ee9c75d8
--- /dev/null
+++ b/net-mail/gnubiff/files/gnubiff-2.2.15-underlink.patch
@@ -0,0 +1,12 @@
+Bug #456302
+--- configure.ac 2013-02-15 13:15:01.306855243 +0200
++++ configure.ac 2013-02-15 13:20:07.921188143 +0200
+@@ -120,6 +120,8 @@
+ dnl needed for gold
+ AC_CHECK_LIB([X11],[XSync])
+
++AC_CHECK_LIB([gthread-2.0],[g_thread_init])
++
+ dnl GLIB, GTK, ...
+ GTK_REQUIRED="gtk+-3.0 >= 3.0.0"
+ GMODULE_REQUIRED="gmodule-export-2.0 >= 2.4"
diff --git a/net-mail/gnubiff/gnubiff-2.2.15-r2.ebuild b/net-mail/gnubiff/gnubiff-2.2.15-r2.ebuild
new file mode 100644
index 000000000000..42858029624e
--- /dev/null
+++ b/net-mail/gnubiff/gnubiff-2.2.15-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A mail notification program"
+HOMEPAGE="http://gnubiff.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug fam nls password"
+
+RDEPEND="
+ >=x11-libs/gtk+-3:3
+ >=gnome-base/libglade-2.3
+ dev-libs/popt
+ password? ( dev-libs/openssl )
+ fam? ( virtual/fam )
+ x11-proto/xproto
+ x11-libs/libX11
+ x11-libs/pango
+ x11-libs/gdk-pixbuf
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS="AUTHORS ChangeLog NEWS README THANKS TODO"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-fix-nls.patch \
+ "${FILESDIR}"/${P}-gold.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+ eautoreconf
+}
+
+src_configure() {
+ # note: --disable-gnome is to avoid deprecated gnome-panel-2.x
+ econf \
+ --disable-gnome \
+ $(use_enable debug) \
+ $(use_enable nls) \
+ $(use_enable fam) \
+ $(use_with password) \
+ $(use_with password password-string ${RANDOM}${RANDOM}${RANDOM}${RANDOM})
+}
diff --git a/net-mail/gnubiff/gnubiff-2.2.17.ebuild b/net-mail/gnubiff/gnubiff-2.2.17.ebuild
new file mode 100644
index 000000000000..a370cd6f9114
--- /dev/null
+++ b/net-mail/gnubiff/gnubiff-2.2.17.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A mail notification program"
+HOMEPAGE="http://gnubiff.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug fam nls password"
+
+RDEPEND="
+ >=x11-libs/gtk+-3:3
+ >=gnome-base/libglade-2.3
+ dev-libs/popt
+ password? ( dev-libs/openssl:* )
+ fam? ( virtual/fam )
+ x11-proto/xproto
+ x11-libs/libX11
+ x11-libs/pango
+ x11-libs/gdk-pixbuf
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS="AUTHORS ChangeLog NEWS README THANKS TODO"
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-2.2.15-fix-nls.patch"
+ eapply -p1 "${FILESDIR}/${PN}-2.2.15-gold.patch"
+ eapply -p0 "${FILESDIR}/${PN}-2.2.15-underlink.patch"
+ eautoreconf
+ eapply_user
+}
+
+src_configure() {
+ # note: --disable-gnome is to avoid deprecated gnome-panel-2.x
+ econf \
+ --disable-gnome \
+ $(use_enable debug) \
+ $(use_enable nls) \
+ $(use_enable fam) \
+ $(use_with password) \
+ $(use_with password password-string ${RANDOM}${RANDOM}${RANDOM}${RANDOM})
+}
diff --git a/net-mail/gnubiff/metadata.xml b/net-mail/gnubiff/metadata.xml
new file mode 100644
index 000000000000..7e7f9569f9c5
--- /dev/null
+++ b/net-mail/gnubiff/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="password">Enable save passwords to connect mail servers in user space</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gnubiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/grepmail/Manifest b/net-mail/grepmail/Manifest
new file mode 100644
index 000000000000..134a58b5bab0
--- /dev/null
+++ b/net-mail/grepmail/Manifest
@@ -0,0 +1,7 @@
+AUX 5.30.33-fix_nonexistent_mailbox_test.patch 1138 SHA256 6ac814335b1f54e11ef2f99810b7ad5b17b2cb125ab5eb094982aca420707daa SHA512 88c3123ea5031a9d925cf8c7464b53290a4015faf43b2ef5a0543698d8374e45b93291bf1eefe636b52ba4a8d1a9ebf2dc3a9261572bfd5bcc9f16f1671e8969 WHIRLPOOL c226cd94961e3c0acbdd55903696cdef77bd91c224b3d8fecdc5aadd374f560d2ce1fc0eccf860e5ec0ca583cddc6e1440b9d5576e834a1f5212ea1c6fade257
+AUX 5.30.33-midnight.patch 560 SHA256 cf415d66e62eb7e42f3bff1423e7bac778c26c65f4841b9e8bdef4e0ca4971d7 SHA512 41ce56d0a2371bcc527f997825530e87ad0199c78605ea72567255cb985158fa56e669aeea966a547ccd970231bda1a5da783320fda1568642890e9832c69775 WHIRLPOOL 2b6fc049f524a0829c5d54e1114bff35485b31ea45c3c207f05fa57a024a4472732b709c845d12aa6ef5d69f4a10a85da753bf49dc6c0b825c4d57d8bd1eb6c5
+DIST grepmail-5.3033.tar.gz 536791 SHA256 2ba3ed6839b62bbee5e52a5caafe0700fe27ca31473d32ba062e4736a8f7b6b5 SHA512 58fb63c42b534ba32d8224753cd11701adc3ab6eeca838753982cd6fdc46c05142eeb34106ae585b48698c299648cc2e0135215900ce28dd7c84921c8ad7831f WHIRLPOOL f481ae4afe31441c1fb111b6be3d0dd4c080c0661341309cf62e1f62529ed31d556bbf1e44251433aaf143aefacb4d159d1e236fa2a1e53d1bab9f750af457c5
+EBUILD grepmail-5.30.33-r2.ebuild 1013 SHA256 e5c309c885e3bc92e09917856d2830e75a2017d81bf3cefd6bb60d061c4e8ec3 SHA512 657ff78259ac9ed5d4547b4a7067bac0c4b7409e66f587f18366948c3d2fb897f6a4de1fa8eb47c5dca69164ecc3fc4363cbed1db501cad97362cceaa4aac254 WHIRLPOOL 11b973b8f1d41c8b896208399f2d2b5c7516dc16f498e3b3dec032355d85b5e2233ebafbc86964f630de0acdb9b7556ab620418c461d42d29e03247a4e5e5724
+MISC ChangeLog 2687 SHA256 fe5d8385d3903e3b5f47f78ff2223e83543cbd5c89babc47babbabfae85930e6 SHA512 0df429896417c7ac15fe88cc01b86db0d037a81fc1bf3cb6f30aa096029d4fdda8ee1de9307a3b22ab5750c8091c27c202e14e39899736a09f05f4cab4e7286e WHIRLPOOL 802728b07e486feede7366075f8f1a97b57ddfae0d9e51bc1edb111a9bd6ff4fb3a97d77fe862b0a78e38f6e454cb80329dc28fc1a08d6bf32ff220cc972b9c0
+MISC ChangeLog-2015 5402 SHA256 5b2c8d34881567ef113e9147f18b3c6bb63963a8e30423ec612bfc07471ce75f SHA512 ed981a0db7c848a531369c24f2bc62fdb466a4a444d7d92fbd0bbf7a2879514dca508def8e69e297da84891fe287a16efe1a737f1946732fe2099a1a5a05c6ec WHIRLPOOL 4dc7efbc683b9da5be40069e9d6db582c24866735ba52cbb414326c8ba152cb2eb8a3b061bc2df50b24ebd6dde2739d9d4e22d47afc7e63a88d5bc94e7fa722d
+MISC metadata.xml 322 SHA256 46a718215143ad9d0774be1f53047d351555c445251668dbda36b96350ebfd05 SHA512 42a55218140e081081755001a07289fea9e57be5e8244163fc57a110958b9f1c0855dc4c82c79838ff4a695374c2308c355ffbafe9a13e7be2ebbe11e6f0ec5b WHIRLPOOL 9ff26f56a2611d2110458723bb5f40b8c8d8e90859211c088843c22fdb8bbbb8dc79e5064ba31f649b7de06e7cae7d96010a44af976f1af83e4fc7afbecea1ab
diff --git a/net-mail/grepmail/files/5.30.33-fix_nonexistent_mailbox_test.patch b/net-mail/grepmail/files/5.30.33-fix_nonexistent_mailbox_test.patch
new file mode 100644
index 000000000000..cdab28bb635c
--- /dev/null
+++ b/net-mail/grepmail/files/5.30.33-fix_nonexistent_mailbox_test.patch
@@ -0,0 +1,33 @@
+Description: Fix FTBFS with libmail-mbox-messageparser-perl 1.5002
+ From 1.5002, it does not return "No data on standard input" anymore.
+Author: Vincent Legout <vincent@legout.info>
+Last-Update: 2010-04-28
+Bug-Debian: http://bugs.debian.org/549782
+Bug-Gentoo: https://bugs.gentoo.org/296657
+
+--- grepmail/t/nonexistent_mailbox.t
++++ grepmail/t/nonexistent_mailbox.t
+@@ -13,21 +13,15 @@
+ => ['none','no_such_file'],
+ "$^X -MExtUtils::Command -e cat no_such_file 2>" . devnull() .
+ " | grepmail pattern"
+- => ['none','no_data'],
++ => ['none','none'],
+ "grepmail -E $single_quote\$email =~ /pattern/$single_quote no_such_file"
+ => ['none','no_such_file'],
+ "$^X -MExtUtils::Command -e cat no_such_file 2>" . devnull() .
+ " | grepmail -E $single_quote\$email =~ /pattern/$single_quote"
+- => ['none','no_data'],
++ => ['none','none'],
+ );
+
+ my %expected_errors = (
+-"$^X -MExtUtils::Command -e cat no_such_file 2>" . devnull() .
+- " | grepmail pattern"
+- => 1,
+-"$^X -MExtUtils::Command -e cat no_such_file 2>" . devnull() .
+- " | grepmail -E $single_quote\$email =~ /pattern/$single_quote"
+- => 1,
+ );
+
+ my %localization = (
diff --git a/net-mail/grepmail/files/5.30.33-midnight.patch b/net-mail/grepmail/files/5.30.33-midnight.patch
new file mode 100644
index 000000000000..d861774df81a
--- /dev/null
+++ b/net-mail/grepmail/files/5.30.33-midnight.patch
@@ -0,0 +1,17 @@
+Description: Fix bug with midnight
+Author: Manuel Prinz <manuel@debian.org>
+Last-Update: 2010-02-22
+Bug-Debian: http://bugs.debian.org/559588
+Bug-Gentoo: https://bugs.gentoo.org/355067
+
+--- grepmail/grepmail
++++ grepmail/grepmail
+@@ -397,7 +397,7 @@
+ if (eval 'require Date::Manip')
+ {
+ my ($version_number) = $Date::Manip::VERSION =~ /^(\d+\.\d+)/;
+- Date::Manip::Date_Init("TodayIsMidnight=1") if $version_number >= 5.43;
++ Date::Manip::Date_Init("TodayIsMidnight=1") if $version_number >= 5.43 and $version_number < 6;
+ }
+ }
+
diff --git a/net-mail/grepmail/grepmail-5.30.33-r2.ebuild b/net-mail/grepmail/grepmail-5.30.33-r2.ebuild
new file mode 100644
index 000000000000..b029483a2241
--- /dev/null
+++ b/net-mail/grepmail/grepmail-5.30.33-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator perl-module
+
+MY_P="${PN}-$(delete_version_separator 2)"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Search normal or compressed mailbox using a regular expression or dates"
+HOMEPAGE="http://grepmail.sourceforge.net/"
+SRC_URI="mirror://sourceforge/grepmail/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+IUSE="test"
+
+RDEPEND="
+ dev-perl/Inline
+ dev-perl/TimeDate
+ dev-perl/Date-Manip
+ virtual/perl-Digest-MD5
+ >=dev-perl/Mail-Mbox-MessageParser-1.40.01
+"
+DEPEND="${RDEPEND}
+"
+# test? ( dev-perl/Mail-Mbox-MessageParser )
+
+# 100% failure on running
+DIST_TEST="skip"
+
+PATCHES=(
+ "${FILESDIR}"/5.30.33-fix_nonexistent_mailbox_test.patch
+ "${FILESDIR}"/5.30.33-midnight.patch
+)
+
+src_prepare() {
+ sed -i -e 's/use inc::Module::Install/use lib q[.]; use inc::Module::Install/' Makefile.PL ||
+ die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+ perl-module_src_prepare
+}
diff --git a/net-mail/grepmail/metadata.xml b/net-mail/grepmail/metadata.xml
new file mode 100644
index 000000000000..79af08c23865
--- /dev/null
+++ b/net-mail/grepmail/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">grepmail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/hotwayd/Manifest b/net-mail/hotwayd/Manifest
new file mode 100644
index 000000000000..c8b618c72072
--- /dev/null
+++ b/net-mail/hotwayd/Manifest
@@ -0,0 +1,6 @@
+AUX hotwayd.xinetd 787 SHA256 dcbf68992ac7ce6e1e8cb4272874595bc90c02e5a19c912d0112b34c8815b5c4 SHA512 04122ea44e1dc2eafae42b6203664085b8c2068cea7afdbff44478e4ed415a69a1490cd2679961fa477c1cb1d9ab639469bc5bb71673b1d500ffbd27cb6bd6bb WHIRLPOOL c2b52acb1d26ce61109044311645a06cd5a4ffd72b1b7d2cadff02155cbbed8a278733e2be2bc41271b3752f9a77cf87e5736f71d1f5b31d2850470a8ccec466
+DIST hotwayd-0.8.4.tar.bz2 161274 SHA256 5915fe038c3285bbfb732d55314b992a1734118c38528666ff69882e16d01d81 SHA512 df965964c8186e51bd2b09f4a99919443efe1ee2e828d0bdd905383813069a45e4b6b321ace969b3071a0d83ad21a1b4f76cd4ba57f89e13a6569d8b65bd8efc WHIRLPOOL f46744fa2254e8db63cbfb9fb8847bbc7fd28b8b9686ff4f2728d132cf2259dd001dde7ef39c4b6bf94099be2e91382127085389c7355c341ba68e8dd8af10c3
+EBUILD hotwayd-0.8.4.ebuild 2021 SHA256 d04d7bcdcfc32c2ca5ef439182a20e0ae378f63b6cbe177e1f5b72fb061f98c7 SHA512 5e39ce116658687df645b1c29d69ba50cf6599f569b5dff3378e693cc7627578e27968434e97eb8f0690537e9dfec2ed8f6a8ea348980eba924e89967c832205 WHIRLPOOL ed08645955d28efdb4f772453aa74554cd2b92546bb9d620b035affbbff6b8671aeafb30db456b325bf68c47603bae33aa37d028510765e33b0fe2b2cb9c7fab
+MISC ChangeLog 2661 SHA256 38c391689ae391620bab7bf1158a6c5e1c0adf3bd5d53f86d1a97bc16adb92c5 SHA512 ec4108bfec4f3ae74a3d89919c3867dac2919f4d53ae4a91bd2ddab2785a07643bb90dc07b591cbad3a05f03702e97ac53a5a09745416bf20c62594c9bdfaaa8 WHIRLPOOL f46468f95aa13e8de25df1666570c1fff91653193b212b2aeae832b535aaef4e2c7c52669579f319ca694b5bcf593f575c321da40cf38d0f37ea40a0e42bd45c
+MISC ChangeLog-2015 4337 SHA256 68dcee3046dbe1d445b8839ae32e07412e228829d3e1b7d39230a40b6e4c45bb SHA512 8f32401334658a964aa78924d308ede2d4d8e69d7261d09b98aa6a78fdfb50f6f4e635c28c4a1478055bfe11c7eea82c62e45d743da2300864c3a7805b01370d WHIRLPOOL 8f4b661d6343143625438f72a27dc67969d3b74cbea8851249a6c44e298cdeed155b55b245213595989937f53e57626aca7f2e9fe509c01d506a1e4e6c38aa59
+MISC metadata.xml 405 SHA256 64ba2cb9c6d41e1b15364e69411f0cc9c6f420d01dfb525205ae6b2f39de7fc1 SHA512 1ae9c94ecb7beceb2c368982aae5c95ec04cc743764bb31ba7219f3ed4c8785133f39f253ab5c4b3de196fc06efef36bead869317c305af23d75d64a8779765f WHIRLPOOL fc49a79fd4426d0014c3ff2aa68043c5efeffe5d8ce8792f2d5592623847d18aaed38bb2872b38da34876d9672bf31e46351f30751e781d2f03f275da25cacb7
diff --git a/net-mail/hotwayd/files/hotwayd.xinetd b/net-mail/hotwayd/files/hotwayd.xinetd
new file mode 100644
index 000000000000..65947585fa77
--- /dev/null
+++ b/net-mail/hotwayd/files/hotwayd.xinetd
@@ -0,0 +1,25 @@
+# default: off
+# description: hotway daemon
+# - By default it listens to port 1100, so please adjust settings in your
+# clients
+# - By default it only allows access from localhost.
+# - Also all xinetd entries do not start by default.
+# One should manually enable the entries that one wants by
+# changing the value of "disable = yes" to "disable = no".
+# - Restart xinetd after changing anything in this file:
+# # /etc/init.d/xinetd restart
+
+service hotwayd
+{
+ only_from = localhost
+ socket_type = stream
+ wait = no
+ user = nobody
+ port = 1100
+ server = /usr/sbin/hotwayd
+ #server_args = -p http://proxy:8080 -u proxy_user -q proxy_password
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+ type = unlisted
+}
diff --git a/net-mail/hotwayd/hotwayd-0.8.4.ebuild b/net-mail/hotwayd/hotwayd-0.8.4.ebuild
new file mode 100644
index 000000000000..26e68488a6a4
--- /dev/null
+++ b/net-mail/hotwayd/hotwayd-0.8.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Hotmail to pop3 daemon"
+HOMEPAGE="http://hotwayd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/hotwayd/${P}.tar.bz2"
+RESTRICT="mirror"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc x86"
+
+IUSE="smtp"
+
+DEPEND="virtual/inetd
+ dev-libs/libxml2
+ smtp? ( >=dev-libs/cyrus-sasl-2 )"
+
+hotmail_greed_warning() {
+ echo
+ ewarn "WARNING:"
+ ewarn "Since Hotmail started to charge for WebDAV access, you need a Hotmail Plus"
+ ewarn "(or equivalent MSN) account to keep using hotwayd. More info:"
+ ewarn "http://www.boolean.ca/hotpop/"
+ ewarn "https://sourceforge.net/forum/forum.php?thread_id=1277989&forum_id=80217"
+ echo
+ ebeep 3
+ epause 10
+}
+
+pkg_setup() {
+ hotmail_greed_warning
+}
+
+src_install () {
+ # The original make install is broken, since it also tries to install
+ # the libghttp files. This is not needed, since this library is statically
+ # linked into the executable.
+ # Lets just copy the (one) file manually...
+ dosbin hotwayd
+ if use smtp; then
+ dosbin hotsmtpd/hotsmtpd
+ insinto /etc/xinetd.d
+ sed -i -e 's:^disable = no:disable = yes:' hotsmtpd/hotsmtpd.xinetd
+ newins hotsmtpd/hotsmtpd.xinetd hotsmtpd
+ fi
+
+ dodoc AUTHORS NEWS README
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/${PN}.xinetd ${PN}
+}
+
+pkg_postinst () {
+ hotmail_greed_warning
+ echo
+ elog " By default daemons that use xinetd are not started automatically in gentoo"
+ elog " To activate do the following steps: "
+ elog " - Edit the file /etc/xinetd.d/hotwayd and change disable "
+ elog " from yes to no "
+ elog " - Restart xinetd with \`/etc/init.d/xinetd restart\` "
+ elog
+ if use smtp; then
+ elog "You chose to install hotsmtpd, a SMTP proxy for hotmail. Please"
+ elog "Configure /etc/xinetd.d/hotsmtpd and restart xinetd to start using it."
+ elog
+ fi
+ elog "Set your e-mail applications to use port 1100 for receiving email."
+ if use smtp; then
+ elog "Use port 2500 for sending email."
+ fi
+}
diff --git a/net-mail/hotwayd/metadata.xml b/net-mail/hotwayd/metadata.xml
new file mode 100644
index 000000000000..832def52da81
--- /dev/null
+++ b/net-mail/hotwayd/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="smtp">Build SMTP proxy (hotsmtpd)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">hotwayd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/imapsync/Manifest b/net-mail/imapsync/Manifest
new file mode 100644
index 000000000000..3df896570252
--- /dev/null
+++ b/net-mail/imapsync/Manifest
@@ -0,0 +1,11 @@
+DIST imapsync-1.592.tgz 906578 SHA256 dd359a5b871dd278fbb39ba0c087576e97af1d746c49a104bc00a533b463ab64 SHA512 3d41b28396d9b8bf83200b324b2e312c76ef88e42f4ff8993c8d697b18f321400d7a157b1fee2d3ad4eae11400dc2186a18528bde50e370d856eac1b09c28f68 WHIRLPOOL ab0783acc911dacf394e19c4b3bbcd0bcc6de55088e11846271a590ffd4d79935d2bcffbe601bd1e599dffd1df5d9ade0fc6578b9252d3363f81f3982e96ff34
+DIST imapsync-1.607.tgz 973467 SHA256 784331cfa6cc391751dcdc5290eba5d50bf3ddbe9b213f072b413941a3fe4f2a SHA512 2630d32683f74ec260d322d2d9f13fb30938c077275cd43cece392b43bbdf8989f8ff6df648d520b785a568bf5d6f45d43761bf4fb94649e210611224ad43841 WHIRLPOOL b2c089879a475aba14fec66912d024b1365e0b6c7bf56c3e4c291c3f5c96008ff302241d3a8675c82dc1fced36ca88a05b06054058c107edcfd7f73bac7e9544
+DIST imapsync-1.644.tgz 972719 SHA256 7eba670442400265246a90296d28731effdbef20ebdb768e08045d8f4149d1d2 SHA512 0e246b142e5e9066ce8a328ce57731c5c9006746bb58dff5c681dcc0596cea25f51bda3a50a7d3d4262efb2e720da3b380b68aa34c0db8f76fae7a6049f9fa2b WHIRLPOOL 4cbd71c2cdfbe51a811d378991f5aa7125efcdaa766eb5907e6cecbb43e8eced62fb6b19b27d853615fc51f8853fece427bf4d8ac26169bf9f76bdee77997592
+DIST imapsync-1.684.tgz 1030626 SHA256 ab4409c50949fc829bc212d7d9a4919dcafd3ccc55bce6e4e5b11bb8946a98c6 SHA512 3c85d3c6252765a717386a8687a2bc15da4522219d67c09a2cf27b452623fd0e5f382c53473b9b628dae7fc261d8db99d54bd8dad9e656e29096c0f06f0867ca WHIRLPOOL ca98df4c238fcea21e318b01d3273bc21120c1aa1a9b8df5169d13ae76dc2bef509267dc86962421a3264b7415d6d5394584abca6657d33bcf80ca7985cd8c45
+EBUILD imapsync-1.592-r1.ebuild 756 SHA256 1a69fe4174391df106d698933b42eab654f7a2ba4a8b725df2e60d61d4b3d990 SHA512 e04c4ce91b7e9e44356ab9672848dfae3e5150c3a7d5d6be1441fa9691d664c62b3fac655f782b52964ef46c64cd306b57fd48c5ebb182168db1d05ff1cb3300 WHIRLPOOL f3279f14bf76168331a93cf3b28fe11dee21df41a81d2db460c32dd8da20ff716d58326f7bfba571649198cd0f5ee57d7e674d3ba9724da02f84720b89ead572
+EBUILD imapsync-1.607-r1.ebuild 784 SHA256 74b4c7cebb9d50f51819d305ed5f4ea72415e523ff24c98f7015db4d129ac4bd SHA512 1054903e5ddb44df2a80cf69e9c3757cf359e20ebae2fa064f331797e6965adbc3d13f7286c39be29759ada3bf6ba0f87cd008749ab0154451b1fc2849c6ccd9 WHIRLPOOL 187fdace61dc4736da6ab11d9a92daadadd7a811fb97ca2198792f7c164b417a8941e9fba65357bc83a76e6088816397488f57062a65e3c8555576f56596d910
+EBUILD imapsync-1.644.ebuild 784 SHA256 fbe123858fa8545b997b3b4c6f260ee034c1a68ab017dccc8f96aff158a21237 SHA512 a1e581107f28d4b030f489dac3b5dfc87159b20f950d030e5112b6e0a6aaca194b958fbab946fcf72bbd46b6075b51379f1055c0f93e4aa7de6c200ab1d6e77a WHIRLPOOL 5932060de6b486dd8c92ed56d0ef5433dead966e39740c1978b411b119891f8849430958a33327bc78c4e8e93587c4dec5514dc2fa7fbc928e48c343a0376ef5
+EBUILD imapsync-1.684.ebuild 785 SHA256 07c63a6b18d7dbcaa30687a3f43b8cb7155f1953cdde7711c03b7ae1f061c2ed SHA512 0f38b8221b85c460ba9a149ee5cec573143e2413d1fabbe26469d169052f82eec1dff823a9775d2afc93efec961e8d521100c889db3b11f4706446258587e540 WHIRLPOOL e5e0b2123471d8758c825ddfd97b7847574c0abf21bf2e0243b286aba374f63ba7bfeec477c778d72a357483b97f0914b3c27ea82685e88bf8e5c86885798c95
+MISC ChangeLog 2745 SHA256 45a3e858c8bd779160aa19f193b0e719e9f1bc81b3fdcbf36ea438d222f3f4f2 SHA512 307f1888f2d9adc78d8dbafec7fcc2beef5dc9aba3f29a1430213a1f945b57f3220fd7584b1c68804d24375b52117da8026d5f01c414bd3e780405a07f6db573 WHIRLPOOL 6afec665d20e3846ef84c0e58770aefe408210bd3a5e557e9fcab9f6cf0cfbe17b952f622ac648addc5f19e7a4ddc5ab5fed758474f1d5b93ab3aac595b8b444
+MISC ChangeLog-2015 13417 SHA256 9a4c7be1e086b3a24305d8334b4e37a5f864acf20f788108b2e6487fd56f9d74 SHA512 702bbeb8547b5c2dea68f1f3fc37f03ece1221a6d27de2074712a68bbf32d07563bbfa9bd6fa122f2dbd454ca808eeb9176a3c3e061c4958950191028b5f487a WHIRLPOOL c333b3f62d294739373bb666bd6195a523e91ece524a20267b60fa340ff39621e38c586bf1f9396ba2a37f7454aa3c3f1a2d24f0cc0c2accec84f001d2927352
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/imapsync/imapsync-1.592-r1.ebuild b/net-mail/imapsync/imapsync-1.592-r1.ebuild
new file mode 100644
index 000000000000..65e587b45b56
--- /dev/null
+++ b/net-mail/imapsync/imapsync-1.592-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A tool allowing incremental and recursive imap transfer from one mailbox to another"
+HOMEPAGE="http://ks.lamiral.info/imapsync/"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tgz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/Digest-HMAC
+ dev-perl/File-Copy-Recursive
+ dev-perl/IO-Socket-SSL
+ dev-perl/IO-Tee
+ dev-perl/Mail-IMAPClient
+ dev-perl/TermReadKey
+ virtual/perl-Digest-MD5
+ virtual/perl-MIME-Base64"
+
+RESTRICT="test"
+
+src_prepare() {
+ sed -e "s/^install: testp/install:/" \
+ -e "/^DO_IT/,/^$/d" \
+ -i "${S}"/Makefile || die
+}
+
+src_compile() { :; }
diff --git a/net-mail/imapsync/imapsync-1.607-r1.ebuild b/net-mail/imapsync/imapsync-1.607-r1.ebuild
new file mode 100644
index 000000000000..b4513397c497
--- /dev/null
+++ b/net-mail/imapsync/imapsync-1.607-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A tool allowing incremental and recursive imap transfer from one mailbox to another"
+HOMEPAGE="http://ks.lamiral.info/imapsync/"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tgz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/Digest-HMAC
+ dev-perl/File-Copy-Recursive
+ dev-perl/IO-Socket-SSL
+ dev-perl/IO-Tee
+ dev-perl/Mail-IMAPClient
+ dev-perl/TermReadKey
+ dev-perl/Unicode-String
+ virtual/perl-Digest-MD5
+ virtual/perl-MIME-Base64"
+
+RESTRICT="test"
+
+src_prepare() {
+ sed -e "s/^install: testp/install:/" \
+ -e "/^DO_IT/,/^$/d" \
+ -i "${S}"/Makefile || die
+}
+
+src_compile() { :; }
diff --git a/net-mail/imapsync/imapsync-1.644.ebuild b/net-mail/imapsync/imapsync-1.644.ebuild
new file mode 100644
index 000000000000..c1758035bbcc
--- /dev/null
+++ b/net-mail/imapsync/imapsync-1.644.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A tool allowing incremental and recursive imap transfer from one mailbox to another"
+HOMEPAGE="http://ks.lamiral.info/imapsync/"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tgz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/Digest-HMAC
+ dev-perl/File-Copy-Recursive
+ dev-perl/IO-Socket-SSL
+ dev-perl/IO-Tee
+ dev-perl/Mail-IMAPClient
+ dev-perl/TermReadKey
+ dev-perl/Unicode-String
+ virtual/perl-Digest-MD5
+ virtual/perl-MIME-Base64"
+
+RESTRICT="test"
+
+src_prepare() {
+ sed -e "s/^install: testp/install:/" \
+ -e "/^DO_IT/,/^$/d" \
+ -i "${S}"/Makefile || die
+}
+
+src_compile() { :; }
diff --git a/net-mail/imapsync/imapsync-1.684.ebuild b/net-mail/imapsync/imapsync-1.684.ebuild
new file mode 100644
index 000000000000..7520990085d4
--- /dev/null
+++ b/net-mail/imapsync/imapsync-1.684.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A tool allowing incremental and recursive IMAP transfers between mailboxes"
+HOMEPAGE="http://ks.lamiral.info/imapsync/"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tgz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/Digest-HMAC
+ dev-perl/File-Copy-Recursive
+ dev-perl/IO-Socket-SSL
+ dev-perl/IO-Tee
+ dev-perl/Mail-IMAPClient
+ dev-perl/TermReadKey
+ dev-perl/Unicode-String
+ virtual/perl-Digest-MD5
+ virtual/perl-MIME-Base64"
+
+RESTRICT="test"
+
+src_prepare() {
+ sed -e "s/^install: testp/install:/" \
+ -e "/^DO_IT/,/^$/d" \
+ -i "${S}"/Makefile || die
+
+ default
+}
+
+src_compile() { :; }
diff --git a/net-mail/imapsync/metadata.xml b/net-mail/imapsync/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/imapsync/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/isync/Manifest b/net-mail/isync/Manifest
new file mode 100644
index 000000000000..d2e3771b7261
--- /dev/null
+++ b/net-mail/isync/Manifest
@@ -0,0 +1,7 @@
+DIST isync-1.2.1.tar.gz 281990 SHA256 e716de28c9a08e624a035caae3902fcf3b511553be5d61517a133e03aa3532ae SHA512 706379e602cdcef3a1ca7eaf2301cfea15b9bbb5ee46c8f598308ad68a48725c6a4d13a2e73cc4633efec34fda1dbcb89bdd0e4c2e06993fa24db69cce9ff50b WHIRLPOOL 16f68d7cd7f97f157035005e3fc369d0fec0fc4cdbb28a6eec63137911235292b3f77b57fd0831f0144fecfc4e61657c8f251e70c1df4ab387dea1f05bef4cbd
+DIST isync-1.2.2.tar.gz 285745 SHA256 d9197e27bfe77e3d8971f4fcb25ec37b2506827c4bc9439b72376caa091ce877 SHA512 246dcf0704c0afaad7c402a5fc304ccfd533dc084cd775df4d8d2cb53e69f5236a603d56a54f63b389049a556e23c0dfafb80a4ba929e1b4cffb90200eaf65d6 WHIRLPOOL 2fe3864bbffc2191622395ac1ae1d54493e45e6c5220913fdb70d2cf6fb0dc0961afa32c00fb41f74c682f5525e0209cb011c64c0e68e315a33b2e419b1515ef
+EBUILD isync-1.2.1.ebuild 707 SHA256 167c4322d7b9d263bf49dfc441229ab59d1c531b74dc1505eab0c05a5abe0c83 SHA512 c7fccacd5e7332f4a266475427d66e91b044a8841299a70d03a489a49e4906538fac8e9f5a70c2e21d4c0f310481d4b1754aedff08de45e5ca671ebb8aa06a2f WHIRLPOOL 9179549667f72d89f64704d800fbb4645f8891f3d2c628bc13695229db65ef849bc1c83168b5e6ad6af01baede29d3531d78b5c18f2e00e3caa98edb1c70b51f
+EBUILD isync-1.2.2.ebuild 709 SHA256 297d146a4394f3af0df17449905117900f1eaf769d44da48da5d7df503591648 SHA512 8297884c0ee86c9d55e1f4c0ed12317c7bdd592d8bf1fa389dca9ab2d05914182fe61e260f2ae2329f1d58dca6a7eb668acd4ce936e0a5838080e624d2e89462 WHIRLPOOL df7645b004ffd8f486656df2fac5d3195483aa3bf2b496e26713371973f13adb61f99ebecea4540d9dd80d37ff8c5a76aae2dc0064cc769fa0427394015e6716
+MISC ChangeLog 3912 SHA256 3682e376b12936244afc122b72d8a0233b1ffbccef2ccc4532d6db07f9eb0c77 SHA512 0d3ac32a6737f188f740f590b09170055976641c7eca0a0ae3d83eeab784caedb3711b96c53b852c530e911881e36e7d82ed8d3930a611272dffb9cb62920412 WHIRLPOOL 30975f92705580b94d13706025c7a32b850e218914b63826eb645509180652325121c8f90a0970f7f90bef1c5c0c74a6445e3c3e4a55715ed8f8fa46819e35ec
+MISC ChangeLog-2015 3575 SHA256 94050c9944f370308f3d3eafee9acb5264acd495f930b5e9079f502e296b14c3 SHA512 33089186a62c55f50f489809c51aec26c6319c490593942a00996bf99fe485b2177ab8375cda821fd0470aa7e1e16caef8f6d72c3520db7b82ffb78be676bff1 WHIRLPOOL ad40963900169270a46ebdd471c779f27e79c7de341c71288012f640708141e8cd02fbac618fe5440227e9e6deea9540428750798f3a0bbf07a8eb66f71f37be
+MISC metadata.xml 387 SHA256 88846a2b2a9ce57c4de865a504e46334519ca89800c16ad0aaf3eb584e699d96 SHA512 5a5438bff0aa1757340bedd9fcca2a2dff5dbc8b7a6ee44f2decc64ffb737fac3b7201740391b47e3266d93d8d15533727d4c88a9d2bb4843b381cfdfc829d3c WHIRLPOOL 797185c26257e08f5099638303d08f0f2a58128a9c8d47cca855b39e0e758d931cff8617be40d6ae5bcade92e9804dda96ab654f6fd57250324b2427ed36732a
diff --git a/net-mail/isync/isync-1.2.1.ebuild b/net-mail/isync/isync-1.2.1.ebuild
new file mode 100644
index 000000000000..b09a08848da9
--- /dev/null
+++ b/net-mail/isync/isync-1.2.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="MailDir mailbox synchronizer"
+HOMEPAGE="http://isync.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc x86"
+IUSE="compat sasl libressl ssl zlib"
+
+DEPEND=">=sys-libs/db-4.2:*
+ zlib? ( sys-libs/zlib )
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? (
+ !libressl? ( >=dev-libs/openssl-0.9.6:* )
+ libressl? ( dev-libs/libressl )
+ )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf \
+ --docdir="/usr/share/doc/${PF}" \
+ $(use_with ssl) \
+ $(use_with sasl) \
+ $(use_with zlib) \
+ $(use_enable compat)
+}
diff --git a/net-mail/isync/isync-1.2.2.ebuild b/net-mail/isync/isync-1.2.2.ebuild
new file mode 100644
index 000000000000..838bb0f289a6
--- /dev/null
+++ b/net-mail/isync/isync-1.2.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="MailDir mailbox synchronizer"
+HOMEPAGE="http://isync.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="compat sasl libressl ssl zlib"
+
+DEPEND=">=sys-libs/db-4.2:*
+ zlib? ( sys-libs/zlib )
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? (
+ !libressl? ( >=dev-libs/openssl-0.9.6:* )
+ libressl? ( dev-libs/libressl )
+ )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf \
+ --docdir="/usr/share/doc/${PF}" \
+ $(use_with ssl) \
+ $(use_with sasl) \
+ $(use_with zlib) \
+ $(use_enable compat)
+}
diff --git a/net-mail/isync/metadata.xml b/net-mail/isync/metadata.xml
new file mode 100644
index 000000000000..c842e4a8e2df
--- /dev/null
+++ b/net-mail/isync/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">isync</remote-id>
+ </upstream>
+ <use>
+ <flag name="compat">Enable legacy utilities</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/kuvert/Manifest b/net-mail/kuvert/Manifest
new file mode 100644
index 000000000000..007fee15fc10
--- /dev/null
+++ b/net-mail/kuvert/Manifest
@@ -0,0 +1,5 @@
+DIST kuvert_2.0.4.tar.gz 118352 SHA256 f04abf78c538dc24d1900f1a009f27cd92a5cc9659002229fdd6de7b2c62b983 SHA512 01421ca8cf86de935040ecb7312833190e97bd99d3d3ab32356b1249df4e11eefa02cd9f0784d2c6c9135d065ee184b508efa55e5865d0b586f3267956611f1f WHIRLPOOL 115e4afc082329e94a84106a1d489f4286960b84b84a6946336d8b84ce81e81832308663b913ed9b55e078b6beb0c094754addb85d2c2edc500c50c6672fd871
+EBUILD kuvert-2.0.4.ebuild 844 SHA256 270c7250bc1c456ca9bdf7f81bb974fa0afb82d38e99e9f56e04206cf773d4dc SHA512 80c5bc623b10af52c2c8363a62dd54528cc750681e4353a315c60aea25a466f0f2bbc271f0488c14ae9d6483691f5c798db0a27ab967c6721aa76e23495f9d66 WHIRLPOOL 861d42343a7a0983148b8d0adc3708dbbe182d90ef63625177d712a34e8d1765416dd80f08286d84e843aba465834f1b63f82df52032ef095d79e45b035d9a5e
+MISC ChangeLog 2456 SHA256 23bf4e896c268ea9d21d346f8fcd3707dd71b9cb2350820774852f3907661cd2 SHA512 3e9933bb69025b3f3f6bf46e01533b536a526532194dc8c2045216d9131926e959765307a4a4bae5338670bb74ff63a267dbd488d7198e4c797fcaf5395c0fca WHIRLPOOL a0ffdd5cc49311fd68ae9bb5ae23a018da9a51b0d12bb1bf5dbf2d5cad38884d58a969887268116cd3270f67819c0fb46593971c732bb3f6079c13485851acd9
+MISC ChangeLog-2015 1653 SHA256 c5e3e04e41b91b885f655ab4e24911208bcaed24fafaedd76fd9c10b521b9850 SHA512 f0769425c0f3cdf87ee8857c58acf67911393a184007be6728e20c9465579b107ddf3e63e511ccbbdffc8260e7b395ca43d4fb714a516282789b0eb613ad1386 WHIRLPOOL 6735f1f1327f3ace74e92f880552c8af6979b76219db2b96f73a67e4e39db75a7bba174ddeb6d3ae9c1b08c0d1c71c999980555e9a91cf5a7d6e728951fc0a0d
+MISC metadata.xml 250 SHA256 b71074f8cf023e8487d9c660f14e7005a54cbdc232d60fd8584073dfc9289b3c SHA512 64ce00687c47be8dd203fede0460d4ff5f5bb741da301d30366ed8d041fce65298e8091bcd59423e86819d62e3e8f4989652f21e8c1b50eb541c65c7788c605c WHIRLPOOL ffbddb433281246099ce9093439006a2a46077d88e8cbb1f053f8a5acd39e844ba2edd47641cc3efc04d5cff46c485c26b5d164a5f82fbbe622bb786e001a524
diff --git a/net-mail/kuvert/kuvert-2.0.4.ebuild b/net-mail/kuvert/kuvert-2.0.4.ebuild
new file mode 100644
index 000000000000..18570068f804
--- /dev/null
+++ b/net-mail/kuvert/kuvert-2.0.4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit toolchain-funcs
+
+MY_P=${P/-/_}
+
+DESCRIPTION="An MTA wrapper that automatically signs and/or encrypts
+outgoing mail"
+HOMEPAGE="http://www.snafu.priv.at/mystuff/kuvert/"
+SRC_URI="http://www.snafu.priv.at/mystuff/kuvert/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc"
+IUSE=""
+SLOT="0"
+
+S="${WORKDIR}/${PN}"
+
+DEPEND=""
+RDEPEND="app-crypt/gnupg
+ sys-apps/keyutils
+ dev-perl/MailTools
+ dev-perl/MIME-tools
+ dev-perl/Authen-SASL
+ dev-perl/File-Slurp
+ dev-perl/Net-Server-Mail
+ virtual/perl-IO
+ virtual/perl-File-Temp
+ virtual/perl-Time-HiRes
+ dev-lang/perl
+ virtual/perl-libnet
+ virtual/mta"
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc dot-kuvert README THANKS TODO
+}
diff --git a/net-mail/kuvert/metadata.xml b/net-mail/kuvert/metadata.xml
new file mode 100644
index 000000000000..493a4bf9e88a
--- /dev/null
+++ b/net-mail/kuvert/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/lbdb/Manifest b/net-mail/lbdb/Manifest
new file mode 100644
index 000000000000..e0c52a1a6515
--- /dev/null
+++ b/net-mail/lbdb/Manifest
@@ -0,0 +1,9 @@
+DIST lbdb_0.41.tar.gz 160632 SHA256 83f686fe3ea699b7e67d1c7b4f9aee4930b6b87fb2f5267a221785672d08092b SHA512 c99d8c4549d781252192e07dfb89adbae6daae5a4f4c94de692c4289848ba8599c2b0aeb28bac69313e6828995eac32acf3fbc76b1695c6464c6339236cdb341 WHIRLPOOL 97c1859f738fad87dc38a3d6132974cb6fe4fa2c4d61b0d75cfa237645b1d94d4ea78e20e0b79c148765464ad04a0edf1094d8456bc7d7ffd23d29b2f74929d6
+DIST lbdb_0.42.1.tar.gz 158766 SHA256 d78cc7623108d9b5c4bf33305f3193a8a9955bfbe09b4d3277ad5f54d35ff022 SHA512 50c405bb05e38f5b23b05c27626262680bcacd6385b636a1e6bed0c3cf4c319a1cc19181587e390c04bb2e5b3a275a9e053c42536df6554b6f44d3b8496fabfd WHIRLPOOL e1e2b54beec718bcf45104a921f5a6515b6b3dcc4d21e24406ba6a571c5d020b82d293791ac006cecfa5cc2c126e8193303ae197660d120938b7a3850a8163e8
+DIST lbdb_0.42.tar.gz 158714 SHA256 efb0de0d50a4170e7ccfa033e7b38678310b94578309e55e805cca2e06596f53 SHA512 d8d27450fab09ff41e592fb2ef9395b8ed30c2a925136184c0339574f3a58b7e54b5846c722d2e065da5a98b166497e148afd43592f80942cf4aeb35934e91d7 WHIRLPOOL 741ace49bffd4876f1570d9b7ec5eff1c8d6e57f693e0d66f543a5c7efbf0fa80ce80faf85696ddc5b4e95c15f5bb2247be58b68ff227cbc66afdbf69e554e9c
+EBUILD lbdb-0.41.ebuild 1362 SHA256 cd8c8736b480c0bf390aee7c7ae02230f35d66c0102f9dd1806334d0a79f7d87 SHA512 b483dfd7dd5207045a648283f1b7eda49aca430dac9a54001baf253856a277e6f358951b8d9268573716471b89440d26c338b4e7b5ec42ebf06f9b4f3505c029 WHIRLPOOL 26cc914dc38428498a56b7d864c357aee865bac802accf950fd1ddbb559a5074dfbe34f37791f4ec747209345b9b29503e6ce19bf989ba18ac5f513a284a9d90
+EBUILD lbdb-0.42.1.ebuild 1365 SHA256 fdd3a608634fc81b88bc4ea11b8104f9061ffc1dfbca6275e073e6a585027651 SHA512 206804a942f0a699b1eb641a147d715a2988b62dde0f1ecdb25e55a20d5894092d01dd052aaa97c163de3439a3c0853f5287340ebb41819e2cdf7e0ba47c2196 WHIRLPOOL 46815b7206c626ac66490e37913cf2bdbaa5d403596bd7ce3b125dc2290dff7d06d9e0ac2887527a6a866d523c31925b54aa19a69d7dbd4aab9e7a114fef56f3
+EBUILD lbdb-0.42.ebuild 1365 SHA256 da4328a5a26f5047ff98bd2c6753b50ac7680b50f778f0123fcee0335a74ccad SHA512 1c278aa8206024695441843caf7c8f71d8b920981c3643a7da9c92a1c34693724b7e56a5cb5575f49c9403960512e4eac7b3ab3a47f853ebd6557b1900198930 WHIRLPOOL f7c7f83ce7187cb06772833b0033a9fe5e87480f31b265757e49c19551c9538789ae0328ba62799bca6f052bf16405446772aa41aeefa43b120dbee61cf9d82d
+MISC ChangeLog 3434 SHA256 3558d70ca1f85dd023cdaa1f2d9898e0ce6a77bd01b46d79d5675eb4caf05904 SHA512 569b847ab2d0ed9b72dc698480e2b17d39cdb9e7d20e77a7fe05bb0303e3bd78d097b8a40a3448c408d1a0faf95c2963a3917e205672e71f566d1f905b1c92bd WHIRLPOOL e4d564c4be51801e2ac2c566ca84829799b98264bed70d5ee48d210f1e151cdf4a561bc74907215f99c746eed67939e38d91fa61e1b9255587ffdfde67e5c54a
+MISC ChangeLog-2015 7758 SHA256 5d8883f2cbc0706a229fe77d8620022b3d4e4a423d453ce001b9ca909e511161 SHA512 5fc0c89d8450c9765e605ebdd22487567bb508f3a0741e4b24c2bdbb13170496d5882949253a0140d234f13ae64569fea3454be6f2ada5da072b8a956363de18 WHIRLPOOL de5f9c4f58ca496a772ee8face9ca73862c7ce306335f24718f99ee7cda0039f6c45f0fc0266a552eb779669e45b3f26e45b9e4f6e8c209096214ec3928b5f16
+MISC metadata.xml 393 SHA256 4e5a6d6eedcd44de5a0800a05c3c13a8fb868e9a535fe7214613100094d2b609 SHA512 37e5bd439aa793c61d2043852bd0fed7269d03fb9d79f88c91e246e2f1a09ddae2eef385d58111fb76dbede3e3bb91a8432d79f5bd21a93a2fa79de2fa1a17e8 WHIRLPOOL 19f3b1c75b6c58e683b0ece458f7bde7593b944a28f58901e364275449598c258aa72ef56d202121f50d5dfd91ffc6979635821e3359e06cca92604ffbe8e47a
diff --git a/net-mail/lbdb/lbdb-0.41.ebuild b/net-mail/lbdb/lbdb-0.41.ebuild
new file mode 100644
index 000000000000..9bc42cb1b34a
--- /dev/null
+++ b/net-mail/lbdb/lbdb-0.41.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_P=${P/-/_}
+DESCRIPTION="Little Brother database"
+SRC_URI="http://www.spinnaker.de/debian/${MY_P}.tar.gz"
+HOMEPAGE="http://www.spinnaker.de/lbdb/"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+LICENSE="GPL-2"
+IUSE="pda ldap finger abook crypt evo"
+
+DEPEND="dev-libs/libvformat
+ evo? ( mail-client/evolution )
+ finger? ( net-misc/netkit-fingerd )
+ abook? ( app-misc/abook )
+ crypt? ( app-crypt/gnupg )"
+RDEPEND="${DEPEND}
+ pda? ( dev-perl/Palm )
+ ldap? ( dev-perl/perl-ldap )"
+
+src_configure() {
+ local evoversion
+ local evolution_addressbook_export
+
+ if use evo ; then
+ evoversion=$(best_version mail-client/evolution)
+ evoversion=${evoversion##mail-client/evolution-}
+ evolution_addressbook_export="/usr/libexec/evolution/$(get_version_component_range 1-2 ${evoversion})/evolution-addressbook-export"
+ fi
+
+ econf $(use_with finger) \
+ $(use_with abook) \
+ --without-ypcat \
+ $(use_with crypt gpg) \
+ $(use_with evo evolution-addressbook-export "${evolution_addressbook_export}" ) \
+ --enable-lbdb-dotlock \
+ --without-pgpk --without-pgp \
+ --without-niscat --without-addr-email --with-getent \
+ --libdir=/usr/$(get_libdir)/lbdb
+}
+
+src_install () {
+ emake install_prefix="${D}" install
+ dodoc README TODO debian/changelog
+}
diff --git a/net-mail/lbdb/lbdb-0.42.1.ebuild b/net-mail/lbdb/lbdb-0.42.1.ebuild
new file mode 100644
index 000000000000..48a8974ca10c
--- /dev/null
+++ b/net-mail/lbdb/lbdb-0.42.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_P=${P/-/_}
+DESCRIPTION="Little Brother database"
+SRC_URI="http://www.spinnaker.de/debian/${MY_P}.tar.gz"
+HOMEPAGE="http://www.spinnaker.de/lbdb/"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+LICENSE="GPL-2"
+IUSE="pda ldap finger abook crypt evo"
+
+DEPEND="dev-libs/libvformat
+ evo? ( mail-client/evolution )
+ finger? ( net-misc/netkit-fingerd )
+ abook? ( app-misc/abook )
+ crypt? ( app-crypt/gnupg )"
+RDEPEND="${DEPEND}
+ pda? ( dev-perl/Palm )
+ ldap? ( dev-perl/perl-ldap )"
+
+src_configure() {
+ local evoversion
+ local evolution_addressbook_export
+
+ if use evo ; then
+ evoversion=$(best_version mail-client/evolution)
+ evoversion=${evoversion##mail-client/evolution-}
+ evolution_addressbook_export="/usr/libexec/evolution/$(get_version_component_range 1-2 ${evoversion})/evolution-addressbook-export"
+ fi
+
+ econf $(use_with finger) \
+ $(use_with abook) \
+ --without-ypcat \
+ $(use_with crypt gpg) \
+ $(use_with evo evolution-addressbook-export "${evolution_addressbook_export}" ) \
+ --enable-lbdb-dotlock \
+ --without-pgpk --without-pgp \
+ --without-niscat --without-addr-email --with-getent \
+ --libdir=/usr/$(get_libdir)/lbdb
+}
+
+src_install () {
+ emake install_prefix="${D}" install
+ dodoc README TODO debian/changelog
+}
diff --git a/net-mail/lbdb/lbdb-0.42.ebuild b/net-mail/lbdb/lbdb-0.42.ebuild
new file mode 100644
index 000000000000..5ac47600a38c
--- /dev/null
+++ b/net-mail/lbdb/lbdb-0.42.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_P=${P/-/_}
+DESCRIPTION="Little Brother database"
+SRC_URI="http://www.spinnaker.de/debian/${MY_P}.tar.gz"
+HOMEPAGE="http://www.spinnaker.de/lbdb/"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+LICENSE="GPL-2"
+IUSE="pda ldap finger abook crypt evo"
+
+DEPEND="dev-libs/libvformat
+ evo? ( mail-client/evolution )
+ finger? ( net-misc/netkit-fingerd )
+ abook? ( app-misc/abook )
+ crypt? ( app-crypt/gnupg )"
+RDEPEND="${DEPEND}
+ pda? ( dev-perl/Palm )
+ ldap? ( dev-perl/perl-ldap )"
+
+src_configure() {
+ local evoversion
+ local evolution_addressbook_export
+
+ if use evo ; then
+ evoversion=$(best_version mail-client/evolution)
+ evoversion=${evoversion##mail-client/evolution-}
+ evolution_addressbook_export="/usr/libexec/evolution/$(get_version_component_range 1-2 ${evoversion})/evolution-addressbook-export"
+ fi
+
+ econf $(use_with finger) \
+ $(use_with abook) \
+ --without-ypcat \
+ $(use_with crypt gpg) \
+ $(use_with evo evolution-addressbook-export "${evolution_addressbook_export}" ) \
+ --enable-lbdb-dotlock \
+ --without-pgpk --without-pgp \
+ --without-niscat --without-addr-email --with-getent \
+ --libdir=/usr/$(get_libdir)/lbdb
+}
+
+src_install () {
+ emake install_prefix="${D}" install
+ dodoc README TODO debian/changelog
+}
diff --git a/net-mail/lbdb/metadata.xml b/net-mail/lbdb/metadata.xml
new file mode 100644
index 000000000000..44c627eb9ec7
--- /dev/null
+++ b/net-mail/lbdb/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="abook">Enables <pkg>app-misc/abook</pkg> support</flag>
+ <flag name="finger">Enables finger support</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/libdbx/Manifest b/net-mail/libdbx/Manifest
new file mode 100644
index 000000000000..2e1fbb68c614
--- /dev/null
+++ b/net-mail/libdbx/Manifest
@@ -0,0 +1,6 @@
+AUX bad_c.patch 1510 SHA256 98bb61bbeebdf0ff06389965545fb48996a1a03fc3d4cff210ec888cb3573464 SHA512 f69a184369e94a4a3e11b17452380a20a2cfec69bc3e04561411707d06def37f989c105962ffc0992bcf24d7d31a2a173d34b601d586283a952c39c540847e07 WHIRLPOOL 2a2003087f73b09813facea26f2f64d954ef3e873a28478ffc66e72f5d4a2bdee236fe7e518ada72833a507365636857190df43645af3d3b4e143976ddca2160
+DIST libdbx_1.0.3.tgz 24927 SHA256 eb2a6913a9f338164b2b62a9955da974ad44c94d8bb5e7cd68e4cd6ec175a636 SHA512 619f7cb25d5742066be6f2addbd06e433502c45489f973c628ae5d26758fc9ce1185185ae48da0de30d927eae8cbc610f775e0af182b10e72ecf5619ae79ba80 WHIRLPOOL 3f2abab7dd9195978a75412b798702e4ac6460156981e03938be054c78d146404ebb4b90f0e43a6121c7b79c5a59f7fc9f257b18c85cac078f91dd5de26f0018
+EBUILD libdbx-1.0.3.ebuild 677 SHA256 36e65d58eee6fdc7a1e9ffc0ce604d6a7a663f560a1006b566710682fabbf453 SHA512 ef8d98fbf045f1d563ff25341efecc7dbfbafd7da9cca2f89f9416097fba01addb3d8d9a898c5076564b91d76206233a1fc4848527701614c8e9ec8c28499ea4 WHIRLPOOL 514ea48b1f4785ddb25cfdbac6f73e257a5780fb8b5d941b6cb875984f32e7cdaf4c50cccd233ecab4b72b4b8c99d0e2b8bad511ad533b6110f25e3c38c5859b
+MISC ChangeLog 2650 SHA256 d0115e59ef071fd61919aec247deb3dc748dc3e087aa1a46f4041d5379b52585 SHA512 5f1ace6e345b84e1d02ddcdd50e203e6150d90dc89d7c275ee85c1bb81ddaff5d69d6639a4a36211de6158e100d8e93c979eab6447464a7d46ae89f0acd023e7 WHIRLPOOL 7a4ea49169d29c42aed1571e601ad0050748ebf734481cfcb24699a9557cdb6fb0131bf7e282c9141c2ea28097e0ec8f749998be43c23aa67d33cc03935d45cd
+MISC ChangeLog-2015 985 SHA256 a897c034874018d0e4610c5d5554c0ff85f18324e8dcc54fe1203e76ce83f8de SHA512 42cb5a68644d9c6e6b2a930182621913fd7b73edce1e5585930bc11620a0029ae0e6208d7ae37c62ae5797c900e66cd26f7efdf68b31ec36a4d16ca6f241692d WHIRLPOOL d7cbd9c6eaac5f3f84f1f0104da1859faf96e4d54c6e4763013083c6893c8638ab119377d387d74a1a4a0d879657de8b5078581906ef97f6534ee4df444b83d4
+MISC metadata.xml 249 SHA256 6e0ceaae82a6af4af939e13dd2c7099825ada30c4fd067ee12e37f0ef1f1e208 SHA512 f518f234871c8565fc5a853ca72108ad7f3e7bd1f46ba91530a4a20898406dd52d6eed8fafc16551f5a040b20ec17d90860e9b3ffc28629b0f6a461166256be7 WHIRLPOOL 5e15d65f1c192a46319f9d9fbf629a6f7d032cb3efa2e20eedc030c1d5931a0b1aada045d0356403a897d96ee1707e064f5a4c356227589681dc6f82f5badff8
diff --git a/net-mail/libdbx/files/bad_c.patch b/net-mail/libdbx/files/bad_c.patch
new file mode 100644
index 000000000000..1f7dc6d8ba03
--- /dev/null
+++ b/net-mail/libdbx/files/bad_c.patch
@@ -0,0 +1,41 @@
+diff -ru libdbx_1.0.3/libdbx.c libdbx_1.0.3-new/libdbx.c
+--- libdbx_1.0.3/libdbx.c 2002-10-05 15:07:36.000000000 +0200
++++ libdbx_1.0.3-new/libdbx.c 2006-09-20 08:53:46.000000000 +0200
+@@ -485,11 +485,11 @@
+ switch (blockp.type) {
+ case 0x01: //pointer to flag
+ email->flag = 0;
+- ((int*)bufx) = &(email->flag);
++ bufx = (char **)&(email->flag);
+ readtype = CHAR_TYPE;
+ break;
+ case 0x04: //pointer to dataptr
+- ((int*)bufx) = &(email->data_offset);
++ bufx = (char **)&(email->data_offset);
+ readtype = INT_TYPE;
+ break;
+ case 0x05: //asciiz string of subject (without RE: or FWD: etc...)
+@@ -521,7 +521,7 @@
+ readtype = STRING_TYPE;
+ break;
+ case 0x12: //date - of what i'm not sure. It is in a win32 FILETIME structure. needs converting to something
+- ((struct FILETIME*)bufx) = &(email->date);
++ bufx = (char **)&(email->date);
+ readtype = W32FT_TYPE;
+ break;
+ case 0x13: //recipient's name
+Only in libdbx_1.0.3-new: libdbx.o
+Only in libdbx_1.0.3-new: readdbx
+diff -ru libdbx_1.0.3/readdbx.c libdbx_1.0.3-new/readdbx.c
+--- libdbx_1.0.3/readdbx.c 2002-10-05 15:20:25.000000000 +0200
++++ libdbx_1.0.3-new/readdbx.c 2006-09-20 08:54:10.000000000 +0200
+@@ -19,6 +19,7 @@
+ #include <getopt.h>
+ #include <time.h>
+ #include <string.h>
++#include <stdlib.h>
+
+ #include "libdbx.h"
+ #include "common.h"
+Only in libdbx_1.0.3-new: readoe
+Files libdbx_1.0.3/timeconv.o and libdbx_1.0.3-new/timeconv.o differ
diff --git a/net-mail/libdbx/libdbx-1.0.3.ebuild b/net-mail/libdbx/libdbx-1.0.3.ebuild
new file mode 100644
index 000000000000..4f8dd3227f74
--- /dev/null
+++ b/net-mail/libdbx/libdbx-1.0.3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+MY_PN="libdbx"
+MYFILE="${MY_PN}_${PV}.tgz"
+
+DESCRIPTION="Tools and library for reading Outlook Express mailboxes (.dbx format)"
+HOMEPAGE="https://sourceforge.net/projects/ol2mbox"
+SRC_URI="mirror://sourceforge/ol2mbox/${MYFILE}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}_${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}/bad_c.patch"
+ sed -i -e 's/-g/$(CFLAGS) $(LDFLAGS)/;s|gcc|$(CC)|g' Makefile || die
+ tc-export CC
+}
+
+src_install() {
+ dobin readoe readdbx
+ dodoc README* AUTHORS FILE-FORMAT
+}
diff --git a/net-mail/libdbx/metadata.xml b/net-mail/libdbx/metadata.xml
new file mode 100644
index 000000000000..b96bb52b9908
--- /dev/null
+++ b/net-mail/libdbx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">ol2mbox</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/libpst/Manifest b/net-mail/libpst/Manifest
new file mode 100644
index 000000000000..d090740d0aeb
--- /dev/null
+++ b/net-mail/libpst/Manifest
@@ -0,0 +1,9 @@
+AUX libpst-0.6.52-no-static-python-lib.patch 449 SHA256 38d477f58bbc4f518cc79dbe322c475bfb3829cc5daa93cb6ccf79da92e36656 SHA512 9cd44493406a58c522fdfe9423a7b15548af7e06332289c98fc1054822d209aa112d497622b3578531147934fd82335bf8c68cc8e371e31ef4716fb51cb26273 WHIRLPOOL 7cb36c586e9316d0e395a6b69330f80c544f37f7a05a35c73f358334eec883b3637bb5b12c32a416d2a7e9445fff563f3e356e9a006ad25659ac6d592d33af8e
+AUX libpst-0.6.53-pkgconfig-static.patch 211 SHA256 abf4dbfd38287db637a5ad22a498c5decd00f44ad9a0f734f65220a4c94c22fb SHA512 eb8d95b07dc96435b7d753c1ea68dfb419867b7b092c3f243de9b5983af29ae368e7e5f3a4ea5a802c82c41a2096bd01564f7f74cd733ac038abb263b6ca4d1b WHIRLPOOL dcd1e14ee2f8cd7de99ef662704c1a0b6e5856182e0914bbf516dc5072a2c6dfaf3d044826c8e4f864627274b64839ef996b4388040e7ef66dd6704ecc4d1d56
+DIST libpst-0.6.64.tar.gz 13861215 SHA256 13c4f26f422b571c08ec5f602d878527606a435408724b1bf90a11e31dc17fe3 SHA512 28f5ca83c4ede616b2d4d8dfd074a6866932a08594419aa7bb2af49f7871b4c92d97e0a583d8e2ef3be88a26c1a98c10ce9b1c0498073b528b6810d75988ee4a WHIRLPOOL 3f8c264cb1e9cf36992d453d5568af3fe195aef9f67fea529c50f8de71ba6b49e37b9bb95b817e34210f680b87682daaef121540bf5bd2d4388304f37c9dad46
+DIST libpst-0.6.66.tar.gz 13836942 SHA256 92b49939d821091d9d25e27e17c78dbb867f3f9ab5b8f43e2b01ace0677e1f72 SHA512 0d07b13554b9e009787ce651714281d21a4d38afae997bd87244690538bd18176ab74655c0a0646b1c475c916052d4295ffe749e6a03765450af7e9c8443dd86 WHIRLPOOL 32c59f618013a2f1799b880eb3231d668412e22b1292cd5d4c026ca12e23c2133304f6ec3bd67ea22ec3622b5f32028d54fbaebd6e1d1d788284eecc1a29252f
+EBUILD libpst-0.6.64-r1.ebuild 1582 SHA256 19b9b8951496599215ab94ad94c8e5d67d816fcffd7907d73034fc83a66afce7 SHA512 b48e4db54a90d18ce2b230d74719557b9241ed19e9318c18ce351120e243d34866af1d8bba2bbe0d79a37df4367fa6bc131baea13c9f909f2eee59b5f0505f01 WHIRLPOOL 970dfdb587d74f606f3f44ae01080ba7900ac017f5fb43cd4b11b5f47c2b6983f42aff62dde9e7deb0a0f57337f2e9ca38ba639378ef0913e04b5e880d79f4bb
+EBUILD libpst-0.6.66-r1.ebuild 1584 SHA256 ac6a9135a2b531edea540b4beb01aa4febdddaeb6771c2a5c14a456f8b87b56d SHA512 79b01bf104c94bd232407613e1680e182dde7f83a250cae9e06b5b971659d6f888bf371b49a64cd7e36496c26d8cb8508a857e42222786d45bf56d41af947c23 WHIRLPOOL ebdb517171c570167a88caf9b797e88043e64ed9587d7d6c0d5ffc5a0153fcfb65a284b17c57fe219013f1773b12c0325e6193855ada6e5bcd0e7802eba7f4e1
+MISC ChangeLog 3280 SHA256 70d90cbe5e26345a7621550c90d52e894467f7f3c765756c5d81dd5d83a99150 SHA512 53d6980e5c86241e2198f912162831959cb9b900a2dac882578e967eb7d701237f6966bf0e717595c763a736d2703e95ef75cb9270c719255277055bb803088f WHIRLPOOL 0c96b59754999d1641210b8bf67c82487bee98a70d790eea26fd4d921966aa7c68dabf3f6ef7dab0c5d58d40b620070568c2e9bbe90cc75b56e202e5bc0f3622
+MISC ChangeLog-2015 7141 SHA256 e0a902c202ed2397b21e3ee50c9db89508967ed9f9dc881233982cfd35f29d7d SHA512 b4fb2d9acd02d7fd911d05a06b9f5c0265c88f2e9b92ed0c57c9063ca7795d20149012b7e0b77dff9b974f7215dd6a3d1ddf6183dc40be64ad7236f62ae3de92 WHIRLPOOL 1f78efa88ea058e946ab6f38e6fad6ededffcbc892de1824eb36056344680620af292fb40438e9528e997133871ef81447408cf96388737379047cf72d1ac071
+MISC metadata.xml 232 SHA256 c311cfc7007b029ac97a584c820a72578ebfb56d25b4b0e1f51b6741e9d5105c SHA512 bc3293101ebc8838fe7c3a9ba19bb540a8c5357d9181545dd460bc404637e469866428445b8340833b20cdd44b55ccf88ff97433bd88ba8ee8b7353ceb140b8a WHIRLPOOL 0a995d25335893b41c60380a8378d1eaac46072c16fb5f93f9b85238cfcf9562b7539a295bbd6ab7440adc88cd29cb2fe9a70729595d6aac93666629017d1806
diff --git a/net-mail/libpst/files/libpst-0.6.52-no-static-python-lib.patch b/net-mail/libpst/files/libpst-0.6.52-no-static-python-lib.patch
new file mode 100644
index 000000000000..5bf53c6dd81c
--- /dev/null
+++ b/net-mail/libpst/files/libpst-0.6.52-no-static-python-lib.patch
@@ -0,0 +1,11 @@
+--- libpst-0.6.52/python/Makefile.am.orig
++++ libpst-0.6.52/python/Makefile.am
+@@ -8,7 +8,7 @@
+
+ pythonlibdir = $(libdir)/@PYTHON_VERSION@/site-packages
+ pythonlib_LTLIBRARIES = _libpst.la
+-_libpst_la_LDFLAGS = -module $(NO_UNDEFINED) -avoid-version
++_libpst_la_LDFLAGS = -module $(NO_UNDEFINED) -avoid-version -shared
+ _libpst_la_SOURCES = python-libpst.cpp
+ _libpst_la_LIBADD = -lboost_python ../src/libpst.la
+
diff --git a/net-mail/libpst/files/libpst-0.6.53-pkgconfig-static.patch b/net-mail/libpst/files/libpst-0.6.53-pkgconfig-static.patch
new file mode 100644
index 000000000000..373533b75935
--- /dev/null
+++ b/net-mail/libpst/files/libpst-0.6.53-pkgconfig-static.patch
@@ -0,0 +1,8 @@
+--- libpst-0.6.53/libpst.pc.in.orig
++++ libpst-0.6.53/libpst.pc.in
+@@ -8,4 +8,5 @@
+ Version: @VERSION@
+ Requires:
+ Libs: -L${libdir} -lpst
++Libs.private: @LIBS@
+ Cflags: -I${includedir}/libpst-@LIBPST_SO_MAJOR@
diff --git a/net-mail/libpst/libpst-0.6.64-r1.ebuild b/net-mail/libpst/libpst-0.6.64-r1.ebuild
new file mode 100644
index 000000000000..88ab640dc3c1
--- /dev/null
+++ b/net-mail/libpst/libpst-0.6.64-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools python-single-r1
+
+DESCRIPTION="Tools and library for reading Outlook files (.pst format)"
+HOMEPAGE="http://www.five-ten-sg.com/libpst/"
+SRC_URI="http://www.five-ten-sg.com/${PN}/packages/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="debug dii doc python static-libs"
+
+RDEPEND="dii? ( media-gfx/imagemagick:=[png] )
+ python? ( >=dev-libs/boost-1.48:=[python]
+ ${PYTHON_DEPS} )
+ gnome-extra/libgsf:="
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ virtual/pkgconfig
+ dii? ( media-libs/gd[png] )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # don't build the static python library
+ eapply "${FILESDIR}"/${PN}-0.6.52-no-static-python-lib.patch
+
+ # fix pkgconfig file for static linking
+ eapply "${FILESDIR}"/${PN}-0.6.53-pkgconfig-static.patch
+
+ # conditionally install the extra documentation
+ use doc || { sed -i -e "/SUBDIRS/s: html::" Makefile.am || die; }
+
+ # don't install duplicate docs
+ sed -i -e "/^html_DATA =/d" Makefile.am || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-libpst-shared \
+ $(use_enable debug pst-debug) \
+ $(use_enable dii) \
+ $(use_enable python) \
+ $(use_enable static-libs static) \
+ $(use python && echo --with-boost-python=boost_python-${EPYTHON#python})
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-mail/libpst/libpst-0.6.66-r1.ebuild b/net-mail/libpst/libpst-0.6.66-r1.ebuild
new file mode 100644
index 000000000000..6edb8f5a9dde
--- /dev/null
+++ b/net-mail/libpst/libpst-0.6.66-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools python-single-r1
+
+DESCRIPTION="Tools and library for reading Outlook files (.pst format)"
+HOMEPAGE="http://www.five-ten-sg.com/libpst/"
+SRC_URI="http://www.five-ten-sg.com/${PN}/packages/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug dii doc python static-libs"
+
+RDEPEND="dii? ( media-gfx/imagemagick:=[png] )
+ python? ( >=dev-libs/boost-1.48:=[python]
+ ${PYTHON_DEPS} )
+ gnome-extra/libgsf:="
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ virtual/pkgconfig
+ dii? ( media-libs/gd[png] )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # don't build the static python library
+ eapply "${FILESDIR}"/${PN}-0.6.52-no-static-python-lib.patch
+
+ # fix pkgconfig file for static linking
+ eapply "${FILESDIR}"/${PN}-0.6.53-pkgconfig-static.patch
+
+ # conditionally install the extra documentation
+ use doc || { sed -i -e "/SUBDIRS/s: html::" Makefile.am || die; }
+
+ # don't install duplicate docs
+ sed -i -e "/^html_DATA =/d" Makefile.am || die
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-libpst-shared \
+ $(use_enable debug pst-debug) \
+ $(use_enable dii) \
+ $(use_enable python) \
+ $(use_enable static-libs static) \
+ $(use python && echo --with-boost-python=boost_python-${EPYTHON#python})
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-mail/libpst/metadata.xml b/net-mail/libpst/metadata.xml
new file mode 100644
index 000000000000..1ec1cdf5e944
--- /dev/null
+++ b/net-mail/libpst/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="dii">enable dii support</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/list-remote-forwards/Manifest b/net-mail/list-remote-forwards/Manifest
new file mode 100644
index 000000000000..97d7b99a50bc
--- /dev/null
+++ b/net-mail/list-remote-forwards/Manifest
@@ -0,0 +1,4 @@
+DIST list-remote-forwards-0.0.1.tar.gz 25869 SHA256 da772a92043fcdfd60698bd24c03c1a73cd0531ab88923dd1dbe13ed091105af SHA512 b6d8c0e8a72e3dcbc62c00b291da99da6c37c853997c367eb60db128db327c1f862e9dc6d9ad4028aad2e0cec9acc96add28d85d4b22508e1fd00a65bb9b0317 WHIRLPOOL 5ac8b0001b8cc53fc8ecf3dcd25ac8e4c071a3516efda929f7c977c9d91a94b97596bf332612e32e2396f8f4907799dd7251c5d9061276f17970c2909902c899
+EBUILD list-remote-forwards-0.0.1-r1.ebuild 1002 SHA256 bb41208b985da0a3e97b3e7bd1215ec38788d217f8676e3834a13e3e738f8736 SHA512 32a9eff4dc5d3c3776bdac23f24e8f41000186aca6f479d3073321ad536b952f73a4b75f2ae26b99e3937504e95d4d0c2944a3875d7b9c298d16bfb985c28457 WHIRLPOOL 59781036f7a53f7ae8226d4c7f99631cf7940fb18c21e125dd191dc7850db7ee01fe2948def2c4a38b837bd645acea4b8ccb959a7e683aaa3fa7fb3667000700
+MISC ChangeLog 382 SHA256 3f94451e27df40d2448b5292ec256f021ab5fe74bab5e2023187cdb1ca0c35b5 SHA512 718aae12ca1f238b7fac60e1bea4aa61bfd827aceaf2a5a6c56ffdcf7ae792b6f025a6e0206752f5e5695312c81943c98b990d9038d935977a187a2b53c5e17b WHIRLPOOL eb80269f3c7090d1fdd9f3e0e73b8142cdc9f13d698b8cd37cf7ef7111c5ece64aed42dbca65bf3af1a8d104d018e3e23ce33c0353e5074c95f216db6521aa08
+MISC metadata.xml 4251 SHA256 a0c756472af768b08ff6b3a04d62cd5bdf5d6194cf01b73508ac31938353fb5a SHA512 aac8fb1bf3149ac84a9007e88cd2dd4cf6daca2f7d6d10d08d70efb5515dab7f2968735f1c773baee447c19046a948f29289de5fb2852fcceae0d748b8c285c7 WHIRLPOOL 12fa8fe88b986e91a24d532140a01096bd94710ff4875a1f38459e07eb4a7cb08031aae5b08053e7727924c2135cb9f91633af8a7ac152b80df3793c2899fdfc
diff --git a/net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r1.ebuild b/net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r1.ebuild
new file mode 100644
index 000000000000..65c65475d57a
--- /dev/null
+++ b/net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.4.4
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="List all remote forwards for mail accounts stored in a database"
+HOMEPAGE="http://hackage.haskell.org/package/list-remote-forwards"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.16.0
+ >=dev-haskell/cmdargs-0.10
+ >=dev-haskell/configurator-0.2
+ >=dev-haskell/dns-1.4
+ >=dev-haskell/hdbc-2.4
+ >=dev-haskell/hdbc-postgresql-2.3
+ >=dev-haskell/hdbc-sqlite3-2.3
+ >=dev-haskell/missingh-1.2
+ >=dev-haskell/tasty-0.8
+ >=dev-haskell/tasty-hunit-0.8
+ >=dev-haskell/tasty-quickcheck-0.8
+ >=dev-lang/ghc-7.6.1
+ test? ( >=dev-haskell/doctest-0.9
+ >=dev-haskell/filemanip-0.3.6 )
+"
+
+src_install() {
+ haskell-cabal_src_install
+ doman "${S}/doc/man1/${PN}.1"
+}
diff --git a/net-mail/list-remote-forwards/metadata.xml b/net-mail/list-remote-forwards/metadata.xml
new file mode 100644
index 000000000000..9ff09b22b666
--- /dev/null
+++ b/net-mail/list-remote-forwards/metadata.xml
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ <name>Michael Orlitzky</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ /Usage/:
+
+ @
+ list-remote-forwards [OPTIONS]
+ @
+
+ List all remote forwards for mail accounts stored in a SQL database.
+
+ A list of local domains is supplied to the program (more or less)
+ through the @--domain-query@ option. Any addresses which
+ forward to another address not contained in this list of local domains
+ is considered a remote forward. Remote forwards can cause problems for
+ a number of reasons, the most common of which are,
+
+ * If the sender has an SPF record authorizing his mail server to send
+ mail on his behalf, then when his message is forwarded by the
+ recipient's mail server, it will fail any subsequent SPF checks. This
+ will likely cause the message to be rejected, and the original
+ recipient's server will generate backscatter.
+
+ * If any spam makes it through the filter on the recipient's mail
+ server, that spam will then be forwarded to a remote destination. The
+ remote destination will blame the forwarding server for the spam, and
+ that can impact its reputation and potentially lead to a blacklisting
+ even though the spam did not originate on the recipient's server.
+
+ Whether or not these are an issue depends on the circumstances, but in
+ any case it is useful to know who is forwarding mail off-site.
+
+ /Input:/
+
+ None.
+
+ /Output:/
+
+ A list of addresses that are forwarded to remote domains.
+
+ /Options/:
+
+ @
+ \--database
+ @
+
+ The name of the database (or file, if SQLite) to which we should
+ connect.
+
+ Default: The name of the current user (Postgres only).
+
+ @
+ \--domain-query
+ @
+ SQL query used to produce a list of local domains. This should return
+ the set of all domains (i.e one column) that are local to the
+ server. See the default value for an example.
+
+ Default: \"SELECT domain FROM domain WHERE domain &lt;&gt; 'ALL' ORDER BY domain;\"
+
+ @
+ \--exclude-mx, -e
+ @
+
+ The name of a mail exchanger, the forwards of whose domains we should
+ ignore. For example, if one mail exchanger, mx1.example.com, has
+ strict spam filtering, it may be acceptable to have remote forwarding
+ for domains that have mx1.example.com as their sole mail exchanger (MX
+ record). In that case, you might want to exclude those domains from
+ the report by naming mx1.example.com here.
+
+ A forward will be excluded from the report only if /all/ of its MX
+ records are contained in the given exclude list.
+
+ This option can be repeated to add mail exchangers to the exclude list.
+
+ Default: [] (empty)
+
+ @
+ \--forward-query, -f
+ @
+
+ SQL query used to produce a list of all forwards on the mail
+ system. This query should return the set of all (address, goto)
+ triples, where \"goto\" is the destination address; i.e. to where
+ the \"address\" forwards. The \"goto\" field may contain more
+ than one email address, separated by commas.
+
+ Default: \"SELECT address,goto FROM alias ORDER BY address;\"
+
+ @
+ \--host, -h
+ @
+
+ Hostname where the database is located (Postgres-only).
+
+ Default: None, a UNIX domain socket connection is attempted (Postgres only)
+
+ @
+ \--password
+ @
+
+ Password used to connect to the database (Postgres-only).
+
+ Default: None (assumes passwordless authentication)
+
+ @
+ \--port
+ @
+ Port number used to connect to the database (Postgres-only).
+
+ Default: None, a UNIX domain socket connection is attempted (Postgres only)
+
+ @
+ \--username, -u
+ @
+
+ Username used to connect to the database (Postgres-only).
+
+ Default: The current user
+
+ /Examples/:
+
+ @
+ $ list-remote-forwards --database=test/fixtures/postfixadmin.sqlite3
+ user1@example.com -&gt; user1@example.net
+ user2@example.com -&gt; user1@example.org
+ user2@example.com -&gt; user2@example.org
+ user2@example.com -&gt; user3@example.org
+ user7@example.com -&gt; user8@example.net
+ @
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/mailbase/Manifest b/net-mail/mailbase/Manifest
new file mode 100644
index 000000000000..91261a0d32ab
--- /dev/null
+++ b/net-mail/mailbase/Manifest
@@ -0,0 +1,9 @@
+AUX aliases 809 SHA256 41fffc461dfa6a8c36564698b4d9eaabaf280dbc446b3e7f3af4820930e687d6 SHA512 748dcdd4da9deba0a5c0925b67d98bb0e46d3ef651bb97a4be2ac34a683a9090bd11e5e3c28b69d0309f806a4f60aa826e4d940e7549ac636196cd2ac4bbef2d WHIRLPOOL df43ef804c3ee035f3caa8fec55ddc77d1f66acbd21df6e059599289c9e47e4c81a772d8f2cc05fea240e9b64dfffea682b674d9d73f47c58fb78a93a9057682
+AUX common-pamd 308 SHA256 605c0a13bd80b931805d9b8b32db7e86122797da502c267804fee2a39984c45f SHA512 5b7d878969e644aac8aa9355e1a8ff9e2a9c1b07edb5a62c694bd7a4f87961242db7c85b1030540c9ad733a4d3d4c5367a047a188b21517d1d077bec6e620ec7 WHIRLPOOL 210fd35e73731305d0d9b2967c9f1e7315d4ce0a7e99194347af235405e80eab9155b2cf6354d2dd2d900122094069521cb0984f82aab5f89cc6e7ebd908cedb
+AUX common-pamd-include 245 SHA256 dd3922c06f0164d2307c3af793f05c897782af2dc28c53bda2298e3ee4446ec7 SHA512 3516815034b419bf4fd57a43536e7a25b820013d5339cb818bbbee3f0e8e26651f6b4aefae0177240219e05010ba8a2aaf6d0337220cf176801992204c3216f0 WHIRLPOOL 05bd675bedb677a396dc1369e85d7a0888380ce1009d2d96fe7730ffc01c588ac6635daab73840276bc7fe47186a7fb7fe9e34c7109196617cd13e9a18f33466
+AUX mailcap 2235 SHA256 99dcf0c43b9aa26625a8ff7e375e13f85cc0d677a93e90da62a868d8a2162cda SHA512 1461deb4f065c0d1778acbbcb1e08db821740de0363d3905a569d45d459a76d8813ef1c2c052d6e84b4b9b5576c89e524ecf44a9fffd8e05e91f85eb917557b0 WHIRLPOOL 888c53ea5a2623f3f8bf5d4ac91aac2ff8f78528be8c8b2c4fd8c3b77fd8a7e7d295c0a0ebc31d881d9226a758b43183fd269704c015526f7d45acbed577ee34
+EBUILD mailbase-1.1.ebuild 1661 SHA256 e392db663df885f3fc537e696b646166dc2dfc264932e8f6518f885411eea0f4 SHA512 85c9fbb1cf3ee6fb0725d810bb81eb5304e63b38dd5c9ec80006c26610ba02d632cc365d8ec04771c641642a26c58744f009a8ee3f5313fa92814901a5b25047 WHIRLPOOL 8264734772bb9f09932893f7c806657506c0e284fd2744dbe8a08fdf55c500a092bf29a421a9552a61a848e48ef38e208ceea8e69a36529f56494eca19eb7680
+EBUILD mailbase-1.ebuild 1612 SHA256 681b19c82a19a4603a0655b5278d905482d50881f3ceb1b1ff9826b549a66261 SHA512 ecc5194b4e35b628e9527883795f34c458550b4400ce97d37524bb0b92487f7607dd08c011f042fbfcece3cbe03d57f2476140b2436414c759e016bf096c2f4e WHIRLPOOL cad11a7c80bf8ede4b3af95eb5865710116769bf555dcf0e97fc48993f30e928d5e17251a3d5b93a8f2ac2f16fbd532647369cd1ff4c0594d9f84d4d75d1ed0a
+MISC ChangeLog 2596 SHA256 25a86e46333014b6f9926c1e52b1543a28e54c3f40a3500ba356d223e21a1783 SHA512 47b88459b8c20722eb47499b0df8f2b40ccf9dbb2c57175f36d57d5da06afe6fd0682b62e125824ee08b19e5cbb9ea7092f7c6d390ff1d0331ad3d834cd8c7e4 WHIRLPOOL 5bda8cca116cdae34a8bf0f4e5a803001127ebef92ffb2065afba8b05806a97ffac68e4dd1d5075065624cccdcd5aa12410efdf1d6aa8052ab24d9f5f264577e
+MISC ChangeLog-2015 10572 SHA256 2ae91142f066be1c583a63ccefd27d9294c94b2cf4679c23c072c82ab11e9565 SHA512 d10ff250d2a49a5bbe031b23638087512b21d9b5a3af33afc0aa80d54fc2456c980a909e1017fb543f7e24c763a15b1737cb1492f32592f51bdc4a002a184df1 WHIRLPOOL 1f60a694e34c48a338ea392cd916325900870994a38d776338f645c9be1bc722a26f5afbb750c8343327791a412889260f8d3d37f6340251c761f74f75800b85
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/mailbase/files/aliases b/net-mail/mailbase/files/aliases
new file mode 100644
index 000000000000..ea8350591659
--- /dev/null
+++ b/net-mail/mailbase/files/aliases
@@ -0,0 +1,33 @@
+# Basic system aliases -- these MUST be present.
+MAILER-DAEMON: postmaster
+postmaster: root
+
+# General redirections for pseudo accounts.
+adm: root
+bin: root
+daemon: root
+exim: root
+lp: root
+mail: root
+named: root
+nobody: root
+postfix: root
+
+# Well-known aliases -- these should be filled in!
+# root:
+# operator:
+
+# Standard RFC2142 aliases
+abuse: postmaster
+ftp: root
+hostmaster: root
+news: usenet
+noc: root
+security: root
+usenet: root
+uucp: root
+webmaster: root
+www: webmaster
+
+# trap decode to catch security attacks
+# decode: /dev/null
diff --git a/net-mail/mailbase/files/common-pamd b/net-mail/mailbase/files/common-pamd
new file mode 100644
index 000000000000..5464207607c8
--- /dev/null
+++ b/net-mail/mailbase/files/common-pamd
@@ -0,0 +1,7 @@
+# Provided by mailbase (dont remove this line!)
+# Standard pam.d file for mail service packages.
+
+auth required pam_nologin.so
+auth required pam_stack.so service=system-auth
+account required pam_stack.so service=system-auth
+session required pam_stack.so service=system-auth
diff --git a/net-mail/mailbase/files/common-pamd-include b/net-mail/mailbase/files/common-pamd-include
new file mode 100644
index 000000000000..f8ebe560fdb6
--- /dev/null
+++ b/net-mail/mailbase/files/common-pamd-include
@@ -0,0 +1,7 @@
+# Provided by mailbase (dont remove this line!)
+# Standard pam.d file for mail service packages.
+
+auth required pam_nologin.so
+auth include system-auth
+account include system-auth
+session include system-auth
diff --git a/net-mail/mailbase/files/mailcap b/net-mail/mailbase/files/mailcap
new file mode 100644
index 000000000000..7c42a55cf635
--- /dev/null
+++ b/net-mail/mailbase/files/mailcap
@@ -0,0 +1,25 @@
+
+text/plain; less '%s'; needsterminal
+application/x-troff-man; /usr/bin/nroff -mandoc -Tlatin1; copiousoutput; print=/usr/bin/nroff -mandoc -Tlatin1 | print text/plain:-
+text/plain; shownonascii iso-8859-1 '%s'; description="Plain ASCII Text"; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != ""
+text/richtext; shownonascii iso-8859-1 -e richtext -p '%s'; description="Richtext"; copiousoutput; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != ""
+text/enriched; shownonascii iso-8859-1 -e richtext -e -p '%s'; description="Enriched Text"; copiousoutput; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != ""
+message/partial; showpartial '%s' %{id} %{number} %{total}; description="An incomplete message"
+message/external-body; showexternal '%s' %{access-type} %{name} %{site} %{directory} %{mode} %{server}; needsterminal; description="A reference to data stored in an external location"; composetyped="extcompose '%s"'
+audio/basic; /usr/lib/mime/playaudio '%s'; description=Basic uLaw Audio; nametemplate=%s.au
+application/x-tar; /bin/tar tvf -; print=/bin/tar tvf - | print text/plain:-; copiousoutput
+application/x-gtar; /bin/tar tvzf -; print=/bin/tar tvzf - | print text/plain:-; copiousoutput
+text/plain; more '%s'; needsterminal
+application/xrx; view=xrx '%s'; description="remote X application"; test=test "$DISPLAY"; nametemplate=%s.rx
+text/richtext; richtext '%s'; description="Richtext"; copiousoutput
+text/enriched; richtext -e '%s'; description="Enriched Text"; copiousoutput
+text/plain; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != ""
+text/plain; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
+text/html; /usr/bin/lynx -force_html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
+text/*; less '%s'; needsterminal
+text/html; /usr/bin/lynx -dump -force_html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html
+text/*; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != ""
+text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
+text/*; more '%s'; needsterminal
+*/*; less '%s'; needsterminal
+*/*; false; print=lpr '%s'
diff --git a/net-mail/mailbase/mailbase-1.1.ebuild b/net-mail/mailbase/mailbase-1.1.ebuild
new file mode 100644
index 000000000000..27f616b73131
--- /dev/null
+++ b/net-mail/mailbase/mailbase-1.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit pam eutils user
+
+DESCRIPTION="MTA layout package"
+SRC_URI=""
+HOMEPAGE="https://www.gentoo.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="pam"
+
+RDEPEND="pam? ( virtual/pam )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ enewgroup mail 12
+ enewuser mail 8 -1 /var/spool/mail mail
+ enewuser postmaster 14 -1 /var/spool/mail
+}
+
+src_install() {
+ dodir /etc/mail
+ insinto /etc/mail
+ doins "${FILESDIR}"/aliases || die
+ insinto /etc
+ doins "${FILESDIR}"/mailcap || die
+
+ keepdir /var/spool/mail
+ fowners root:mail /var/spool/mail
+ fperms 03775 /var/spool/mail
+ dosym /var/spool/mail /var/mail
+
+ newpamd "${FILESDIR}"/common-pamd-include pop
+ newpamd "${FILESDIR}"/common-pamd-include imap
+ if use pam ; then
+ local p
+ for p in pop3 pop3s pops ; do
+ dosym pop /etc/pam.d/${p} || die
+ done
+ for p in imap4 imap4s imaps ; do
+ dosym imap /etc/pam.d/${p} || die
+ done
+ fi
+}
+
+get_permissions_oct() {
+ if [[ ${USERLAND} = GNU ]] ; then
+ stat -c%a "${ROOT}$1"
+ elif [[ ${USERLAND} = BSD ]] ; then
+ stat -f%p "${ROOT}$1" | cut -c 3-
+ fi
+}
+
+pkg_postinst() {
+ if [[ "$(get_permissions_oct /var/spool/mail)" != "3775" ]] ; then
+ echo
+ ewarn "Your ${ROOT}var/spool/mail/ directory permissions differ from"
+ ewarn " those which mailbase wants to set it to (03775)."
+ ewarn " If you did not change them on purpose, consider running:"
+ ewarn
+ ewarn " chown root:mail ${ROOT}var/spool/mail/"
+ ewarn " chmod 03775 ${ROOT}var/spool/mail/"
+ echo
+ fi
+}
diff --git a/net-mail/mailbase/mailbase-1.ebuild b/net-mail/mailbase/mailbase-1.ebuild
new file mode 100644
index 000000000000..b7b4232af149
--- /dev/null
+++ b/net-mail/mailbase/mailbase-1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit pam eutils user
+
+DESCRIPTION="MTA layout package"
+SRC_URI=""
+HOMEPAGE="https://www.gentoo.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="pam"
+
+RDEPEND="pam? ( virtual/pam )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ enewgroup mail 12
+ enewuser mail 8 -1 /var/spool/mail mail
+ enewuser postmaster 14 -1 /var/spool/mail
+}
+
+src_install() {
+ dodir /etc/mail
+ insinto /etc/mail
+ doins "${FILESDIR}"/aliases || die
+ insinto /etc
+ doins "${FILESDIR}"/mailcap || die
+
+ keepdir /var/spool/mail
+ fowners root:mail /var/spool/mail
+ fperms 0775 /var/spool/mail
+ dosym /var/spool/mail /var/mail
+
+ newpamd "${FILESDIR}"/common-pamd-include pop
+ newpamd "${FILESDIR}"/common-pamd-include imap
+ if use pam ; then
+ local p
+ for p in pop3 pop3s pops ; do
+ dosym pop /etc/pam.d/${p} || die
+ done
+ for p in imap4 imap4s imaps ; do
+ dosym imap /etc/pam.d/${p} || die
+ done
+ fi
+}
+
+get_permissions_oct() {
+ if [[ ${USERLAND} = GNU ]] ; then
+ stat -c%a "${ROOT}$1"
+ elif [[ ${USERLAND} = BSD ]] ; then
+ stat -f%p "${ROOT}$1" | cut -c 3-
+ fi
+}
+
+pkg_postinst() {
+ if [[ "$(get_permissions_oct /var/spool/mail)" != "775" ]] ; then
+ echo
+ ewarn "Your ${ROOT}/var/spool/mail/ directory permissions differ from"
+ ewarn " those which mailbase set when you first installed it (0775)."
+ ewarn " If you did not change them on purpose, consider running:"
+ ewarn
+ ewarn " chmod 0775 ${ROOT}/var/spool/mail/"
+ echo
+ fi
+}
diff --git a/net-mail/mailbase/metadata.xml b/net-mail/mailbase/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/mailbase/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/mailbox-count/Manifest b/net-mail/mailbox-count/Manifest
new file mode 100644
index 000000000000..b390fb79db69
--- /dev/null
+++ b/net-mail/mailbox-count/Manifest
@@ -0,0 +1,4 @@
+DIST mailbox-count-0.0.2.tar.gz 20644 SHA256 6eef4b2300a8a5a53bb44ec8c192324025ebddcdc81c2ba145f812a941dba3fd SHA512 98e39927382719295260c64bd5888244000dbbb3fbd7f6405dcffe78a4fc5f1dea7f8236542e58eb0118bb421c19225a8be0560b92c7688c0701418c7221d569 WHIRLPOOL e8a01030415a3be24926d9b0f6ba812a706d361f065c3b8a7622ab532f31282f4d506e976f1fefdf208039ddc95e1e9b8002e27e01d67ca3648cb85cf7cff7e8
+EBUILD mailbox-count-0.0.2-r1.ebuild 829 SHA256 87c8712f7eb3e845bd5d65974a29f8b1a03f477392bfee4a91dd2a570ecf777c SHA512 d3b85760e190f0d098dd16220a19bcd6de3338a8b0f7b340951045a454efd2c451688146c4409fcc292c33cda4d2411b91f29262dfd08be6590b034665bb3f0e WHIRLPOOL de5e7c569e1b82a49f79cd9e581238ed7a1af063c77c832b526b35632be73a9c450fb6ef7e007d926f61e862169add727f0294d383af9f3a62ab45409abd2664
+MISC ChangeLog 353 SHA256 ac74aef35ec35f20d5e2866cac5768dc6b7ab2af0792be667605520bc0d2b639 SHA512 b161b232e8092ebda6f32cde587bd02beb6c736ad560e15e4fc8073a50767d100fa831b716b55da1a66fc2e4751b2dbcf0e253b4640de29ac2d06cbb4ba52e45 WHIRLPOOL 00e734a3a057eed5fe575fe18952bff7dabbbdace30568f7fbd85d3bd1ce64bdd021ee2ee64d0e2598631a938ac91c2cdde6802e060b9f6ba8b208255ef1340f
+MISC metadata.xml 3362 SHA256 bd7a3f229fdc2a01989936a4113c4498368d0c76e507f671d2fac968e2d5aef1 SHA512 5f2021684ece017c676578ec2508e69cf3f4769cfed9282276e962f98ca9114fa67cb197875f45266cca1d77aced83a5af1d08daa33957f5c7661c75949e164c WHIRLPOOL e31d3cc3fc5a693008cbf9cfe1fb9c2b4a7cab9467be95f3798ee5fd92dcf33e548d4a4233d7586a52df5ae202f5445cca9e9738907dfdc9a481157f11ac41d6
diff --git a/net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild b/net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild
new file mode 100644
index 000000000000..cd5c14db95a4
--- /dev/null
+++ b/net-mail/mailbox-count/mailbox-count-0.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.4.2
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Count mailboxes in a SQL database"
+HOMEPAGE="http://hackage.haskell.org/package/mailbox-count"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.16.0
+ >=dev-haskell/cmdargs-0.10
+ >=dev-haskell/configurator-0.2
+ >=dev-haskell/hdbc-2.4
+ >=dev-haskell/hdbc-postgresql-2.3
+ >=dev-haskell/hdbc-sqlite3-2.3
+ >=dev-haskell/missingh-1.2
+ >=dev-haskell/tasty-0.8
+ >=dev-haskell/tasty-hunit-0.8
+ >=dev-lang/ghc-7.6.1
+ test? ( >=dev-haskell/doctest-0.9
+ >=dev-haskell/filemanip-0.3.6 )
+"
diff --git a/net-mail/mailbox-count/metadata.xml b/net-mail/mailbox-count/metadata.xml
new file mode 100644
index 000000000000..fb7f98befbe3
--- /dev/null
+++ b/net-mail/mailbox-count/metadata.xml
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ <name>Michael Orlitzky</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ /Usage/:
+
+ @
+ mailbox-count [OPTIONS]
+ @
+
+ Mailbox-count produces a simple count of mailboxes that exist
+ per-domain in some SQL database. The default queries are compatible
+ with the schema used by PostfixAdmin &lt;http://postfixadmin.sourceforge.net/&gt;,
+ but it is possible to supply your own queries via the @--summary-query@
+ and @--detail-query@ options.
+
+ The summary report lists each domain, along with the number of
+ mailboxes owned by that domain. The order is determined by the summary
+ query, which lists the domains alphabetically by default.
+
+ The default detail report shows the same, but also contains a list of
+ each individual mailbox (again in alphabetical order) belonging to the
+ domains.
+
+ /Input/:
+
+ None.
+
+ /Output/:
+
+ Either a summary, or detailed report (with @--detail@) of the
+ number of mailboxes per-domain contained in the database.
+
+ /Options/:
+
+ @
+ \--database
+ @
+
+ The name of the database (or file, if SQLite) to which we should
+ connect.
+
+ Default: The name of the current user (Postgres only).
+
+ @
+ \--detail
+ @
+
+ Produce a detailed report listing all mailboxes by domain.
+
+ @
+ \--detail-query
+ @
+
+ SQL query used to produce the detail report. This should return the
+ set of all (domain, username) pairs. See the default value for an
+ example.
+
+ Default: \"SELECT domain,username FROM mailbox ORDER BY domain;\"
+
+ @
+ \--host
+ @
+
+ Hostname where the database is located (Postgres-only).
+
+ Default: None, a UNIX domain socket connection is attempted (Postgres only)
+
+ @
+ \--password
+ @
+
+ Password used to connect to the database (Postgres-only).
+
+ Default: None (assumes passwordless authentication)
+
+ @
+ \--port
+ @
+ Port number used to connect to the database (Postgres-only).
+
+ Default: None, a UNIX domain socket connection is attempted (Postgres only)
+
+ @
+ \--summary-query
+ @
+
+ SQL query used to produce the summary report. This should return
+ (domain, user count) pairs. See the default value for an
+ example.
+
+ Default: \"SELECT domain,COUNT(username) FROM mailbox GROUP BY domain
+ ORDER BY domain;\"
+
+ @
+ \--username
+ @
+
+ Username used to connect to the database (Postgres-only).
+
+ Default: The current user
+
+ /Examples/:
+
+ The default summary report:
+
+ @
+ $ mailbox-count --database=postfixadmin.sqlite3
+ Summary (number of mailboxes per domain)
+ \----------------------------------------
+ example.com: 3
+ example.invalid: 1
+ example.net: 2
+ example.org: 1
+ @
+
+ The more detailed report:
+
+ @
+ $ mailbox-count --detail --database=postfixadmin.sqlite3
+ Detail (list of all mailboxes by domain)
+ \----------------------------------------
+ example.com (3):
+ &amp;#x20; user1
+ &amp;#x20; user3
+ &amp;#x20; user5
+ example.invalid (1):
+ &amp;#x20; user7
+ example.net (2):
+ &amp;#x20; user2
+ &amp;#x20; user4
+ example.org (1):
+ &amp;#x20; user6
+ @
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/maildirtree/Manifest b/net-mail/maildirtree/Manifest
new file mode 100644
index 000000000000..a0df026bf699
--- /dev/null
+++ b/net-mail/maildirtree/Manifest
@@ -0,0 +1,6 @@
+AUX maildirtree-0.6-ldflags.patch 554 SHA256 09d9eff98ca34714709154b55ff0e35faf6408f39597989ae28886cd5ca011da SHA512 7969cdf5887e5030c516ee07de057b33a974df912b457833618925a0c00bffe393de2df80fb67858710690d0ddbc877fe59a2a323b61008a5005b189304e3acc WHIRLPOOL dfd2148449f9a0e480b7cdd3724cddfecd925044add707e8e2a9c94aacfb2fa3e8c43932b4e6a659886399a8c5f3018fefb1c9b38ac0b7d99c61e2cd1827554c
+DIST maildirtree-0.6.tar.gz 52569 SHA256 7797345e3deba6e28524d2f537b7d0e3308581ab7f26288ebea8a029e8b5015d SHA512 13a897b416308b4da7f6e4cb0a93e201fd873b8c490d77ca4186a373fe101837a2b7ba70706775c2ccd717f4b513ba24efe56a94f3c1075f6c0db5729cec9f2f WHIRLPOOL ba104e0cddd384cb3cea23a9029eb0165ac454c97d4cdfe8d4a15c30abf7155d046243df619de769c259ad760c7de7b9f9fb3dbcdec1a53413bd3b4aedae7463
+EBUILD maildirtree-0.6-r1.ebuild 527 SHA256 d8cab3b7687e2098911c69480448a4797e747b162f9a889ce7d24f7ec9cd1321 SHA512 ef1d8d4647f689ea831234411d3af6c06c05b1975cdc1fd5289bd18017c9694ff3b456a70ed7d37b819222d7ad1d0425c9ff7b3242d6ed227e1e8ac9026a08ac WHIRLPOOL bfb0e8e9b92153fb972bd4687377835a70cdd481828d0f068d51c31c62bbe260e0fdf13c60df6a346a73b707a5b7eb30336915ac3cbb53c66f529a7a3bba16b3
+MISC ChangeLog 2481 SHA256 07563c9cf9fa7afe7cf5b2c44d877783c3ecbf2394b01cc142c311961306f54e SHA512 cfb517ba6743e0f705c343b94af51277aefcf38d8c53172e3e1c027dbaaa94a1d4568f1d70e4b17ede282783c212257837ca2eb1cd50bda7a50d351d81917268 WHIRLPOOL ea88f63f5deb78df5db3d38dbbddfb906a901039c98a8e2ab1de85e1af305479e46052e3b3fa5d7b5cfc94e5dd9b99800cfe322dee0ee129a37752b30608b902
+MISC ChangeLog-2015 1693 SHA256 2d6bc841af8765c22140de26bcb03c1e58e79c1408381f843453962f5558e080 SHA512 486beff054c2f650be5c81cabbc2c14aa47abfb824f1ad97427e977d3f4bc0f412e03618cd04713a9e31228d03961b6789909d3e56fc9f9359ef8113c07b0788 WHIRLPOOL 8c02355ef37b84a71d6e3373f8b4cfd10a95b99430eef2ce1438abc4ef19eb8e1f0fea321b3347ddd804531f5040eb46562324c1489ea833b5b42b0870ee4d13
+MISC metadata.xml 350 SHA256 7c4e557de8b9497d03850c9e26a185b3063c1d7493608ea6b2b7044f36ce560f SHA512 bf86bf8f640c50c2fddb6cb7d73059387a4c12f208e41e1efe8e3a4703179ea77bf3f16eb43246696a22647ec1a59e80b7b82ad0138bc35e39cb7b8f7e311588 WHIRLPOOL 740590d1ceb232ebdd17305ab16c73a6f7d3af160353bb190703cfcda159a4bcd5c2b2b787518bd373a5cd1f06a0b3c402fcab4449bf4e1852efa1f082348570
diff --git a/net-mail/maildirtree/files/maildirtree-0.6-ldflags.patch b/net-mail/maildirtree/files/maildirtree-0.6-ldflags.patch
new file mode 100644
index 000000000000..f6e0e17a7277
--- /dev/null
+++ b/net-mail/maildirtree/files/maildirtree-0.6-ldflags.patch
@@ -0,0 +1,19 @@
+commit 631b3c687fe1558b88556a89838b9f264c2aed42
+Author: Eray Aslan <eras@gentoo.org>
+Date: Mon Jun 6 22:09:23 2011 +0300
+
+ Respect LDFLAGS - bug #337243
+
+diff --git a/Makefile.in b/Makefile.in
+index 62f0673..b24a609 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -33,7 +33,7 @@ maildirtree.1: $(wildcard maildirtree.1.sgml)
+ $(DBM) $< > $@
+
+ maildirtree: $(OBJS)
+- $(CC) $(CFLAGS) $(OBJS) -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
+
+ maildirtree.o: maildirtree.c config.h maildirtree.h snprintf.h
+ snprintf.o: snprintf.c config.h snprintf.h
diff --git a/net-mail/maildirtree/maildirtree-0.6-r1.ebuild b/net-mail/maildirtree/maildirtree-0.6-r1.ebuild
new file mode 100644
index 000000000000..d880ea1dc782
--- /dev/null
+++ b/net-mail/maildirtree/maildirtree-0.6-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A utility that prints trees of Courier-style Maildirs"
+HOMEPAGE="http://triplehelix.org/~joshk/maildirtree"
+SRC_URI="http://triplehelix.org/~joshk/maildirtree/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/maildirtree-0.6-ldflags.patch
+}
+
+src_install() {
+ make DESTDIR="${D}" install
+ dodoc ChangeLog INSTALL README TODO
+}
diff --git a/net-mail/maildirtree/metadata.xml b/net-mail/maildirtree/metadata.xml
new file mode 100644
index 000000000000..b25c47355837
--- /dev/null
+++ b/net-mail/maildirtree/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription lang="en">
+ A utility that prints trees of Courier-style Maildirs.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/mailfront/Manifest b/net-mail/mailfront/Manifest
new file mode 100644
index 000000000000..8b2174c88706
--- /dev/null
+++ b/net-mail/mailfront/Manifest
@@ -0,0 +1,13 @@
+AUX run-pop3front 269 SHA256 16a453e6e526647d45bca3b6d4473ea79e9094aa98330a7c485d0eacf4f5fb35 SHA512 87515965e39f8436965704054cdb35a1665ea21080b01a27a4442af7c939307e093ddc85edeae2398b29b21bd867f9ef557c9abccc6b4318304f620ed13e3a11 WHIRLPOOL d836b8e3f511f20e274be904ff2521182932b5514abedcc4195d03210d3e67120a9b9e422e48b7bcf092d99a7e38c0006b0a181a5a5fde2adf80d3a057150805
+AUX run-smtpfront 461 SHA256 1d0a09da5c530a2d4830d2f0cebda209449f51780e7854de130bb3492643134a SHA512 c8c1301d1972d4a415e549f0b9702e3670b44d258ceca606e868592d36f9cdc15ed587c25d24f17577a4d2934d59a3639a6ec66e11f9f00ed54716bdbd6dc4da WHIRLPOOL 43be6502f1c0f68940b9f1b4d2c18c803be9dafaa7f96348ded8e2eb4302545b3786c75497f0380e2b460ed57c8dc80db528c44f9ade9b57c8b32736021b44d3
+DIST mailfront-0.88.tar.gz 61406 SHA256 13f9566073a4e7b622b7626bf7285dc7f853a18c30a3c145e0ccc0e07892e2d8 SHA512 551b9f515f3a06dd203ed353cc2623a9b1612834b1e6126a075ae2e5a1f6e1f4b2742e7458e26df6d09cf72d1fc512b585bafe03b7f93e069fe33af738b21d0e WHIRLPOOL 93dc4a8fcccfaa5e793fb54c73ea97e79d440ceca45fab011be0b769b7abcc4b173956258efb05103e28d5c6274a707a2d9707da6cd8a88cef1ed091617273e6
+DIST mailfront-0.98.tar.gz 77981 SHA256 14bb762a9d57d98bb76bcc3ee19da28f380e29f9857ba3c16e5006c346c34749 SHA512 ea0e4352219cedad650787dc38ff11d76484cdaef0a4fbd3e51e68f0c0a7676cd591608658ee4f342dfa7e801c67c8a9bd862243fc9b1e776c8b2fe863faf178 WHIRLPOOL 1b67653993b5f4f0a14744a5d8e31f4b2f3d7ca7e4b575975735a283271cb4c9606340006ec69f9f72aa6c062163043e388637dc6a6a86655940bbcfa9fb334c
+DIST mailfront-1.12.tar.gz 104598 SHA256 23cf29608a32c22995e4c1b847875b4c43bc17b6f4ac9ee47e780f4cbd3dd25a SHA512 26a5dc791b810ecb9fa262d7263499774201d1a2aeaad997e959daa2cb9ed35b49a12800df29ea17136e32877a4b81bd93998da3748f7e25403f35507a9ca898 WHIRLPOOL 788af3862bc96beb89d272d57ad3552d33798ab4b1d34c13d95c5b8bd8c90f2daba2c3d29b1c8f28a69c7d1bb703e12173ba39dd3921c84df822142b35922e94
+DIST mailfront-1.16.tar.gz 108212 SHA256 6a5b9563fa0b6889647f83dc714db46c56e8e8cff3b1f508a14555927fd07097 SHA512 7f718e9c3b0f0cb4c5fcae967858f2d3597081c9e8e11c5c5e86f147c3e49e338d20acecccfb83d2db4b7e7a5b33f4cc21b0a0c2f71bb6ab8c71c76189281b2b WHIRLPOOL d250af02c65f17281dc3b17d8b444bf252631a9e85c978f0a750374b75acab2a04e1b1d277aca2fe55b5a0e3a60440ebfa18c619e11be510e8f4884221400269
+EBUILD mailfront-0.88.ebuild 1850 SHA256 34f3658cb9021955ea70838ada2ba9c80dbdfdfb777d1b9c5e87cf8401c01ec5 SHA512 bf0d2bbee2bb92b71f15579cc2e4d47da0ceebebf6dfeb25c3e08b1686781dd903054885d3a49f209072c666514797d5af6cede49ef695ec3752033a15f30686 WHIRLPOOL d1360af7171a845d45549457ea84c3fae3fe0b9a9c29786fa178fd2a58268f7988e4d9ff5dd604e967ba3e3ad5c3d3c3dba1b4426d38feba2611be7ccdfa0021
+EBUILD mailfront-0.98.ebuild 1552 SHA256 2c5edf4d9005785f3afb5b6e003b76adbf4f7b9d365dd71b7f9ce3e587697d74 SHA512 cef2578f463f5828e65726a3c5aa3a3363f410f9cfc15493f4e4bcc6267e68bb03a280708992e4d9f504eac95b75ed107792c3a96d7e5bfc43851f16c473a8eb WHIRLPOOL 96b97ec32f38af29c0a10f1d015fbdfb95a5f2bebbdc048046cb5b166acf951cf6221485648a3cf8b7467b531ba7a676580dcb7b2677a0798b08232b5af2eb12
+EBUILD mailfront-1.12.ebuild 1731 SHA256 0f1769385c6bd2bf6c492df8ab11c983832991fa21ba42a350b14039df6ec9a6 SHA512 7bba4392e6f535fd71ef00c2fa1a6e4852c6a5285f0c4002a15cec032a85da301045e986e07ed75f117c2785d0710943b325c5d289a710ee22c18ecd9e16ea93 WHIRLPOOL a8e2cfbb059ce119016ecb0377b24b88894093f63f81c459e300a2d7f8909a6e8b8c9f793ab9863d8ac0e9ce26877ec981eba5e5728532ce9a635e5fae14518a
+EBUILD mailfront-1.16.ebuild 1721 SHA256 165f6a8a990e854a2bb383d36fd9c171fda01f15dabc88e46d93db60554c3d5f SHA512 a2b45ef2e4bdbd042af29745c0f8aa44d18d968e023678a8f31afb8bf96f3352c341370be474e6b1bb565374b578e2b82a187d30724d30980f2c4de985fa6cfb WHIRLPOOL c1b2a8b1af9be62e3882acabf04525d76f74bf2805fe7150b5c5f0cf287f67c3d9cf1b44f53ba7d145e89af7c0ff2bd39ece656de67c8cc71275a8c2352dcf22
+MISC ChangeLog 2639 SHA256 ebe5f459c348aa8428a853dc153282a7574f23ea871900430ade4910a8c8afaf SHA512 5d64d52e63df9b2e90c96c0d836b6988ea3ff93ebb9d565b6571429be318a532dbb2362c6d4e048876ba50b01fddbea5a60ca2420f28449325aaf395e824c5b2 WHIRLPOOL 845d308e39419074c76de2ca1f1fc30bdc23a8a63479658f4a753427d2420706909276bedcccbd96400f6633a49e0e4be5c52ca1d98d2a88f4ea087411fd6c6c
+MISC ChangeLog-2015 3448 SHA256 6906e8e4543a484a20b55f08bcec672cee100c8158c41513f14966563a7f2ecb SHA512 06cc3664ba7440f4a60361789bd8368f2a15360e9af22ea204834fa7d823a77d51b0d6f56aa66d7432f0d7bdbe74a67c43649b1923c6198269d9e33853eb8535 WHIRLPOOL 97909c3559b7c880fb5ddec3f7965bc87f7a9ebcbe4a9bab46890dd4741f76475bae08b4cf3b98643138fa046d43b1f420d64e308a6f5abb51ed11d2f9de446a
+MISC metadata.xml 564 SHA256 a1e1c3b1e4330701f28d2fe30f2dfc6c994b2bfc104de8bf0e0c6acab9ac62c8 SHA512 5815bd67c538d4105eb0c38089caabc01ed5b02f79f9382253b92a0720c6ff5aeae8dac311db316c91c8558b14b0febb14c8fa4b97347f1e235d987acf2e862c WHIRLPOOL 50c09c6e178898a2bf5fdc24b5cc19322b2a4d75997c8be54f8c593341d743ea134078e9b53b76ff535b707afcd6a3139e78f55385fd980529f6abb1577ac30d
diff --git a/net-mail/mailfront/files/run-pop3front b/net-mail/mailfront/files/run-pop3front
new file mode 100644
index 000000000000..0f341ee714e9
--- /dev/null
+++ b/net-mail/mailfront/files/run-pop3front
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+SOCKET=`head -n1 /etc/vmailmgr/cvm-vmailmgr-socket`
+
+exec /usr/bin/softlimit -m 2000000 \
+ /usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
+ 0 pop-3 /var/qmail/bin/pop3front-auth cvm-local:${SOCKET} \
+ /var/qmail/bin/pop3front-maildir .maildir 2>&1
+
diff --git a/net-mail/mailfront/files/run-smtpfront b/net-mail/mailfront/files/run-smtpfront
new file mode 100644
index 000000000000..714a35db1394
--- /dev/null
+++ b/net-mail/mailfront/files/run-smtpfront
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+QMAILDUID=`id -u qmaild`
+NOFILESGID=`id -g qmaild`
+
+#set CVM_SASL_LOGIN and CVM_SSASL_PLAIN to the path of cvm-vmailmgr socket (/etc/vmailmgr/cvm-vmailmgr-socket
+SOCKET=`head -n1 /etc/vmailmgr/cvm-vmailmgr-socket`
+
+export CVM_SASL_LOGIN=$SOCKET
+export CVM_SASL_PLAIN=$SOCKET
+
+exec /usr/bin/softlimit -m 2000000 \
+ /usr/bin/tcpserver -H -R -v -p -x /etc/tcp.smtp.cdb \
+ -u $QMAILDUID -g $NOFILESGID 0 smtp rblsmtpd /var/qmail/bin/smtpfront-qmail 2>&1
diff --git a/net-mail/mailfront/mailfront-0.88.ebuild b/net-mail/mailfront/mailfront-0.88.ebuild
new file mode 100644
index 000000000000..f95422c8171b
--- /dev/null
+++ b/net-mail/mailfront/mailfront-0.88.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit fixheadtails toolchain-funcs
+
+DESCRIPTION="Mail server network protocol front-ends"
+HOMEPAGE="http://untroubled.org/mailfront/"
+SRC_URI="http://untroubled.org/mailfront/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~sparc ~ppc"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.006"
+RDEPEND="
+ ${DEPEND}
+ net-libs/cvm
+ virtual/qmail
+"
+
+src_unpack() {
+ unpack ${A}
+ ht_fix_file "${S}"/Makefile
+}
+
+src_compile() {
+ echo "/usr/lib/bglibs/include" > conf-bgincs
+ echo "/usr/lib/bglibs/lib" > conf-bglibs
+ echo "/var/qmail/bin" > conf-bin
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) " > conf-ld
+ emake || die
+}
+
+src_install() {
+ exeinto /var/qmail/bin
+ doexe pop3front-auth pop3front-maildir smtpfront-echo \
+ smtpfront-qmail smtpfront-reject imapfront-auth \
+ qmqpfront-qmail qmtpfront-qmail || die
+
+ #install new run files for qmail-smtpd and qmail-pop3
+ exeinto /var/qmail/supervise/qmail-smtpd
+ newexe "${FILESDIR}"/run-smtpfront run.mailfront
+ exeinto /var/qmail/supervise/qmail-pop3d
+ newexe "${FILESDIR}"/run-pop3front run.mailfront
+
+ dodoc ANNOUNCEMENT FILES NEWS README TARGETS TODO VERSION
+
+ dohtml cvm-sasl.html imapfront.html mailfront.html mailrules.html \
+ mailrules2.html pop3front.html qmail-backend.html \
+ qmail-validate.html smtpfront.html
+}
+
+pkg_config() {
+ cd /var/qmail/supervise/qmail-smtpd/
+ cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+ cd /var/qmail/supervise/qmail-pop3d/
+ cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+}
+
+pkg_postinst() {
+ echo
+ elog "Run emerge --config =${CATEGORY}/${PF}"
+ elog "to update you run files (backup are created) in"
+ elog " /var/qmail/supervise/qmail-pop3d and"
+ elog " /var/qmail/supervise/qmail-smtpd"
+ echo
+}
diff --git a/net-mail/mailfront/mailfront-0.98.ebuild b/net-mail/mailfront/mailfront-0.98.ebuild
new file mode 100644
index 000000000000..884d59a13956
--- /dev/null
+++ b/net-mail/mailfront/mailfront-0.98.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="Mail server network protocol front-ends"
+HOMEPAGE="http://untroubled.org/mailfront/"
+SRC_URI="http://untroubled.org/mailfront/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~sparc x86"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.022
+ >=net-libs/cvm-0.71
+ "
+RDEPEND="
+ ${DEPEND}
+ virtual/qmail
+ net-libs/cvm
+ "
+
+src_compile() {
+ echo "/usr/include/bglibs/" > conf-bgincs
+ echo "/usr/lib/bglibs/" > conf-bglibs
+ echo "/var/qmail/bin" > conf-bin
+ echo "/var/qmail" > conf-qmail
+ echo "${D}/var/qmail/bin" > conf-bin
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC)" > conf-ld
+ emake || die
+}
+
+src_install() {
+ dodir /var/qmail/bin
+ emake install || die
+
+ exeinto /var/qmail/supervise/qmail-smtpd
+ newexe "${FILESDIR}"/run-smtpfront run.mailfront
+ exeinto /var/qmail/supervise/qmail-pop3d
+ newexe "${FILESDIR}"/run-pop3front run.mailfront
+
+ dodoc ANNOUNCEMENT ChangeLog NEWS README VERSION
+ dohtml *.html
+}
+
+pkg_config() {
+ cd "${ROOT}"/var/qmail/supervise/qmail-smtpd/
+ cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+ cd "${ROOT}"/var/qmail/supervise/qmail-pop3d/
+ cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+}
+
+pkg_postinst() {
+ echo
+ elog "Run"
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog "to update your run files (backups are created) in"
+ elog " /var/qmail/supervise/qmail-pop3d and"
+ elog " /var/qmail/supervise/qmail-smtpd"
+ echo
+}
diff --git a/net-mail/mailfront/mailfront-1.12.ebuild b/net-mail/mailfront/mailfront-1.12.ebuild
new file mode 100644
index 000000000000..3ff971dea19a
--- /dev/null
+++ b/net-mail/mailfront/mailfront-1.12.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="Mail server network protocol front-ends"
+HOMEPAGE="http://untroubled.org/mailfront/"
+SRC_URI="http://untroubled.org/mailfront/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.106
+ >=net-libs/cvm-0.81"
+
+RDEPEND="${DEPEND}
+ virtual/qmail
+ net-libs/cvm"
+
+src_configure() {
+ echo "/usr/include/bglibs/" > conf-bgincs
+ echo "/usr/$(get_libdir)/bglibs/" > conf-bglibs
+ echo "/var/qmail" > conf-qmail
+ echo "/var/qmail/bin" > conf-bin
+ echo "/usr/$(get_libdir)/mailfront" > conf-modules
+ echo "/usr/include/mailfront" > conf-include
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_install() {
+ #dodir /var/qmail/bin
+ emake install install_prefix="${D}" || die "install failed"
+ exeinto /var/qmail/supervise/qmail-smtpd
+ newexe "${FILESDIR}"/run-smtpfront run.mailfront
+ exeinto /var/qmail/supervise/qmail-pop3d
+ newexe "${FILESDIR}"/run-pop3front run.mailfront
+
+ dodoc ANNOUNCEMENT ChangeLog NEWS README VERSION
+ dohtml *.html
+}
+
+pkg_config() {
+ cd "${ROOT}"/var/qmail/supervise/qmail-smtpd/
+ cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+ cd "${ROOT}"/var/qmail/supervise/qmail-pop3d/
+ cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+}
+
+pkg_postinst() {
+ echo
+ elog "Run"
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog "to update your run files (backups are created) in"
+ elog " /var/qmail/supervise/qmail-pop3d and"
+ elog " /var/qmail/supervise/qmail-smtpd"
+ echo
+}
diff --git a/net-mail/mailfront/mailfront-1.16.ebuild b/net-mail/mailfront/mailfront-1.16.ebuild
new file mode 100644
index 000000000000..71d144870dd4
--- /dev/null
+++ b/net-mail/mailfront/mailfront-1.16.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="Mail server network protocol front-ends"
+HOMEPAGE="http://untroubled.org/mailfront/"
+SRC_URI="http://untroubled.org/mailfront/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.106
+ >=net-libs/cvm-0.81"
+
+RDEPEND="${DEPEND}
+ virtual/qmail
+ net-libs/cvm"
+
+src_configure() {
+ echo "/usr/include/bglibs/" > conf-bgincs
+ echo "/usr/$(get_libdir)/bglibs/" > conf-bglibs
+ echo "/var/qmail" > conf-qmail
+ echo "/var/qmail/bin" > conf-bin
+ echo "/usr/$(get_libdir)/mailfront" > conf-modules
+ echo "/usr/include" > conf-include
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_install() {
+ #dodir /var/qmail/bin
+ emake install install_prefix="${D}" || die "install failed"
+ exeinto /var/qmail/supervise/qmail-smtpd
+ newexe "${FILESDIR}"/run-smtpfront run.mailfront
+ exeinto /var/qmail/supervise/qmail-pop3d
+ newexe "${FILESDIR}"/run-pop3front run.mailfront
+
+ dodoc ANNOUNCEMENT ChangeLog NEWS README VERSION
+ dohtml *.html
+}
+
+pkg_config() {
+ cd "${ROOT}"/var/qmail/supervise/qmail-smtpd/
+ cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+ cd "${ROOT}"/var/qmail/supervise/qmail-pop3d/
+ cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` && cp run.mailfront run
+}
+
+pkg_postinst() {
+ echo
+ elog "Run"
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog "to update your run files (backups are created) in"
+ elog " /var/qmail/supervise/qmail-pop3d and"
+ elog " /var/qmail/supervise/qmail-smtpd"
+ echo
+}
diff --git a/net-mail/mailfront/metadata.xml b/net-mail/mailfront/metadata.xml
new file mode 100644
index 000000000000..712ab8e234be
--- /dev/null
+++ b/net-mail/mailfront/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription lang="en">
+This is mailfront, a package containing customizeable network front-ends
+for mail servers. It contains complete SMTP, QMQP, QMTP, and POP3
+front-ends as well as an authentication module for IMAP. The mail
+delivery front-ends also contain internal address filtering features.
+</longdescription>
+</pkgmetadata>
diff --git a/net-mail/mailgraph/Manifest b/net-mail/mailgraph/Manifest
new file mode 100644
index 000000000000..2584dc089cde
--- /dev/null
+++ b/net-mail/mailgraph/Manifest
@@ -0,0 +1,8 @@
+AUX mailgraph.confd-new 646 SHA256 fdd9ac9a9e6a2b3855e0b1c89f0d85612cf947030d8298ab1ce686f157728fb6 SHA512 1f5b7f35db859be48aa935ba3936fea34653a1c8eaeeb8be0bb01fbc3644a10eaa636a508bfa5b987509ad59d390a52118f5b323a25044184b9e9a8046882710 WHIRLPOOL 0caf8c2b45ac57a64c538510db55a58809616098a73c6129fe2f6a596c63951e7959c708ffa164edb00040db26e9ef8c4b4fd2e0b0102a60693519e895cb4f13
+AUX mailgraph.initd-new 984 SHA256 4c164a97cc702884143ee71fb77440846e09eb2c88f730cfa11e21d621533d46 SHA512 e859488178bbb3f229a86f0f61bf0537664c1f6fd0761195e0111458671d8dc69998dad206f629e0dbe9c82248186075655a522b16b969ffd1c50d8ba825d3f1 WHIRLPOOL 4c10df8e74868b35e16304371bfadc959b026d771c7a86f6b2eaed7c326d9c208fd917f428ab6be33f4149de8fadabcfc246d8393e58536f3e3711b42ae66d61
+AUX mailgraph.logrotate-new 773 SHA256 6e319102938f09e9935ab25ce9701322b665b242a08badf3003c155ed4de51eb SHA512 a8fde20eb24964a0ab7efbe5e6ce0adc02e0d91daee519f4dd70049ac2f92fb53f63322128ae8716b64fb1aa28b7a2c55a8c647028ac73aff1687ad312d20baa WHIRLPOOL c0f54a4e13ee074b1d22c4682177f379cc71bcd5cdd798a6ad9a67484b25b76005e4d0a745461803599a78a8874312126f908c683560ab15a3a2bb9bb24d2731
+DIST mailgraph-1.14.tar.gz 22014 SHA256 50ea6ea8a33f5015926edd8b70a4d954ac27df4863514bddc5e69c948a7aac81 SHA512 3df0dae010ad166a157eb34a8b1fcf837ab42445d417855ea58937a75b74ca55c06044eefb6077a6117073c39a087bcdf5f58fe35c0e4d9c7d6b18bded7a0193 WHIRLPOOL 84540ee5138c5f311ab4b359732e1a267a19342b78cef8694d6bc5195db14fef877c0ec65b91ba8b9c5d7df1d388128ef123763ffe9b5f17a4141bc944445751
+EBUILD mailgraph-1.14-r2.ebuild 3724 SHA256 a5bb09df516ff7ced6368abaff04d4ba3f670ad1e22fc6165e266a8a0351ff4a SHA512 77484eaf2c63041bc780c18dd0120eaea06035c74526caba3b553f56fdb61189be6d13bfb5b3cc13ee059740f6bb9ae0cfef44f8de9cd80e7145abf9f4e6cedd WHIRLPOOL 72f076d51e936ad2f2d9cec53b740805a8cde8c497da5fe3a912892f7f2eca7738048426bfe766a610a327ca589cfcac0ad84fc8388439f78f4e1efb4f4121f8
+MISC ChangeLog 2665 SHA256 5a3032358ce093da10e295b41de8f85a26c2d7f8b7000fbead528548863ba04e SHA512 616ace7acaf09f45cf89e9970034553c223d0cb66d82697c96510dcde051bcaeafae3b8af35e15755240e7b2655f5bfe0f6688ec36ef7d3de838f2af8022dfbb WHIRLPOOL 239d446fb5ea1102da3ffd170d338d896809e8ad2898bc68bbe29a9df3c0f030e2759291350a3be253512485c3834f07f85ec000b4fc587d04664b34799fda7f
+MISC ChangeLog-2015 6346 SHA256 db02210c04be94b0513d24bfc918a018a4f72b38aebcdd734b77cba501b79032 SHA512 d9547ebd9fd94ff9625571a56b185c8c393427baa614352d096052cc4f3e2145475c2f0c9899358bea3e64a7feb1fa39db0ae83926048e0bdd6d9f7c660b6b50 WHIRLPOOL 37050d187fb766b4b5eb7ed07c4f0b4e5be4974facf2ebaca937cadcf19eb3877d7aa87e2313d4f3b1ca2512b7e64cfc9aaa1ccf9e34f45039529bcfa80ecde6
+MISC metadata.xml 250 SHA256 b71074f8cf023e8487d9c660f14e7005a54cbdc232d60fd8584073dfc9289b3c SHA512 64ce00687c47be8dd203fede0460d4ff5f5bb741da301d30366ed8d041fce65298e8091bcd59423e86819d62e3e8f4989652f21e8c1b50eb541c65c7788c605c WHIRLPOOL ffbddb433281246099ce9093439006a2a46077d88e8cbb1f053f8a5acd39e844ba2edd47641cc3efc04d5cff46c485c26b5d164a5f82fbbe622bb786e001a524
diff --git a/net-mail/mailgraph/files/mailgraph.confd-new b/net-mail/mailgraph/files/mailgraph.confd-new
new file mode 100644
index 000000000000..a027254ed642
--- /dev/null
+++ b/net-mail/mailgraph/files/mailgraph.confd-new
@@ -0,0 +1,18 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Location of logfile that all (!) mail software (MTA, spamfilter etc.) logs to.
+# mailgraph defaults to /var/log/syslog if unspecified
+MG_LOGFILE="/var/log/messages"
+
+# Required daemon settings
+MG_DAEMON_UID="mgraph"
+MG_DAEMON_GID="adm"
+MG_DAEMON_UMASK="0022"
+MG_DAEMON_LOG="/var/log/mailgraph/mailgraph.log"
+MG_DAEMON_PID="/var/run/mailgraph/mailgraph.pid"
+MG_DAEMON_RRD="/var/lib/mailgraph"
+
+# Specify any extra options here.
+# If MG_LOGFILE is in metalog format, add "-t metalog" to MG_DAEMON_OPTS
+MG_DAEMON_OPTS="--ignore-localhost"
diff --git a/net-mail/mailgraph/files/mailgraph.initd-new b/net-mail/mailgraph/files/mailgraph.initd-new
new file mode 100644
index 000000000000..564f714e3dc4
--- /dev/null
+++ b/net-mail/mailgraph/files/mailgraph.initd-new
@@ -0,0 +1,35 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ ebegin "Starting mailgraph"
+
+ # read mail log messages somewhere other than /var/log/syslog?
+ [[ -n "${MG_LOGFILE}" ]] && MG_DAEMON_OPTS="${MG_DAEMON_OPTS} -l ${MG_LOGFILE}"
+
+ # create /var/run/mailgraph if necessary
+ if [ ! -d /var/run/mailgraph ] ; then
+ checkpath -q -d -o mgraph:adm -m 0775 /var/run/mailgraph || return 1
+ fi
+
+ UMASK=$(umask)
+ umask ${MG_DAEMON_UMASK:-0077}
+ start-stop-daemon --start \
+ --name mailgraph \
+ --user "${MG_DAEMON_UID}:${MG_DAEMON_GID}" \
+ --name mailgraph \
+ --pidfile ${MG_DAEMON_PID} \
+ --exec /usr/bin/mailgraph -- -v --daemon \
+ --daemon-log="${MG_DAEMON_LOG}" \
+ --daemon-pid="${MG_DAEMON_PID}" \
+ --daemon-rrd=/var/lib/mailgraph ${MG_DAEMON_OPTS}
+ eend $?
+ umask "${UMASK}"
+}
+
+stop() {
+ ebegin "Shutting down mailgraph"
+ start-stop-daemon --stop --quiet --pidfile "${MG_DAEMON_PID}"
+ eend $?
+}
diff --git a/net-mail/mailgraph/files/mailgraph.logrotate-new b/net-mail/mailgraph/files/mailgraph.logrotate-new
new file mode 100644
index 000000000000..a48f2dd10d4d
--- /dev/null
+++ b/net-mail/mailgraph/files/mailgraph.logrotate-new
@@ -0,0 +1,30 @@
+# logrotate config for mailgraph log
+
+/var/log/mailgraph/mailgraph.log {
+ ## rotate daily
+ daily
+ ## keep 30 old copies
+ rotate 30
+ ## use .YYYYMMDD instead of .0,.1,.2 etc.
+ dateext
+ ## also rotate empty logfiles to strictly retain chronology
+ ifempty
+ ## re-create source logfile with original permissions
+ ## do NOT use copy or copytruncate!
+ create
+ ## compress on next logrotate run (e.g. next day) to give
+ ## programs the chance to close the old logfile
+ delaycompress
+ ## compress logfiles
+ compress
+ compresscmd /bin/gzip
+ compressoptions -9
+ uncompresscmd /bin/gunzip
+ ## don't throw an error when a file doesn't exist
+ missingok
+ ## restart mailgraph after rotating all logfiles
+ sharedscripts
+ postrotate
+ /etc/init.d/mailgraph restart >/dev/null
+ endscript
+}
diff --git a/net-mail/mailgraph/mailgraph-1.14-r2.ebuild b/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
new file mode 100644
index 000000000000..732d4934e48d
--- /dev/null
+++ b/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils user
+
+DESCRIPTION="A mail statistics RRDtool frontend for Postfix"
+HOMEPAGE="http://mailgraph.schweikert.ch/"
+SRC_URI="http://mailgraph.schweikert.ch//pub/${P}.tar.gz"
+
+LICENSE="GPL-2"
+# Change SLOT to 0 when appropriate
+SLOT="1.14"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ dev-perl/File-Tail
+ >=net-analyzer/rrdtool-1.2.2[graph,perl]"
+DEPEND=">=sys-apps/sed-4"
+
+pkg_setup() {
+ # add user and group for mailgraph daemon
+ # also add mgraph to the group adm so it's able to
+ # read syslog logfile /var/log/messages (should be owned by
+ # root:adm with permission 0640)
+ enewgroup mgraph
+ enewuser mgraph -1 -1 /var/empty mgraph,adm
+}
+
+src_prepare() {
+ sed -i \
+ -e "s|\(my \$rrd = '\).*'|\1/var/lib/mailgraph/mailgraph.rrd'|" \
+ -e "s|\(my \$rrd_virus = '\).*'|\1/var/lib/mailgraph/mailgraph_virus.rrd'|" \
+ mailgraph.cgi || die "sed mailgraph.cgi failed"
+}
+
+src_install() {
+ # for the RRDs
+ dodir /var/lib
+ diropts -omgraph -gmgraph -m0750
+ dodir /var/lib/mailgraph
+ keepdir /var/lib/mailgraph
+
+ # log and pid file
+ diropts ""
+ dodir /var/log
+ dodir /var/run
+ diropts -omgraph -gadm -m0750
+ dodir /var/log/mailgraph
+ keepdir /var/log/mailgraph
+
+ # logrotate config for mailgraph log
+ diropts ""
+ dodir /etc/logrotate.d
+ insopts -m0644
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/mailgraph.logrotate-new mailgraph
+
+ # mailgraph daemon
+ newbin mailgraph.pl mailgraph
+
+ # mailgraph CGI script
+ exeinto /usr/share/${PN}
+ doexe mailgraph.cgi
+ insinto /usr/share/${PN}
+ doins mailgraph.css
+
+ # init/conf files for mailgraph daemon
+ newinitd "${FILESDIR}"/mailgraph.initd-new mailgraph
+ newconfd "${FILESDIR}"/mailgraph.confd-new mailgraph
+
+ # docs
+ dodoc README CHANGES
+}
+
+pkg_postinst() {
+ # Fix ownerships - previous versions installed these with
+ # root as owner
+ if [[ ${REPLACING_VERSIONS} < 1.13 ]] ; then
+ if [[ -d /var/lib/mailgraph ]] ; then
+ chown mgraph:mgraph /var/lib/mailgraph
+ fi
+ if [[ -d /var/log/mailgraph ]] ; then
+ chown mgraph:adm /var/log/mailgraph
+ fi
+ if [[ -d /var/run/mailgraph ]] ; then
+ chown mgraph:adm /var/run/mailgraph
+ fi
+ fi
+ elog "Mailgraph will run as user mgraph with group adm by default."
+ elog "This can be changed in /etc/conf.d/mailgraph if it doesn't fit."
+ elog "Remember to adjust MG_DAEMON_LOG, MG_DAEMON_PID and MG_DAEMON_RRD"
+ elog "as well!"
+ ewarn "Please make sure the MG_LOGFILE (default: /var/log/messages) is readable"
+ ewarn "by group adm or change MG_DAEMON_GID in /etc/conf.d/mailgraph accordingly!"
+ ewarn
+ ewarn "Please make sure *all* mail related logs (MTA, spamfilter, virus scanner)"
+ ewarn "go to the file /var/log/messages or change MG_LOGFILE in"
+ ewarn "/etc/conf.d/mailgraph accordingly! Otherwise mailgraph won't get to know"
+ ewarn "the corresponding events (virus/spam mail found etc.)."
+ elog
+ elog "Checking for user apache:"
+ if egetent passwd apache >&/dev/null; then
+ elog "Adding user apache to group mgraph so the included"
+ elog "CGI script is able to read the mailgraph RRD files"
+ if ! gpasswd -a apache mgraph >&/dev/null; then
+ eerror "Failed to add user apache to group mgraph!"
+ eerror "Please check manually."
+ fi
+ else
+ elog
+ elog "User apache not found, maybe we will be running a"
+ elog "webserver with a different UID?"
+ elog "If that's the case, please add that user to the"
+ elog "group mgraph manually to enable the included"
+ elog "CGI script to read the mailgraph RRD files:"
+ elog
+ elog "\tgpasswd -a <user> mgraph"
+ fi
+ ewarn
+ ewarn "mailgraph.cgi is installed in /usr/share/${PN}/"
+ ewarn "You need to put it somewhere accessible though a web-server."
+}
diff --git a/net-mail/mailgraph/metadata.xml b/net-mail/mailgraph/metadata.xml
new file mode 100644
index 000000000000..493a4bf9e88a
--- /dev/null
+++ b/net-mail/mailgraph/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/mailman/Manifest b/net-mail/mailman/Manifest
new file mode 100644
index 000000000000..425c9b7ed253
--- /dev/null
+++ b/net-mail/mailman/Manifest
@@ -0,0 +1,13 @@
+AUX 50_mailman.conf-r2 482 SHA256 670cafbf05bc72dd47f9b516e4b3721423215fa9699908b4452c2d562fcbf6e4 SHA512 c279f8709ea7932469c0d8ff0b645df228562678081df5fc3d946d62f7bbbc33f4723e71fd4560eebfc751052a6a271d4aadf6affadefeca107f41d3193563d3 WHIRLPOOL 1578cd48b96ee808fedf3a00e93475ce7470a66bea1d8beb378266aa9522ed8ecb4503a723024794ab7d68d407ff66f6535b2845ef03b777bf265ead0ad86cbf
+AUX README.gentoo-r3 6691 SHA256 9b43dcf3f53fe40a5965cb5d6335bdb82c08cffdc7a8962de4d48110b03705a9 SHA512 12490bb17b4da308f0855fa9f5e36c2c01c806822021d3ac92dc15cc7901a417dbeb1e1f78c9df2603128076bd11d9ded0a946f4cedd3b056a1694afbdab28d3 WHIRLPOOL 19fe80ca5d34051f213b5131dccc90070807ee932e4402d1b2f5b7bb4284e8e2074c3b73c6c3774ac5e9f9ae571b7a40b9423387bfc56ad4daeb9668a40465af
+AUX mailman-2.1.14_rc1-directory-check.patch 786 SHA256 13c5988eeaf1fad7c7f4db2c817bb234dce022636e0ebe1a7de9d0ef8400d91c SHA512 510a67915163732ae05ed9f8920f93eb99538a706d85e4fb2c071e01a6d88be8cd32aa5ea0127d36a1dc4f7a735c179bb1169e7358025ee7d3c85b0c8cda44d7 WHIRLPOOL 316a6e78129bf1a46be3c81232cf29a4cf639c5f350085e10d37700d1f97ae614ee48c0caea1acef33da172e74b025645098ce36055f6757b9e32567c15d9414
+AUX mailman-2.1.9-icons.patch 555 SHA256 cd78a7447febcbe1901144a190ef14cf9075b8055cc275e0405fc748f9c855f0 SHA512 caec3eb1abdb29e92ebd6a589f93870ffc91bbcc7bd2e0115e38f48ae0a31e564037a4a828395229ee238d215e72e19a31d53c8bca6c39a48b5c08a327e663a6 WHIRLPOOL 0e73c6c89fd026bf73c5665da95fa711e47b0a7fa031ce3c31ad3a4771935c2d8fdabbba58e32448ee9b8263576004c22376249e1c135b69dbbaa47c880b96b9
+AUX mailman.rc 488 SHA256 7748a7308b386ba0b6b24a59b8ff0916d129b872ac2a1c43258003d17124ef06 SHA512 bb97f6fec48cf474be66c1aa73adc874ceaeee894acc3fad76f4b3f5e6f82dcd4238a6915de941fe87f815668dfb6c5ffe90926c5aaaddedf7dc06dfa4c1a126 WHIRLPOOL 0904f430b79dfcc756eec773f61a3730fccafc249d1dd3b52add7d14fa289492401d38f6bd22f785bc91cbe653976249d1aa515113885da0bda3dce54c2e9b52
+AUX mailman.service 288 SHA256 6cd1c76bac4ce0c6e15886089a62ed70012653a6416fc1d0c0836822b58e7c02 SHA512 c4a5532666afbebc5aa69463ec9b9eaa2dcb03fdd8fd62307920a4572d0c795c1d93478236240746018be617c0eec0fcfcc1c711e8810140fb8ffbc0a9b71009 WHIRLPOOL 0980699e58b2b86789ea7bd2172063359a12f97d7df1cea27ada1dea77ec8a7c3426f1aca1c3bbf982d97b72ac1ee3ff28b49f651d8a066ea80a6d0ca20135c3
+DIST mailman-2.1.23.tgz 9290881 SHA256 b022ca6f8534621c9dbe50c983948688bc4623214773b580c2c78e4a7ae43e69 SHA512 398dd5c301005512900aff38c068ee641eea9f2970dfde17c37a8641759bd6fff8e6d37ad63c0c86b4b1594459b3c92023844ca4ec23d1681ac02542bd97f8db WHIRLPOOL c5e45bd4fb59dca5017f547e25986addff8079bf10bdcb6f814942e56cfc618d0e6e075beb7d5240e591d809f27af442c4da9c5e5f35358f5bf86a4f24c1d38d
+DIST mailman-2.1.24.tgz 9251009 SHA256 89b0cfc13c52915b9cdebd4b772852f1043e7435554050b4f5f7094f9093cd77 SHA512 f62f224abe5eb4804828a4d83389432b34595b8d4533310cda4da58ab10c2e62e0b2419929dcc53c32e2754d8f62fa8ef68877db4c65f6112f08f0e452fd6a38 WHIRLPOOL 583f8157de5c93ad6e97f49921f57af65d272da801f3534b454992034484924efde2d792334b7db7dc90b02bbae92a796352a1a65e8576affa80eef9b5cedfc8
+EBUILD mailman-2.1.23.ebuild 5835 SHA256 789686a01c1e7e410094e235d72043106fca41e79d9871980e421c33ea54aaa4 SHA512 bb1e4b7ae51537c1d2d4e27ea96e58e4967a03cc6b7fded302bcbb67ff6d4d21186abc1829147c47ecedb361495ba07c543335b6f6edbc9e38f0e12fd42cd4ab WHIRLPOOL 4572f2c32186f6434aa9f79b9039e783f78f28f4763484feae50d92afca7e8a8f9000330cab38ae04f202d39a09a259eb67a1d9e5e27b70a8dafc0ee13b3ac13
+EBUILD mailman-2.1.24.ebuild 5836 SHA256 ce0fcfbfc506c2b886cb02c5d5ea84d7cdd869c54ec6a6ae46da349039d18665 SHA512 f1a9d9051e558719e4da671285baccebf454c8e2102943c7bec3cf37fbe282a9ac73e748c25ce0af25a1a41ebfd6ff83a90211b0cfba46a43466fbc6dc6ec010 WHIRLPOOL 2d0018829969d60d1175150abc46a953c9205987c24b3f44a6106ae46e64d3a488e23f1c7953c6cb697d279f806eeb815bc06e9371d31fbba39ca37e86df1e8f
+MISC ChangeLog 4399 SHA256 a8af4fc02594e94c0f97bd5b4cb76da002a3706ca1508842b74f6e1342424d71 SHA512 ec569bc87d5841102bfcbcf2ec94d4d77a237906f63937cacdd76aa4e6a19a89690fd9a22d642f5d5711da76d5a69892e0f9aa77ef09381e8439cdce3c1c41d7 WHIRLPOOL e23b9c5853508342a4fc7281cd23cb6155300afee7152e73261df4e456b1854516b19c80b4174dc948b50c61f3c98f79cb232cca6d0ab5a42201182ec4029b08
+MISC ChangeLog-2015 20958 SHA256 913282d55fad5cfe19703c8c3de63e957c8df5929410d3c4331d8342b9280f62 SHA512 2dd773d7ea3ccdf1a2241e90f13f5585d9dbf7656c26ae196ac5219828aefba1cbe2c6dbdbfe1b6f584820d9a05f9af6ad8e7e34cc90fad15679bca54d12b967 WHIRLPOOL 2d047534d4739f8b82c7aa20e7e20b12f4c3b7b9252db3456d8c08d28bccc59c6ec375be64130bdc4eb91c355bb8ed87aa10da797da2add76ef0243060986ea0
+MISC metadata.xml 398 SHA256 8a1ea66253161fe81ab1e3f541237be1fef45d8bc64a21a230ffb67b3d6f0fe2 SHA512 e12fcde6e9360aaab80a5cece049ca20ba8deca00c7051987d0903d1dd9992545d62c10186f05dca6fed28682050efe704cc3ffd92bbcb0ceb9ce5ce972cf62f WHIRLPOOL b081299391465ee0a7f22ba0542c79a06e0e00d50497a24fe6463c32f6e545231d815cffb8b6ed3128da0623b1ae4a317dec4977e9a9cf59a2113e103c39ca67
diff --git a/net-mail/mailman/files/50_mailman.conf-r2 b/net-mail/mailman/files/50_mailman.conf-r2
new file mode 100644
index 000000000000..c0cf69562fed
--- /dev/null
+++ b/net-mail/mailman/files/50_mailman.conf-r2
@@ -0,0 +1,18 @@
+<IfDefine MAILMAN>
+ ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
+ <Directory "/usr/local/mailman/cgi-bin/">
+ AllowOverride None
+ Options None
+ </Directory>
+
+ Alias /pipermail/ "/usr/local/mailman/archives/public/"
+ <Directory "/usr/local/mailman/archives/public/">
+ AllowOverride None
+ Options ExecCGI FollowSymLinks
+ </Directory>
+
+ Alias /mailman-icons/ "/usr/local/mailman/icons/"
+ <Directory "/usr/local/mailman/icons/">
+ AllowOverride None
+ </Directory>
+</IfDefine>
diff --git a/net-mail/mailman/files/README.gentoo-r3 b/net-mail/mailman/files/README.gentoo-r3
new file mode 100644
index 000000000000..8584a2d6a071
--- /dev/null
+++ b/net-mail/mailman/files/README.gentoo-r3
@@ -0,0 +1,181 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+Follow these instructions to finish setting up mailman. This file and the
+original ebuild were tweaked by me <lamer@gentoo.org> but were graciously
+submitted by Joby Walker (YOU RULE!)
+2003 Jul 09: updated by Jesus Perez and re-tweaked by me <raker@gentoo.org>
+for 2.1.x.
+
+Please view the documentation on Mailman at: http://www.list.org/
+
+This documentation assumes you're using the default gentoo path
+(/usr/lib/mailman/), if you've changed it with MAILMAN_PREFIX, adjust them
+accordingly.
+
+1) If this is your first time installing mailman, after your "emerge mailman",
+you need to add -D MAILMAN to /etc/conf.d/apache or /etc/conf.d/apache2 and restart
+apache.
+
+2) In your /etc/conf.d/apache (for apache 1.x)
+ or /etc/conf.d/apache2 (for apache 2.x)
+ file add the additional option to the
+ APACHE_OPTS or APACHE2_OPTS variable:
+
+ -D MAILMAN
+
+3) Make sure mailman is a part of the cron group
+
+4) This must be done as user mailman:
+
+ su - mailman
+
+Add the cron jobs:
+
+ cd cron
+ crontab crontab.in
+ cd ..
+
+Create the site password:
+
+ bin/mmsitepass
+
+and main list:
+
+ bin/newlist mailman
+
+
+5) Change back to root:
+
+ exit
+
+(Postfix users: read the notes at the end of this file before you continue)
+Add this to /etc/mail/aliases (and see point 9 for notes):
+ mailman: "|/usr/lib/mailman/mail/mailman post mailman"
+ mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman"
+ mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman"
+ mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman"
+ mailman-join: "|/usr/lib/mailman/mail/mailman join mailman"
+ mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman"
+ mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman"
+ mailman-request: "|/usr/lib/mailman/mail/mailman request mailman"
+ mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman"
+ mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
+
+For courier, the aliases have to go to /etc/courier/aliases and you have to skip
+the quotes.
+
+Run newaliases (only if you use sendmail).
+
+ newaliases
+
+6) Start the mailman daemon:
+
+ /etc/init.d/mailman start
+
+and add it to default runlevel (optional but recommended):
+
+ rc-update add mailman default
+
+7) For each list created (either with web interface or with bin/newlist)
+this must be added to /etc/mail/aliases (see smrsh notes below)
+replace <list-name> with the name of the list:
+
+ <list-name>: "|/usr/lib/mailman/mail/mailman post <list-name>"
+ <list-name>-admin: "|/usr/lib/mailman/mail/mailman admin <list-name>"
+ <list-name>-bounces: "|/usr/lib/mailman/mail/mailman bounces <list-name>"
+ <list-name>-confirm: "|/usr/lib/mailman/mail/mailman confirm <list-name>"
+ <list-name>-join: "|/usr/lib/mailman/mail/mailman join <list-name>"
+ <list-name>-leave: "|/usr/lib/mailman/mail/mailman leave <list-name>"
+ <list-name>-owner: "|/usr/lib/mailman/mail/mailman owner <list-name>"
+ <list-name>-request: "|/usr/lib/mailman/mail/mailman request <list-name>"
+ <list-name>-subscribe: "|/usr/lib/mailman/mail/mailman subscribe <list-name>"
+ <list-name>-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe <list-name>"
+
+For courier, the aliases have to go to /etc/courier/aliases and you have to skip
+the quotes.
+
+Run newaliases:
+
+ newaliases
+
+smrsh notes
+-----------
+(if you use sendmail, you are surely using srmsh) you must note that
+sendmail won't run any program outside of EBINDIR. I tried to change
+EBINDIR using,define(`confEBINDIR', `/usr/lib/mailman/mail')dnl in
+sendmail.mc but it didn't work, so mailman must be placed in EBINDIR,
+which in Gentoo is /usr/adm/sm.bin, so you must run as root:
+
+ ln -s /usr/lib/mailman/mail/mailman /usr/adm/sm.bin/mailman
+
+And the lines in /etc/mail/aliases which refer to
+/usr/lib/mailman/mail/mailman must be changed to mailman:
+
+ <list-name>: "|mailman post <list-name>"
+ <list-name>-admin: "|mailman admin <list-name>"
+ <list-name>-bounces: "|mailman bounces <list-name>"
+ <list-name>-confirm: "|mailman confirm <list-name>"
+ <list-name>-join: "|mailman join <list-name>"
+ <list-name>-leave: "|mailman leave <list-name>"
+ <list-name>-owner: "|mailman owner <list-name>"
+ <list-name>-request: "|mailman request <list-name>"
+ <list-name>-subscribe: "|mailman subscribe <list-name>"
+ <list-name>-unsubscribe: "|mailman unsubscribe <list-name>"
+
+exim notes
+----------
+You can write an exim stanza for the router and transport that looks something
+like (Derived from, and in part taken from cpanel):
+
+mailman_virtual_router:
+ driver = accept
+ require_files = /var/lib/mailman/lists/${lc::$local_part}/config.pck
+ local_part_suffix_optional
+ local_part_suffix = -admin : \
+ -bounces : -bounces+* : \
+ -confirm : -confirm+* : \
+ -join : -leave : \
+ -owner : -request : \
+ -subscribe : -unsubscribe
+ transport = mailman_virtual_transport
+
+mailman_virtual_transport:
+ driver = pipe
+ command = /usr/lib/mailman/mail/mailman \
+ '${if def:local_part_suffix \
+ {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
+ {post}}' \
+ ${lc:$local_part}
+ current_directory = /usr/lib/mailman
+ home_directory = /usr/lib/mailman
+ user = mailman
+ group = mailman
+
+Note the double colon in the require files. See
+http://wiki.exim.org/FAQ/General_Debugging/Q0060 for more information.
+
+This should be modified if you're using the vhosts USE flag, specifically you
+need to modify the location of the config.pck file, to be
+${lc::$local_part}-${lc::$domain} instead of simply ${lc::$local_part}, and for the
+transport you need to change the last part of the command in the same fashion.
+
+Other Helpful things to know...
+-------------------------------
+run "bin/check_perms -f" from the root mailman directory
+(/usr/lib/mailman) to check and fix permission problems.
+
+The INSTALL file is located in /usr/share/doc/mailman-$VERSION/
+
+Postfix notes
+-------------
+If you're using Postfix, don't manually change your /etc/mail/aliases
+file, as described above. Instead, follow these instructions:
+
+http://list.org/mailman-install/node13.html
+
+This will set up Mailman and Postfix to automatically generate the new
+aliases when you create new lists. It will also make sure that Postfix
+uses the correct group ID when it's talking to Mailman, otherwise you
+will get security errors from Mailman.
+
diff --git a/net-mail/mailman/files/mailman-2.1.14_rc1-directory-check.patch b/net-mail/mailman/files/mailman-2.1.14_rc1-directory-check.patch
new file mode 100644
index 000000000000..a3c26ede877a
--- /dev/null
+++ b/net-mail/mailman/files/mailman-2.1.14_rc1-directory-check.patch
@@ -0,0 +1,19 @@
+--- mailman-2.1.14rc1/bin/update 2010-09-09 18:51:09.000000000 +0200
++++ mailman-2.1.14rc1-1/bin/update 2010-09-14 01:02:09.000000000 +0200
+@@ -35,6 +35,7 @@
+ """
+
+ import os
++import stat
+ import sys
+ import time
+ import errno
+@@ -428,7 +429,7 @@
+ # Now update for the Mailman 2.1.5 qfile format. For every filebase in
+ # the qfiles/* directories that has both a .pck and a .db file, pull the
+ # data out and re-queue them.
+- for dirname in os.listdir(mm_cfg.QUEUE_DIR):
++ for dirname in [x for x in os.listdir(mm_cfg.QUEUE_DIR) if stat.S_ISDIR(os.stat(os.path.join(mm_cfg.QUEUE_DIR,x)).st_mode)]:
+ dirpath = os.path.join(mm_cfg.QUEUE_DIR, dirname)
+ if dirpath == mm_cfg.BADQUEUE_DIR:
+ # The files in qfiles/bad can't possibly be pickles
diff --git a/net-mail/mailman/files/mailman-2.1.9-icons.patch b/net-mail/mailman/files/mailman-2.1.9-icons.patch
new file mode 100644
index 000000000000..07cd63e58812
--- /dev/null
+++ b/net-mail/mailman/files/mailman-2.1.9-icons.patch
@@ -0,0 +1,12 @@
+diff -rau mailman-2.1.9-orig/Mailman/Defaults.py.in mailman-2.1.9-mailman-icons/Mailman/Defaults.py.in
+--- mailman-2.1.9-orig/Mailman/Defaults.py.in 2006-08-04 14:20:33.000000000 +0200
++++ mailman-2.1.9/Mailman/Defaults.py.in 2008-02-03 14:27:02.000000000 +0200
+@@ -54,7 +54,7 @@
+ # disable Mailman's logo footer altogther, hack
+ # Mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links
+ # and image names.
+-IMAGE_LOGOS = '/icons/'
++IMAGE_LOGOS = '/mailman-icons/'
+
+ # The name of the Mailman favicon
+ SHORTCUT_ICON = 'mm-icon.png'
diff --git a/net-mail/mailman/files/mailman.rc b/net-mail/mailman/files/mailman.rc
new file mode 100644
index 000000000000..d748a2c96734
--- /dev/null
+++ b/net-mail/mailman/files/mailman.rc
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ use logger
+}
+
+start() {
+ ebegin "Starting mailman"
+ su - mailman -c 'bin/mailmanctl -s start' >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mailman"
+ su - mailman -c 'bin/mailmanctl stop' >/dev/null 2>&1
+ eend $?
+}
+
+svc_restart() {
+ ebegin "Restarting mailman"
+ su - mailman -c 'bin/mailmanctl restart' >/dev/null 2>&1
+ eend $?
+}
diff --git a/net-mail/mailman/files/mailman.service b/net-mail/mailman/files/mailman.service
new file mode 100644
index 000000000000..21b819565549
--- /dev/null
+++ b/net-mail/mailman/files/mailman.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=GNU Mailing List Manager
+After=network.target
+
+[Service]
+User=mailman
+ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
+ExecReload=/usr/lib/mailman/bin/mailmanctl restart
+ExecStop=/usr/lib/mailman/bin/mailmanctl stop
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/mailman/mailman-2.1.23.ebuild b/net-mail/mailman/mailman-2.1.23.ebuild
new file mode 100644
index 000000000000..8c9de0c02035
--- /dev/null
+++ b/net-mail/mailman/mailman-2.1.23.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 multilib systemd user
+
+DESCRIPTION="A python-based mailing list server with an extensive web interface"
+SRC_URI="mirror://sourceforge/${PN}/${P/_p/-}.tgz"
+HOMEPAGE="http://www.list.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="selinux"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ virtual/mta
+ virtual/cron
+ virtual/httpd-cgi
+ virtual/python-dnspython[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-mailman )
+"
+
+S="${WORKDIR}/${P/_p/-}"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"}
+ VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"}
+ CGIUID=${MAILMAN_CGIUID:-apache}
+ CGIGID=${MAILMAN_CGIGID:-apache}
+ MAILUSR=${MAILMAN_MAILUSR:-mailman}
+ MAILUID=${MAILMAN_MAILUID:-280}
+ MAILGRP=${MAILMAN_MAILGRP:-mailman}
+ MAILGID=${MAILMAN_MAILGID:-280}
+
+ # Bug #58526: switch to enew{group,user}.
+ # need to add mailman here for compile process.
+ # Duplicated at pkg_postinst() for binary install.
+ enewgroup ${MAILGRP} ${MAILGID}
+ enewuser ${MAILUSR} ${MAILUID} /bin/bash ${INSTALLDIR} mailman,cron
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.1.14_rc1-directory-check.patch"
+ epatch "${FILESDIR}/${PN}-2.1.9-icons.patch"
+}
+
+src_configure() {
+ econf \
+ --without-permcheck \
+ --prefix="${INSTALLDIR}" \
+ --with-mail-gid=${MAILGID} \
+ --with-cgi-gid=${CGIGID} \
+ --with-cgi-ext="${MAILMAN_CGIEXT}" \
+ --with-var-prefix="${VAR_PREFIX}" \
+ --with-username=${MAILUSR} \
+ --with-groupname=${MAILGRP} \
+ --with-python="${PYTHON}"
+}
+
+src_install () {
+ emake "DESTDIR=${D}" doinstall
+
+ insinto /etc/apache2/modules.d
+ newins "${FILESDIR}/50_mailman.conf-r2" 50_mailman.conf
+ sed \
+ -e "s:/usr/local/mailman/cgi-bin:${INSTALLDIR}/cgi-bin:g" \
+ -e "s:/usr/local/mailman/icons:${INSTALLDIR}/icons:g" \
+ -e "s:/usr/local/mailman/archives:${VAR_PREFIX}/archives:g" \
+ -i "${D}/etc/apache2/modules.d/50_mailman.conf" || die
+
+ newdoc "${FILESDIR}/README.gentoo-r3" README.gentoo
+
+ dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL contrib/mailman.mc \
+ contrib/README.check_perms_grsecurity contrib/virtusertable
+
+ exeinto ${INSTALLDIR}/bin
+ doexe build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
+ contrib/mm-handler*
+
+ dodir /etc/mailman
+ mv "${D}/${INSTALLDIR}/Mailman/mm_cfg.py" "${D}/etc/mailman"
+ dosym /etc/mailman/mm_cfg.py ${INSTALLDIR}/Mailman/mm_cfg.py
+
+ # Save the old config for updates from pre-2.1.9-r2
+ # To be removed some distant day
+ for i in /var/mailman /home/mailman /usr/local/mailman ${INSTALLDIR}; do
+ if [ -f ${i}/Mailman/mm_cfg.py ] && ! [ -L ${i}/Mailman/mm_cfg.py ]; then
+ cp ${i}/Mailman/mm_cfg.py "${D}/etc/mailman/mm_cfg.py" || die
+ fi
+ done
+
+ newinitd "${FILESDIR}/mailman.rc" mailman
+ cp "${FILESDIR}/mailman.service" "${T}/mailman.service" || die
+ sed -i "s/^User=.*/User=${MAILUSR}/" "${T}/mailman.service" || die
+ systemd_dounit "${T}/mailman.service"
+
+ keepdir ${VAR_PREFIX}/logs
+ keepdir ${VAR_PREFIX}/locks
+ keepdir ${VAR_PREFIX}/spam
+ keepdir ${VAR_PREFIX}/archives/public
+ keepdir ${VAR_PREFIX}/archives/private
+ keepdir ${VAR_PREFIX}/lists
+ keepdir ${VAR_PREFIX}/qfiles
+
+ chown -R ${MAILUSR}:${MAILGRP} "${D}/${VAR_PREFIX}" "${D}/${INSTALLDIR}" "${D}"/etc/mailman/* || die
+ chown ${CGIUID}:${MAILGRP} "${D}/${VAR_PREFIX}/archives/private" || die
+ chmod 2775 "${D}/${INSTALLDIR}" "${D}/${INSTALLDIR}"/templates/* \
+ "${D}/${INSTALLDIR}"/messages/* "${D}/${VAR_PREFIX}" "${D}/${VAR_PREFIX}"/{logs,lists,spam,locks,archives/public} || die
+ chmod 2770 "${D}/${VAR_PREFIX}/archives/private" || die
+ chmod 2770 "${D}/${VAR_PREFIX}/qfiles" || die
+ chmod 2755 "${D}/${INSTALLDIR}"/cgi-bin/* "${D}/${INSTALLDIR}/mail/mailman" || die
+
+ python_optimize "${D}/${INSTALLDIR}/bin/" \
+ "${D}/${INSTALLDIR}/Mailman/" \
+ "${D}/${INSTALLDIR}/Mailman/*"
+}
+
+pkg_postinst() {
+ enewgroup ${MAILGRP} ${MAILGID}
+ enewuser ${MAILUSR} ${MAILUID} -1 ${INSTALLDIR} mailman,cron
+ echo
+ elog "Please read /usr/share/doc/${PF}/README.gentoo.bz2 for additional"
+ elog "Setup information, mailman will NOT run unless you follow"
+ elog "those instructions!"
+ echo
+
+ elog "An example Mailman configuration file for Apache has been installed into:"
+ elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf"
+ echo
+ elog "To enable, you will need to add \"-D MAILMAN\" to"
+ elog "/etc/conf.d/apache2."
+ echo
+
+ ewarn "Default-Configuration has changed deeply in 2.1.9-r2. You can configure"
+ ewarn "mailman with the following variables:"
+ ewarn "MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)"
+ ewarn "MAILMAN_VAR_PREFIX (default: /var/lib/mailman)"
+ ewarn "MAILMAN_CGIUID (default: apache)"
+ ewarn "MAILMAN_CGIGID (default: apache)"
+ ewarn "MAILMAN_CGIEXT (default: empty)"
+ ewarn "MAILMAN_MAILUSR (default: mailman)"
+ ewarn "MAILMAN_MAILUID (default: 280)"
+ ewarn "MAILMAN_MAILGRP (default: mailman)"
+ ewarn "MAILMAN_MAILGID (default: 280)"
+ ewarn
+ ewarn "Config file is now symlinked in /etc/mailman, so etc-update works."
+ ewarn
+ ewarn "If you're upgrading from below 2.1.9-r2 or changed MAILMAN_PREFIX, you"
+ ewarn "NEED to make a few manual updates to your system:"
+ ewarn
+ ewarn "1. Update your mailman users's home directory: usermod -d ${INSTALLDIR} mailman"
+ ewarn "2. Re-import the crontab: su - mailman -c 'crontab cron/crontab.in'"
+ ewarn "3. Copy your old mm_cfg.py file to /etc/mailman/mm_cfg.py"
+ ewarn
+ ewarn "Additionally if you've modified MAILMAN_VAR_PREFIX (or upgraded from"
+ ewarn "a pre 2.1.9-r2 installation), you should move your old lists/ and"
+ ewarn "archives/ directory to the new location, ensuring that the"
+ ewarn "permissions is correct. See bug #208789 for a discussion."
+}
diff --git a/net-mail/mailman/mailman-2.1.24.ebuild b/net-mail/mailman/mailman-2.1.24.ebuild
new file mode 100644
index 000000000000..977d9d38712a
--- /dev/null
+++ b/net-mail/mailman/mailman-2.1.24.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 multilib systemd user
+
+DESCRIPTION="A python-based mailing list server with an extensive web interface"
+SRC_URI="mirror://sourceforge/${PN}/${P/_p/-}.tgz"
+HOMEPAGE="http://www.list.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE="selinux"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ virtual/mta
+ virtual/cron
+ virtual/httpd-cgi
+ virtual/python-dnspython[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-mailman )
+"
+
+S="${WORKDIR}/${P/_p/-}"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"}
+ VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"}
+ CGIUID=${MAILMAN_CGIUID:-apache}
+ CGIGID=${MAILMAN_CGIGID:-apache}
+ MAILUSR=${MAILMAN_MAILUSR:-mailman}
+ MAILUID=${MAILMAN_MAILUID:-280}
+ MAILGRP=${MAILMAN_MAILGRP:-mailman}
+ MAILGID=${MAILMAN_MAILGID:-280}
+
+ # Bug #58526: switch to enew{group,user}.
+ # need to add mailman here for compile process.
+ # Duplicated at pkg_postinst() for binary install.
+ enewgroup ${MAILGRP} ${MAILGID}
+ enewuser ${MAILUSR} ${MAILUID} /bin/bash ${INSTALLDIR} mailman,cron
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.1.14_rc1-directory-check.patch"
+ epatch "${FILESDIR}/${PN}-2.1.9-icons.patch"
+}
+
+src_configure() {
+ econf \
+ --without-permcheck \
+ --prefix="${INSTALLDIR}" \
+ --with-mail-gid=${MAILGID} \
+ --with-cgi-gid=${CGIGID} \
+ --with-cgi-ext="${MAILMAN_CGIEXT}" \
+ --with-var-prefix="${VAR_PREFIX}" \
+ --with-username=${MAILUSR} \
+ --with-groupname=${MAILGRP} \
+ --with-python="${PYTHON}"
+}
+
+src_install () {
+ emake "DESTDIR=${D}" doinstall
+
+ insinto /etc/apache2/modules.d
+ newins "${FILESDIR}/50_mailman.conf-r2" 50_mailman.conf
+ sed \
+ -e "s:/usr/local/mailman/cgi-bin:${INSTALLDIR}/cgi-bin:g" \
+ -e "s:/usr/local/mailman/icons:${INSTALLDIR}/icons:g" \
+ -e "s:/usr/local/mailman/archives:${VAR_PREFIX}/archives:g" \
+ -i "${D}/etc/apache2/modules.d/50_mailman.conf" || die
+
+ newdoc "${FILESDIR}/README.gentoo-r3" README.gentoo
+
+ dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL contrib/mailman.mc \
+ contrib/README.check_perms_grsecurity contrib/virtusertable
+
+ exeinto ${INSTALLDIR}/bin
+ doexe build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
+ contrib/mm-handler*
+
+ dodir /etc/mailman
+ mv "${D}/${INSTALLDIR}/Mailman/mm_cfg.py" "${D}/etc/mailman"
+ dosym /etc/mailman/mm_cfg.py ${INSTALLDIR}/Mailman/mm_cfg.py
+
+ # Save the old config for updates from pre-2.1.9-r2
+ # To be removed some distant day
+ for i in /var/mailman /home/mailman /usr/local/mailman ${INSTALLDIR}; do
+ if [ -f ${i}/Mailman/mm_cfg.py ] && ! [ -L ${i}/Mailman/mm_cfg.py ]; then
+ cp ${i}/Mailman/mm_cfg.py "${D}/etc/mailman/mm_cfg.py" || die
+ fi
+ done
+
+ newinitd "${FILESDIR}/mailman.rc" mailman
+ cp "${FILESDIR}/mailman.service" "${T}/mailman.service" || die
+ sed -i "s/^User=.*/User=${MAILUSR}/" "${T}/mailman.service" || die
+ systemd_dounit "${T}/mailman.service"
+
+ keepdir ${VAR_PREFIX}/logs
+ keepdir ${VAR_PREFIX}/locks
+ keepdir ${VAR_PREFIX}/spam
+ keepdir ${VAR_PREFIX}/archives/public
+ keepdir ${VAR_PREFIX}/archives/private
+ keepdir ${VAR_PREFIX}/lists
+ keepdir ${VAR_PREFIX}/qfiles
+
+ chown -R ${MAILUSR}:${MAILGRP} "${D}/${VAR_PREFIX}" "${D}/${INSTALLDIR}" "${D}"/etc/mailman/* || die
+ chown ${CGIUID}:${MAILGRP} "${D}/${VAR_PREFIX}/archives/private" || die
+ chmod 2775 "${D}/${INSTALLDIR}" "${D}/${INSTALLDIR}"/templates/* \
+ "${D}/${INSTALLDIR}"/messages/* "${D}/${VAR_PREFIX}" "${D}/${VAR_PREFIX}"/{logs,lists,spam,locks,archives/public} || die
+ chmod 2770 "${D}/${VAR_PREFIX}/archives/private" || die
+ chmod 2770 "${D}/${VAR_PREFIX}/qfiles" || die
+ chmod 2755 "${D}/${INSTALLDIR}"/cgi-bin/* "${D}/${INSTALLDIR}/mail/mailman" || die
+
+ python_optimize "${D}/${INSTALLDIR}/bin/" \
+ "${D}/${INSTALLDIR}/Mailman/" \
+ "${D}/${INSTALLDIR}/Mailman/*"
+}
+
+pkg_postinst() {
+ enewgroup ${MAILGRP} ${MAILGID}
+ enewuser ${MAILUSR} ${MAILUID} -1 ${INSTALLDIR} mailman,cron
+ echo
+ elog "Please read /usr/share/doc/${PF}/README.gentoo.bz2 for additional"
+ elog "Setup information, mailman will NOT run unless you follow"
+ elog "those instructions!"
+ echo
+
+ elog "An example Mailman configuration file for Apache has been installed into:"
+ elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf"
+ echo
+ elog "To enable, you will need to add \"-D MAILMAN\" to"
+ elog "/etc/conf.d/apache2."
+ echo
+
+ ewarn "Default-Configuration has changed deeply in 2.1.9-r2. You can configure"
+ ewarn "mailman with the following variables:"
+ ewarn "MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)"
+ ewarn "MAILMAN_VAR_PREFIX (default: /var/lib/mailman)"
+ ewarn "MAILMAN_CGIUID (default: apache)"
+ ewarn "MAILMAN_CGIGID (default: apache)"
+ ewarn "MAILMAN_CGIEXT (default: empty)"
+ ewarn "MAILMAN_MAILUSR (default: mailman)"
+ ewarn "MAILMAN_MAILUID (default: 280)"
+ ewarn "MAILMAN_MAILGRP (default: mailman)"
+ ewarn "MAILMAN_MAILGID (default: 280)"
+ ewarn
+ ewarn "Config file is now symlinked in /etc/mailman, so etc-update works."
+ ewarn
+ ewarn "If you're upgrading from below 2.1.9-r2 or changed MAILMAN_PREFIX, you"
+ ewarn "NEED to make a few manual updates to your system:"
+ ewarn
+ ewarn "1. Update your mailman users's home directory: usermod -d ${INSTALLDIR} mailman"
+ ewarn "2. Re-import the crontab: su - mailman -c 'crontab cron/crontab.in'"
+ ewarn "3. Copy your old mm_cfg.py file to /etc/mailman/mm_cfg.py"
+ ewarn
+ ewarn "Additionally if you've modified MAILMAN_VAR_PREFIX (or upgraded from"
+ ewarn "a pre 2.1.9-r2 installation), you should move your old lists/ and"
+ ewarn "archives/ directory to the new location, ensuring that the"
+ ewarn "permissions is correct. See bug #208789 for a discussion."
+}
diff --git a/net-mail/mailman/metadata.xml b/net-mail/mailman/metadata.xml
new file mode 100644
index 000000000000..39faa5f3af1c
--- /dev/null
+++ b/net-mail/mailman/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hanno@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mailman</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mailshears/Manifest b/net-mail/mailshears/Manifest
new file mode 100644
index 000000000000..4e3543c832a8
--- /dev/null
+++ b/net-mail/mailshears/Manifest
@@ -0,0 +1,4 @@
+DIST mailshears-0.0.3.gem 68608 SHA256 b0d63660f0a49bdee692ef0d14df4914f4b473bfcad60a2575401359ef075f46 SHA512 4adeaf78c610111e6b32f5d5fd090476cec228a89462d6f70f0360d4492e08c49f672051b2520a98b07958b865b28593c31f595e4283c334eb97eab1d7c3e5aa WHIRLPOOL 3f7784854667939a76b3eac0f5a29c4ad38c000deae6a0909c2bea0c04ac2f75ea58027bf9910c1ee66749f8e35c204ee8bbc69f50e150bd0b97245ea0a8b952
+EBUILD mailshears-0.0.3.ebuild 662 SHA256 f471b9dfab422fad45dde6eb73913aaff762eca14699c0983d4457c44ca0772d SHA512 c80ce1cd34adf73151d69ac2ab5491b8112e496ad6ff8907c009b7c408b26b8fa5b0e8cf73096aed426c92dba40fb5f279fa92dd96c641abad37f9c3edc7d191 WHIRLPOOL 857204561ebcd85f15ded8ef08072f439d000c2188b8c95f5755fe644ca0ecf9417043cec35f28a3d02acbf35a3bb3dff6f27512ee77bebcdc502e5df617c742
+MISC ChangeLog 917 SHA256 4bf47c57bca33cd7da1f01561121c552998d654cd9bca407b4c8db6ae7b5824f SHA512 39b1b235e33ee790d63d201c7fb18020175b6afaaca2059e3c9e59d3e957595aa1e3dea4d38fd9225caef8e0b7f1431ca9c8a00b68870a39d28f1b4c5d6b60a9 WHIRLPOOL d4643408eb4c9b1f1717dac7c65c13b41f75452a05b702fc7d0c9d5a616a8b84a15253cf74ed0ad29d2fa55211a3468172a12e92f88a020c942e0f97d92791f9
+MISC metadata.xml 252 SHA256 f12a15b7cc3ce0ff76c3dbbeba9d162cac9771fb6ecc0f965a34e93f73e67d52 SHA512 92f660063c96ac5b3e24e58733006d4a72a7e2f41605988efb575546a2539a92b1ceb3a37e018fcb5c08264a42af26950d6520ea80ba60130ad25ce6092ce742 WHIRLPOOL b7954a2a1cbccce0641aaf3dd273bf6dc64e7b5d39097eefe4d0c06eacc0b5f310db23e93a0a2fff7c8c735193acb1c5c8d4210bf77e78d457d50d05412796e0
diff --git a/net-mail/mailshears/mailshears-0.0.3.ebuild b/net-mail/mailshears/mailshears-0.0.3.ebuild
new file mode 100644
index 000000000000..a048675f8e59
--- /dev/null
+++ b/net-mail/mailshears/mailshears-0.0.3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22"
+
+# The tests are dangerous and shouldn't be run by anyone!
+# They mess with your local postgres databases.
+RUBY_FAKEGEM_RECIPE_TEST=none
+RUBY_FAKEGEM_RECIPE_DOC=yard
+RUBY_FAKEGEM_EXTRADOC="doc/${PN}.example.conf.yml"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Mangle your mail garden"
+HOMEPAGE="http://michael.orlitzky.com/code/mailshears.php"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/pg-0.17 <dev-ruby/pg-1"
+
+all_ruby_install() {
+ all_fakegem_install
+
+ doman "doc/man1/${PN}.1"
+}
diff --git a/net-mail/mailshears/metadata.xml b/net-mail/mailshears/metadata.xml
new file mode 100644
index 000000000000..45125b9b6e99
--- /dev/null
+++ b/net-mail/mailshears/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ <name>Michael Orlitzky</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/mailsync/Manifest b/net-mail/mailsync/Manifest
new file mode 100644
index 000000000000..86c4ff518155
--- /dev/null
+++ b/net-mail/mailsync/Manifest
@@ -0,0 +1,5 @@
+DIST mailsync_5.2.1.orig.tar.gz 139967 SHA256 8a4f35eedff0003a7e17a6b06b79ad824c8a3ab80cb8351e540948ee94001e6d SHA512 9282cbb6a4ed70ac003ceeace933fda92da3fd6f5bf1058016c138cd81f29918c59ceed615a8f05761f3fd1b32c5b04a0087116cbb75ecf56b8d66ab2c47d14b WHIRLPOOL cc29a5e461b9b9060dcda5a21594e8d63e426fd3713087af771df4a90bbeba5a7c2ddcf935f86b09738288f4f551b5ac37761eef5e148bd2a7c581e7c2626bb0
+EBUILD mailsync-5.2.1.ebuild 448 SHA256 55dfc175c0793ad91e477197f64d993d47095893308ad4c2bf446d09077b633b SHA512 1f12010067e649c39b83b66f80e742cb46bab1eef71ec61ae2ae774ecefddf20120d2dd2f245a31c7c2aef6558aa8c0946202e882393ab7c746a61e7447147f8 WHIRLPOOL 3ffff0854892215563c8ffa33aa45a8fcfbc88325547ee12b07b7882a0408c1964512b1054df06636f3ae0e249b484fac36822dfdfaa43019145ab82871c3271
+MISC ChangeLog 2430 SHA256 b3f67330a9ef2158dee0bbc333534fd1f5ce4be8a5977a19ed9d3793aef6aeed SHA512 ca2c87d8c77aa4cd02d9e913894e988a343d1113ffd1ec8678340d90a9245354f3ff8df30b280d6a46024484d738206538b5f515dcd3aa717e7df41d987bc352 WHIRLPOOL 5a4b000c63757fc9cdb09c1683f4589840275d7a07b47f2ab6f576f355c3736bab6c26c5f27b907d4be883fce6f8348a6eeba4e4e68fe6f9263e4a799851def6
+MISC ChangeLog-2015 855 SHA256 4085db4c7ddd46813118a34891466668c09d3b6f023a1f8b0d1d9b2d467791da SHA512 db154509aa1209c1d072b7ea48f4d2a8468ab010db4abe37f008c36adf64307e7f5fd122489edd556974bba379fd1abf607570aadf45dc4520130d0379d81bd3 WHIRLPOOL a51ccd48094b92f6622c60d2702364a9b0e6db02501c9a0a5462c0f8967e4a815710fdd2021fb7c12a714223853f10305574fb093b25569eb7d4801f8b85945f
+MISC metadata.xml 332 SHA256 5fdfe356d62bbb484bd2564d90fce5e78ddea5364645c4359dad8369e73054c4 SHA512 713e2d4c3fc6cfea7aec72ba4e4b55d5c429bfeed66bfca4fb1c5e3acfabf1e1ca4d731b5792a7e85396fd6e8d72b1f3a0a58abe6412a00f351fb448754da698 WHIRLPOOL 4f31d8930464420457c85e4a8d4fda083af2a3e08a2c3a85d24094ee524313a29c288715d5d737a40df507613fcb9b31a5229d132ee3b6993cb47f667da04118
diff --git a/net-mail/mailsync/mailsync-5.2.1.ebuild b/net-mail/mailsync/mailsync-5.2.1.ebuild
new file mode 100644
index 000000000000..89143e1b0c78
--- /dev/null
+++ b/net-mail/mailsync/mailsync-5.2.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A mailbox synchronizer"
+HOMEPAGE="http://mailsync.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+
+IUSE=""
+
+DEPEND="virtual/imap-c-client"
+
+src_install() {
+ make DESTDIR=${D} install pkgdocdir=/usr/share/doc/${P} || die
+ doman doc/mailsync.1
+}
diff --git a/net-mail/mailsync/metadata.xml b/net-mail/mailsync/metadata.xml
new file mode 100644
index 000000000000..3f63e9d8b9f8
--- /dev/null
+++ b/net-mail/mailsync/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mailsync</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mailutils/Manifest b/net-mail/mailutils/Manifest
new file mode 100644
index 000000000000..c04976ca6214
--- /dev/null
+++ b/net-mail/mailutils/Manifest
@@ -0,0 +1,21 @@
+AUX comsatd.initd 569 SHA256 04983a4c4cb4736a9a58eb15991f9fa1f9f0d36565e25762e021318f045a4e83 SHA512 9c36ddf70bf4f0e3c56f55651a740014078e3a1a79569a62ccd74e1ec7167eac6ecb69d56c15913d815c472fe943d17a1e781a669208d37c97671afea2208f8f WHIRLPOOL f357914c5fb65d17bf4df0a80af8a47855bb4439f5150069f496a7cc7a712894d1cdef0639b637ea564452c8c25621c04d01da80479bf4d430863cfb14bb8e6d
+AUX hdr.at 1400 SHA256 28354d253a10a9bf19744b2eadc7b3c890d49b37da4a3e8c85cc080d3d9e175e SHA512 f9b16a7726068b646dbde37e9c5293a0cfaa6baaa40908df3b36e125c5a06b52d946a8a0568db424009964965e90ac0d568e83345bcc9b1bce3b6f9157584b48 WHIRLPOOL ac4aa608bb0c236515b541efbc972049ba2ea553be7359a5376ccdc48bf8afbe891774876e0153c9db4b77ec953ed5ee481c5cbd071e2dc2448502602e1f7463
+AUX imap4d.initd 566 SHA256 008e9597107b28099f743245793d67148b169484b8a666eeb40b4d16cbd0b687 SHA512 51d6cf4285c6823d97e52c7eb408a80aa66376f329685acdc21e096c2099a044b2fd18e7b9e5ed89406a3cd1f16b7aa7b0243f8ea46aa7824da48b566ec00324 WHIRLPOOL 0c4e976c82b039529cb537567c5e750553238248ffaf09f370a256dff9b47040a53f2cc8ff9da126b41470db2bcaa5a327bcfe0d15dae4bcf3aac20929840822
+AUX mail 82 SHA256 639caffcadbe11530f2296cf22f155b1204b7cb51b952b868467be40fb4dfa85 SHA512 80080a3118ed66cfde44ad3663e4b07bcd5fe756b86a213ea4e1ab86e27f8485dcf02af3ee6b7f6f12105a267b9619376668e0cb6e60743ffb7664d2dbea9144 WHIRLPOOL 3205ffeb942b2d89d639baa219a2c40395ba85430aba8a347dc65b109a3a52f0e4eb3c67219bef22d6fa2adc88647eee34ebdaac694e21645d260d7a905f1c81
+AUX mailutils-2.99.98-array_bounds.patch 271 SHA256 51e146ed31205d565d6a7357de4977b02af7979e17467e31dc88210ee2fce448 SHA512 01de8bdaa7af244434fdbc5df9652f0127865d96b1e5f7b3495d4191c6dc53383d5246d8183efc913ae606b609141e9440d37afd8028278cc054840f039c5c5c WHIRLPOOL 1f6334678eabe598a622164334ff13f9e0452442b610de8b333c4e7695151985b9c3ae971f7cfe49be28462b7a895df56e48294608f9f260d0fc7a28cb08d095
+AUX mailutils-2.99.98-readline-6.3.patch 1321 SHA256 616b40e493496d8a7d9224e84b27c572c7bee51a789bbd687aa3e0f11665cd41 SHA512 cba6cd29af43b84bb9f13c6850756408e942b5cdf512f04582b3b3ae8e5532c615f8ed71cd8c19088aff4ef30f41861efab6e419d2300f99ad85f8b6abf30fa5 WHIRLPOOL 30312962f103bb2f10c43467d78a763826a1f27acf5932bb00b17f3ee0aa86f96ae0a4215c09361a3ac5ebbc76771a75688c3970b9f3a0d8403099cdfe138761
+AUX mailutils-3.2-fix-build.patch 2100 SHA256 09d29aa1853d16a6bcbe6c1440737ef035617f5b015caac53a83eb90de46c5d5 SHA512 4ec7dc7c10dfed4862c0ecb7f9b5225abc957d03760f4cfb1982e7d3076244b45ef78b85b064f3aba925a09c67ab5103b37fefd4a8f9d45efefa9d481bb15505 WHIRLPOOL fd3bc7dfb448ef48e275d813038faa98b6039b6d4c129cd0e80bd9a4bc1bcb60d280e2d3160d1100b45e9eac93caf01180d2d60c416ed3d0c3dd60924d57eb68
+AUX mailutils.rc 258 SHA256 a8618dcea1117d62e728ad8036018063a59e20bba0e6e23ce17ec9f498fa9220 SHA512 691bcc81fd355d8f2776e72006c149996273579e099f24970ff0c5dd6bdf65cd64e31597f8b3d8e0a900a91c3325b8d2a1a96682a9b3ff53acd41218fe8721fe WHIRLPOOL fb690a12d7b9687b3f9b785fab3c849b8bb8170f1c313fe5bd580bb3a9783f105da7c131d3e8fca659de01c7d6924bde42a15ab77ab88701ca373a186bb835dd
+AUX nohdr.at 1032 SHA256 679139793c3148104504d82eb8aabe9677689088a8aaa085a1d548bca69b6bee SHA512 d244044d0ccc00b23cf01235904b880e3d1e74ab2741dc41c4ab82217b019cb32d3dadae69c73c635bceabb80bccc3db5f3176a1039ee40f365277a102739eb1 WHIRLPOOL 0e58660c30e43c53c475534deccb0a0249c7fac97da9dd5475f2e9f38e03abb0328010590df3633648e68f26d7ccf35f21d40c92fd6a4a425be9de2874f110b9
+AUX pop3d.initd 563 SHA256 470db1e9b766bf9666035552b4471fa3685bf39b0b11921fe1c32087ffc967c1 SHA512 7847c29a03f21df82d36c077ccb38329457a332cccdfba24bee3b1c9a8170fc71c07ee674408f069693953dd1bf44b8b8f782dcc35d6b16e62f70b2b32ce018f WHIRLPOOL ee1fe66b85fea66b07736f64bf4159881cc4a012d5ac24af3d4b6aa3842d5c401de7c94b43783aadab5be569b61af208c9e7ffeb7726ab8e4ddd5b9ede4aa0b2
+AUX twomsg.at 2216 SHA256 2f4daa90e190f2859fbf5b2480389ca425c5b7d0e44ad3613f41f52e5e4ea296 SHA512 dc84c7b0c3ce6fb919eabaf574b63943e9e318432ea11d6b65d13caa7f978b2dab6c70413e565b49e3b7e59aa791975dcd95e9a8e24024154f7c2f4dfd4d91aa WHIRLPOOL 083e915fc92d6c38f4b59bb030c51b59f3dd16ca1be0200dde150f12bbb3164eef15992d8ae1a7e0e4888f6158a70d6ea7e20baa1f0996993b2a2e3da9b61f8c
+AUX weed.at 1100 SHA256 d08206e05e39b903f7fa171cb14ea45e0d629baf756896d62b2e2506a7ea0184 SHA512 84fa4564cb1876c1b9f1a8b143f8fc95829de5d2b02edf8894d86aa50efcdd5696d66d773737a8989ccc4ae22d4d0e2c4b7c055e281faabb82cea399150b2821 WHIRLPOOL acf6bf42d1bf5ffde5b636bc12d9acd9a04010792e55f2efd1bf79ce794316dbd8fa5742d1f32531a3568af373849cb8ea183eebfe0f7ea5bf8c8390e59ef504
+DIST mailutils-2.99.98.tar.xz 2505252 SHA256 62e2c28aed77e451e05ed15e68b5abc3932bcc3d2d6caf9b4a6864258c6a7b1a SHA512 fc20d97b3eed0f0ff7f1d7885e59f8de6ffd5b4646cd06c3636bda4a6bc9f7a0d5acdc7bb3bb573cdc80d63dfdc0be6464033ef2f6d88514bd2190f6611a1083 WHIRLPOOL c0f6f4f9dc2d60074c06a6c8f604fa4d92df4dafd6e205df8c360e97663e96c9b64a02aab9af7eab0659abc39e8aed70bbb0761b7d5a21b5873beabbcd409030
+DIST mailutils-3.1.1.tar.xz 2759000 SHA256 e5a07994924f63d8f29efe94e63ba6b110ac70b2b7f61ffa6f54ae4c9287bc21 SHA512 68a6f530935118f60503550aff925c799fee4de77377e726548f418e05687b1c8f29210bcb97e1b1033f9414bdbceeaa41e65496b0648a6356c8363554955e8c WHIRLPOOL 37c475e488f1967658e0f204cd9a47d402976f2af31566de6f9b815a4c4e1cace83a9367e8e343eb575a7128653f3e82f114c4966b1b1ac32c7512aa2246baf2
+DIST mailutils-3.2.tar.xz 2795512 SHA256 96d354e69e93d5ed6dc2e1019bc3ed3c6e322248a2c477d8fc89dbed91ed077e SHA512 48499d64da65653f996257bd920ee6574840ce9872476425c499d2af6dda5f2cd88a6dc89affba5451ab28c347308a2ae1b53ec40679289d63d74775cd722f96 WHIRLPOOL 99eb034c708dcbbc0b2dcb086ea33010c5d90b3cc8b4b7b5eba2c786d042bd5ac517a611d3f185a84084c03f16b62e8c4efd75f1be315dd19df5868d2cfff82d
+EBUILD mailutils-2.99.98-r1.ebuild 3404 SHA256 1a3da14ca7d67212ae0b74fe5ce0c89dfea03f61ca5a0544ed2bd707f40356e0 SHA512 cc5c474cf3fd9944a02b4d3cc35310af2e0b3bbead99f1a2ced78ebfacf27d187b4b30038b94e0204f5922b6528e861c14d036522622108e0f8ef36d9bcf26bb WHIRLPOOL 86fb246484632c3bba9ff018d209d2e512c668f869da7be22fd8e2804758909de3409c7597eaf754e5d360dbd5db35be901da9d2a2df887dfca90bfd516c66dd
+EBUILD mailutils-3.1.1.ebuild 3575 SHA256 a3a8f2f6878946f91853ad2989e277e90e4c7abad868778b5ad275d84b7c4b74 SHA512 3fa3501b885b254bfaf86786d67a3177f0756cb0346ba630dc9b902c851ceb708abce1057d326de769704ff50d713859f0280433b384a6f17b016a4045d05570 WHIRLPOOL efb958c29b2e8ed499997cdc5e6e4fb78a2069750077acb605a17ef828f21931a9a5e3d2a6b00fac20f15c7d530ca18def937c2898fce872a6ec1193e154c8cc
+EBUILD mailutils-3.2.ebuild 3572 SHA256 2444d17d022ceedd371f2a76906d62b2778f04d45b6758c5205a182418980ec7 SHA512 eb2de61804c2e6da6a6c704f7df7e88b6ab8682b1e023e2f47661c504a38bea4fbe391fb4fce462f6674e1de645422c0a991f4d906635d41163dd9ac7874ad03 WHIRLPOOL 884887b2ecf8a6928e5b9f3af118dc808977f9826b7f19c59b1965a798471e16634e542f5e4f8b6712c6c5de7770c90839fe655802d4167e491911a52405adb8
+MISC ChangeLog 5455 SHA256 22024cf49b78294fdbf350d540c1cbff74ded9b5ed5790552ad3063ff7940ba5 SHA512 b16a07cda1196de4eb31e60ad88a0aa9e28e43d7dd810d18269892a849ec70ebe4d1af7299a76557ef10289eade0c85cfa1fe4fc8af2ab6f622b5b70128ba7c4 WHIRLPOOL 57e8d636f52f82d34a233ceed610cdae1f84d4f73924fc2ce170cfd2c72105ca1924af35f59ab3bd7a0ff37113502597f1634ed2bcbf4cba3fbe22d8bd2cf38c
+MISC ChangeLog-2015 10533 SHA256 6005cfed69eb8d6065cbc67be396bb130ceb3a4c40427e17b5608ac72ed719cb SHA512 8351be5fb052ca348935f535ac456034fb1342871d6eb0ff3a66cd6565b33a383c197be33b6a42f0b57f15f6730f8f549f48d7a96142a124ef3f17a83651963f WHIRLPOOL 11932cba8f90b74c53f55de61748f1ca217ad5137376572d34166f19345e12bb5ce1b3fffb16b6a3e051c8e0407c2616b6d52d433b367bad1746740be1184fc0
+MISC metadata.xml 598 SHA256 11e28455f0762275ad80e82ebb26de0119b7791916fbb5a6c677185e213b6ecc SHA512 16f2b6b082da7c932457df31809c8ca1caca1f8439037f56b5751c28cf1217658ed60fd4155871d4d5d71e7040c01edbe37198dee27beeae1905da954317c8e7 WHIRLPOOL 34b3346cb70bb38e74fd021b28b21578dfa82a7b038db8ec5109b0e58a489cf8dece99cf33c970d22e7f410641c58ccc39ef8fea57b72f109b8c883791e74d0f
diff --git a/net-mail/mailutils/files/comsatd.initd b/net-mail/mailutils/files/comsatd.initd
new file mode 100644
index 000000000000..83da288a41d9
--- /dev/null
+++ b/net-mail/mailutils/files/comsatd.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+#---------------------------------------------------------------------------
+# This script starts/stops the GNU Mailutils Comsatd
+#---------------------------------------------------------------------------
+
+daemon="GNU Mailutils Comsatd"
+exec="/usr/sbin/comsatd"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting $daemon"
+ start-stop-daemon --start --quiet --exec ${exec} -- -d 1>&2
+ eend $? "Error starting $daemon"
+}
+
+stop() {
+ ebegin "Stopping $daemon"
+ start-stop-daemon --stop --quiet --exec ${exec} 1>&2
+ eend $? "Error stopping $daemon"
+}
diff --git a/net-mail/mailutils/files/hdr.at b/net-mail/mailutils/files/hdr.at
new file mode 100644
index 000000000000..7c9d5e85c693
--- /dev/null
+++ b/net-mail/mailutils/files/hdr.at
@@ -0,0 +1,36 @@
+# This file is part of GNU Mailutils. -*- Autotest -*-
+# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+#
+# GNU Mailutils is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3, or (at
+# your option) any later version.
+#
+# GNU Mailutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
+
+READMSGTEST([readmsg -h],[hdr],
+[readmsg -h SOMETHING],
+[0],
+[From bar@dontmailme.org Fri Dec 28 23:28:09 2001
+Received: (from bar@dontmailme.org)
+ by dontmailme.org id fERKR9N16790
+ for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200
+Date: Fri, 28 Dec 2001 23:28:08 +0200
+From: Bar <bar@dontmailme.org>
+To: Foo Bar <foobar@nonexistent.net>
+Message-Id: <200112232808.fERKR9N16790@dontmailme.org>
+Subject: Re: Jabberwocky
+
+It seems very pretty, but it's *rather* hard to understand!'
+Somehow it seems to fill my head with ideas -- only I don't
+exactly know what they are! However, SOMEBODY killed SOMETHING:
+that's clear, at any rate...
+
+
+])
diff --git a/net-mail/mailutils/files/imap4d.initd b/net-mail/mailutils/files/imap4d.initd
new file mode 100644
index 000000000000..39617b994d11
--- /dev/null
+++ b/net-mail/mailutils/files/imap4d.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+#---------------------------------------------------------------------------
+# This script starts/stops the GNU Mailutils Imap4d
+#---------------------------------------------------------------------------
+
+daemon="GNU Mailutils Imap4d"
+exec="/usr/sbin/imap4d"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting $daemon"
+ start-stop-daemon --start --quiet --exec ${exec} -- -d 1>&2
+ eend $? "Error starting $daemon"
+}
+
+stop() {
+ ebegin "Stopping $daemon"
+ start-stop-daemon --stop --quiet --exec ${exec} 1>&2
+ eend $? "Error stopping $daemon"
+}
diff --git a/net-mail/mailutils/files/mail b/net-mail/mailutils/files/mail
new file mode 100644
index 000000000000..413ca858a645
--- /dev/null
+++ b/net-mail/mailutils/files/mail
@@ -0,0 +1,5 @@
+# Sample mail config file
+# See info mail for more options
+
+# no debug
+debug { };
diff --git a/net-mail/mailutils/files/mailutils-2.99.98-array_bounds.patch b/net-mail/mailutils/files/mailutils-2.99.98-array_bounds.patch
new file mode 100644
index 000000000000..8ac418c7c037
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils-2.99.98-array_bounds.patch
@@ -0,0 +1,11 @@
+--- libmu_auth/ldap.c 2012-03-25 14:02:22.000000000 +0300
++++ libmu_auth/ldap.c 2013-03-22 12:29:19.034880845 +0200
+@@ -534,7 +534,7 @@
+
+ env[0] = "user";
+ env[1] = key;
+- env[3] = NULL;
++ env[2] = NULL;
+
+ ws.ws_env = env;
+ if (mu_wordsplit (filter_pat, &ws,
diff --git a/net-mail/mailutils/files/mailutils-2.99.98-readline-6.3.patch b/net-mail/mailutils/files/mailutils-2.99.98-readline-6.3.patch
new file mode 100644
index 000000000000..de9a487aaaf3
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils-2.99.98-readline-6.3.patch
@@ -0,0 +1,39 @@
+https://bugs.gentoo.org/503954
+
+fix build w/readline-6.3
+
+patch by Martin von Gagern
+
+--- mailutils-2.99.98/mu/shell.c
++++ mailutils-2.99.98/mu/shell.c
+@@ -336,7 +336,7 @@ mutool_initialize_readline (const char *
+ {
+ /* Allow conditional parsing of the ~/.inputrc file. */
+ rl_readline_name = (char *) name;
+- rl_attempted_completion_function = (CPPFunction *) shell_completion;
++ rl_attempted_completion_function = shell_completion;
+ rl_getc_function = _shell_getc;
+ read_history (get_history_file_name ());
+ }
+--- mailutils-2.99.98/mail/mailline.c
++++ mailutils-2.99.98/mail/mailline.c
+@@ -93,7 +93,7 @@ ml_readline_init ()
+
+ #ifdef WITH_READLINE
+ rl_readline_name = "mail";
+- rl_attempted_completion_function = (CPPFunction*)ml_command_completion;
++ rl_attempted_completion_function = ml_command_completion;
+ rl_getc_function = ml_getc;
+ #endif
+ #ifdef HAVE_SIGACTION
+--- mailutils-2.99.98/examples/nntpclient.c
++++ mailutils-2.99.98/examples/nntpclient.c
+@@ -163,7 +163,7 @@ initialize_readline ()
+ rl_readline_name = (char *) "nntp";
+
+ /* Tell the completer that we want a crack first. */
+- rl_attempted_completion_function = (CPPFunction *) nntp_completion;
++ rl_attempted_completion_function = nntp_completion;
+ }
+
+ /* Attempt to complete on the contents of TEXT. START and END bound the
diff --git a/net-mail/mailutils/files/mailutils-3.2-fix-build.patch b/net-mail/mailutils/files/mailutils-3.2-fix-build.patch
new file mode 100644
index 000000000000..7036cd68ca34
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils-3.2-fix-build.patch
@@ -0,0 +1,70 @@
+From afbb33cf9ff750e93a9a4c1f51a3b62d584f056e Mon Sep 17 00:00:00 2001
+From: Sergey Poznyakoff <gray@gnu.org>
+Date: Sun, 19 Mar 2017 17:31:08 +0200
+Subject: Fix a bug in field-map handling.
+
+* libmailutils/cfg/driver.c (parse_mapping): Fix expected value type.
+* libmu_auth/sql.c (get_field): Remove left-over mu_assoc_ref call
+(see 622bc770).
+---
+ NEWS | 2 +-
+ libmailutils/cfg/driver.c | 7 ++++++-
+ libmu_auth/sql.c | 11 +++++++----
+ 3 files changed, 14 insertions(+), 6 deletions(-)
+
+diff --git a/libmailutils/cfg/driver.c b/libmailutils/cfg/driver.c
+index 7da75a8..8af543d 100644
+--- a/libmailutils/cfg/driver.c
++++ b/libmailutils/cfg/driver.c
+@@ -617,10 +617,15 @@ static int
+ parse_mapping (void *item, void *data)
+ {
+ struct mapping_closure *clos = data;
+- char *str = item;
++ struct mu_config_value *cval = item;
++ char const *str;
+ size_t len;
+ char *key, *val;
+ int rc;
++
++ if (mu_cfg_assert_value_type (cval, MU_CFG_STRING))
++ return 1;
++ str = cval->v.string;
+
+ len = strcspn (str, "=");
+ if (str[len] == 0)
+diff --git a/libmu_auth/sql.c b/libmu_auth/sql.c
+index d69c36c..c50598d 100644
+--- a/libmu_auth/sql.c
++++ b/libmu_auth/sql.c
+@@ -214,20 +214,23 @@ mu_sql_expand_query (const char *query, const char *ustr)
+ static int
+ get_field (mu_sql_connection_t conn, const char *id, char **ret, int mandatory)
+ {
+- const char **name = mu_assoc_ref (mu_sql_module_config.field_map, id);
+- int rc = mu_sql_get_field (conn, 0, name ? *name : id, ret);
++ int rc;
++ const char *name = mu_assoc_get (mu_sql_module_config.field_map, id);
++ if (!name)
++ name = id;
++ rc = mu_sql_get_field (conn, 0, name, ret);
+ if (rc)
+ {
+ if (mandatory || rc != MU_ERR_NOENT)
+ mu_error (_("cannot get SQL field `%s' (`%s'): %s"),
+- id, name ? *name : id, mu_strerror (rc));
++ id, name, mu_strerror (rc));
+ }
+ else if (!*ret)
+ {
+ if (mandatory)
+ {
+ mu_error (_("SQL field `%s' (`%s') has NULL value"),
+- id, name ? *name : id);
++ id, name);
+ rc = MU_ERR_READ;
+ }
+ else
+--
+cgit v1.0-41-gc330
+
diff --git a/net-mail/mailutils/files/mailutils.rc b/net-mail/mailutils/files/mailutils.rc
new file mode 100644
index 000000000000..07a551963ec3
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils.rc
@@ -0,0 +1,11 @@
+# Sample mailutils config file. Read by all mailutils programs.
+# See info mailutils for details.
+
+# Gentoo default is maildir
+mailbox {
+ mailbox-type maildir;
+ mailbox-pattern .maildir;
+};
+
+# Place individual config files here
+include /etc/mailutils.d/;
diff --git a/net-mail/mailutils/files/nohdr.at b/net-mail/mailutils/files/nohdr.at
new file mode 100644
index 000000000000..4caf85570f1e
--- /dev/null
+++ b/net-mail/mailutils/files/nohdr.at
@@ -0,0 +1,26 @@
+# This file is part of GNU Mailutils. -*- Autotest -*-
+# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+#
+# GNU Mailutils is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3, or (at
+# your option) any later version.
+#
+# GNU Mailutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
+
+READMSGTEST([readmsg -n],[nohdr],
+[readmsg -n SOMETHING],
+[0],
+[It seems very pretty, but it's *rather* hard to understand!'
+Somehow it seems to fill my head with ideas -- only I don't
+exactly know what they are! However, SOMEBODY killed SOMETHING:
+that's clear, at any rate...
+
+
+])
diff --git a/net-mail/mailutils/files/pop3d.initd b/net-mail/mailutils/files/pop3d.initd
new file mode 100644
index 000000000000..dcbe9cca5024
--- /dev/null
+++ b/net-mail/mailutils/files/pop3d.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+#---------------------------------------------------------------------------
+# This script starts/stops the GNU Mailutils Pop3d
+#---------------------------------------------------------------------------
+
+daemon="GNU Mailutils Pop3d"
+exec="/usr/sbin/pop3d"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting $daemon"
+ start-stop-daemon --start --quiet --exec ${exec} -- -d 1>&2
+ eend $? "Error starting $daemon"
+}
+
+stop() {
+ ebegin "Stopping $daemon"
+ start-stop-daemon --stop --quiet --exec ${exec} 1>&2
+ eend $? "Error stopping $daemon"
+}
diff --git a/net-mail/mailutils/files/twomsg.at b/net-mail/mailutils/files/twomsg.at
new file mode 100644
index 000000000000..20af66173d6a
--- /dev/null
+++ b/net-mail/mailutils/files/twomsg.at
@@ -0,0 +1,73 @@
+# This file is part of GNU Mailutils. -*- Autotest -*-
+# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+#
+# GNU Mailutils is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3, or (at
+# your option) any later version.
+#
+# GNU Mailutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
+
+READMSGTEST([readmsg 1 2],[twomsg],
+[1 2],
+[0],
+[Date: Fri, 28 Dec 2001 22:18:08 +0200
+From: Foo Bar <foobar@nonexistent.net>
+To: Bar <bar@dontmailme.org>
+Subject: Jabberwocky
+
+`Twas brillig, and the slithy toves
+Did gyre and gimble in the wabe;
+All mimsy were the borogoves,
+And the mome raths outgrabe.
+
+`Beware the Jabberwock, my son!
+The jaws that bite, the claws that catch!
+Beware the Jujub bird, and shun
+The frumious Bandersnatch!'
+
+He took his vorpal sword in hand:
+Long time the manxome foe he sought --
+So rested he by the Tumtum gree,
+And stood awhile in thought.
+
+And as in uffish thought he stood,
+The Jabberwock, with eyes of flame,
+Came whiffling through the tulgey wook,
+And burbled as it came!
+
+One, two! One, two! And through and through
+The vorpal blade went snicker-snack!
+He left it dead, and with its head
+He went galumphing back.
+
+`And has thou slain the Jabberwock?
+Come to my arms, my beamish boy!
+O frabjous day! Calloh! Callay!
+He chortled in his joy.
+
+`Twas brillig, and the slithy toves
+Did gyre and gimble in the wabe;
+All mimsy were the borogoves,
+And the mome raths outgrabe.
+
+
+Date: Fri, 28 Dec 2001 23:28:08 +0200
+From: Bar <bar@dontmailme.org>
+To: Foo Bar <foobar@nonexistent.net>
+Subject: Re: Jabberwocky
+
+It seems very pretty, but it's *rather* hard to understand!'
+Somehow it seems to fill my head with ideas -- only I don't
+exactly know what they are! However, SOMEBODY killed SOMETHING:
+that's clear, at any rate...
+
+
+])
+
diff --git a/net-mail/mailutils/files/weed.at b/net-mail/mailutils/files/weed.at
new file mode 100644
index 000000000000..ec82c6ce23b5
--- /dev/null
+++ b/net-mail/mailutils/files/weed.at
@@ -0,0 +1,29 @@
+# This file is part of GNU Mailutils. -*- Autotest -*-
+# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+#
+# GNU Mailutils is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3, or (at
+# your option) any later version.
+#
+# GNU Mailutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
+
+READMSGTEST([readmsg -w],[weed],
+[-w date,subject SOMETHING],
+[0],
+[Date: Fri, 28 Dec 2001 23:28:08 +0200
+Subject: Re: Jabberwocky
+
+It seems very pretty, but it's *rather* hard to understand!'
+Somehow it seems to fill my head with ideas -- only I don't
+exactly know what they are! However, SOMEBODY killed SOMETHING:
+that's clear, at any rate...
+
+
+])
diff --git a/net-mail/mailutils/mailutils-2.99.98-r1.ebuild b/net-mail/mailutils/mailutils-2.99.98-r1.ebuild
new file mode 100644
index 000000000000..b42056d47eff
--- /dev/null
+++ b/net-mail/mailutils/mailutils-2.99.98-r1.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic python-single-r1 toolchain-funcs
+
+DESCRIPTION="A useful collection of mail servers, clients, and filters"
+HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html"
+#SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
+SRC_URI="mirror://gnu-alpha/mailutils/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~hppa ~ppc x86 ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="berkdb bidi +clients gdbm sasl guile ipv6 kerberos ldap mysql nls pam postgres
+python servers ssl static-libs +threads tcpd tokyocabinet"
+
+# Drop the libtool dep once libltdl goes stable.
+RDEPEND="!mail-client/nmh
+ !mail-filter/libsieve
+ !mail-client/mailx
+ !mail-client/nail
+ sys-libs/ncurses:=
+ sys-libs/readline:=
+ || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )
+ virtual/mta
+ berkdb? ( sys-libs/db:= )
+ bidi? ( dev-libs/fribidi )
+ gdbm? ( sys-libs/gdbm )
+ guile? ( dev-scheme/guile:= )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ mysql? ( virtual/mysql )
+ nls? ( sys-devel/gettext )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS} )
+ sasl? ( virtual/gsasl )
+ ssl? ( net-libs/gnutls:= )
+ tcpd? ( sys-apps/tcp-wrappers )
+ tokyocabinet? ( dev-db/tokyocabinet )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Disable bytecompilation of Python modules.
+ echo "#!/bin/sh" > build-aux/py-compile
+ epatch "${FILESDIR}/${P}-array_bounds.patch"
+ epatch "${FILESDIR}/${P}-readline-6.3.patch" #503954
+ if use mysql; then
+ sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \
+ sql/Makefile.am || die
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ # maildir is the Gentoo default
+ # but fails tests. So set it in config file instead.
+ #econf MU_DEFAULT_SCHEME=maildir \
+ econf CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
+ $(use_with berkdb berkeley-db) \
+ $(use_with bidi fribidi) \
+ $(use_enable ipv6) \
+ $(use_with gdbm) \
+ $(use_with sasl gsasl) \
+ $(use_with guile) \
+ $(use_with kerberos gssapi) \
+ $(use_with ldap) \
+ $(use_with mysql) \
+ $(use_enable nls) \
+ $(use_enable pam) \
+ $(use_with postgres) \
+ $(use_enable python) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static) \
+ $(use_enable threads pthread) \
+ $(use_with tokyocabinet) \
+ $(use_enable servers build-servers) \
+ $(use_enable clients build-clients) \
+ --with-mail-spool=/var/spool/mail \
+ --with-readline \
+ --enable-sendmail \
+ --disable-debug \
+ --disable-rpath
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto /etc
+ doins "${FILESDIR}/mailutils.rc"
+ keepdir /etc/mailutils.d/
+ insinto /etc/mailutils.d
+ doins "${FILESDIR}/mail"
+
+ if use python; then
+ python_optimize
+ if use static-libs; then
+ rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
+ fi
+ fi
+
+ if use servers; then
+ newinitd "${FILESDIR}"/imap4d.initd imap4d
+ newinitd "${FILESDIR}"/pop3d.initd pop3d
+ newinitd "${FILESDIR}"/comsatd.initd comsatd
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README* THANKS TODO
+
+ # compatibility link
+ use clients && dosym /usr/bin/mail /bin/mail
+
+ use static-libs || find "${D}" -name "*.la" -delete
+}
diff --git a/net-mail/mailutils/mailutils-3.1.1.ebuild b/net-mail/mailutils/mailutils-3.1.1.ebuild
new file mode 100644
index 000000000000..cce58d02ff36
--- /dev/null
+++ b/net-mail/mailutils/mailutils-3.1.1.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic python-single-r1 toolchain-funcs
+
+DESCRIPTION="A useful collection of mail servers, clients, and filters"
+HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html"
+#SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
+SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~hppa ~ppc x86 ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="berkdb bidi +clients gdbm sasl guile ipv6 kerberos kyotocabinet ldap \
+ mysql nls pam postgres python servers ssl static-libs +threads tcpd \
+ tokyocabinet"
+
+RDEPEND="!mail-client/nmh
+ !mail-filter/libsieve
+ !mail-client/mailx
+ !mail-client/nail
+ sys-libs/ncurses:=
+ sys-libs/readline:=
+ dev-libs/libltdl:0
+ virtual/mta
+ berkdb? ( sys-libs/db:= )
+ bidi? ( dev-libs/fribidi )
+ gdbm? ( sys-libs/gdbm )
+ guile? ( dev-scheme/guile:= )
+ kerberos? ( virtual/krb5 )
+ kyotocabinet? ( dev-db/kyotocabinet )
+ ldap? ( net-nds/openldap )
+ mysql? ( virtual/mysql )
+ nls? ( sys-devel/gettext )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS} )
+ sasl? ( virtual/gsasl )
+ ssl? ( net-libs/gnutls:= )
+ tcpd? ( sys-apps/tcp-wrappers )
+ tokyocabinet? ( dev-db/tokyocabinet )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ servers? ( tcpd )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Disable bytecompilation of Python modules.
+ echo "#!/bin/sh" > build-aux/py-compile
+ eapply "${FILESDIR}/${PN}-2.99.98-readline-6.3.patch" #503954
+ # bug 567976
+ sed -i -e /AM_GNU_GETTEXT_VERSION/s/0.18/0.19/ configure.ac || die
+ # add missing tests so that make check doesn't fail
+ cp "${FILESDIR}"/{hdr,nohdr,twomsg,weed}.at "${S}"/readmsg/tests || die
+ if use mysql; then
+ sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \
+ sql/Makefile.am || die
+ fi
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ # maildir is the Gentoo default
+ econf MU_DEFAULT_SCHEME=maildir \
+ CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
+ $(use_with berkdb berkeley-db) \
+ $(use_with bidi fribidi) \
+ $(use_enable ipv6) \
+ $(use_with gdbm) \
+ $(use_with sasl gsasl) \
+ $(use_with guile) \
+ $(use_with kerberos gssapi) \
+ $(use_with ldap) \
+ $(use_with mysql) \
+ $(use_enable nls) \
+ $(use_enable pam) \
+ $(use_with postgres) \
+ $(use_enable python) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static) \
+ $(use_enable threads pthread) \
+ $(use_with tokyocabinet) \
+ $(use_with kyotocabinet) \
+ $(use_with tcpd tcp-wrappers) \
+ $(use_enable servers build-servers) \
+ $(use_enable clients build-clients) \
+ --with-mail-spool=/var/spool/mail \
+ --with-readline \
+ --enable-sendmail \
+ --disable-debug \
+ --disable-rpath
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto /etc
+ doins "${FILESDIR}/mailutils.rc"
+ keepdir /etc/mailutils.d/
+ insinto /etc/mailutils.d
+ doins "${FILESDIR}/mail"
+
+ if use python; then
+ python_optimize
+ if use static-libs; then
+ rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
+ fi
+ fi
+
+ if use servers; then
+ newinitd "${FILESDIR}"/imap4d.initd imap4d
+ newinitd "${FILESDIR}"/pop3d.initd pop3d
+ newinitd "${FILESDIR}"/comsatd.initd comsatd
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README* THANKS TODO
+
+ # compatibility link
+ use clients && dosym /usr/bin/mail /bin/mail
+
+ use static-libs || find "${D}" -name "*.la" -delete
+}
diff --git a/net-mail/mailutils/mailutils-3.2.ebuild b/net-mail/mailutils/mailutils-3.2.ebuild
new file mode 100644
index 000000000000..c06e69e20eee
--- /dev/null
+++ b/net-mail/mailutils/mailutils-3.2.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic python-single-r1 toolchain-funcs
+
+DESCRIPTION="A useful collection of mail servers, clients, and filters"
+HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html"
+#SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
+SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="berkdb bidi +clients gdbm sasl guile ipv6 kerberos kyotocabinet ldap \
+ mysql nls pam postgres python servers ssl static-libs +threads tcpd \
+ tokyocabinet"
+
+RDEPEND="!mail-client/nmh
+ !mail-filter/libsieve
+ !mail-client/mailx
+ !mail-client/nail
+ sys-libs/ncurses:=
+ sys-libs/readline:=
+ dev-libs/libltdl:0
+ virtual/mta
+ berkdb? ( sys-libs/db:= )
+ bidi? ( dev-libs/fribidi )
+ gdbm? ( sys-libs/gdbm )
+ guile? ( dev-scheme/guile:= )
+ kerberos? ( virtual/krb5 )
+ kyotocabinet? ( dev-db/kyotocabinet )
+ ldap? ( net-nds/openldap )
+ mysql? ( virtual/mysql )
+ nls? ( sys-devel/gettext )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS} )
+ sasl? ( virtual/gsasl )
+ ssl? ( net-libs/gnutls:= )
+ tcpd? ( sys-apps/tcp-wrappers )
+ tokyocabinet? ( dev-db/tokyocabinet )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ servers? ( tcpd )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Disable bytecompilation of Python modules.
+ echo "#!/bin/sh" > build-aux/py-compile
+ # bug 567976
+ sed -i -e /AM_GNU_GETTEXT_VERSION/s/0.18/0.19/ configure.ac || die
+ # add missing tests so that make check doesn't fail
+ cp "${FILESDIR}"/{hdr,nohdr,twomsg,weed}.at "${S}"/readmsg/tests || die
+ if use mysql; then
+ sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \
+ sql/Makefile.am || die
+ fi
+ # bug #612712
+ eapply "${FILESDIR}"/${P}-fix-build.patch
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ # maildir is the Gentoo default
+ econf MU_DEFAULT_SCHEME=maildir \
+ CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
+ $(use_with berkdb berkeley-db) \
+ $(use_with bidi fribidi) \
+ $(use_enable ipv6) \
+ $(use_with gdbm) \
+ $(use_with sasl gsasl) \
+ $(use_with guile) \
+ $(use_with kerberos gssapi) \
+ $(use_with ldap) \
+ $(use_with mysql) \
+ $(use_enable nls) \
+ $(use_enable pam) \
+ $(use_with postgres) \
+ $(use_enable python) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static) \
+ $(use_enable threads pthread) \
+ $(use_with tokyocabinet) \
+ $(use_with kyotocabinet) \
+ $(use_with tcpd tcp-wrappers) \
+ $(use_enable servers build-servers) \
+ $(use_enable clients build-clients) \
+ --with-mail-spool=/var/spool/mail \
+ --with-readline \
+ --enable-sendmail \
+ --disable-debug \
+ --disable-rpath
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto /etc
+ doins "${FILESDIR}/mailutils.rc"
+ keepdir /etc/mailutils.d/
+ insinto /etc/mailutils.d
+ doins "${FILESDIR}/mail"
+
+ if use python; then
+ python_optimize
+ if use static-libs; then
+ rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
+ fi
+ fi
+
+ if use servers; then
+ newinitd "${FILESDIR}"/imap4d.initd imap4d
+ newinitd "${FILESDIR}"/pop3d.initd pop3d
+ newinitd "${FILESDIR}"/comsatd.initd comsatd
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README* THANKS TODO
+
+ # compatibility link
+ use clients && dosym /usr/bin/mail /bin/mail
+
+ use static-libs || find "${D}" -name "*.la" -delete
+}
diff --git a/net-mail/mailutils/metadata.xml b/net-mail/mailutils/metadata.xml
new file mode 100644
index 000000000000..c54e413ee7d7
--- /dev/null
+++ b/net-mail/mailutils/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<use>
+ <flag name="tokyocabinet">Enable Tokyo Cabinet database support</flag>
+ <flag name="kyotocabinet">Enable Kyoto Cabinet database support</flag>
+ <flag name="clients">Build client programs - frm maidag mail sieve messages readmsg dotlock movemail mimeview mh</flag>
+ <flag name="servers">Build server programs - imap4d pop3d comsatd</flag>
+</use>
+</pkgmetadata>
diff --git a/net-mail/mairix/Manifest b/net-mail/mairix/Manifest
new file mode 100644
index 000000000000..6c2463b5d624
--- /dev/null
+++ b/net-mail/mairix/Manifest
@@ -0,0 +1,6 @@
+DIST mairix-0.23-gnus-marks-propagation.patch.gz 3401 SHA256 2b6be6041616c86d26f1c3fc6db969668b852042ccd859dad4e2c1bb5ade420e SHA512 89572c1dc1913b974461a3cd75787d9360cabfaf08dc987ccf2ae5519dcf8d12935e22ca5ff3e2e58038f04b818884bab305a11393ca99bb6dad86018d863d1c WHIRLPOOL 1dc16b8b4f0d55439ab147863d1b5d78f3a79fbe0a61fb8f1ee66e63edad065541a1138cdf1bf1f434210a321c6d16f43c3b6fd59301a1c5adbf09e040b3ba8c
+DIST mairix-0.23.tar.gz 193726 SHA256 804e235b183c3350071a28cdda8eb465bcf447092a8206f40486191875bdf2fb SHA512 3ea372304e91eed6127d8e71cf0970c9380e4dec96fd9ad38a6deb1af455ae6eb604dfbb2ec372cbb940beb8459c39d8620af12a996d7f6a37e893fbb588e61b WHIRLPOOL 991a6b50d4db88bb62f3fda365880797d591588f9ac926fbf228e96010e9af1b3709779a93231390b24cbaf4caccc80c767cb4870aaab55ab0ac6b2a8e7396f1
+EBUILD mairix-0.23.ebuild 1127 SHA256 0c80a5f999847d761d1850d6818f12b774a1bd368c6e411a3e9ce6946e01ff9b SHA512 c5dcaf358b4d6813173545ee12d582b377df0a341d28b820b7b2f708924e0bdd64db2c7c8f5a1e7cd6a88a1ae3a7526d399d00e0ed39d3555cee570658bdb0b7 WHIRLPOOL 1aee02fc3eb99b00819a84321c5ccc44c8cd4812b17d245ee4508e61a657a77371d3a831a0d29f4053b50ddb735081105612eb9bdf06d08c72022746c490e007
+MISC ChangeLog 2663 SHA256 b573f2e551c578add8b027bc81b3bba8486448466d82463edde1af0b6239cfc3 SHA512 1579d296fca750f7a89ed856e328e1506f82a3fcda5af6e3dd60ef422e8b84dc4d98b6f23858989ccb30bf7dba38c8ef13e9415243c3f320bd5c1f6280797fde WHIRLPOOL 5be0ee288e6042650843a31558386ef1ec285ad900a8efed204bfb52c3a7cb32f4ccca5e67a778910983c1d4445289436aee52c8b6f96e160ec7ceff11f9b669
+MISC ChangeLog-2015 4933 SHA256 2e2df8ff0d2b8250efae6cb13522864010e2b1bdf0c4d2d0602f1e5b4e6f7027 SHA512 364d57093060fb6532a18394831533b2dd7aef1d2372420f0049fbde0bf2de989c7f852e4c66d8ed16e1db52213039af79326a91a6ee7cdc590ca385d02bb9ce WHIRLPOOL 3ade9eaf2fa4a26d68a7a982a1e3d249607abfa475d144e80b6fd89d4ad3a956d9e60a07f6514eedbd1194d45752d1dfb30bd425dce1290d3ab3359106fcaa6d
+MISC metadata.xml 512 SHA256 5e4cfbffb30d6cf7ea15b2a895230779fedd0094ec7785b0ac328be5db59c4fe SHA512 0e5324d0a9b4963342d439deb7fe7def81e523a30b1fc6a2cbd6b475529ad1183835fb281b3445ece75e0cc49f753b9e2908316bb804d0d66cde9577d984302c WHIRLPOOL 3ac7ef9dd25dd04c4b25e4b124a61dce0b74268192c4020e28ebacab5ea0c90d640e3f96e62880c747ba92a480315c9f88e6a52989c1ec5b108290ce8559dad3
diff --git a/net-mail/mairix/mairix-0.23.ebuild b/net-mail/mairix/mairix-0.23.ebuild
new file mode 100644
index 000000000000..a39bc552fb9b
--- /dev/null
+++ b/net-mail/mairix/mairix-0.23.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Indexes and searches Maildir/MH folders"
+HOMEPAGE="http://www.rpcurnow.force9.co.uk/mairix/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ gnus? ( mirror://gentoo/${P}-gnus-marks-propagation.patch.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-macos"
+
+IUSE="zlib bzip2 gnus"
+
+RDEPEND="zlib? ( sys-libs/zlib )
+ bzip2? ( app-arch/bzip2 )"
+
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison"
+
+# Fail on various locales
+RESTRICT="test"
+
+src_prepare() {
+ # econf would fail with unknown options.
+ # Now it only prints "Unrecognized option".
+ sed -i -e "/^[[:space:]]*bad_options=yes/d" "${S}"/configure || die "sed failed"
+
+ # Add support for gnus marks propagation (bug #274578)
+ use gnus && epatch "${WORKDIR}"/${P}-gnus-marks-propagation.patch
+}
+
+src_configure() {
+ tc-export CC
+ econf \
+ $(use_enable zlib gzip-mbox) \
+ $(use_enable bzip2 bzip-mbox)
+}
+
+src_install() {
+ dobin mairix
+ doman mairix.1 mairixrc.5
+ dodoc NEWS README dotmairixrc.eg
+}
diff --git a/net-mail/mairix/metadata.xml b/net-mail/mairix/metadata.xml
new file mode 100644
index 000000000000..a6e9c27c6bf1
--- /dev/null
+++ b/net-mail/mairix/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="gnus">Add support for the marks propagation feature
+ in GNUS (provided by <pkg>app-editors/emacs</pkg>
+ or <pkg>app-xemacs/gnus</pkg> for XEmacs users)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">mairix</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mboxgrep/Manifest b/net-mail/mboxgrep/Manifest
new file mode 100644
index 000000000000..4c6d9f1f3dd7
--- /dev/null
+++ b/net-mail/mboxgrep/Manifest
@@ -0,0 +1,6 @@
+AUX mboxgrep-0.7.9-ldflags.patch 1212 SHA256 d5918aca2330ee17bec523b7b8d425f83b3c0838441e29cd9f519fcef2426d99 SHA512 9aab0c978b1085cbbb915bd883f7c2b4808b9d5458b2fdbb8bfbeaeab709c9b5f0563c864904253bc0fc84e7e000e4587b755491601e3eabd30154a44d5dfacd WHIRLPOOL 7f7769bfca533286053a62ddff008f84aff76177eb2a22340ea30e9903380a52cfd2daef4a61a8593d04260a1acc65649df4f584086c56260db182533c78eb44
+DIST mboxgrep-0.7.9.tar.gz 76067 SHA256 78d375a05c3520fad4bca88509d4da0dbe9fba31f36790bd20880e212acd99d7 SHA512 d7e768a0ad11bc3df8619f2a888d2943c68ef72dd036c2fe58268686efb50cb1f62ba379571b6cd6efa8493c5ea0d7c09a29520eae6c68f66d9453710eeeba11 WHIRLPOOL 597da876492b703314df7bcb1a594927522ae674800651a91198e9e5fefb4a9f8443aa738cf282e8ad0950538f530033e8333abf6a1dbeb8274d95851ac2e6e9
+EBUILD mboxgrep-0.7.9-r1.ebuild 565 SHA256 493f1e86e338de0c2763d2af62918abe8ca16308bc809d3a69abec0347a61551 SHA512 4357b906fc48816a3c4310615b2a76377547ebf61cd2dfe51d2274e1d93c7e013ce14a38e8a16c754be81ba1bdc7deb357637d24dfcae6cea7d21c670e7bd19e WHIRLPOOL 7c56c2a3a8c56f96b29afe719d7d1521fe8fb65814f007bb1264c3d78d155f3c716e6b546c6fc88975ffd54b94deaa2ed4f8124667e6de96a9d02bd742143ec3
+MISC ChangeLog 2475 SHA256 2e8b839233639279fc3b8a3104fde06b19441fda351ca6c3e03eabfc1886b6f5 SHA512 c8fba6412e395c382c00a718e3010a5291b1fdb565707ca72e112cb9b4d415a6abe56aa5a24d16bed95d1c85b56a06a8f55b4fa78cbb0b08c837dd0d25dd1115 WHIRLPOOL 4afa2e21bc73488724d54905be337283d4f18c38bda39fc3c7c1c6e5b04b71ec98cc4c473da9599d744610df968f75ca7496cef47e0a30bc263c79f940198221
+MISC ChangeLog-2015 2537 SHA256 43442ac181eb0d0d550708eac7baabf12bb600d52423f68fe603b100c089744b SHA512 571319f2bcb5694b6f78f53a85c83b2a9e6c286f3e9a84ff732ca6cdf1e117b36390634d0f42624a0d40f3bf2929905b1f47c66b9b32cb568cb4687cf7578daa WHIRLPOOL 9084633138a8150e5a193d4723fddf3841accbd08a5d4c16bc7e56c0143737955f365a74b472a76a7afdfe87a33c872814a5b84b00ceabd110964c9dc9bd6fde
+MISC metadata.xml 322 SHA256 dcc38d26a253e74eed782bfcada22abd695752b860eeaf4940e13ee406438a3c SHA512 98a2d593b4429a08a938fc625b651cfc6a1afa0815c4ee7454c26ab3fd4bd38005455a5fba2b3cc6bf4604a70a39ed8b1e605c9e751dca0a62ebf740aef030da WHIRLPOOL 651cc68325028a8eade0fd6d5eb703573e25d23fe50f4ab5545176d70b29a72227f8d7e01750cf3f4fa3598ea405399a430eabbb9dfa40ba7654d4ff8daf7dc6
diff --git a/net-mail/mboxgrep/files/mboxgrep-0.7.9-ldflags.patch b/net-mail/mboxgrep/files/mboxgrep-0.7.9-ldflags.patch
new file mode 100644
index 000000000000..dd0742626b47
--- /dev/null
+++ b/net-mail/mboxgrep/files/mboxgrep-0.7.9-ldflags.patch
@@ -0,0 +1,52 @@
+commit f51a9eafb80a5c5e506d7fe416c0b768ec1a6655
+Author: Eray Aslan <eras@gentoo.org>
+Date: Mon Jun 6 20:11:32 2011 +0300
+
+ Respect LDFLAGS and do not strip
+
+diff --git a/src/Makefile.in b/src/Makefile.in
+index fc5ac74..2b89866 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -39,7 +39,7 @@ INCLUDES = -I. -I$(srcdir)
+ $(CC) $(CFLAGS) $(INCLUDES) -c $<
+
+ $(TARGET): $(OBJS)
+- $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+
+ .PHONY: clean
+ clean:
+@@ -52,6 +52,6 @@ distclean:
+ .PHONY: install
+ install: mboxgrep
+ $(INSTALL) -d $(prefix)/bin
+- $(INSTALL) -s $(TARGET) $(prefix)/bin
++ $(INSTALL) $(TARGET) $(prefix)/bin
+
+ .NOEXPORT:
+commit 1a0a345ad4c38df41227e3f2600bcf05ed49bbd7
+Author: Eray Aslan <eras@gentoo.org>
+Date: Mon Jun 6 20:52:06 2011 +0300
+
+ everyone has standard C headers nowadays
+
+diff --git a/src/md5.c b/src/md5.c
+index d6b8013..a797552 100644
+--- a/src/md5.c
++++ b/src/md5.c
+@@ -26,14 +26,8 @@
+
+ #include <sys/types.h>
+
+-#if STDC_HEADERS || defined _LIBC
+ # include <stdlib.h>
+ # include <string.h>
+-#else
+-# ifndef HAVE_MEMCPY
+-# define memcpy(d, s, n) bcopy ((s), (d), (n))
+-# endif
+-#endif
+
+ #include "md5.h"
+
diff --git a/net-mail/mboxgrep/mboxgrep-0.7.9-r1.ebuild b/net-mail/mboxgrep/mboxgrep-0.7.9-r1.ebuild
new file mode 100644
index 000000000000..3f990709627a
--- /dev/null
+++ b/net-mail/mboxgrep/mboxgrep-0.7.9-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Grep for mbox files"
+SRC_URI="mirror://sourceforge/mboxgrep/${P}.tar.gz"
+HOMEPAGE="http://mboxgrep.sf.net"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+SLOT="0"
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_install () {
+ emake \
+ prefix="${D}"/usr \
+ mandir="${D}"/usr/share/man \
+ infodir="${D}"/usr/share/info \
+ install
+ dodoc ChangeLog NEWS TODO README
+}
diff --git a/net-mail/mboxgrep/metadata.xml b/net-mail/mboxgrep/metadata.xml
new file mode 100644
index 000000000000..33faa70f5ac8
--- /dev/null
+++ b/net-mail/mboxgrep/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mboxgrep</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mess822/Manifest b/net-mail/mess822/Manifest
new file mode 100644
index 000000000000..942a243de915
--- /dev/null
+++ b/net-mail/mess822/Manifest
@@ -0,0 +1,6 @@
+AUX mess822-0.58-implicit.patch 1373 SHA256 e2f8f5b98736e894531b1bf9433b49826f2aaa183b9058b1713d55cbce59fe74 SHA512 ee2819702b4dfc558eeea8e2885ea16c69c3fc9b48a4713d8eead6ba03a870c583406d6ff37269c11cda11f4a0f70caf45a2cf3569acba31d938ac75379a4b8d WHIRLPOOL 5a70e3d88f568a1de5f9161d23ed7228b86cb13d8d07a44b2103ce29c5ad6fcdceb0f9cfc9a340cd58c2d5bc7ce9d0271c5561db8b4c94bcde4c198b67de9c95
+DIST mess822-0.58.tar.gz 64287 SHA256 23d37a783474ad5cd9bda0a1309deaea27e570a0d5db0ed8cc2cb46da1c413e0 SHA512 5fb30f06dfa08f60dc8760f9c5d692e59397ff848441bc94313a079bac8fb53b779133b48abae9b487dff6fbb277d5210a9690a138366bf4d34f052d661be65e WHIRLPOOL 64272200302d49c37a8ae22d5752a39528e085c0d450b81449a595952e763b913ae37ac7ba866d4bda9cc3cdbdb29509099215ca116b5251b320cbefb4fb7cbd
+EBUILD mess822-0.58-r2.ebuild 1236 SHA256 f3cb7d3c24b8d84ae36185f75b959afe80dd6240c2d451dad2318fb7e4b8195d SHA512 560ed33b23ac0d78824a4ab9dbe6c5a18856d0f8bb9b18329565c603bea252ec657808060ca6181a09622e97254f6423b04580907166df6a9139abe785a5b802 WHIRLPOOL d2358e6544fb6159cd2f33762a06efa75bdbe8af95b9f2f373c10ee3b297235fd7afafa98dec52bc21bff8e8d817ea7d24567ec204577a182fd09b67c5222907
+MISC ChangeLog 2467 SHA256 f89b8b4884e962bf64bb9cffe4768f4fc709f5ef0585e5c63b3a64c9881eda79 SHA512 d0de679d21dd3a849399edbe209b4f11fb28b840e6504286e504addda8d7e310b1d7f09f84582bd3bbda2fda9127bf907e088369123e80abc6b00bfa653d07c2 WHIRLPOOL 96f85c9b2bcfcb38dc4ffc11176deac7947b1c2d4fa5d042e16abf4efe412fa2b918bb1a88740cb963653df979089708ab47d4be0c2469ae992ff29c9add900c
+MISC ChangeLog-2015 2083 SHA256 509185e63d73d8b93bb527fe88b0396e25aada91d8b1194471f44583d4692521 SHA512 425b45efcf41584a4c2b506ec1d0ee9af73871c9c512df67f98ddbbf3a976b93459bf069d8aff838d9adf0f2887ed03ebc0c1ab6d02295bc6da5be38895843d4 WHIRLPOOL 49a345a7a6976dd289438210c66b10b01f39b557454e911a16f376e96f7e207c2d4e7ab6160b236dc536fcec4c3824605e3eedb31ef61075aa0a3ec0a69254cb
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/mess822/files/mess822-0.58-implicit.patch b/net-mail/mess822/files/mess822-0.58-implicit.patch
new file mode 100644
index 000000000000..586a59bbb188
--- /dev/null
+++ b/net-mail/mess822/files/mess822-0.58-implicit.patch
@@ -0,0 +1,66 @@
+commit 43f63356fec31e46dfc5ab4574bb62cd75b35dfe
+Author: Eray Aslan <eras@gentoo.org>
+Date: Mon Jun 6 17:19:48 2011 +0300
+
+ Fix missing includes
+
+diff --git a/addrlist.c b/addrlist.c
+index fe196c8..a2ae631 100644
+--- a/addrlist.c
++++ b/addrlist.c
+@@ -3,6 +3,7 @@
+ #include "subfd.h"
+ #include "getln.h"
+ #include "mess822.h"
++#include "exit.h"
+
+ #define FATAL "addrlist: fatal: "
+
+diff --git a/leapsecs_read.c b/leapsecs_read.c
+index 62c8712..ff2ec23 100644
+--- a/leapsecs_read.c
++++ b/leapsecs_read.c
+@@ -1,6 +1,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <stdlib.h>
+ #include <errno.h>
+ extern int errno;
+ #include "tai.h"
+diff --git a/parsedate.c b/parsedate.c
+index 06f1d57..e90e198 100644
+--- a/parsedate.c
++++ b/parsedate.c
+@@ -6,6 +6,7 @@
+ #include "leapsecs.h"
+ #include "caltime.h"
+ #include "tai.h"
++#include "exit.h"
+
+ #define FATAL "parsedate: fatal: "
+
+diff --git a/quote.c b/quote.c
+index 7d21ac0..e8c7aa2 100644
+--- a/quote.c
++++ b/quote.c
+@@ -2,6 +2,7 @@
+ #include "subfd.h"
+ #include "substdio.h"
+ #include "strerr.h"
++#include "exit.h"
+
+ #define FATAL "quote: fatal: "
+
+diff --git a/tokenize.c b/tokenize.c
+index 667987d..840a220 100644
+--- a/tokenize.c
++++ b/tokenize.c
+@@ -3,6 +3,7 @@
+ #include "subfd.h"
+ #include "getln.h"
+ #include "mess822.h"
++#include "exit.h"
+
+ #define FATAL "tokenize: fatal: "
+
diff --git a/net-mail/mess822/mess822-0.58-r2.ebuild b/net-mail/mess822/mess822-0.58-r2.ebuild
new file mode 100644
index 000000000000..95c6b44751e5
--- /dev/null
+++ b/net-mail/mess822/mess822-0.58-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit multilib toolchain-funcs eutils
+
+DESCRIPTION="Collection of utilities for parsing Internet mail messages"
+SRC_URI="http://cr.yp.to/software/${P}.tar.gz"
+HOMEPAGE="http://cr.yp.to/mess822.html"
+
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+LICENSE="public-domain"
+
+RDEPEND=">=sys-apps/sed-4"
+DEPEND="${RDEPEND}"
+RESTRICT="test"
+
+src_prepare() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ echo "/usr" > conf-home
+
+ # fix errno.h problem; bug #26165
+ sed -i 's/^extern int errno;/#include <errno.h>/' error.h
+
+ epatch "${FILESDIR}"/${P}-implicit.patch
+}
+
+src_install() {
+ dodir /etc
+ dodir /usr/share
+
+ # Now that the commands are compiled, update the conf-home file to point
+ # to the installation image directory.
+ echo "${D}/usr/" > conf-home
+ sed -i -e "s:\"/etc\":\"${D}/etc\":" hier.c || die "sed hier.c failed"
+
+ emake setup
+
+ # Move the man pages into /usr/share/man
+ mv "${D}/usr/man" "${D}/usr/share/"
+
+ dodir /usr/$(get_libdir)
+ mv "${D}/usr/lib/${PN}.a" "${D}/usr/$(get_libdir)/${PN}.a"
+ rmdir "${D}/usr/lib"
+ dodoc BLURB CHANGES INSTALL README THANKS TODO VERSION
+}
diff --git a/net-mail/mess822/metadata.xml b/net-mail/mess822/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/mess822/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/metadata.xml b/net-mail/metadata.xml
new file mode 100644
index 000000000000..4e4997cf3c23
--- /dev/null
+++ b/net-mail/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The net-mail category contains various email-related utilities.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie net-mail enthält verschiede Werkzeuge zum Thema Email.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría net-mail contiene varias utilidades relacionadas con el
+ correo electrónico.
+ </longdescription>
+ <longdescription lang="ja">
+ net-mailカテゴリーには様々なメール関連のユーティリティが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De net-mail categorie bevat verschillende email-gerelateerde applicaties.
+ </longdescription>
+ <longdescription lang="sk">
+ Kategória net-mail obsahuje rôzne nástroje pre prácu s elektronickou poštou.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm net-mail chứa các tiện ích email khác nhau.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria net-mail contiene varie utilità per la posta elettronica.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria net-mail contém vários utilitários relacionados com
+ correio eletrônico.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria net-mail zawiera narzędzia związane z pocztą elektroniczną.
+ </longdescription>
+</catmetadata>
diff --git a/net-mail/metamail/Manifest b/net-mail/metamail/Manifest
new file mode 100644
index 000000000000..d2281e5d1204
--- /dev/null
+++ b/net-mail/metamail/Manifest
@@ -0,0 +1,8 @@
+AUX metamail-2.7.45.3-CVE-2006-0709.patch 1900 SHA256 cd5363d62d3f277c5d13694b364177230976c2abca508d8adbcaf1d4d520fc3a SHA512 41e527767582c55ebce32ff91db0510af402a35119ce680e84cdc032701f25faee336cee303ca8891b4d870a91991fd1c4ccb455042032d4337ae247a3a3dfa1 WHIRLPOOL 3c5b13c3b188f426c94e4e10e4a7474a0f64a2696920e29b3c38b2eed4cc7de319d86581dfea34dedeca086df7893770fe8e050642484e43061dfa0f32b1839c
+AUX metamail-2.7.53.3-glibc-2.10.patch 718 SHA256 0601ebad8d25aea2a24cd8debe36f6f4dae14b5a2e2508efc116449c2d562af3 SHA512 077ad34f5d7664ef9824b623c17d9828b64aa63045f854b4b65567a35bf6fd1d5753d6d3186e3a7d6b63c2854f23cb566911c6bc4dc0904ad7d035229b2543e4 WHIRLPOOL d2fb22baabb0929a86597740e357d1967d7202d0d13a6c4c2aee6c23fdd88cf0e04f35045b0f918bc88fd36c529a85738beb26b2e8c4e960615bab25924eac24
+DIST metamail_2.7-53.diff.gz 322363 SHA256 43c14331ded498ea0b5adb2367bb18ddd879f161dccb89e879952110a5f151b4 SHA512 cb5351308f1ad479e1560446f7f540165ff165d7306a5592a8286edd643301608ff9ace01456d4b0d03d27b9b838b61f08412b15d6b3aa99b95e2ab484e884ed WHIRLPOOL 592d37044bdbaac0a1e67243ef7f16b2ce38b3e49cab7e72673ee921ad52370bf5fbf3ebb60c03a0422933948a09767874e678ffd62b41f8254ef0fce4287b1f
+DIST mm2.7.tar.Z 262881 SHA256 9c0281bdce32a7d3e61c1e3c703a748acb5d216d082a718efa316f68b9808a96 SHA512 9cd2619ca83594ca7be94453270b6a9ef01f5a496fd361bb76f16fc575f549ab450efa1d480c3d4b0b172f245d9c3276f99ba1ae4e3ae4bb6618df9d8131f77e WHIRLPOOL fedf0b51fda7d6ab384770c7d9553fcebe4ebe6abbb8e0dfb944360727e0a725ac3ab25f4a03307f66f71958489f235121bddc625f20bd5323c3620feb387019
+EBUILD metamail-2.7.53.3-r1.ebuild 1729 SHA256 b2d2d76db225fcc8d1e38e78b4b73f30d153d3731011f10c810c4b872f9d51b1 SHA512 9fd595c64f4ef96ea9f01c0c0b05464f6857c6790fa4f346bfe1be4df37c65a0bb170755580f5d4092722971d826f69a468f2c87d186ed4c7a14145f4e7ef471 WHIRLPOOL 0971095040aa0631a3a56fcb1fe9e00201dc44f63ae08ccdb2f0f211307d402aba7ef738b664460b3da3f7410ac65d7291b70d28970db15860d03fb9783468a0
+MISC ChangeLog 2535 SHA256 5abece06b9e325d798d310aabf02ac03b3569dee137a04df3ccb622cf0dafb43 SHA512 dc5c2c8fd0202da31e53c50dd105e0df2eb14ac6e5d3e69693fd812e82785f7ea0745c37b20b2fb2e8697bfec7eb2b2b4bba6f8f85ccb808c535ef511b45b495 WHIRLPOOL b086684e44505f2d21a93a841aff773f436668c9c22822fed2c62169af0b870ebb5f693ff7ac16132746f17cc6747b662659afb02db93e30145bcfc2e9976ad1
+MISC ChangeLog-2015 7273 SHA256 72739f2a3fcff5c6af979c4f16d06441716af87170f66aad16c063fca45c4b40 SHA512 5d8aa082442ab754544035d42a4b68a2bd671161cf79c77b1390b61181ba9322d00d4791a91fa8576588f994b2722ac72b3d94762b80cc52b23551f97a09ec9a WHIRLPOOL 84af08e6687f787562a8217ea97a4cfad0c0acf3caee93e80e8adccf0a3a7d3852a27380a5b4b8e9b2ebea2074d33d7fe56ba8a01a1a1bd0e677ff337be5a670
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch b/net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch
new file mode 100644
index 000000000000..6572a514c37c
--- /dev/null
+++ b/net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch
@@ -0,0 +1,40 @@
+--- src/src/metamail/metamail.c.old 2006-03-14 10:13:35.000000000 -0800
++++ src/src/metamail/metamail.c 2006-03-14 10:11:52.000000000 -0800
+@@ -313,7 +313,7 @@
+ WroteSquirrelFile = 0;
+ }
+ LineBuf = XMALLOC(char, LINE_BUF_SIZE);
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
+@@ -1712,7 +1712,7 @@
+ if (boundary[0] == '"') {
+ boundary=UnquoteString(boundary);
+ }
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
+--- src/metamail/metamail.c.old 2006-03-14 10:12:39.000000000 -0800
++++ src/metamail/metamail.c 2006-03-14 10:14:53.000000000 -0800
+@@ -445,7 +445,7 @@
+ }
+ LineBuf = malloc(LINE_BUF_SIZE);
+ if (!LineBuf) ExitWithError(nomem);
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
+@@ -2115,7 +2115,7 @@
+ if (boundary[0] == '"') {
+ boundary=UnquoteString(boundary);
+ }
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
diff --git a/net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch b/net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch
new file mode 100644
index 000000000000..7da331adbbf8
--- /dev/null
+++ b/net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch
@@ -0,0 +1,30 @@
+diff -ur mm2.7.orig/src/metamail/uue.c mm2.7/src/metamail/uue.c
+--- mm2.7.orig/src/metamail/uue.c 1993-07-28 21:31:02.000000000 +0300
++++ mm2.7/src/metamail/uue.c 2009-08-07 12:09:35.000000000 +0300
+@@ -30,7 +30,7 @@
+ }
+
+
+-getline (buf, size, fp)
++get_line (buf, size, fp)
+ char *buf;
+ int size;
+ FILE *fp;
+@@ -70,7 +70,7 @@
+ char buf[63];
+
+ while (1) {
+- if (getline (buf, sizeof buf, infp) < 0) {
++ if (get_line (buf, sizeof buf, infp) < 0) {
+ fprintf (stderr, "Premature EOF!\n");
+ return;
+ }
+@@ -82,7 +82,7 @@
+ }
+ }
+ while (1) {
+- if (getline (buf, sizeof buf, infp) < 0) {
++ if (get_line (buf, sizeof buf, infp) < 0) {
+ fprintf (stderr, "Premature EOF!\n");
+ return;
+ }
diff --git a/net-mail/metamail/metadata.xml b/net-mail/metamail/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/metamail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/metamail/metamail-2.7.53.3-r1.ebuild b/net-mail/metamail/metamail-2.7.53.3-r1.ebuild
new file mode 100644
index 000000000000..feffd01cf433
--- /dev/null
+++ b/net-mail/metamail/metamail-2.7.53.3-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+WANT_AUTOCONF="2.5"
+
+inherit autotools eutils toolchain-funcs versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DEB_PV=${MY_PV}-$(get_version_component_range 3)
+
+DESCRIPTION="Metamail (with Debian patches) - Generic MIME package"
+HOMEPAGE="http://ftp.funet.fi/pub/unix/mail/metamail/"
+SRC_URI="http://ftp.funet.fi/pub/unix/mail/metamail/mm${MY_PV}.tar.Z
+ mirror://debian/pool/main/m/metamail/metamail_${DEB_PV}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
+IUSE="static-libs"
+
+DEPEND="sys-libs/ncurses
+ app-arch/sharutils
+ net-mail/mailbase"
+RDEPEND="app-misc/mime-types
+ sys-apps/debianutils
+ !app-misc/run-mailcap"
+
+S=${WORKDIR}/mm${MY_PV}/src
+
+src_prepare() {
+ epatch "${WORKDIR}"/metamail_${DEB_PV}.diff
+ epatch "${FILESDIR}"/${PN}-2.7.45.3-CVE-2006-0709.patch
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+
+ # respect CFLAGS
+ sed -i -e 's/CFLAGS/LIBS/' \
+ "${S}"/src/{metamail,richmail}/Makefile.am || die
+
+ # add missing include - QA
+ sed -i -e '/config.h/a #include <string.h>' \
+ "${S}"/src/metamail/shared.c || die
+
+ # Fix building with ncurses[tinfo]
+ sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
+ src/richmail/Makefile.am \
+ src/metamail/Makefile.am || die
+ eautoreconf
+ chmod +x "${S}"/configure
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
+src_install () {
+ emake DESTDIR="${D}" install
+ dodoc CREDITS README
+ rm man/mmencode.1
+ doman man/* debian/mimencode.1 debian/mimeit.1
+
+ use static-libs || find "${D}"/usr/lib* -name '*.la' -delete
+}
diff --git a/net-mail/mhonarc-gentoo/Manifest b/net-mail/mhonarc-gentoo/Manifest
new file mode 100644
index 000000000000..197f9a7800e2
--- /dev/null
+++ b/net-mail/mhonarc-gentoo/Manifest
@@ -0,0 +1,6 @@
+AUX mhonarc-gentoo-2.6.18-archives-gentoo.patch 6534 SHA256 e8da521cf04bba45a7a8b22ddbf150d8c88b88924d30391a0e4ded43f46efdba SHA512 f4c238e3394df9fccf1cefe697a2f5a53fdda5f02498ed5cd6d9adb301f49b257b8f01bf486a00ebd49b128d8707b8699a6e08cf3e3548709cbd29dca12e3d92 WHIRLPOOL 961a5abd1c91ae4381311d3173add182ea59a72846c612465db4c14acdad89fda18eab56bcf3ec79b2908936277062f62f93bb344a382a2cca184a7160102a8b
+DIST MHonArc-2.6.18.tar.bz2 1546854 SHA256 4fd014cf69c40ae7d50a9dca519f279a09563004b200edb86b7c8c6f3e3fb534 SHA512 816acfd5c68db274848859ea60c8fb47a12daadea5d8dc8acd12018b72c8ff22133ef7e366edb005ef309f7a74f2b4dfdb7ad5fe9256eb850bebaeb165be5511 WHIRLPOOL d03bb5dba0064eb5de9a5f1a9f26b9073d46fb16b6cc2027dd8db5865e9cc9e930b891de67bd1bc223ba39d3d51a66ee49e2a1bcc3d0b3164f7770a93aa6d912
+EBUILD mhonarc-gentoo-2.6.18-r2.ebuild 752 SHA256 75cc6de56bf2f28f8d09f9801cb6299ecb5623c41c22b3494f0220688ff8629c SHA512 f5240bed8951ec02cfd0506ec14375c705770f450e7cbf8d8c8dc49460c2f1e87a21c2b29803eb87f9acaf0c23d57b4067ed081657911fb62e478157e0af78d7 WHIRLPOOL 04e9fc202d0eaeb86a4a94e5d51e983fc67ad428c465e665cdf4f70581d5642b6fea6b8d396e02d0f8a63245d66f1487d8603afa2d64244ac2d954fa4c8813e3
+MISC ChangeLog 2997 SHA256 6fd389f46dbd16bbb33b02b3691385e33d8b1c601c02a3d5fbf7c800aba5b097 SHA512 e4d97bd67cae7b95f914e18b91328f9b85bd0148cddb167217b1c1f7eed3897c2fded3e46565283c588617b21109cbfceaca926f673a0f856db287e696e111ed WHIRLPOOL 1bf00abd60ae0d2684c01668c6db1bb9ce22f3f739edf7f8d0e541e890314ea41ac91612b0f13dff9314f2d79ffc037271c76efe446f9b0d21a3aebb2f3a48bb
+MISC ChangeLog-2015 901 SHA256 9c710b4e9558e04b8863590f4a92b0c384e7c0dcbd29cd1d0227995d11b2f02f SHA512 966b428391e8f9124789e60286a51bfc5e330d05d5c6b191469511914a27687edad4e108d8117858ecc258de14434e13d08499d80cee7bb616b0666d1d759cb7 WHIRLPOOL 800e7ffc497b9778814d1a41e51e1260895bed24ae09537e32305e352abe7c1a8fdd44c35296e5f4a56d60953eb32b246bc32e7c7651d8abc8154b0d5398b3de
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch b/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch
new file mode 100644
index 000000000000..d67c63e4b95f
--- /dev/null
+++ b/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch
@@ -0,0 +1,197 @@
+diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
+--- a/lib/mhamain.pl 2006-06-10 02:42:58.000000000 +0000
++++ b/lib/mhamain.pl 2008-01-27 14:12:48.000000000 +0000
+@@ -73,6 +73,8 @@
+ TERM TRAP USR1 USR2 VTALRM XCPU XFSZ
+ );
+
++use Carp;
++
+ ###############################################################################
+ ## Public routines
+ ###############################################################################
+@@ -934,6 +936,16 @@
+ } else {
+ $ctype = 'text/plain';
+ }
++
++ ##-----------------------------##
++ ## Get Custom Archives headers ##
++ ##-----------------------------##
++ if (defined($fields->{'x-archives-hash'})) {
++ $msghash = $fields->{'x-archives-hash'}[0];
++ }
++ if(!defined($msghash)) {
++ confess("No X-Archives-Hash header in $handle");
++ }
+
+ ## Insure uniqueness of index
+ $index .= $X . sprintf('%d',(defined($msgnum)?$msgnum:($LastMsgNum+1)));
+@@ -955,6 +967,7 @@
+ $Subject{$index} = $sub;
+ $MsgHead{$index} = htmlize_header($fields);
+ $ContentType{$index} = $ctype;
++ $MsgHash{$index} = $msghash;
+ if ($msgid) {
+ $MsgId{$msgid} = $index;
+ $NewMsgId{$msgid} = $index; # Track new message-ids
+@@ -966,6 +979,7 @@
+ } else {
+ $IndexNum{$index} = getNewMsgNum();
+ }
++ #$MsgHash{$IndexNum{$index}} = $msghash;
+
+ $Refs{$index} = [ @refs ] if (@refs);
+
+@@ -1102,7 +1116,7 @@
+
+ my $adding = ($ADD && !$force && !$SINGLE);
+ my $i_p0 = fmt_msgnum($msgnum);
+- my $filename = msgnum_filename($msgnum);
++ my $filename = msgnum_filename($index);
+ my $filepathname = join($DIRSEP, $OUTDIR, $filename);
+ my $tmppathname;
+
+@@ -1160,7 +1174,9 @@
+ "<!--X-Message-Id: ",
+ commentize($Index2MsgId{$index}), " -->\n",
+ "<!--X-Content-Type: ",
+- commentize($ContentType{$index}), " -->\n";
++ commentize($ContentType{$index}), " -->\n",
++ "<!--X-Archives-Hash: ",
++ commentize($MsgHash{$index}), " -->\n";
+
+ if (defined($Refs{$index})) {
+ foreach (@{$Refs{$index}}) {
+@@ -1456,8 +1472,9 @@
+ #&defineIndex2MsgId();
+ my $msgnum = $IndexNum{$key};
+ return (undef, undef) if ($msgnum eq '');
+- my $filename = join($DIRSEP, $OUTDIR, &msgnum_filename($msgnum));
++ my $filename = join($DIRSEP, $OUTDIR, &msgnum_filename($key));
+
++ delete $MsgHash{$key};
+ delete $ContentType{$key};
+ delete $Date{$key};
+ delete $From{$key};
+diff -Nuar a/lib/mhdb.pl b/lib/mhdb.pl
+--- a/lib/mhdb.pl 2005-12-20 21:28:15.000000000 +0000
++++ b/lib/mhdb.pl 2008-01-27 13:25:52.000000000 +0000
+@@ -61,6 +61,7 @@
+
+ ## Meta-data
+ print_var($db,'ContentType', \%ContentType);
++print_var($db,'MsgHash', \%MsgHash);
+ print_var($db,'Date', \%Date);
+ print_var($db,'Derived', \%Derived);
+ print_var($db,'FollowOld', \%Follow);
+diff -Nuar a/lib/mhinit.pl b/lib/mhinit.pl
+--- a/lib/mhinit.pl 2005-07-08 06:34:03.000000000 +0000
++++ b/lib/mhinit.pl 2008-01-27 13:25:52.000000000 +0000
+@@ -247,6 +247,7 @@
+ %Follow = (); # Index key to follow-ups
+ %FolCnt = (); # Index key to number of follow-ups
+ %ContentType = (); # Index key to base content-type of message
++%MsgHash = (); # Custom hash from header in mail
+ %Icons = (); # Index key to icon URL for content-type
+ %AddIndex = (); # Flags for messages that must be written
+
+diff -Nuar a/lib/mhmsgfile.pl b/lib/mhmsgfile.pl
+--- a/lib/mhmsgfile.pl 2001-09-17 16:10:28.000000000 +0000
++++ b/lib/mhmsgfile.pl 2008-01-27 14:12:16.000000000 +0000
+@@ -123,6 +123,10 @@
+ if (defined($href->{'derived'})) {
+ $Derived{$index} = $href->{'derived'};
+ }
++
++ if (defined($href->{'archives-hash'})) {
++ $MsgHash{$index} = $href->{'archives-hash'};
++ }
+
+ $IndexNum{$index} = int($msgnum);
+
+diff -Nuar a/lib/mhopt.pl b/lib/mhopt.pl
+--- a/lib/mhopt.pl 2005-07-08 06:34:03.000000000 +0000
++++ b/lib/mhopt.pl 2008-01-27 13:25:52.000000000 +0000
+@@ -764,6 +764,7 @@
+ delete($MsgId{''});
+ delete($FollowOld{''});
+ delete($ContentType{''});
++ delete($MsgHash{''});
+ delete($Refs{''});
+
+ # update DOCURL if default old value
+diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl
+--- a/lib/mhrcvars.pl 2005-07-08 05:27:52.000000000 +0000
++++ b/lib/mhrcvars.pl 2008-01-27 14:11:19.000000000 +0000
+@@ -195,7 +195,7 @@
+ }
+ if ($var eq 'MSG') { ## Filename of message page
+ ($lref, $key, $pos) = compute_msg_pos($index, $var, $arg);
+- $tmp = defined($key) ? &msgnum_filename($IndexNum{$key}) : "";
++ $tmp = defined($key) ? &msgnum_filename($key) : "";
+ last REPLACESW;
+ }
+ if ($var eq 'MSGHFIELD') { ## Message header field
+@@ -417,7 +417,7 @@
+ if (!defined($key)) { $tmp = ""; last REPLACESW; }
+ $tmp = qq/name="/ . &fmt_msgnum($IndexNum{$key}) .
+ qq/" href="/ .
+- &msgnum_filename($IndexNum{$key}) .
++ &msgnum_filename($key) .
+ qq/"/;
+ last REPLACESW;
+ }
+@@ -432,7 +432,7 @@
+ $isurl = 0;
+ ($lref, $key, $pos) = compute_msg_pos($index, $var, $arg);
+ if (!defined($key)) { $tmp = ""; last REPLACESW; }
+- $tmp = qq/href="/ . &msgnum_filename($IndexNum{$key}) . qq/"/;
++ $tmp = qq/href="/ . &msgnum_filename($key) . qq/"/;
+ last REPLACESW;
+ }
+ if ($var eq 'IDXFNAME') { ## Filename of index page
+@@ -730,7 +730,7 @@
+ $ret = qq|<a name="| .
+ &fmt_msgnum($IndexNum{$index}) .
+ qq|" href="| .
+- &msgnum_filename($IndexNum{$index}) .
++ &msgnum_filename($index) .
+ qq|">$ret</a>|
+ if $var eq 'SUBJECT' && $arg eq "" && !$mailto;
+
+diff -Nuar a/lib/mhutil.pl b/lib/mhutil.pl
+--- a/lib/mhutil.pl 2005-07-08 05:27:53.000000000 +0000
++++ b/lib/mhutil.pl 2008-01-27 14:11:50.000000000 +0000
+@@ -28,6 +28,7 @@
+ package mhonarc;
+
+ use MHonArc::RFC822;
++use Carp;
+
+ ## RFC 2369 header fields to check for URLs
+ %HFieldsList = (
+@@ -304,16 +305,20 @@
+ ## Routine to get filename of a message number.
+ ##
+ sub msgnum_filename {
+- my($fmtstr) = "$MsgPrefix%05d.$HtmlExt";
++ my $msgnum = $_[0];
++ my($fmtstr) = "$MsgPrefix%s.$HtmlExt";
+ $fmtstr .= ".gz" if $GzipLinks;
+- sprintf($fmtstr, $_[0]);
++ if(!defined($MsgHash{$msgnum})) {
++ confess("Could not find X-Archives-Hash for msgnum=$msgnum");
++ }
++ sprintf($fmtstr, $MsgHash{$msgnum});
+ }
+
+ ##---------------------------------------------------------------------------
+ ## Routine to get filename of an index
+ ##
+ sub get_filename_from_index {
+- &msgnum_filename($IndexNum{$_[0]});
++ &msgnum_filename($_[0]);
+ }
+
+ ##---------------------------------------------------------------------------
diff --git a/net-mail/mhonarc-gentoo/metadata.xml b/net-mail/mhonarc-gentoo/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-mail/mhonarc-gentoo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild b/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild
new file mode 100644
index 000000000000..333911aff1b2
--- /dev/null
+++ b/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit perl-module
+
+DESCRIPTION="Perl Mail-to-HTML Converter, Gentoo fork"
+HOMEPAGE="https://www.mhonarc.org/"
+LICENSE="GPL-2"
+SRC_URI="https://www.mhonarc.org/release/MHonArc/tar/MHonArc-${PV}.tar.bz2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="!net-mail/mhonarc"
+
+MY_P="${P/mhonarc-gentoo/MHonArc}"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${P}-archives-gentoo.patch" )
+
+src_install() {
+ sed -e "s|-prefix |-docpath '${D}/usr/share/doc/${PF}' -prefix '${D}'|g" -i Makefile || die "sed on Makefile failed"
+ sed -e "s|installsitelib|installvendorlib|g" -i install.me || die "sed on install.me failed"
+
+ perl-module_src_install
+}
diff --git a/net-mail/mhonarc/Manifest b/net-mail/mhonarc/Manifest
new file mode 100644
index 000000000000..f9746a83177d
--- /dev/null
+++ b/net-mail/mhonarc/Manifest
@@ -0,0 +1,5 @@
+DIST MHonArc-2.6.18.tar.bz2 1546854 SHA256 4fd014cf69c40ae7d50a9dca519f279a09563004b200edb86b7c8c6f3e3fb534 SHA512 816acfd5c68db274848859ea60c8fb47a12daadea5d8dc8acd12018b72c8ff22133ef7e366edb005ef309f7a74f2b4dfdb7ad5fe9256eb850bebaeb165be5511 WHIRLPOOL d03bb5dba0064eb5de9a5f1a9f26b9073d46fb16b6cc2027dd8db5865e9cc9e930b891de67bd1bc223ba39d3d51a66ee49e2a1bcc3d0b3164f7770a93aa6d912
+EBUILD mhonarc-2.6.18-r2.ebuild 918 SHA256 75bf2da900cca7e10d365752bc6c55c3391f0642a80652f8349ab2b165a285c6 SHA512 cbc1343f4ee336847aa0db5084d0b81a9dac92ed54efce5b53da0e8efdb33f7fff473593bf1cc60474bc618d669669916185f0bae82aa53ff5fced349d38e046 WHIRLPOOL d3eeca08ea4a3197c5ebeb1afca4d2e634534199937358a26ea989aab8c0f12462223d8a509dc9019f2c133873853a6ccc4c01d25f49a90b99a6a0d2c3c1d526
+MISC ChangeLog 2828 SHA256 0f9c07c2201c551ab249b4e8b64451573ade15c78ccfa0c98a17c1ab6a22a502 SHA512 f3cec21b8f25d7890519f99e1c50951a5b785f6c337c8fb83d4f9daac6c71fe9cd0d4138af29c3a5dc9b250d18770dca72ec05fa8c07b2b37b44f8c17ef0fc33 WHIRLPOOL 9904ad392113a9b0a06ae8f551789c79c958e44aab87adeb4097524ea2d4f153474c3f4213121db6ae288dda64be670a36a8635a5c2c315639bd1afd1aa6f7ad
+MISC ChangeLog-2015 5647 SHA256 e4e7665ae182f07263f51d94770b5d10c0a7ebb9c1c5761d3649cf4647861189 SHA512 f7f35e20201e5a73aa867bb530e248a17496657e75a3eae82d8fe55a55fbdbd94cc91b6b5d594e8e0d20a5a8727fd5ef6415f91d9d53633443ff8632abe84562 WHIRLPOOL f389bf214e044f202d172d2393bfc5d17192de933ed91fb256945ec42977c9d2a48a92f8bd722e3849698da1ef6916133007e55eda837f062e1cc4a8f9226c74
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/mhonarc/metadata.xml b/net-mail/mhonarc/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/mhonarc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/mhonarc/mhonarc-2.6.18-r2.ebuild b/net-mail/mhonarc/mhonarc-2.6.18-r2.ebuild
new file mode 100644
index 000000000000..53d99632c586
--- /dev/null
+++ b/net-mail/mhonarc/mhonarc-2.6.18-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Perl Mail-to-HTML Converter"
+HOMEPAGE="https://www.mhonarc.org/"
+SRC_URI="https://www.mhonarc.org/release/MHonArc/tar/MHonArc-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ~ppc x86"
+# Warrants IUSE examples, and here it is + ? IUSE doc; see also extras folder with html docs
+IUSE="examples"
+
+RESTRICT="mirror"
+
+S="${WORKDIR}/${P/mhonarc/MHonArc}"
+mydoc="README.txt"
+
+src_install() {
+ sed -e "s|-prefix |-docpath '${D}/usr/share/doc/${PF}/html' -prefix '${D}'|g" -i Makefile || die 'sed on Makefile failed'
+ sed -e "s|installsitelib|installvendorlib|g" -i install.me || die 'sed on install.me failed'
+ perl-module_src_install
+ if use examples; then
+ docompress -x usr/share/doc/${PF}/examples
+ insinto usr/share/doc/${PF}/
+ doins -r examples/
+ fi
+}
diff --git a/net-mail/mlmmj/Manifest b/net-mail/mlmmj/Manifest
new file mode 100644
index 000000000000..602fe4ccaf7f
--- /dev/null
+++ b/net-mail/mlmmj/Manifest
@@ -0,0 +1,11 @@
+AUX mlmmj-1.2.19.0-listcontrol-customheaders.patch 1231 SHA256 ff5516d3900cb3cde96a7813c146ec1282ab347b0cd565c8675c833b485aed06 SHA512 d6e55a1697ab44ea526c0f24930e0aebe088a9f6e2f6726b9557f350fb0b8f86b11441eea3c389593bbaa5e592c97c71b664dba8a3b4eaeb899e318e90d11114 WHIRLPOOL 569248457a8565437f9e081fbaea659ae68a3b42528a7c9452437312130af78ab18ce55fb7254e9faadef7b91467f3692c31e1a30542e5a09acbb5f542f03e0c
+DIST mlmmj-1.2.18.0.tar.bz2 240571 SHA256 6b7072d6f899fcbc8e5d04373e80bb71ffd9c896355285a713630d5f1eeb3341 SHA512 f40fbb8a8ee5312ac6d6baa32065205b768b1ad2a16b8622e6316723d64ceb118cd6d3c0f64929d610596433e1ccb1082c23ea8ad69ca004a6b563da72bd8cc6 WHIRLPOOL 4cbb74866a0351cb2f2b132da18337095da6c79dca96ffc82e5fdbcc56cbd41e49826b83ff5551078b1cbec7ec542970ad4a0b9c9c2c53166a4bafab55eaac22
+DIST mlmmj-1.2.18.1.tar.bz2 240942 SHA256 43d85fbed9bea31728f0c600fd277e553a24ff3bb5d2317a918cf3def87f91ca SHA512 755af623054daac31dfb3de20c017422c40f7fed42c141c5d398c2bd4d5deb8975db556af53f3e5e0711a83a260d7bf3017e27c4fd399a792190de683c470b72 WHIRLPOOL 50c3233950e1a94efe6d528e9684bea3c109f2e12afe292a51bbc2dbb77d9941a942a97955c8880b850043263fa2db02eb4bc794f5d3bd3001bd2444145cea9a
+DIST mlmmj-1.2.19.0.tar.bz2 284701 SHA256 3bcd7f5a17234ef570836f043ea4aacfdaf47d542c4ad4cbe4b2293c3bdb3cde SHA512 c0f23b434941bfb5bfcb9a0f292edcfa62c9bb357014d41f82b03bd8ed1a951e3c8f09293dd333030b024d3da82c514de789b8916cc3c0f493ad8fefbe3a3afb WHIRLPOOL cf68b8718157fb5e21380dd81aa0a8970726232d4026ee75439228a108ec8dfffb1e4673041d1f9dffd27b9b53ce21312af410a7b9a7799e20cde968facb7b17
+EBUILD mlmmj-1.2.18.0.ebuild 917 SHA256 c936e2379be3bf69e0bbbdb85d3dd5d6843fa668038f75afd2aa0d932c91d122 SHA512 cac67bbf94039c54bbbe7f54110e29c834285e7343735abf6b079a04398005627cebecc6c058b5e502e485c8a8dc2b9d53e751cb0c72f7eb9ec8eb62b7972f7b WHIRLPOOL cde17b47e08fffd2c4e9a064f12bd6643d9099106dae661e4258d4f2618a7658bce67aec9c4990311d48c60cd8f9f5ce9fef7c4fcb6b45facca65525cbeb9514
+EBUILD mlmmj-1.2.18.1.ebuild 920 SHA256 139b5892eac316046950d722094f93752207a3fe1daaf6580ff322be3f9f6340 SHA512 fb0b2717db5edb0cac448bd51155c4584db146535bb043a061d211044ccad1c92b716f69632b8d75830c8ccea7e418a8307c3d1f308b284c121394a6eacfa470 WHIRLPOOL a7d28dda3d0df43eb2f9314ddba4f9268925e34f6064ad3e0f650fd5f883b922d4d5c924263579836fede4e3f56e78f6c73d762bf402e60f3208ac87f54c5d9a
+EBUILD mlmmj-1.2.19.0-r1.ebuild 991 SHA256 9b0a1d1bb94696de585ca7bb61fc38986a1222dd89832727d0e755ca602ff0c6 SHA512 5f2df9329d2f98ac3d531cdf706283cce3a3637bef5a02867e41b5bf66de7dfa64c649c95a060f4635dd34dbb229a3f6ee431e9e268deea3605030622dd5a0c2 WHIRLPOOL 9e8a1a3e637a613509e8fd611447a9a6a599c42e57a5b2c20bb1d59cc63021807b5486f20e713494563d1dc9dd37e2c5fdaf7a10c344c27dad2a3c4322ca9d17
+EBUILD mlmmj-1.2.19.0.ebuild 920 SHA256 eb6bfcf74137542eea8ae358f6c1b449d4f5ad00f81d462a5e686b0a79d70cbf SHA512 8ff820c48a87f797e13a651da7e18d82a7eeb0ed68213242239d98d9ad463dce3166380ceed9617a510e2510591c370a8576f64924ba319e70a68ff9c0a08a05 WHIRLPOOL 4864fb49e7675efaf797f25dc38c2db435944544e9055f7fffec74d856934af6e4c45dff031aa4167f54fbf26103fd27d98382a3693642df4bcff29ece8cd5c1
+MISC ChangeLog 2969 SHA256 b19eecdb35b9d572d92ae3b5843cd253d1ac58943f64c26bd35bb61d9c4f7f59 SHA512 83f6eb4e5486d781c3d430c93724bdd2d5ec7e5581ffb189a706d596e1ded046586ce31c1ff8292c138a1800dbf468f1a7bc6af876c66b40aae72177d03d29f0 WHIRLPOOL 68213ebe10d01375cbfa8a95ab8b8b40cb0eb779e7c66bd8367c4702d0e5620a41456b8de80d59ac33b0ff276fab19f81a44af0806218311e281eefc648ad9ab
+MISC ChangeLog-2015 7852 SHA256 f6fd02d7de62c646b3dafe764c1004bbb6ae931b478f6be429f9b10109bfa86a SHA512 a5fdfa76fe41b4c411aa9346e3e9171d87806174966161bf7825b3e487c05b1a6ea43bd448da385629148e87003be9d6d7ef8cc1bea61ad018e753c2ded41a0c WHIRLPOOL c00887a73168feecf34dd181beb81c256e13e9355607a3051db0c416e2c27a9f5c5c84598f5981440ac792c1a92b24f036a44f8329141d85329cec0f34dde96b
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch
new file mode 100644
index 000000000000..c5ee9b3d9b64
--- /dev/null
+++ b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch
@@ -0,0 +1,30 @@
+List control emails do not include customheaders, and can lead to RBL issues
+for forged senders.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar --exclude '*~' mlmmj-1.2.19.0.orig/src/mlmmj-process.c mlmmj-1.2.19.0/src/mlmmj-process.c
+--- mlmmj-1.2.19.0.orig/src/mlmmj-process.c 2014-03-23 17:57:24.000000000 -0700
++++ mlmmj-1.2.19.0/src/mlmmj-process.c 2016-05-04 13:50:26.034174788 -0700
+@@ -702,8 +702,19 @@
+ "output mail file");
+ exit(EXIT_FAILURE);
+ }
+- if(do_all_the_voodoo_here(rawmailfd, donemailfd, -1,
+- -1, delheaders,
++ /* hdrfd is checked in do_all_the_voodoo_here(), because the
++ * customheaders file might not exist */
++ headerfilename = concatstr(2, listdir, "/control/customheaders");
++ hdrfd = open(headerfilename, O_RDONLY);
++ myfree(headerfilename);
++
++ /* footfd is checked in do_all_the_voodoo_here(), see above */
++ footerfilename = concatstr(2, listdir, "/control/footer");
++ footfd = open(footerfilename, O_RDONLY);
++ myfree(footerfilename);
++
++ if(do_all_the_voodoo_here(rawmailfd, donemailfd, hdrfd,
++ footfd, delheaders,
+ NULL, &allheaders, NULL) < 0) {
+ log_error(LOG_ARGS, "do_all_the_voodoo_here");
+ exit(EXIT_FAILURE);
diff --git a/net-mail/mlmmj/metadata.xml b/net-mail/mlmmj/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/mlmmj/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/mlmmj/mlmmj-1.2.18.0.ebuild b/net-mail/mlmmj/mlmmj-1.2.18.0.ebuild
new file mode 100644
index 000000000000..9e589d0d5534
--- /dev/null
+++ b/net-mail/mlmmj/mlmmj-1.2.18.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+MY_PV="${PV/_rc/-RC}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="Mailing list managing made joyful"
+HOMEPAGE="http://mlmmj.org/"
+SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+DEPEND="virtual/mta"
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
+
+src_configure() {
+ econf --enable-receive-strip
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/mlmmj/texts
+ doins listtexts/*
+
+ insinto /usr/share/mlmmj
+ doins -r contrib/web/*
+}
+
+pkg_postinst() {
+ elog "mlmmj comes with serveral webinterfaces:"
+ elog "- One for user subscribing/unsubscribing"
+ elog "- One for admin tasks"
+ elog "both available in a php and perl module."
+ elog "For more info have a look in /usr/share/mlmmj"
+}
diff --git a/net-mail/mlmmj/mlmmj-1.2.18.1.ebuild b/net-mail/mlmmj/mlmmj-1.2.18.1.ebuild
new file mode 100644
index 000000000000..b770d08ecbbb
--- /dev/null
+++ b/net-mail/mlmmj/mlmmj-1.2.18.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+MY_PV="${PV/_rc/-RC}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="Mailing list managing made joyful"
+HOMEPAGE="http://mlmmj.org/"
+SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+DEPEND="virtual/mta"
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
+
+src_configure() {
+ econf --enable-receive-strip
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/mlmmj/texts
+ doins listtexts/*
+
+ insinto /usr/share/mlmmj
+ doins -r contrib/web/*
+}
+
+pkg_postinst() {
+ elog "mlmmj comes with serveral webinterfaces:"
+ elog "- One for user subscribing/unsubscribing"
+ elog "- One for admin tasks"
+ elog "both available in a php and perl module."
+ elog "For more info have a look in /usr/share/mlmmj"
+}
diff --git a/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild
new file mode 100644
index 000000000000..8c463a2ac364
--- /dev/null
+++ b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV="${PV/_rc/-RC}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="Mailing list managing made joyful"
+HOMEPAGE="http://mlmmj.org/"
+SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+DEPEND="virtual/mta"
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
+PATCHES=(
+ "${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch
+)
+
+src_configure() {
+ econf --enable-receive-strip
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/mlmmj/texts
+ doins listtexts/*
+
+ insinto /usr/share/mlmmj
+ doins -r contrib/web/*
+}
+
+pkg_postinst() {
+ elog "mlmmj comes with serveral webinterfaces:"
+ elog "- One for user subscribing/unsubscribing"
+ elog "- One for admin tasks"
+ elog "both available in a php and perl module."
+ elog "For more info have a look in /usr/share/mlmmj"
+}
diff --git a/net-mail/mlmmj/mlmmj-1.2.19.0.ebuild b/net-mail/mlmmj/mlmmj-1.2.19.0.ebuild
new file mode 100644
index 000000000000..b0c02c35f4d5
--- /dev/null
+++ b/net-mail/mlmmj/mlmmj-1.2.19.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+MY_PV="${PV/_rc/-RC}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="Mailing list managing made joyful"
+HOMEPAGE="http://mlmmj.org/"
+SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+DEPEND="virtual/mta"
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
+
+src_configure() {
+ econf --enable-receive-strip
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/mlmmj/texts
+ doins listtexts/*
+
+ insinto /usr/share/mlmmj
+ doins -r contrib/web/*
+}
+
+pkg_postinst() {
+ elog "mlmmj comes with serveral webinterfaces:"
+ elog "- One for user subscribing/unsubscribing"
+ elog "- One for admin tasks"
+ elog "both available in a php and perl module."
+ elog "For more info have a look in /usr/share/mlmmj"
+}
diff --git a/net-mail/mpack/Manifest b/net-mail/mpack/Manifest
new file mode 100644
index 000000000000..b3242aee205f
--- /dev/null
+++ b/net-mail/mpack/Manifest
@@ -0,0 +1,14 @@
+AUX mpack-1.6-clang.patch 205 SHA256 56158e8e97bf8b6eeb9fe193447972e0e25e1e88b970e3264053fd63565beff0 SHA512 194b280dfd1b6267ee383be97aa88080ae1d78675741486280357b807c5dd4e75ef3a110f4143b70a8fa628a42d38bde98ea6b72a72eea4ddaa46cdb3d3315a0 WHIRLPOOL c03150b23416b95c260504e9eb69770b498e347e2a8218cc035dfa5f6126ffc6d1b8a405994ac27a73e15e5f92ba96d570a845d2a9743ee982e7d7e57e9b470c
+AUX mpack-1.6-compile.patch 2652 SHA256 190b6a97588203d3e1527b0aa5aa68137e80ca27ce8211bdd135cca2ffd1e2bb SHA512 60396619da56d1166c27d6307b7d3437e928311eb2a3120f7062ef9f52bedd729a80fef25e657897b2219af0b4d90633a0827335dd4cc0f5cf8585377ca7cd2d WHIRLPOOL 8d54549f170dd167f9b003dde5ccc1b4753ffa991cc5c95340ab12d6b0cb2966ed743b418904f940d0066a2d8a610acea2daded6017d11f40dfd0e2ad6c55841
+AUX mpack-1.6-cve-2011-4919.patch 706 SHA256 ff86494abdee7d4868656bf525a018ccfbd479cde75faf10e468e1c0c8f1fb0c SHA512 82ddbc6af292c2f695fa45572ce66705ab4e272322bdf4d47b2078e934a1d4e822808b3c174560b3d315431d4fcd095809eb4b4f80958c2dd8c7be955f7a1740 WHIRLPOOL 30778176b171120379fd7cfa7e63a294891f1790fc3e1a694821663d8172b2e14ebd6f691211bf39d6266e99aa18d43009e601108706bb3e6e991fcb7d7279bb
+AUX mpack-1.6-filenames.patch 882 SHA256 1aad17f5b71a36a59edd1a5ee32257477534c7a0986032801990e6bd58e3d339 SHA512 ec36e1f4775ec5063fc7e8e10b75d0f47e2a7b675b62967726abe6283d9bc3885a8376ea9b264b837959bba65eaee6d92739afbab8237b2eb4a4bd2eda9f0e60 WHIRLPOOL 6f2aa298aaaa7491316ac27d70c491524ce9207bb63ebcf79fbd6219c592e43758d96c962ea53506707aa5598d63f2822c2047d3e0f8612470585d35081d2747
+AUX mpack-1.6-gentoo.patch 2022 SHA256 7d00e9be884b8c672820b5801b46bc708f143cc93d356828044f9c1370b58feb SHA512 543a073bf034914a9484713ca0cb838fd4a23b60b61997f358aaf782d9485f188382dc502f2f1bcab0f48e322fe1c5be15f4120aeeccafd981a1abbb695c0616 WHIRLPOOL 02e907683aeb8a066c82d440047aefdeb1cc5a60862f29fb588cdfa64711371e82a84d0390f685b9a6f20cd3dd25a1c1eef77460a943519aa1ff9ce515ec4b3a
+AUX mpack-1.6-munpack.patch 1341 SHA256 865c4cbeaf2f90a0e338a5ef4a9e371936c4bb5aa6a9f48947fde6ef2e39a2ed SHA512 b9a895798d3ffb0c1dc7e0d67cabef1570f64ee02175dd6082f9581caa08f759a4d4488d329433e1f2c529b19df32fe645e08fc079a1aa667ff0f9c38c1e51a1 WHIRLPOOL 6445d4e006a4472fe7f45ab46359c1c3b1cc34027b12c3d80bfcf2208b89e85ca4cb5fb672342f8a64bc67546ad5e1065106018c5a218994ad31a60ab90cc7c5
+AUX mpack-1.6-paths.patch 2729 SHA256 534e3e26d91bd72f3e476ccc09c3091d87b8525f5a521630b2edfe29b323ed42 SHA512 918a1f25e5f224d34f2e1b44aae7683b5d31b384d6e124de88c1fe661e42ef5d88810d7380bc4e298a2d7efe152f0da5cfc3b3028c65a3f2a337511d3384fcf7 WHIRLPOOL 8ae4a9e2460206d1dec21f61d3cae2422ed18d59453adbec7b6edf0be5ea9ea34ecc6a8b59a9a21784abc26d87132807ff92cd0900097e5c6a462ab23b0fe093
+AUX mpack-1.6-usage.patch 721 SHA256 797dd899449256e0a1c029bc8402f86779b71aa58611c5f993875dd235ba153d SHA512 e07f72e6a0d037f788829904050bbee9f1c8c722a6b363b8a95ab012dda99b952e36bd7a9772a63d22ff4da34fdd44ead8d42db510e8c340f3410b3cd0d52b1a WHIRLPOOL c4a7dbb80bf9983f21d3a010f70448a42c84feb901ab988b683f4de6ef280699dfb4f458b1d688081f424986fd09630fbbca889beb29210dbe1f4f1906f471ba
+DIST mpack-1.6.tar.gz 179850 SHA256 274108bb3a39982a4efc14fb3a65298e66c8e71367c3dabf49338162d207a94c SHA512 9bff0d2753d78288e428a20c8cbb4596bd9862de4da7f42176731ce5fd459b15883d758f9b1ec7d4e1281cc1aeaaa046cec54aeb0997a7ffed74de07edd84714 WHIRLPOOL 322e880e02ca67a18bfaab751f91298fdb9629e8d732b2ded37c8bc921897c6eb1a3b075a80d959ea52122e0e13fcb8967bccf47abaa94311fab2268e57a4a90
+EBUILD mpack-1.6-r3.ebuild 891 SHA256 4415f1894abdb299e4dd4786e086ade09c63f7d69c0b1a1336d768963253a7c3 SHA512 30e892df7523284b1b800b36608b404a41e0aeff496dbd2fbdb7a638de0be52214a00e9be1a0256e877527fd3ba63d296f4968a7033445136abbaf647f310970 WHIRLPOOL 12ebdcda4d14388be6cc82aa1c43504aee0d385ec096233c45b2323e1ad66846f6428399cdf07f81133bf662e03ae86a99b3c317b4a1e5f9755a6ebbc99b16d9
+EBUILD mpack-1.6-r4.ebuild 847 SHA256 69d99495d12d193ffc1a6761855703e11f47016bb5c01d6b82406a971acc20c0 SHA512 8f7dfee7130a942478bf19f73ec75ea397e29adf5b54e3e4e493cb38855081e92d227c20279317e35896919e54e56d2c84b3e83158b044a3875b5c8856a4c2db WHIRLPOOL fc3cf8f48e92b6224a60e4f2272351a8d3a7c9d441dd8a6c67de804ae46edf2ab7bbef3c3683619e051d6d96b4ad2e48b24d5db02b2b0e337d02e8c63981aa9e
+MISC ChangeLog 2752 SHA256 405b49e6d75bc118e4a0b411ded0596b9f1b9ae2dc67da2ec0feedfa552ca0db SHA512 e28c0a3116726a57eba3882b84d2abb3ad15000184e1b02e635c1c6591e131a671923630f18987184e8c0dcd41cf521666422a396d2b0a3053407a87dd71d1b1 WHIRLPOOL 6954d2e1b471b609025edbe1351431cff04a6feb5f1c427e8f1d348c05a75602a5bf44a86289abf20ef337cedcce4bb56c03c145d165888e660c1c8c75d44cbf
+MISC ChangeLog-2015 4062 SHA256 ff9e3816a5214eae3e41387f465a5823bacaf2a72d2da684c8508bdedf6bec14 SHA512 3c454f7604f50b3bad54e0f8c370627c1854e9ea76f3c817f40fcfbc1b0d538a6c5bb67fb0e333884bb61586271b302fc6c7e074b4129e329477a342c32f3c2b WHIRLPOOL 45fb7f10f6e5173229e87f91444a8c35448842ef5828e049d94a617836b8c953f118885a0ab7b06ae582d9c959080112723aeb237eca92cb256128ea6eea2d28
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/mpack/files/mpack-1.6-clang.patch b/net-mail/mpack/files/mpack-1.6-clang.patch
new file mode 100644
index 000000000000..fc21d170af5f
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-clang.patch
@@ -0,0 +1,11 @@
+--- umpack-1.6/udecode.c 2003-07-21 20:46:37.000000000 +0000
++++ mpack-1.6/uudecode.c 2014-04-19 10:04:19.000000000 +0000
+@@ -845,7 +845,7 @@
+ }
+ line += 4;
+ }
+- return;
++ return 0;
+ }
+
+
diff --git a/net-mail/mpack/files/mpack-1.6-compile.patch b/net-mail/mpack/files/mpack-1.6-compile.patch
new file mode 100644
index 000000000000..570319cabe55
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-compile.patch
@@ -0,0 +1,129 @@
+From a01468c1734129595355af0815d4577af4e265cc Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Wed, 7 Dec 2011 23:22:55 +0100
+Subject: [PATCH] Add missing includes, remove conflicting prototypes
+
+---
+ decode.c | 1 +
+ encode.c | 1 +
+ magic.c | 1 +
+ part.c | 1 +
+ unixos.c | 5 +----
+ unixpk.c | 2 ++
+ unixpk.o | Bin 12000 -> 12016 bytes
+ unixunpk.c | 1 +
+ xmalloc.c | 2 +-
+ 9 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/decode.c b/decode.c
+index c96918f..8b8df56 100644
+--- a/decode.c
++++ b/decode.c
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <stdlib.h>
+ #include "xmalloc.h"
+ #include "common.h"
+ #include "part.h"
+diff --git a/encode.c b/encode.c
+index 0ba3934..1377cf8 100644
+--- a/encode.c
++++ b/encode.c
+@@ -24,6 +24,7 @@
+ */
+ #include <stdio.h>
+ #include <string.h>
++#include <stdlib.h>
+
+ extern char *magic_look(FILE *infile);
+ extern char *os_genid(void);
+diff --git a/magic.c b/magic.c
+index e08c6f8..a452a43 100644
+--- a/magic.c
++++ b/magic.c
+@@ -23,6 +23,7 @@
+ * SOFTWARE.
+ */
+ #include <stdio.h>
++#include <string.h>
+
+ /* Description of the various file formats and their magic numbers */
+ struct magic {
+diff --git a/part.c b/part.c
+index 1d4efe6..15fd724 100644
+--- a/part.c
++++ b/part.c
+@@ -28,6 +28,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
++#include <stdlib.h>
+
+ #include "part.h"
+ #include "xmalloc.h"
+diff --git a/unixos.c b/unixos.c
+index 3f5c4c0..fa6d0a7 100644
+--- a/unixos.c
++++ b/unixos.c
+@@ -30,6 +30,7 @@
+ #include <sys/param.h>
+ #include <netdb.h>
+ #include <fcntl.h>
++#include <stdlib.h>
+ #include "xmalloc.h"
+ #include "common.h"
+ #include "part.h"
+@@ -38,10 +39,6 @@
+ #define MAXHOSTNAMELEN 64
+ #endif
+
+-extern int errno;
+-extern char *malloc();
+-extern char *getenv();
+-
+ int overwrite_files = 0;
+ int didchat;
+
+diff --git a/unixpk.c b/unixpk.c
+index c2aaa56..1f81ea9 100644
+--- a/unixpk.c
++++ b/unixpk.c
+@@ -25,6 +25,8 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <errno.h>
++#include <stdlib.h>
++#include <unistd.h>
+ #include "common.h"
+ #include "version.h"
+ #include "xmalloc.h"
+diff --git a/unixunpk.c b/unixunpk.c
+index a1f065b..0f5fa85 100644
+--- a/unixunpk.c
++++ b/unixunpk.c
+@@ -23,6 +23,7 @@
+ * SOFTWARE.
+ */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "version.h"
+ #include "part.h"
+
+diff --git a/xmalloc.c b/xmalloc.c
+index 7c74360..46dbbd1 100644
+--- a/xmalloc.c
++++ b/xmalloc.c
+@@ -24,7 +24,7 @@
+ */
+ #include <stdio.h>
+ #include <string.h>
+-extern char *malloc(), *realloc();
++#include <stdlib.h>
+
+ char *xmalloc (int size)
+ {
+--
+1.7.8
+
diff --git a/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch b/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch
new file mode 100644
index 000000000000..62a04faa7936
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch
@@ -0,0 +1,28 @@
+From 0c87201f64491575350b18d04c62ec142e119d1f Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 31 Dec 2011 20:17:20 +0100
+Subject: [PATCH] Fix permissions
+
+---
+ unixos.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/unixos.c b/unixos.c
+index fa6d0a7..0e2f469 100644
+--- a/unixos.c
++++ b/unixos.c
+@@ -134,9 +134,9 @@ FILE *os_createnewfile(char *fname)
+ FILE *ret;
+
+ #ifdef O_EXCL
+- fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0644);
++ fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0600);
+ #else
+- fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0644);
++ fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600);
+ #endif
+
+ if (fd == -1)
+--
+1.7.8.1
+
diff --git a/net-mail/mpack/files/mpack-1.6-filenames.patch b/net-mail/mpack/files/mpack-1.6-filenames.patch
new file mode 100644
index 000000000000..6a1fc225a791
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-filenames.patch
@@ -0,0 +1,30 @@
+From 10aad11d7baf7044328fff616b9c6f1859bd2cbd Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 8 Jan 2012 17:36:20 +0100
+Subject: [PATCH 1/2] Use actual filenames for unpacking (rather than
+ "part[0-9]+")
+
+Example:
+# curl http://pbot.rmdir.de/b224d87617c5d76d6cd938bd4410fabf | ./munpack
+---
+ decode.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/decode.c b/decode.c
+index 8b8df56..7349abd 100644
+--- a/decode.c
++++ b/decode.c
+@@ -546,8 +546,8 @@ getDispositionFilename(char *disposition)
+ SkipWhitespace(&disposition);
+ if (!disposition) return 0;
+
+- /* If we're looking at a ";", we found what we're looking for */
+- if (*disposition++ == ';') break;
++ /* If we're looking at a "=", we found what we're looking for */
++ if (*disposition++ == '=') break;
+ }
+
+ SkipWhitespace(&disposition);
+--
+1.7.8.3
+
diff --git a/net-mail/mpack/files/mpack-1.6-gentoo.patch b/net-mail/mpack/files/mpack-1.6-gentoo.patch
new file mode 100644
index 000000000000..faf72eb67e7a
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-gentoo.patch
@@ -0,0 +1,69 @@
+diff -bur mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
+--- mpack-1.6-orig/unixos.c 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/unixos.c 2007-03-11 02:04:48.000000000 +0100
+@@ -39,7 +39,7 @@
+ #endif
+
+ extern int errno;
+-extern char *malloc();
++extern void *malloc();
+ extern char *getenv();
+
+ int overwrite_files = 0;
+@@ -90,7 +90,7 @@
+ strcpy(buf, getenv("TMPDIR"));
+ }
+ else {
+- strcpy(buf, "/usr/tmp");
++ strcpy(buf, "/var/tmp");
+ }
+ strcat(buf, "/m-prts-");
+ p = getenv("USER");
+diff -bur mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c
+--- mpack-1.6-orig/unixpk.c 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/unixpk.c 2007-03-11 02:14:02.000000000 +0100
+@@ -167,7 +167,7 @@
+ strcpy(fnamebuf, "/usr/tmp");
+ }
+ strcat(fnamebuf, "/mpackXXXXXX");
+- mktemp(fnamebuf);
++ mkstemp(fnamebuf);
+ outfname = strsave(fnamebuf);
+ }
+
+diff -bur mpack-1.6-orig/unixpk.man mpack-1.6/unixpk.man
+--- mpack-1.6-orig/unixpk.man 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/unixpk.man 2007-03-11 02:14:13.000000000 +0100
+@@ -136,7 +136,7 @@
+ .SH ENVIRONMENT
+ .TP
+ .B TMPDIR
+-Directory to store temporary files. Default is /usr/tmp.
++Directory to store temporary files. Default is /var/tmp.
+ .TP
+ .B SPLITSIZE
+ Default value of the -m switch.
+diff -bur mpack-1.6-orig/unixunpk.man mpack-1.6/unixunpk.man
+--- mpack-1.6-orig/unixunpk.man 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/unixunpk.man 2007-03-11 02:03:14.000000000 +0100
+@@ -107,7 +107,7 @@
+ .SH ENVIRONMENT
+ .TP
+ .B TMPDIR
+-Directory to store temporary files. Default is /usr/tmp.
++Directory to store temporary files. Default is /var/tmp.
+ .SH FILES
+ .TP
+ .B $TMPDIR/m-prts-$USER/
+diff -bur mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
+--- mpack-1.6-orig/xmalloc.c 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/xmalloc.c 2007-03-11 02:04:29.000000000 +0100
+@@ -24,7 +24,7 @@
+ */
+ #include <stdio.h>
+ #include <string.h>
+-extern char *malloc(), *realloc();
++extern void *malloc(), *realloc();
+
+ char *xmalloc (int size)
+ {
diff --git a/net-mail/mpack/files/mpack-1.6-munpack.patch b/net-mail/mpack/files/mpack-1.6-munpack.patch
new file mode 100644
index 000000000000..9d5c8af6e814
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-munpack.patch
@@ -0,0 +1,55 @@
+From a4ececa89969adfa53c30878b21178e1427cb6c5 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Wed, 18 Jan 2012 05:22:25 +0100
+Subject: [PATCH] Fix unpacking of multiple parts
+
+The problem was reported by Dirk Meyer of FreeBSD.
+
+He shared these commands to reproduce:
+$ ./mpack -s Subject -m 1700 -o zparts md5c.c
+$ ./munpack zparts.*
+---
+ decode.c | 2 +-
+ unixos.c | 13 +++++++++++++
+ 2 files changed, 14 insertions(+), 1 deletions(-)
+
+diff --git a/decode.c b/decode.c
+index 7349abd..e8e8d56 100644
+--- a/decode.c
++++ b/decode.c
+@@ -633,7 +633,7 @@ int handlePartial(struct part *inpart, char *headers, params contentParams, int
+ }
+ /* Store number of parts in reassembly directory */
+ sprintf(buf, "%sCT", dir);
+- partfile = os_createnewfile(buf);
++ partfile = os_resetfile(buf);
+ if (!partfile) {
+ os_perror(buf);
+ goto ignore;
+diff --git a/unixos.c b/unixos.c
+index 0e2f469..1650594 100644
+--- a/unixos.c
++++ b/unixos.c
+@@ -146,6 +146,19 @@ FILE *os_createnewfile(char *fname)
+ return ret;
+ }
+
++FILE *os_resetfile(char *fname)
++{
++ int fd;
++ FILE *ret;
++
++ fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600);
++ if (fd == -1)
++ return NULL;
++
++ ret=fdopen(fd, "w");
++ return ret;
++}
++
+
+ /*
+ * Create a new file, with suggested filename "fname".
+--
+1.7.8.3
+
diff --git a/net-mail/mpack/files/mpack-1.6-paths.patch b/net-mail/mpack/files/mpack-1.6-paths.patch
new file mode 100644
index 000000000000..0dc2de8b2123
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-paths.patch
@@ -0,0 +1,95 @@
+From b857da37ec211e4472070c9e870aa5a0b827563b Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Thu, 8 Dec 2011 00:09:03 +0100
+Subject: [PATCH] Use /var/tmp rather than /usr/tmp
+
+---
+ README.unix | 2 +-
+ mkreadme.pl | 2 +-
+ unixos.c | 2 +-
+ unixpk.c | 2 +-
+ unixpk.man | 2 +-
+ unixunpk.man | 2 +-
+ 8 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/README.unix b/README.unix
+index d7a762c..c26b7c8 100644
+--- a/README.unix
++++ b/README.unix
+@@ -188,7 +188,7 @@ The environment variables which control munpack's behavior are:
+
+ TMPDIR
+ Root of directory to store partial messages awaiting
+- reassembly. Default is "/usr/tmp". Partial messages
++ reassembly. Default is "/var/tmp". Partial messages
+ are stored in subdirectories of $TMPDIR/m-prts-$USER/
+
+
+diff --git a/mkreadme.pl b/mkreadme.pl
+index a45117b..22e4e81 100755
+--- a/mkreadme.pl
++++ b/mkreadme.pl
+@@ -413,7 +413,7 @@ The environment variables which control munpack's behavior are:
+ =unix
+ TMPDIR
+ Root of directory to store partial messages awaiting
+- reassembly. Default is "/usr/tmp". Partial messages
++ reassembly. Default is "/var/tmp". Partial messages
+ are stored in subdirectories of $TMPDIR/m-prts-$USER/
+
+ =pc os2
+diff --git a/unixos.c b/unixos.c
+index 2243d12..fa6d0a7 100644
+--- a/unixos.c
++++ b/unixos.c
+@@ -87,7 +87,7 @@ char *os_idtodir(char *id)
+ strcpy(buf, getenv("TMPDIR"));
+ }
+ else {
+- strcpy(buf, "/usr/tmp");
++ strcpy(buf, "/var/tmp");
+ }
+ strcat(buf, "/m-prts-");
+ p = getenv("USER");
+diff --git a/unixpk.c b/unixpk.c
+index 3605dd1..0bae849 100644
+--- a/unixpk.c
++++ b/unixpk.c
+@@ -166,7 +166,7 @@ int main(int argc, char **argv)
+ strcpy(fnamebuf, getenv("TMPDIR"));
+ }
+ else {
+- strcpy(fnamebuf, "/usr/tmp");
++ strcpy(fnamebuf, "/var/tmp");
+ }
+ strcat(fnamebuf, "/mpackXXXXXX");
+ mktemp(fnamebuf);
+diff --git a/unixpk.man b/unixpk.man
+index de251ee..c4c9313 100644
+--- a/unixpk.man
++++ b/unixpk.man
+@@ -136,7 +136,7 @@ Mail the generated messages to the specified addresses.
+ .SH ENVIRONMENT
+ .TP
+ .B TMPDIR
+-Directory to store temporary files. Default is /usr/tmp.
++Directory to store temporary files. Default is /var/tmp.
+ .TP
+ .B SPLITSIZE
+ Default value of the -m switch.
+diff --git a/unixunpk.man b/unixunpk.man
+index da384b1..8c9ab7e 100644
+--- a/unixunpk.man
++++ b/unixunpk.man
+@@ -107,7 +107,7 @@ see the section "OPTIONS" above.
+ .SH ENVIRONMENT
+ .TP
+ .B TMPDIR
+-Directory to store temporary files. Default is /usr/tmp.
++Directory to store temporary files. Default is /var/tmp.
+ .SH FILES
+ .TP
+ .B $TMPDIR/m-prts-$USER/
+--
+1.7.8
+
diff --git a/net-mail/mpack/files/mpack-1.6-usage.patch b/net-mail/mpack/files/mpack-1.6-usage.patch
new file mode 100644
index 000000000000..f4f07e530ee9
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-usage.patch
@@ -0,0 +1,25 @@
+From 74fd172db4961ab07f134a60cd88955fb170f11d Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 8 Jan 2012 17:39:51 +0100
+Subject: [PATCH 2/2] Mention parameter -t in usage output
+
+---
+ unixunpk.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/unixunpk.c b/unixunpk.c
+index 0f5fa85..1320b70 100644
+--- a/unixunpk.c
++++ b/unixunpk.c
+@@ -101,7 +101,7 @@ int main(int argc, char **argv)
+
+ void usage(void) {
+ fprintf(stderr, "munpack version %s\n", MPACK_VERSION);
+- fprintf(stderr, "usage: munpack [-f] [-q] [-C directory] [files...]\n");
++ fprintf(stderr, "usage: munpack [-f] [-q] [-t] [-C directory] [files...]\n");
+ exit(1);
+ }
+
+--
+1.7.8.3
+
diff --git a/net-mail/mpack/metadata.xml b/net-mail/mpack/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/mpack/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/mpack/mpack-1.6-r3.ebuild b/net-mail/mpack/mpack-1.6-r3.ebuild
new file mode 100644
index 000000000000..5016cc6747d0
--- /dev/null
+++ b/net-mail/mpack/mpack-1.6-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+AT_M4DIR=cmulocal
+
+inherit eutils autotools
+
+DESCRIPTION="Command-line MIME encoding and decoding utilities"
+HOMEPAGE="ftp://ftp.andrew.cmu.edu/pub/mpack/"
+SRC_URI="ftp://ftp.andrew.cmu.edu/pub/mpack/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="HPND"
+KEYWORDS="amd64 x86 ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-filenames.patch
+ epatch "${FILESDIR}"/${P}-usage.patch
+ epatch "${FILESDIR}"/${P}-munpack.patch
+
+ # NOTE: These three patches replace <mpack-1.6-gentoo.patch>
+ epatch "${FILESDIR}"/${P}-compile.patch
+ epatch "${FILESDIR}"/${P}-paths.patch
+ epatch "${FILESDIR}"/${P}-cve-2011-4919.patch
+
+ epatch "${FILESDIR}"/${P}-clang.patch
+
+ eautoreconf
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die
+ dodoc README.* Changes
+}
diff --git a/net-mail/mpack/mpack-1.6-r4.ebuild b/net-mail/mpack/mpack-1.6-r4.ebuild
new file mode 100644
index 000000000000..549f2af53198
--- /dev/null
+++ b/net-mail/mpack/mpack-1.6-r4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+AT_M4DIR=cmulocal
+
+inherit autotools
+
+DESCRIPTION="Command-line MIME encoding and decoding utilities"
+HOMEPAGE="ftp://ftp.andrew.cmu.edu/pub/mpack/"
+SRC_URI="ftp://ftp.andrew.cmu.edu/pub/mpack/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="HPND"
+KEYWORDS="~amd64 ~x86 ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+PATCHES=( "${FILESDIR}"/${P}-filenames.patch
+ "${FILESDIR}"/${P}-usage.patch
+ "${FILESDIR}"/${P}-munpack.patch
+ # NOTE: These three patches replace <mpack-1.6-gentoo.patch>
+ "${FILESDIR}"/${P}-compile.patch
+ "${FILESDIR}"/${P}-paths.patch
+ "${FILESDIR}"/${P}-cve-2011-4919.patch
+
+ "${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install () {
+ emake DESTDIR="${D}" install
+ dodoc README.* Changes
+}
diff --git a/net-mail/mpop/Manifest b/net-mail/mpop/Manifest
new file mode 100644
index 000000000000..aa0fcdde80ea
--- /dev/null
+++ b/net-mail/mpop/Manifest
@@ -0,0 +1,9 @@
+DIST mpop-1.2.4.tar.xz 268900 SHA256 933f6b02afe549d76d0bf631ec97781bd4dd36152fb63d498b82e64e99a11f95 SHA512 2ddc395f76adcc9fa1a1bdf0749a29eeb40a51b3c1633fb0e6b967b68be79a160ae8aab8433a2565a2146ca0d24d2ad00e1cb5a66652e737dd0ccdbac27ae70f WHIRLPOOL 587c2a9679b6e57d4ea6ceed8751ea809eb213f1ecb8aecab3265b9366093ec3f6e9231f41286cad8073eb6ede68e85b4af09cf2c5934ef9f1aa041198072a36
+DIST mpop-1.2.5.tar.xz 269204 SHA256 01612b5fc60dcbd5368b7cc2e0fce6c141c2e835d4646f8d7214d9898a901158 SHA512 9c724915f2f6b776ed0d8f27b3af5e2c86c63ccfd2eb4bcdf69f4f86f47d10ab23a21cd76e5ee173ba18bb7ccbc5f13a2dc9c2cbbfa91b9a40dddc5197c4c1de WHIRLPOOL 0dcc5f81f4cf34d897ae09ea87599d812198f1d6f728755e907b74d54ca36c0f437cc3328caccce64bddb22d5803fa3fd011c38e77f5888044cedbf060a40e8e
+DIST mpop-1.2.6.tar.xz 269912 SHA256 9fec7a9dd08fc0f04bf6178bc651b036d1fe0e46903146f38a8d182887e9315c SHA512 ba4dedebbe4b7b9f84a339e7c605cc9082e95d8cf0c5331dbc74b83ef64f7de47da996e61dbbaa33dd093650a3021eb75a7f188a9abc985c741108d060b6bd7b WHIRLPOOL 3a70d92e7a770934f3f605af89efe9d94a2f7ac2ec628287712c1b9456fe7df5ecd7c951d0bf7fdb49aa8d4ba40632a1cc30dea805964158c61652cc19984b2e
+EBUILD mpop-1.2.4.ebuild 1103 SHA256 f3f492f3af0cc9b354740748b1468fd16ff418150c2d02d0db1f3462c384d8b4 SHA512 2e4da67d2793521dd7178faf45b67f800219be22740a1be55858f5de0700afdc7c0cc105e4a692d7075c16ab27287af5de99345d9388e6b3af6948e2de782882 WHIRLPOOL edd8367b74c51b0ae0e76a7b7f015f33954202a780d9b3cb9c03957abbc4cbfa883c973573466835a70c28f25acee4b8d39e29d13117da54936ff17b26e9abcd
+EBUILD mpop-1.2.5.ebuild 1103 SHA256 f3f492f3af0cc9b354740748b1468fd16ff418150c2d02d0db1f3462c384d8b4 SHA512 2e4da67d2793521dd7178faf45b67f800219be22740a1be55858f5de0700afdc7c0cc105e4a692d7075c16ab27287af5de99345d9388e6b3af6948e2de782882 WHIRLPOOL edd8367b74c51b0ae0e76a7b7f015f33954202a780d9b3cb9c03957abbc4cbfa883c973573466835a70c28f25acee4b8d39e29d13117da54936ff17b26e9abcd
+EBUILD mpop-1.2.6.ebuild 1103 SHA256 f3f492f3af0cc9b354740748b1468fd16ff418150c2d02d0db1f3462c384d8b4 SHA512 2e4da67d2793521dd7178faf45b67f800219be22740a1be55858f5de0700afdc7c0cc105e4a692d7075c16ab27287af5de99345d9388e6b3af6948e2de782882 WHIRLPOOL edd8367b74c51b0ae0e76a7b7f015f33954202a780d9b3cb9c03957abbc4cbfa883c973573466835a70c28f25acee4b8d39e29d13117da54936ff17b26e9abcd
+MISC ChangeLog 3324 SHA256 ac35f912e907cd80c810ae68487894e77b2ae48aadeca91046feb861124c30ad SHA512 0e5ba065e646e5196c0a66ef9d5c5c86fdb9d1ff1324ac0267d1cf1cff9413e6f23be893ad4b8e01b98cf9e573f5ff3b0b14332fe3b0f1f89dded7d0396a99a6 WHIRLPOOL 424891d0d7f8afd4c1d429d51486a77ca60656e7f90dd80f99e168828bb83642791224176b3e3810afe6d038be9ccfa395eaf168f0b76ec8ecf1ffeb0e117e2e
+MISC ChangeLog-2015 1687 SHA256 af62ffb7027352b539d86fa8aed8b5ef54e62840143abd8797e37131c67eb210 SHA512 e209af4a37bdff2daf5e3ee1bee218858d8bd83d9380aefabdcb26b2c263b36658d7d39409c426822b260577dcf0c7ee60039d82f5668b6fe58aa6ac4d4205fa WHIRLPOOL a6ef630cf22b0b7c7f749c878cb9674b0cab48210f6f3586d98da34fea2b9ff873c1e3a01ab4bc41321e0b11c18dd7faf74834be6d92fc1423bf6cf53ce5505f
+MISC metadata.xml 417 SHA256 8d037eb686299073e2abc168c37a57bc5092c52e15e6aee2767981c385ae01ea SHA512 a0e8a9f86bf3a53d1ba38cb3da1c12a9df7372876f3cecf089dbef4048149ec7a11fc3f007aa2c50059a0be72c91a4c608e87d206be89c8f996f246e8a828012 WHIRLPOOL 921aa357d27870f8e556116c01be718f015d81ca89856f3b4564f945989678535df8118421ef02f47791d1356126a1eb35451694d82b54694284bdbea67a93da
diff --git a/net-mail/mpop/metadata.xml b/net-mail/mpop/metadata.xml
new file mode 100644
index 000000000000..4cd173c340a2
--- /dev/null
+++ b/net-mail/mpop/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="libsecret">Enable libsecret support to store login credentials</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">mpop</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mpop/mpop-1.2.4.ebuild b/net-mail/mpop/mpop-1.2.4.ebuild
new file mode 100644
index 000000000000..88d21a14ec47
--- /dev/null
+++ b/net-mail/mpop/mpop-1.2.4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A small, fast, and portable POP3 client"
+HOMEPAGE="http://mpop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gnutls idn libressl libsecret nls sasl ssl vim-syntax"
+
+RDEPEND="
+ idn? ( net-dns/libidn )
+ libsecret? ( app-crypt/libsecret )
+ nls? ( virtual/libintl )
+ sasl? ( virtual/gsasl )
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+REQUIRED_USE="gnutls? ( ssl )"
+
+DOCS="AUTHORS ChangeLog NEWS NOTES README THANKS"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with ssl ssl $(usex gnutls "gnutls" "openssl")) \
+ $(use_with sasl libgsasl) \
+ $(use_with idn libidn) \
+ $(use_with libsecret )
+}
+
+src_install() {
+ default
+
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/vim/mpop.vim
+ fi
+}
diff --git a/net-mail/mpop/mpop-1.2.5.ebuild b/net-mail/mpop/mpop-1.2.5.ebuild
new file mode 100644
index 000000000000..88d21a14ec47
--- /dev/null
+++ b/net-mail/mpop/mpop-1.2.5.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A small, fast, and portable POP3 client"
+HOMEPAGE="http://mpop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gnutls idn libressl libsecret nls sasl ssl vim-syntax"
+
+RDEPEND="
+ idn? ( net-dns/libidn )
+ libsecret? ( app-crypt/libsecret )
+ nls? ( virtual/libintl )
+ sasl? ( virtual/gsasl )
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+REQUIRED_USE="gnutls? ( ssl )"
+
+DOCS="AUTHORS ChangeLog NEWS NOTES README THANKS"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with ssl ssl $(usex gnutls "gnutls" "openssl")) \
+ $(use_with sasl libgsasl) \
+ $(use_with idn libidn) \
+ $(use_with libsecret )
+}
+
+src_install() {
+ default
+
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/vim/mpop.vim
+ fi
+}
diff --git a/net-mail/mpop/mpop-1.2.6.ebuild b/net-mail/mpop/mpop-1.2.6.ebuild
new file mode 100644
index 000000000000..88d21a14ec47
--- /dev/null
+++ b/net-mail/mpop/mpop-1.2.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A small, fast, and portable POP3 client"
+HOMEPAGE="http://mpop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gnutls idn libressl libsecret nls sasl ssl vim-syntax"
+
+RDEPEND="
+ idn? ( net-dns/libidn )
+ libsecret? ( app-crypt/libsecret )
+ nls? ( virtual/libintl )
+ sasl? ( virtual/gsasl )
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+REQUIRED_USE="gnutls? ( ssl )"
+
+DOCS="AUTHORS ChangeLog NEWS NOTES README THANKS"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with ssl ssl $(usex gnutls "gnutls" "openssl")) \
+ $(use_with sasl libgsasl) \
+ $(use_with idn libidn) \
+ $(use_with libsecret )
+}
+
+src_install() {
+ default
+
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/vim/mpop.vim
+ fi
+}
diff --git a/net-mail/mswatch/Manifest b/net-mail/mswatch/Manifest
new file mode 100644
index 000000000000..fd3f4c9c9ac2
--- /dev/null
+++ b/net-mail/mswatch/Manifest
@@ -0,0 +1,7 @@
+AUX mswatch-1.2.0-gcc47.patch 565 SHA256 5fa3edf35bcf8f887b0a59138aca77bf64fbe52c90229ca1d178399cbf920181 SHA512 ad46ba2610303b55a1c30060af407a127847a175e86fb5c9a292fe18874ae0a2b042982890bc013385b5bba82e723a6df64c65e53a8bad39e51c35777d370d1b WHIRLPOOL 4e21a1cd0e79c046bb48668758a6c4c313bc755955778e0a5fe33511686444f69503a73f72414b11db0a2139b066888319cac5d76247a9cc691cec4738d48b04
+AUX mswatch-1.2.0-gcc6.patch 317 SHA256 4e931c11c3e89853a76d9dbddfb512ea4338c7165a1e338c370a8c7919675a48 SHA512 5f73a6251fbc9308a02343c66a1ccf00917bd6af4469cdd0f1559fab89ebace0e24a6371ba21089b659d212f225091bdf2ff6843b4372fc9f2356add5dd555ec WHIRLPOOL 02e0f7289118b5804bdb1ea903d38ee7f738a50d64573eddb6c489ae14077fb4f4d68c81786a3bd610b6617b7fdbd7d3f8628e121861c21ff44a4b2029739170
+DIST mswatch-1.2.0.tar.gz 434986 SHA256 2623514442237e11c91a06ab406d9594669ddb70fd1d55b84371ea613e8ac1a7 SHA512 c6774993909cb066514cb0ceb163bfd5e023d357435c6779d2d049cc9d56a278d5502193af1f4f5d6af264ff041b43b6c0fe2c400f775e8c22ed395a183c75f9 WHIRLPOOL c5ce2269cbc73fb4e057261751ba43077c4cf4204033ce21bbfb80ede981476c5385080d4d07505c1d8a12812c758e0a573d477f3c5c6451126996bc5b758e35
+EBUILD mswatch-1.2.0-r1.ebuild 787 SHA256 ebba983bb76b8569406dbc928829721a81fded1424dfe7c01d66b0927970f804 SHA512 0d24dcd36d4f8ca9b56db7162287c1adf95f7807954b414b0117e3b2038c6b764c0be530892b574972018ad7c3863a2c7d0514cc46e6626f8572e79e66d1eaee WHIRLPOOL b345fcb897e32af15e838ac0c010bbb327d0b2a63fbbaeff489c031976f153460f1b706e22c6d873e1fbd1444a897778281e7de55f6fe37d5f415f2ec488fd78
+MISC ChangeLog 2461 SHA256 75f86ec32a0df33c6816ee7ebb4c9b0b9d6caa71cf2c3436410d3f4ced02f458 SHA512 695bb14bc072eb6b1fbc587cb7c97861f2c6e7eead90f7b18afb3c3073d07ce29b4e5f04787d73b5e482a2bb7b7cfb2ccd610938092a11f9ccf3759992bb5c71 WHIRLPOOL 02769a87d41fa54830d4389f7eed633d7a834aa9a8216d1e9e60d611492dcce6f37fdf230eb2ac5b7da2b1bcae30309c365d76680890f8a83b30e54a50d89ef8
+MISC ChangeLog-2015 822 SHA256 f2a774b40d2ce01a807615b3ba017de3300dad02553df866b0980cf8d62d3a9d SHA512 82bbbe25b59afb5a49d71359fa00a8a74c06f2c5d04a1bae5b8392429deddd5ce9da35956b7c7b5a98815e6be249e24925b04978c198059af2079d2ce9d7e962 WHIRLPOOL a73d6d6103fd7ac2b590cf4e53e101290af00acd6a8ee28888a535bcad324c8ac89e5b5c375ae8cb0b4ca7584dd4de9818fc7c6edafc636106c4fdba8eee78c0
+MISC metadata.xml 321 SHA256 c61f6a0a9f93a81dc676737aff4cbf28ce5186d91e7b1be3c6fc3682ff397217 SHA512 44d9882a384a0f72548bf129bde41a91419939e38d7f5faf4c4ed9fc79d6e5d96c674e0c7098479efc118d58938d3f2f0168a304604bb87023b78ed89744f631 WHIRLPOOL a211c3cc6a180b1355079b21f484e154dfe469d71befb62cb42620c4d4ff6c12cbfa4d04f4f09a0c9e95875f9985197bb26cc09756f432490ef7b841733b9c9e
diff --git a/net-mail/mswatch/files/mswatch-1.2.0-gcc47.patch b/net-mail/mswatch/files/mswatch-1.2.0-gcc47.patch
new file mode 100644
index 000000000000..c11052164c66
--- /dev/null
+++ b/net-mail/mswatch/files/mswatch-1.2.0-gcc47.patch
@@ -0,0 +1,26 @@
+ https://bugs.gentoo.org/424673
+
+ src/lib/util.cc | 1 +
+ src/watch_maildirs/inotify/state.cc | 1 +
+ 2 files changed, 2 insertions(+)
+
+--- a/src/lib/util.cc
++++ b/src/lib/util.cc
+@@ -6,6 +6,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
++#include <unistd.h>
+
+ #include <sstream>
+ #include <string>
+--- a/src/watch_maildirs/inotify/state.cc
++++ b/src/watch_maildirs/inotify/state.cc
+@@ -1,6 +1,7 @@
+ #include <assert.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <unistd.h>
+
+ #include "lib/util.h"
+ #include "state.h"
diff --git a/net-mail/mswatch/files/mswatch-1.2.0-gcc6.patch b/net-mail/mswatch/files/mswatch-1.2.0-gcc6.patch
new file mode 100644
index 000000000000..2b4fa4ce5d2b
--- /dev/null
+++ b/net-mail/mswatch/files/mswatch-1.2.0-gcc6.patch
@@ -0,0 +1,12 @@
+--- mswatch-1.2.0/src/lib/util.h.old 2016-09-23 19:09:54.195069503 -0400
++++ mswatch-1.2.0/src/lib/util.h 2016-09-23 19:10:04.663460768 -0400
+@@ -21,9 +21,6 @@
+
+ void drain_fd(int fd);
+
+-// static assert, for compile-time assertion checking
+-#define static_assert(x) switch (x) case 0: case (x):
+-
+ __END_DECLS
+
+
diff --git a/net-mail/mswatch/metadata.xml b/net-mail/mswatch/metadata.xml
new file mode 100644
index 000000000000..42d60d817d52
--- /dev/null
+++ b/net-mail/mswatch/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mswatch</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mswatch/mswatch-1.2.0-r1.ebuild b/net-mail/mswatch/mswatch-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..06d3a3d17125
--- /dev/null
+++ b/net-mail/mswatch/mswatch-1.2.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit linux-info ltprune
+
+DESCRIPTION="A utility to watch mailstores for changes and initiate mailbox syncs"
+HOMEPAGE="http://mswatch.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND=">=dev-libs/glib-2.6:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+CONFIG_CHECK="~INOTIFY_USER"
+ERROR_INOTIFY_USER="${P} requires in-kernel inotify support."
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_configure() {
+ econf \
+ --with-notify=inotify \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest
new file mode 100644
index 000000000000..ebd4a7e8901e
--- /dev/null
+++ b/net-mail/mu/Manifest
@@ -0,0 +1,18 @@
+AUX 70mu-gentoo.el 76 SHA256 1d72e79ffa158aabc6cc59e5dbd1adcec6450cf69ee373e13b80e462f05abe64 SHA512 61cc2bf611a0d1f2aa53b4624c52e1aa9672a81b4b8d7386aad1bf70b0b0db6ee19e011acc5a1a28b220d99eb3683140a2ff02dc3e01ea68f512ee05ec7bc23e WHIRLPOOL 2b1da9bff42a58e201a56acbbe4ba956afe556f95ca828de81dcdab535ea36cfecd2fe8f30d1be7e08e709494bd4ef1287dd4018714f0d783feebf808513b731
+DIST mu-0.9.15.tar.gz 2203193 SHA256 60c63fdf1b726696cb0028b86eaee2aa72e171493b2d5626ea173b912ff25d4c SHA512 36a0dcaa9b355c7a75f1d8c7730241ade979ec050e18f8609b840d6dff6befc96cf3fb649b8970649542724b2c20482099aaf9827b17a5e9618eb13cdda9c4b5 WHIRLPOOL e627d2553cc466725c3d1c339fb03fe08f784b069b01cc1da26c7761cc0cd03d28da5f8bf06e36e5d6dd23cee6ecbef232c45d4447b9b32b543efbb0a4cbb8eb
+DIST mu-0.9.16.tar.gz 2212969 SHA256 af086880b00a6954bc1135b226b66a33205893600c8dd04139a6871c62c6f05c SHA512 8cf9b83aea287ee79b5160ed19e7dc6ef27f0784143b5eac9cf55d07b7718bc777624d752e0b407258b5078e998544d18dbb258a7eb03cafe55596f07a60d1f4 WHIRLPOOL 96a7a2fce4083d2bc3b583d59d04b26231fae67792e0d3846ff480020d481cfdeac0fb58b9e9122b5e1963380d493ef08a30fd3a03a8a7e9960c78a0932bf64c
+DIST mu-0.9.18.tar.gz 2250319 SHA256 8dd35ab52774c4595077570e730989a2ef329204cd677ad1085f43cc1b89dc3d SHA512 47104d18547de0871782abc4e1c6dbf1f9b2489410e5716043861bf8d973d33d2138de7d7ac568b300ca86ae9f1a0fda0fa9555ad9a5938771336ef958183546 WHIRLPOOL 05cdd1a90aebd6c83b76e07ee864a2ff19c7a8ed7c0e9b9fe324f07ba70414b8b4e93d7c51a4394ebbbc156de2ce65edfcaa65c78bea3944c38e48bb7151e2c7
+DIST mu-0.9.9.5.tar.gz 1230322 SHA256 17e29a68c020a84441a38033067f6f538217b5d691b9c475f9593ab47ca493c3 SHA512 bd9814c670391f28a5be4b7c064f2bfc6a9428d94c88476539323688fc86df72f600cec30a87fb2b242dbeb717eb3a39c95ac09091c4c05c1886824e3052972b WHIRLPOOL bad0439b44524254a5113522cf2eafeb68604300dbc6822a9170c0ef4c336f1874428df0bfa25c7b2e7657b49d2a74cf06ce7ebb88e4e21458b87971fc178045
+DIST mu-0.9.9.6.tar.gz 2172349 SHA256 4ae4ca7f433dcfc6dfd85a41873914c1bda5c43de02ad2a030cd449f84d629cb SHA512 0213033aa7599a5120c38a4b9ec018357ebd63a3c4828e0f9d7af41529dc1b001db8d506408b0341e0efe9835fbd21dbf23c836920c98ae2caabcb0cdc7dac2b WHIRLPOOL 577e5eef5874d6cdc667e967a6722308d4e99035b8265f24030ced851d976a215bdd9ce209510a75d362af76d15116a475af6e5abb5d5be04b95f549d5ecb901
+DIST mu-0.9.9.tar.gz 1185624 SHA256 83f8e2814ba1a89a3153ab3dcd21105cc62e1386c176c5312ccb6bae0af02013 SHA512 1dc8608a77381d6ad0f26e3729f17a0c5bc2a90cbefa217159c8dc432c2bb9f7d495d08053852bf10451a3b5ac40e325ad44cb7d9f032f8337cd094b121da143 WHIRLPOOL de9406c0995bfe6592cb411eeb03b6681f79e15df0633857beb502bf2825b7974c79039298f5cf682be9e45d6237b463a5dcd3b5930ebb99456cbf0b1497890a
+DIST mu4e-manual-0.9.9.5.pdf 396250 SHA256 581d2440f79caca197ac82b6b9a9077fdae7815adc503fb6e185cef78e2a9f99 SHA512 ef9d36a1d9c7a397d89ce5a01072408165dc37b1cc7bb90658f35421cd0dfe28c8fa932cc602f5150c7947aa09c94a470924c98fcae3d9caa7d92fb1d47f7e7e WHIRLPOOL 806bd735de7e0dee31375aa956436ea67b140bd65be0bbee13a2b85b4218133efd4a87d1281307fb43107a559745ce19803cdb5d51a0e965efcc595bbdf3c605
+DIST mu4e-manual-0.9.9.pdf 379708 SHA256 75c76d736d0e3df39f654e3343cd6b5d861946bc7f570237dcd677ef79c39455 SHA512 fb8f8e94694969fc9d616177ddbb78d17b103446b2859806578255eaa954368973ef3a4fa6d8b410c8143f0b8e7ff51374f9bd3de6292fc2fd4c5cc3479b6979 WHIRLPOOL ab0ca516486bd6bab29776d665991a1c2a9120c191066b6e564b620228f81bab97b6137d1972a61c8bf5b60131755ffe6f005c99ec1d95a60ce97d4f02e2a8f2
+EBUILD mu-0.9.15-r1.ebuild 2103 SHA256 5f0978075e578fb40ac9b874cab4d89223b2936a800844780549c6340cb78d1f SHA512 31182b79ab81a3fb15a3abbd2a89465e071882e1aa7b3955270f46dbecf18c8f202bd8d37ac3ed46f5f4adc1218fbe715b587022879fc27b93c75a5c091cb9e9 WHIRLPOOL 7d5b75dc9fe11785d42c41e86f252d8e1079ac084794cc6c157f625167ccf58f5276fd7a320e19b310c663bfc1a02564d6484888cd37b887ef53305e244f6cf0
+EBUILD mu-0.9.16.ebuild 2104 SHA256 50daee5e068214c5262d9f05646b6f3b140074bb3d8b1cadd2ca448ecda3e445 SHA512 27d37bee83c7b8dd956e873da34fcf154ee54b8686a826ead1e28f4e1e135e665588e30e49bb13a0f4de6b1acb62012fd5c248c6503403214fc2df1b003c0208 WHIRLPOOL 545dad59e37c261868e0d685a95e9c612bc2200437cea0819b19125842a57d59dab081b294d480a6a6293fb210a33c40079affaf78ca4b6e4c510f57cadbd44a
+EBUILD mu-0.9.18-r1.ebuild 2126 SHA256 1c5f5d4016ac21b2efc3b77a75ee03523f5111e999743f225886b42fc3c72c5f SHA512 07f527eea48a74f0b260ee861c07deb51655eceea4acc2570a4be3da8ca259f89666624e78ab60bb846b69082a33c59e54813dd54d6e556e596336010536f525 WHIRLPOOL 80fb69a542f79d98be085d5a506abfec20e813a6bd74dd5303a2a27ce81cf6c68b04920e92178ad70960111068b33b77b63f86756ad5841d2a82627e5b7ee441
+EBUILD mu-0.9.9.5.ebuild 2009 SHA256 220c48b3748e5d7e8630fd5587f4f77bb692f73b51dcd3c5463291cf76679371 SHA512 0d98ae8d0343608fea1c5d6cf3bc4d5436f7f58c632c737d6e575c5c6699aef086a42f1382b356d35925d217fd16b8cd82b46e67c1185e9539a29ba6cf2d09e9 WHIRLPOOL f14354b11b1029c33edac055d684558cf4490cc9e546f834b1886492ed46d2f9293d82e7ff6f2b7b137bffc4f1ce6e94cb3a0c2ab77121eed76632d3cb67d006
+EBUILD mu-0.9.9.6.ebuild 2037 SHA256 a79be501c66fd3c074c6045af5acdec8ce6eeb3492781b60b7107d6511ec5452 SHA512 3392cd093fe270f2a972c0e325f182a259d9fa3af607b5590b1fc2ef491c3c86de7f2534bb81ebf12ab0878e797293bdc72ca4dc606ba62ff4138cf2b5b6b105 WHIRLPOOL 9cba58915e9c70173553d9946bb7638ba4d286122cccaf9e0979ee2cdbf71eaa0b02476b78bf5d90c577d21a3065c8f8134eb894b2f2e4e15bbf34f306fd8b1e
+EBUILD mu-0.9.9.ebuild 2194 SHA256 12da20d6fa89a6fc652f79eee31698d13779702350f12fc41b1afffd15510e73 SHA512 017d82ff1116ba1a5169e92e224a03a4bf6a74a7f111e16d3bf074507c1d42baec222cd8e143d87cc3853710ca66b8f1be21c17675810c2e12c80e9558cb1811 WHIRLPOOL f485aac73dfd0f5c86303e6e56fad8f8366989bcfd81a29d8662840ef984cb14e37ad85827e2acba20047dc286fa14819cc2e24cf4281fc25c583f704bfd06c8
+MISC ChangeLog 3847 SHA256 f27e9dbcb798c540d980fccd66f4738cc45449da3f253a007ca7299979cdc1ed SHA512 ce1fe5bb9e44f781bc3d428d01941f22b7472b146034fc6010107b4cd8fac799dbb694096efd4f12ddee6a013b59d0e0c453895e2711e3a914c7dbc0962bf9e8 WHIRLPOOL 4898529f15253a9f2b7b0026128984898fbc135ab563433078e4de41d330bbbe21ee169620f0c6cc458aab9040658167cf726e0025caa92f02ab92b2c54b5627
+MISC ChangeLog-2015 3426 SHA256 1424bd14d52fafb3522b8f6fc09b6c27d133e36af9478b3a804aea8ed6536a1b SHA512 35f42e43df4bf241ed9cfcc81af4308f6234d6eb38a054e9807e6556308d3440ca16d91394fe5ef6a5751b01fe609708bfe44191315480936c25a7d1eb07ae73 WHIRLPOOL 37cb606715a92dbf5c0d1e1b07644b3f96f5541a261b8251fb40c6ac83afb108da923aae1e2c0406a98a2fae8c03ca73a07c2d961e7b4cb5588a2eff90db733b
+MISC metadata.xml 932 SHA256 3723f68856996f8aa44c1540abbd50031a7bda265793c6cacaea1cbd9e161af5 SHA512 123e9fda6d3b93c1f4002ffe3141ffd1579f692c5a555d103d490b73aef2c6a50aa17b10a9c768792fbda1d7887753331c0462839612c56635aab274c2c34d01 WHIRLPOOL 1d9535bcd1d816b463a7a56eab5b8466a5127dfb306a27e88f5ed0e774d8bf83fb06b2cfe3da1e8540342030de9483a0135347956f577d2ee74ef8a536587a24
diff --git a/net-mail/mu/files/70mu-gentoo.el b/net-mail/mu/files/70mu-gentoo.el
new file mode 100644
index 000000000000..ce445f1c559e
--- /dev/null
+++ b/net-mail/mu/files/70mu-gentoo.el
@@ -0,0 +1,3 @@
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
+(require 'mu4e)
+
diff --git a/net-mail/mu/metadata.xml b/net-mail/mu/metadata.xml
new file mode 100644
index 000000000000..a337356d6d14
--- /dev/null
+++ b/net-mail/mu/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vikraman@gentoo.org</email>
+ <name>Vikraman Choudhury</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription lang="en">'mu' is a set of command-line tools for Linux/Unix that enable you to quickly find the e-mails you
+are looking for, assuming that you store your e-mails in Maildirs. It also includes an emacs based mail client mu4e.</longdescription>
+ <use>
+ <flag name="gui">Build and install the experimental gui 'mug'.</flag>
+ <flag name="emacs">Install the mu4e mail client.</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">mu0</remote-id>
+ <remote-id type="github">djcb/mu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mu/mu-0.9.15-r1.ebuild b/net-mail/mu/mu-0.9.15-r1.ebuild
new file mode 100644
index 000000000000..e6830778b4ca
--- /dev/null
+++ b/net-mail/mu/mu-0.9.15-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils base elisp-common
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
+HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
+SRC_URI="https://github.com/djcb/mu/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs gui"
+
+# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
+# really wants both installed at the same time.
+DEPEND="
+ dev-libs/gmime:2.6
+ dev-libs/xapian
+ dev-libs/glib:2
+ gui? (
+ x11-libs/gtk+:3
+ net-libs/webkit-gtk:3 )
+ emacs? ( >=virtual/emacs-23 )
+ !net-mail/mailutils"
+RDEPEND="${DEPEND}"
+
+SITEFILE="70mu-gentoo.el"
+
+src_prepare(){
+ eautoreconf
+}
+
+src_configure() {
+ # Todo: Make a guile USE-flag as soon as >=guile-2 is avaiable
+ # Note: --disable-silent-rules is included in EAPI-5
+ econf --disable-guile \
+ $(use_enable gui webkit) \
+ $(use_enable gui gtk) \
+ $(use_enable emacs mu4e)
+}
+
+src_install () {
+ dobin mu/mu
+ if use gui; then
+ dobin toys/mug/mug
+ fi
+ dodoc AUTHORS HACKING NEWS NEWS.org TODO README README.org ChangeLog
+ if use emacs; then
+ elisp-install ${PN} mu4e/*.el mu4e/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+ # TODO: Add guile man page when guile-2 is available.
+ doman man/mu-add.1 man/mu-bookmarks.5 man/mu-cfind.1 man/mu-easy.1 \
+ man/mu-extract.1 man/mu-find.1 man/mu-help.1 man/mu-index.1 \
+ man/mu-mkdir.1 man/mu-remove.1 man/mu-server.1 man/mu-verify.1 \
+ man/mu-view.1 man/mu.1
+ if use gui; then
+ dobin man/mug.1
+ fi
+}
+
+src_test () {
+ # Note: Fails with parallel make
+ emake -j1 check
+}
+
+pkg_postinst() {
+ if use emacs; then
+ einfo "To use mu4e you need to configure it in your .emacs file"
+ einfo "See the manual for more information:"
+ einfo "http://www.djcbsoftware.nl/code/mu/mu4e/"
+ fi
+
+ elog "If you upgrade from an older major version,"
+ elog "then you need to rebuild your mail index."
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/mu/mu-0.9.16.ebuild b/net-mail/mu/mu-0.9.16.ebuild
new file mode 100644
index 000000000000..d6af3e33c345
--- /dev/null
+++ b/net-mail/mu/mu-0.9.16.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils base elisp-common
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
+HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
+SRC_URI="https://github.com/djcb/mu/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs gui"
+
+# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
+# really wants both installed at the same time.
+DEPEND="
+ dev-libs/gmime:2.6
+ dev-libs/xapian
+ dev-libs/glib:2
+ gui? (
+ x11-libs/gtk+:3
+ net-libs/webkit-gtk:3 )
+ emacs? ( >=virtual/emacs-23 )
+ !net-mail/mailutils"
+RDEPEND="${DEPEND}"
+
+SITEFILE="70mu-gentoo.el"
+
+src_prepare(){
+ eautoreconf
+}
+
+src_configure() {
+ # Todo: Make a guile USE-flag as soon as >=guile-2 is avaiable
+ # Note: --disable-silent-rules is included in EAPI-5
+ econf --disable-guile \
+ $(use_enable gui webkit) \
+ $(use_enable gui gtk) \
+ $(use_enable emacs mu4e)
+}
+
+src_install () {
+ dobin mu/mu
+ if use gui; then
+ dobin toys/mug/mug
+ fi
+ dodoc AUTHORS HACKING NEWS NEWS.org TODO README README.org ChangeLog
+ if use emacs; then
+ elisp-install ${PN} mu4e/*.el mu4e/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+ # TODO: Add guile man page when guile-2 is available.
+ doman man/mu-add.1 man/mu-bookmarks.5 man/mu-cfind.1 man/mu-easy.1 \
+ man/mu-extract.1 man/mu-find.1 man/mu-help.1 man/mu-index.1 \
+ man/mu-mkdir.1 man/mu-remove.1 man/mu-server.1 man/mu-verify.1 \
+ man/mu-view.1 man/mu.1
+ if use gui; then
+ dobin man/mug.1
+ fi
+}
+
+src_test () {
+ # Note: Fails with parallel make
+ emake -j1 check
+}
+
+pkg_postinst() {
+ if use emacs; then
+ einfo "To use mu4e you need to configure it in your .emacs file"
+ einfo "See the manual for more information:"
+ einfo "http://www.djcbsoftware.nl/code/mu/mu4e/"
+ fi
+
+ elog "If you upgrade from an older major version,"
+ elog "then you need to rebuild your mail index."
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/mu/mu-0.9.18-r1.ebuild b/net-mail/mu/mu-0.9.18-r1.ebuild
new file mode 100644
index 000000000000..0d23cc5c5d9a
--- /dev/null
+++ b/net-mail/mu/mu-0.9.18-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools elisp-common
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
+HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
+SRC_URI="https://github.com/djcb/mu/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs gui"
+
+# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
+# really wants both installed at the same time.
+DEPEND="
+ dev-libs/gmime:2.6
+ dev-libs/xapian
+ dev-libs/glib:2
+ gui? (
+ x11-libs/gtk+:3
+ net-libs/webkit-gtk:3 )
+ emacs? ( >=virtual/emacs-23 )
+ !net-mail/mailutils"
+RDEPEND="${DEPEND}"
+
+SITEFILE="70mu-gentoo.el"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Todo: Make a guile USE-flag as soon as >=guile-2 is avaiable
+ # Note: --disable-silent-rules is included in EAPI-5
+ econf --disable-guile \
+ $(use_enable gui webkit) \
+ $(use_enable gui gtk) \
+ $(use_enable emacs mu4e)
+}
+
+src_install () {
+ dobin mu/mu
+ if use gui; then
+ dobin toys/mug/mug
+ fi
+ dodoc AUTHORS HACKING NEWS NEWS.org TODO README README.org ChangeLog
+ if use emacs; then
+ elisp-install ${PN} mu4e/*.el mu4e/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ doinfo mu4e/mu4e.info
+ fi
+ # TODO: Add guile man page when guile-2 is available.
+ doman man/mu-add.1 man/mu-bookmarks.5 man/mu-cfind.1 man/mu-easy.1 \
+ man/mu-extract.1 man/mu-find.1 man/mu-help.1 man/mu-index.1 \
+ man/mu-mkdir.1 man/mu-remove.1 man/mu-server.1 man/mu-verify.1 \
+ man/mu-view.1 man/mu.1
+ if use gui; then
+ dobin man/mug.1
+ fi
+}
+
+src_test () {
+ # Note: Fails with parallel make
+ emake -j1 check
+}
+
+pkg_postinst() {
+ if use emacs; then
+ einfo "To use mu4e you need to configure it in your .emacs file"
+ einfo "See the manual for more information:"
+ einfo "http://www.djcbsoftware.nl/code/mu/mu4e/"
+ fi
+
+ elog "If you upgrade from an older major version,"
+ elog "then you need to rebuild your mail index."
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/mu/mu-0.9.9.5.ebuild b/net-mail/mu/mu-0.9.9.5.ebuild
new file mode 100644
index 000000000000..4dc7ccc9b7bc
--- /dev/null
+++ b/net-mail/mu/mu-0.9.9.5.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base elisp-common
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
+HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
+SRC_URI="https://mu0.googlecode.com/files/${P}.tar.gz
+ doc? ( https://mu0.googlecode.com/files/mu4e-manual-${PV}.pdf )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc emacs gui"
+
+# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
+# really wants both installed at the same time.
+DEPEND="
+ dev-libs/gmime:2.6
+ dev-libs/xapian
+ dev-libs/glib:2
+ gui? (
+ x11-libs/gtk+:3
+ net-libs/webkit-gtk:3 )
+ emacs? ( >=virtual/emacs-23 )
+ !net-mail/mailutils"
+RDEPEND="${DEPEND}"
+
+SITEFILE="70mu-gentoo.el"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ if use doc ; then
+ cp "${DISTDIR}"/mu4e-manual-${PV}.pdf "${S}" || die
+ fi
+}
+
+src_configure() {
+ # Todo: Make a guile USE-flag as soon as >=guile-2 is avaiable
+ # Note: --disable-silent-rules is included in EAPI-5
+ econf --disable-guile \
+ --disable-silent-rules \
+ $(use_enable gui webkit) \
+ $(use_enable gui gtk) \
+ $(use_enable emacs mu4e)
+}
+
+src_install () {
+ base_src_install
+ # Installing the guis is not supported by upstream
+ if use gui; then
+ dobin toys/mug/mug || die
+ fi
+ dodoc AUTHORS HACKING NEWS TODO README ChangeLog INSTALL
+ if use doc; then
+ dodoc mu4e-manual-${PV}.pdf
+ fi
+ if use emacs; then
+ elisp-install ${PN} mu4e/*.el mu4e/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+src_test () {
+ emake check
+}
+
+pkg_postinst() {
+ if use emacs; then
+ einfo "To use mu4e you need to configure it in your .emacs file"
+ einfo "See the manual for more information:"
+ einfo "http://www.djcbsoftware.nl/code/mu/mu4e/Getting-started.html"
+ fi
+
+ elog "If you upgrade from an older major version,"
+ elog "then you need to rebuild your mail index."
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/mu/mu-0.9.9.6.ebuild b/net-mail/mu/mu-0.9.9.6.ebuild
new file mode 100644
index 000000000000..ce5b12b4561f
--- /dev/null
+++ b/net-mail/mu/mu-0.9.9.6.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils base elisp-common
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
+HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
+SRC_URI="https://github.com/djcb/mu/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ doc? ( https://mu0.googlecode.com/files/mu4e-manual-0.9.9.5.pdf )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc emacs gui"
+
+# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
+# really wants both installed at the same time.
+DEPEND="
+ dev-libs/gmime:2.6
+ dev-libs/xapian
+ dev-libs/glib:2
+ gui? (
+ x11-libs/gtk+:3
+ net-libs/webkit-gtk:3 )
+ emacs? ( >=virtual/emacs-23 )
+ !net-mail/mailutils"
+RDEPEND="${DEPEND}"
+
+SITEFILE="70mu-gentoo.el"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ if use doc ; then
+ cp "${DISTDIR}"/mu4e-manual-0.9.9.5.pdf "${S}" || die
+ fi
+}
+
+src_prepare(){
+ eautoreconf
+}
+
+src_configure() {
+ # Todo: Make a guile USE-flag as soon as >=guile-2 is avaiable
+ # Note: --disable-silent-rules is included in EAPI-5
+ econf --disable-guile \
+ $(use_enable gui webkit) \
+ $(use_enable gui gtk) \
+ $(use_enable emacs mu4e)
+}
+
+src_install () {
+ base_src_install
+ # Installing the guis is not supported by upstream
+ if use gui; then
+ dobin toys/mug/mug
+ fi
+ dodoc AUTHORS HACKING NEWS TODO README ChangeLog
+ if use doc; then
+ dodoc mu4e-manual-0.9.9.5.pdf
+ fi
+ if use emacs; then
+ elisp-install ${PN} mu4e/*.el mu4e/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+src_test () {
+ emake check
+}
+
+pkg_postinst() {
+ if use emacs; then
+ einfo "To use mu4e you need to configure it in your .emacs file"
+ einfo "See the manual for more information:"
+ einfo "http://www.djcbsoftware.nl/code/mu/mu4e/Getting-started.html"
+ fi
+
+ elog "If you upgrade from an older major version,"
+ elog "then you need to rebuild your mail index."
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/mu/mu-0.9.9.ebuild b/net-mail/mu/mu-0.9.9.ebuild
new file mode 100644
index 000000000000..dd243052a7bd
--- /dev/null
+++ b/net-mail/mu/mu-0.9.9.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base elisp-common
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
+HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
+SRC_URI="https://mu0.googlecode.com/files/${P}.tar.gz
+ doc? ( https://mu0.googlecode.com/files/mu4e-manual-${PV}.pdf )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc emacs gui"
+
+# Without webkit-gtk there is no pdf-preview functionality, everything
+# else works as of 0.9.8.5
+# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
+# really wants both installed at the same time.
+DEPEND="
+ dev-libs/gmime:2.6
+ dev-libs/xapian
+ dev-libs/glib:2
+ gui? (
+ x11-libs/gtk+:3
+ net-libs/webkit-gtk:3 )
+ emacs? ( >=virtual/emacs-23 )
+ !net-mail/mailutils"
+RDEPEND="${DEPEND}"
+
+SITEFILE="70mu-gentoo.el"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ if use doc ; then
+ cp "${DISTDIR}"/mu4e-manual-${PV}.pdf "${S}" || die
+ fi
+}
+
+src_configure() {
+ local guiconf
+ if use gui; then
+ guiconf="--with-gui=gtk3"
+ else
+ guiconf="--with-gui=none"
+ fi
+
+ # Todo: Make a guile USE-flag as soon as >=guile-2 is avaiable
+ # Note: --disable-silent-rules is included in EAPI-5
+ econf --disable-guile \
+ --disable-silent-rules \
+ $(use_enable gui webkit) \
+ $(use_enable emacs mu4e) \
+ ${guiconf}
+}
+
+src_install () {
+ base_src_install
+ # Installing the guis is not supported by upstream
+ if use gui; then
+ dobin toys/mug/mug || die
+ fi
+ dodoc AUTHORS HACKING NEWS TODO README ChangeLog INSTALL
+ if use doc; then
+ dodoc mu4e-manual-${PV}.pdf
+ fi
+ if use emacs; then
+ elisp-install ${PN} mu4e/*.el mu4e/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+src_test () {
+ emake check
+}
+
+pkg_postinst() {
+ if use emacs; then
+ einfo "To use mu4e you need to configure it in your .emacs file"
+ einfo "See the manual for more information:"
+ einfo "http://www.djcbsoftware.nl/code/mu/mu4e/Getting-started.html"
+ fi
+
+ elog "If you upgrade from an older major version,"
+ elog "then you need to rebuild your mail index."
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/muchsync/Manifest b/net-mail/muchsync/Manifest
new file mode 100644
index 000000000000..1f847f1df101
--- /dev/null
+++ b/net-mail/muchsync/Manifest
@@ -0,0 +1,6 @@
+DIST muchsync-3.tar.gz 132310 SHA256 13ac824348c014a979cee4f9b236b9a1fbd01ec8c61ad474766af56bcead1f10 SHA512 54c0f53d6be55d294e0c4a9a7bf1a4f719b34b07e5754c77283baa996e47a40dfaa650cf1efe9107011487f88c7b8e25b3e779e68baaa877b6f1d2770a31a111 WHIRLPOOL 57fa13b0df8449cc14aa2aa55c639e60dace735a44070870b0ebfbb6ce6ea94588f098b563b8d4374ba5dfa7421a3933753967153006aaf3828b1e0ae0a8b17c
+DIST muchsync-4.tar.gz 132378 SHA256 c4cc82fb6be87a21ed7b36a969b12fa50be264025fbfe0a81d4e1e709e3d070d SHA512 63b495d25e631b02f8c1b91f90a1ee1a01713d313bd1bf7303d0f8901e2a09a571e5c7b3c38a9896d7f17d71d2f730e7dbf982f3ff5968fecbe8affe8943fba8 WHIRLPOOL 1ce4eab7f8b7643344ffa26c8a9d012f18cfb5d5a033046e00580266f5358e88284e7ec58ce88b0dea73159e75ccd9f6af1b17964cd555c55e9cbef748ba61a0
+EBUILD muchsync-3.ebuild 457 SHA256 f5bd5a65e972824f6384ff9117680a6e3dd5dfac6416341256d012ba6a48e085 SHA512 3ffa4ec8491820d1d480cc56bf0c29564199ea63e90ba1a36baee4dcabda03b465c5a3c8787538fc7dfc0d8564d948fc0872fa7904e454e8f6ce4c8e858d092d WHIRLPOOL 9027c32c88a6084fe5914a301378dd7b37d4ee91a9a4e5dbd1c3feedfa32e24d678c37062d601ffd5aabc21d343f37acd09cc45350f4148e733ae1acab4b5a9e
+EBUILD muchsync-4.ebuild 457 SHA256 f5bd5a65e972824f6384ff9117680a6e3dd5dfac6416341256d012ba6a48e085 SHA512 3ffa4ec8491820d1d480cc56bf0c29564199ea63e90ba1a36baee4dcabda03b465c5a3c8787538fc7dfc0d8564d948fc0872fa7904e454e8f6ce4c8e858d092d WHIRLPOOL 9027c32c88a6084fe5914a301378dd7b37d4ee91a9a4e5dbd1c3feedfa32e24d678c37062d601ffd5aabc21d343f37acd09cc45350f4148e733ae1acab4b5a9e
+MISC ChangeLog 440 SHA256 59e44baed2d6584e23f006714ffed6a9f5c64110a209f95838d415177dc7023d SHA512 658f5701a13c5eedf7c55b977d83ed3b181fff15fe430fee705bb2a6971ffd46b8a577c9c4773fb2d44a9035f8e4c954de8ba683c196a8580e527f5f25bb8e36 WHIRLPOOL 7354320b5ac125a12a6ebbcafdd86e66e34b1b617f3ccc9fac43a62a864e689439437dad2514d9f080f329ebdd493979f4d45245181cc780c10faea1b7d386de
+MISC metadata.xml 608 SHA256 b9f239f6363d4b9508b66661ad083fa56e08a1aee714bb7825f89d993abe699a SHA512 1943dce7f97545ba3899925b0bd7b39991bdfc2bfba95bd1ca84b9d50a7553a7ab345be8900723dcc56ef02a19d926aee0930c31c2365ad2cc6145335bd83c58 WHIRLPOOL bdc267f86794731fb331da2168acf2313ae879fa3226fe2be53c1bf2ecfe66520845407fa546842504d29382aa3fde63b5e2884958bb3375ecc400ed562d249d
diff --git a/net-mail/muchsync/metadata.xml b/net-mail/muchsync/metadata.xml
new file mode 100644
index 000000000000..28ef87d6dd45
--- /dev/null
+++ b/net-mail/muchsync/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <longdescription lang="en">
+ Muchsync brings notmuch to all of your computers by synchronizing your
+ mail messages and notmuch tags across machines. The protocol is heavily
+ pipelined to work efficiently over high-latency networks such as mobile
+ broadband. Muchsync supports arbitrary pairwise synchronization among
+ replicas.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/muchsync/muchsync-3.ebuild b/net-mail/muchsync/muchsync-3.ebuild
new file mode 100644
index 000000000000..936b07cd0eee
--- /dev/null
+++ b/net-mail/muchsync/muchsync-3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Synchronizes mail messages and notmuch tags across machines"
+HOMEPAGE="http://www.muchsync.org/"
+SRC_URI="http://www.muchsync.org/src/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-db/sqlite:3
+ dev-libs/openssl:0=
+ dev-libs/xapian:=
+ net-mail/notmuch:=
+ "
+RDEPEND="${DEPEND}
+ net-misc/openssh
+ "
diff --git a/net-mail/muchsync/muchsync-4.ebuild b/net-mail/muchsync/muchsync-4.ebuild
new file mode 100644
index 000000000000..936b07cd0eee
--- /dev/null
+++ b/net-mail/muchsync/muchsync-4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Synchronizes mail messages and notmuch tags across machines"
+HOMEPAGE="http://www.muchsync.org/"
+SRC_URI="http://www.muchsync.org/src/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-db/sqlite:3
+ dev-libs/openssl:0=
+ dev-libs/xapian:=
+ net-mail/notmuch:=
+ "
+RDEPEND="${DEPEND}
+ net-misc/openssh
+ "
diff --git a/net-mail/nmzmail/Manifest b/net-mail/nmzmail/Manifest
new file mode 100644
index 000000000000..2021b9064f3d
--- /dev/null
+++ b/net-mail/nmzmail/Manifest
@@ -0,0 +1,5 @@
+DIST nmzmail-1.1.tar.gz 94326 SHA256 5cfddc89b4e99c8a320d5db655d3153e35bc4455f07c83f1978811477705c428 SHA512 c5b689c587fc0d0359c59a02a2a1f519753e7c8a10aecd2c519f0e788b95ed1023a18bf0d2ee39292f36aae71eebf43d2463ceef7857d01358e56c8f0bd70249 WHIRLPOOL fa8db04173283021dde711ceddf68d3b0420b306b1e920a4580b7b4b7029740ed52d8fcebe972ba6fda30e92024054e1fca10807209478468dadf14173e680df
+EBUILD nmzmail-1.1.ebuild 539 SHA256 93f489ad6a9667d756925b0d7561b3cb976fc5c04501b4696307b5efc9d27513 SHA512 7a8a4a2ace4b639210eb3609b084cf87e51e19674370e4f59be17599a616190a87a27a029c427012324a6e752f012892605a35d409cb774c6c978cb8dcd09d57 WHIRLPOOL 0d0d4d7879220c138bbe132faa7c05d6fe282ba4fbc337f0c390159811544ff91b212657c33939232035406fa167538fd9c3346ebc37e964d9007625c29d0c04
+MISC ChangeLog 2423 SHA256 ccf7d98b116f88f3d8a116a122a115782411ced8053cb0e1cf13866d66416e4f SHA512 e5e3979e8abe8c89697ae75137c70398ab1c39851c2c53839e41c54541bd71dae53caded84b19b0d3c465d059eea2a8444204898613dbba3b5d256ff119e5b05 WHIRLPOOL 422c11a7f7d2ea96314dc6d0f027c7d24b5dba1d061ff2ede5146b625ba33aeb912c6c8f9f730352ca1ffdcaeafa9bb770df549a904b3883e8e91cfe9d8f5811
+MISC ChangeLog-2015 1632 SHA256 e5f1929308064bfcc41d1c560c2c794e9e01068518bea22a853d1b9844e32cd4 SHA512 c1ad229ac6d329c952e1dc23305557182dc8b8fba8978b87edddba2dc9024dc686727cb0c739afe835ae25d89f2a3d7cb0407493c1eb4f12d50203afbd9e5e0e WHIRLPOOL 91be60f59f649238eef0b9a8157cce0e2248bf7bf0a712a279e9aa8de948ff1d0e91675b0c92bee86fd80a93d44aedd3f0acef8e61cfc0e0db13ab1339f74791
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/nmzmail/metadata.xml b/net-mail/nmzmail/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/nmzmail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/nmzmail/nmzmail-1.1.ebuild b/net-mail/nmzmail/nmzmail-1.1.ebuild
new file mode 100644
index 000000000000..9430669eb602
--- /dev/null
+++ b/net-mail/nmzmail/nmzmail-1.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="Fast mail searching for mutt using namazu"
+HOMEPAGE="http://www.ecademix.com/JohannesHofmann/nmzmail.html"
+SRC_URI="http://www.ecademix.com/JohannesHofmann/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="sys-libs/readline"
+RDEPEND="${DEPEND}
+ >=app-text/namazu-2"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ dodoc README AUTHORS ChangeLog || die
+}
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
new file mode 100644
index 000000000000..3ab63a44f3ed
--- /dev/null
+++ b/net-mail/notmuch/Manifest
@@ -0,0 +1,13 @@
+AUX 50notmuch-gentoo.el 291 SHA256 68c0ecfd3d10246fb65ec48b097c1b477ce33f44014f602f903c16b752ba7d3b SHA512 80612ba5ae90f2fbb24b38bae99b660c5e3d58e7390a4bb3a0e5e9b49092e38f189347344286072617935abf7ea08b538f68e8227705ca0b2b44985c4c0d024b WHIRLPOOL c149cfb298cb51bef064c433481444dbd21a20903ee8560ae758a4b4fc0dd983db789b2d1343dc8b30e5e4a0443ee636e5742ba471fe981eb2262ad03567fd22
+DIST database-v1.tar.xz 204876 SHA256 4299e051b10e1fa7b33ea2862790a09ebfe96859681804e5251e130f800e69d2 SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 WHIRLPOOL c3a4d99405ce5143ee2ac0cbdebdabbee0213ecfcb25615612b1577165547dd7c5b6b1d1930302dc3a8afc92b3691a6a4cc48255e91b08a297f9d2510e789233
+DIST notmuch-0.23.7.tar.gz 692230 SHA256 f11bb10d71945f6c3f16d23117afc70810aa485878e66bb4bf43cc3f08038913 SHA512 e71da3bd6ce1b344aae79b277b695a4668d4fe1b8838618d6970a0b27df9867bac66a3240473ef31fc30ed8af2b0a558203ed5ffb34da873c991b1ecc6c08522 WHIRLPOOL 0b14cd6fb2b584b27b7893bb9c45724725069a6bc980cfe52f80ec3f6ec95c3a8f631975875f44b46b2799d5a0c31a62ff845b2400b7389cd8aa6f55361a0851
+DIST notmuch-0.24.2.tar.gz 709272 SHA256 aa76a96684d5c5918d940182b6fe40f7d6745f144476fdda57388479d586cc51 SHA512 fcdc4ad5a65c57dd3077d93aeb384378f8dee105362fa8c2755daf14bbeb5376f8d1580fd79c8bd8e8d2d88cd44846ca9972b2f942133a447eb99d08ef9056dc WHIRLPOOL 679094ca2bd57a3b2f0f4ae5f2022c8bd1922e55fb095780b67de13c75758b4daa5892843e187405f294ed406ce47922bd6b854759984c5518bad8dc058236a6
+DIST notmuch-0.25.1.tar.gz 882141 SHA256 b4bf09ec9b7b64180704faa26d66cad5f911a5a00ef812da34cb02c3f8872831 SHA512 989acc5eda7d2f9512741c8ae850e34c6fbbdd5fa5fa23f25a6096250d414919007c5cfda68d6f48606c0a024692e082a28cb358e6d3fc2afc0502b5bcbf5f54 WHIRLPOOL 391d0bc17e55967ed6e4c2d9a7876eea93e992b190e083343e488c153697053284cee8d01687c0a23e1063de29d933f358acb6bc723c3307eeb01706e920f79b
+DIST notmuch-0.25.tar.gz 882093 SHA256 65d28d1f783d02629039f7d15d9a2bada147a7d3809f86fe8d13861b0f6ae60b SHA512 5f4961818c8c0350e3fbbedd86f407a55fecf211971003a770d99ea2db89bb6b98c2294e114d6abff4d40985f506b7f4b52736a7ee5c78390eb4f2363a65c6f5 WHIRLPOOL 94ec2cb30c92b8c88da9b66f2a8afa7c01977671cdc018113a1716414a8555a9bec7d77b933df6dd4c3c339e3a2dfd46319f86725f1b84b608e7066c60b91f1c
+EBUILD notmuch-0.23.7.ebuild 4581 SHA256 f13f26ec138064e0d0c47bc1e6fb1ef88b8b8010f75c1e2f5130d3f9368289ac SHA512 005d76df24ebfb59fd13179db01ce00f0281e02af04a73ccb9b4504c7b9a37e765a6a521d56b7507c80d47365eb92a98d5c53a04081b5ff497e44568444ac243 WHIRLPOOL ff52919b393837a634bff35fb16e39f0d8631f309db70752088ae8f6a74e0f70c8c4df283c884ca719baa1e79d2aa939613bcd7013e12673761b71623b886b82
+EBUILD notmuch-0.24.2.ebuild 4769 SHA256 df06ba75b6857bc20b4fe6009f8981133a18e7cda8a53093c403a2239c8302bf SHA512 8d671d77b214e2476c7df568e15cbabd3767a4872c48b178b76680dd4dd58f364be9d9ce0b3a27058896a0bba846e8b3eec8664841e387512fff299623664781 WHIRLPOOL 981b325a7505ac842e12f69bbda9a11cd3e0dad647ceb1186085409390266421e430845cef4069f89d1dad60bdd07adb1b388c830ef0460a9e98678f306aa185
+EBUILD notmuch-0.25.1.ebuild 4771 SHA256 258f9216fbecf00a261244176c53a3a5898e395d2fd1f5e9a5aca5355913b7bc SHA512 489356e9dd86490664d923721391390c7eeda813237d88a28cf9cf84202f853a7b8bece856e47d25cefbd567734e7e04cf828105045c4a86c17d85f6c7262a21 WHIRLPOOL 15b48892dfce788e03e9e0c0c5da923bf0b6f2914567a365eaa71c0723094fdf00fba2342be4bcbe47776db458fc4b74e82d51570c24c24345b991e98cc5fd0c
+EBUILD notmuch-0.25.ebuild 4848 SHA256 430392ad598a89f447ec77c58c31f5119d60fff4539f8bf58ab65f962cf6f62d SHA512 e51a6342a6507fb1bcd1625d24652bab92840afe89575d574a5ebbe733a81b458a1119f210cf25384436bfd50df5eba69e26f3347b70d7068efd0d2e35400629 WHIRLPOOL 48bdf626e9378fd41e4c56dfd503ccc6db479c096d7247b13e1274dc256788bcb576e384256e0f15ea115fe1efc7c0c31d4d31f21104ce2b753290a4d1dc30c6
+MISC ChangeLog 10651 SHA256 faca6ac21134429e6c54b3fa502dae96f817f6b9bab5294ee0d2b5c29ced4194 SHA512 874bcb5c28f9e272669a84625a9243b4da23aeb4ca9178b2e482d291c507485fea581fd392e786c2696183238bc567d423bb117e45673ba0455903a0bb811275 WHIRLPOOL ced47134beac267e59b367473f35529bc98f3179d04b4e49a8dd1c92d36801ce66fbf9b9f3f8c8a0ea4bd5057416ddcd98c68b771a73f8b5fe5d058c411fc481
+MISC ChangeLog-2015 35051 SHA256 2d59738e71e8f4275c93c7c9f40c5bfaee5119d8b9b90ec6e986a5347616d308 SHA512 40bf45e0e9265a2298d54fe2c7bcbeadb4deb0659613b6c694416e802f41f42e965040a929fc8c88efec15e37a6a0b556fff04d6c88c4e43e3bd5c1d785a0b67 WHIRLPOOL 4c036cf3e69564985c2eff55a1147eea26698d45749a153ca5b6648ebef66c606eff5ac57d87d300654f23cd865b9d5da53ca260c640d345c332d0c524067191
+MISC metadata.xml 1117 SHA256 adf9645ab8b2563f2c4ca3bff2e28cf057430b310655c5f53961f97ec06f6e4a SHA512 c420e475e5d16d35cceb1162c14eae143e5f539e771561d525af4ab0f0853e700b9a3209ee1a7aa9b4269c235737304c435d463cd8b1cf201402152ff0a6a4f3 WHIRLPOOL e7e580a06424bde5ae3d1ee9e645d7131ab39923ff04de7fed5dc9e23460640f1b0711f1dce3a57230c3c067231eb7491dc04d82ff3c8d72478edafc96556781
diff --git a/net-mail/notmuch/files/50notmuch-gentoo.el b/net-mail/notmuch/files/50notmuch-gentoo.el
new file mode 100644
index 000000000000..95e06246fea4
--- /dev/null
+++ b/net-mail/notmuch/files/50notmuch-gentoo.el
@@ -0,0 +1,7 @@
+(add-to-list 'load-path "@SITELISP@")
+(if (boundp 'image-load-path)
+ (add-to-list 'image-load-path "@SITEETC@" t))
+(autoload 'notmuch "notmuch" nil t)
+(autoload 'notmuch-search "notmuch" nil t)
+(autoload 'notmuch-hello "notmuch-hello" nil t)
+(autoload 'notmuch-show "notmuch-show" nil t)
diff --git a/net-mail/notmuch/metadata.xml b/net-mail/notmuch/metadata.xml
new file mode 100644
index 000000000000..c91b250fcc97
--- /dev/null
+++ b/net-mail/notmuch/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <use>
+ <flag name="doc">Install API documentation</flag>
+ <flag name="crypt">Support decryption and verification of PGP/MIME
+ messages and in Emacs UI - encryption; support also S/MIME
+ signature verification since version 0.22</flag>
+ <flag name="emacs">Install Emacs UI (the main one)</flag>
+ <flag name="mutt">Install helper script for Mutt</flag>
+ <flag name="nmbug">Install experimental tag sharing /
+ pseudo-bug-tracking script for Notmuch
+ (see http://notmuchmail.org/nmbug/)</flag>
+ <flag name="valgrind">Depend on dev-util/vagrind for test suite</flag>
+ </use>
+ <longdescription lang="en">
+ Notmuch is a system for indexing, searching, reading, and tagging large
+ collections of email messages in maildir or mh format. It uses the
+ Xapian library to provide fast, full-text search with a convenient
+ search syntax.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/notmuch/notmuch-0.23.7.ebuild b/net-mail/notmuch/notmuch-0.23.7.ebuild
new file mode 100644
index 000000000000..4f46e03f46ac
--- /dev/null
+++ b/net-mail/notmuch/notmuch-0.23.7.ebuild
@@ -0,0 +1,200 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
+ distutils-r1 toolchain-funcs
+
+DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
+HOMEPAGE="http://notmuchmail.org/"
+SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
+ test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
+
+LICENSE="GPL-3"
+# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
+# meant to be binary backward compatible.
+SLOT="0/4"
+KEYWORDS="~alpha amd64 x86"
+REQUIRED_USE="
+ nmbug? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( crypt emacs python valgrind )
+ "
+IUSE="crypt doc emacs mutt nmbug python test valgrind"
+
+CDEPEND="
+ !!<app-shells/bash-completion-1.9
+ >=dev-libs/glib-2.22:2
+ >=dev-libs/gmime-2.6.20-r2:2.6
+ >=dev-libs/xapian-1.2.7-r2:=
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=sys-libs/zlib-1.2.5.2
+ sys-libs/talloc
+ crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
+ emacs? ( >=virtual/emacs-23 )
+ python? ( ${PYTHON_DEPS} )
+ "
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
+ >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
+ crypt? ( app-crypt/gnupg dev-libs/openssl ) )
+ valgrind? ( dev-util/valgrind )
+ "
+RDEPEND="${CDEPEND}
+ crypt? ( app-crypt/gnupg )
+ nmbug? ( dev-vcs/git )
+ mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
+ dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu
+ virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long
+ virtual/perl-Pod-Parser )
+ "
+
+DOCS=( AUTHORS NEWS README )
+SITEFILE="50${PN}-gentoo.el"
+MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
+
+bindings() {
+ local ret=0
+
+ if use $1; then
+ pushd bindings/$1 || die
+ shift
+ "$@"
+ ret=$?
+ popd || die
+ fi
+
+ return $ret
+}
+
+pkg_pretend() {
+ if has_version '<net-mail/notmuch-0.18'; then
+ ewarn
+ ewarn "There are few not backward compatible changes between"
+ ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
+ ewarn "(0.18 section) for details before first use!"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use emacs; then
+ elisp-need-emacs 23 || die "Emacs version too low"
+ fi
+}
+
+src_unpack() {
+ unpack "${P}".tar.gz
+ if use test; then
+ mkdir -p "${S}"/test/test-databases || die
+ cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ bindings python distutils-r1_src_prepare
+ bindings python mv README README-python || die
+ mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
+
+ # assure that new Makefile.config will be generated
+ rm -f Makefile.config || die
+
+ if use test; then
+ append-cflags -g
+ append-cxxflags -g
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --bashcompletiondir="$(get_bashcompdir)"
+ --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
+ --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
+ --without-ruby
+ --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
+ $(use_with emacs)
+ $(use_with doc api-docs)
+ )
+ tc-export CC CXX
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ V=1 default
+ bindings python distutils-r1_src_compile
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ emake notmuch-mutt.1
+ popd || die
+ fi
+
+ if use doc; then
+ pydocs() {
+ pushd docs || die
+ emake html
+ rm -r html/_sources || die
+ rm html/{objects.inv,.buildinfo} || die
+ mkdir -p ../html && mv html ../html/python || die
+ popd || die
+ }
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
+ fi
+}
+
+src_test() {
+ pax-mark -m notmuch
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
+ pax-mark -ze notmuch
+}
+
+src_install() {
+ default
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+
+ if use nmbug; then
+ dobin devel/nmbug/nmbug
+ dobin devel/nmbug/notmuch-report
+ fi
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ dobin notmuch-mutt
+ doman notmuch-mutt.1
+ insinto /etc/mutt
+ doins notmuch-mutt.rc
+ dodoc README-mutt
+ popd || die
+ fi
+
+ DOCS="" bindings python distutils-r1_src_install
+ use doc && bindings python dodoc -r html
+}
+
+pkg_preinst() {
+ if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
+ elog "To enable notmuch support in mutt, add the following line into"
+ elog "your mutt config file, please:"
+ elog ""
+ elog " source /etc/mutt/notmuch-mutt.rc"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/notmuch/notmuch-0.24.2.ebuild b/net-mail/notmuch/notmuch-0.24.2.ebuild
new file mode 100644
index 000000000000..a16042a37e03
--- /dev/null
+++ b/net-mail/notmuch/notmuch-0.24.2.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
+ distutils-r1 toolchain-funcs
+
+DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
+HOMEPAGE="http://notmuchmail.org/"
+SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
+ test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
+
+LICENSE="GPL-3"
+# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
+# meant to be binary backward compatible.
+SLOT="0/4"
+KEYWORDS="~alpha amd64 x86"
+REQUIRED_USE="
+ nmbug? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( crypt emacs python valgrind )
+ "
+IUSE="crypt doc emacs mutt nmbug python test valgrind"
+
+CDEPEND="
+ !!<app-shells/bash-completion-1.9
+ >=dev-libs/glib-2.22:2
+ >=dev-libs/gmime-2.6.20-r2:2.6
+ >=dev-libs/xapian-1.2.7-r2:=
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=sys-libs/zlib-1.2.5.2
+ sys-libs/talloc
+ crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
+ emacs? ( >=virtual/emacs-23 )
+ python? ( ${PYTHON_DEPS} )
+ "
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
+ >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
+ crypt? ( app-crypt/gnupg dev-libs/openssl ) )
+ valgrind? ( dev-util/valgrind )
+ "
+RDEPEND="${CDEPEND}
+ crypt? ( app-crypt/gnupg )
+ nmbug? ( dev-vcs/git )
+ mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
+ dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu
+ virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long
+ virtual/perl-Pod-Parser )
+ "
+
+DOCS=( AUTHORS NEWS README )
+SITEFILE="50${PN}-gentoo.el"
+MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
+
+bindings() {
+ local ret=0
+
+ if use $1; then
+ pushd bindings/$1 || die
+ shift
+ "$@"
+ ret=$?
+ popd || die
+ fi
+
+ return $ret
+}
+
+pkg_pretend() {
+ if has_version '<net-mail/notmuch-0.18'; then
+ ewarn
+ ewarn "There are few not backward compatible changes between"
+ ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
+ ewarn "(0.18 section) for details before first use!"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use emacs; then
+ elisp-need-emacs 23 || die "Emacs version too low"
+ fi
+}
+
+src_unpack() {
+ unpack "${P}".tar.gz
+ if use test; then
+ mkdir -p "${S}"/test/test-databases || die
+ cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ bindings python distutils-r1_src_prepare
+ bindings python mv README README-python || die
+ mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
+
+ # assure that new Makefile.config will be generated
+ rm -f Makefile.config || die
+
+ if use test; then
+ append-cflags -g
+ append-cxxflags -g
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --bashcompletiondir="$(get_bashcompdir)"
+ --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
+ --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
+ --without-desktop
+ --without-ruby
+ --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
+ $(use_with emacs)
+ $(use_with doc api-docs)
+ )
+ tc-export CC CXX
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ V=1 default
+ bindings python distutils-r1_src_compile
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ emake notmuch-mutt.1
+ popd || die
+ fi
+
+ if use doc; then
+ pydocs() {
+ pushd docs || die
+ emake html
+ rm -r html/_sources || die
+ rm html/{objects.inv,.buildinfo} || die
+ mkdir -p ../html && mv html ../html/python || die
+ popd || die
+ }
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
+ fi
+}
+
+src_test() {
+ pax-mark -m notmuch
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
+ pax-mark -ze notmuch
+}
+
+src_install() {
+ default
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+
+ if use nmbug; then
+ dobin devel/nmbug/nmbug
+ dobin devel/nmbug/notmuch-report
+ fi
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ dobin notmuch-mutt
+ doman notmuch-mutt.1
+ insinto /etc/mutt
+ doins notmuch-mutt.rc
+ dodoc README-mutt
+ popd || die
+ fi
+
+ DOCS="" bindings python distutils-r1_src_install
+ use doc && bindings python dodoc -r html
+}
+
+pkg_preinst() {
+ if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
+ elog "To enable notmuch support in mutt, add the following line into"
+ elog "your mutt config file, please:"
+ elog ""
+ elog " source /etc/mutt/notmuch-mutt.rc"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ if has_version '<dev-libs/xapian-1.4'; then
+ elog "Regular expression searches supported for from: and subject:"
+ elog "require >=dev-libs/xapian-1.4."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/notmuch/notmuch-0.25.1.ebuild b/net-mail/notmuch/notmuch-0.25.1.ebuild
new file mode 100644
index 000000000000..a40a43dd00f9
--- /dev/null
+++ b/net-mail/notmuch/notmuch-0.25.1.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
+ distutils-r1 toolchain-funcs
+
+DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
+HOMEPAGE="http://notmuchmail.org/"
+SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
+ test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
+
+LICENSE="GPL-3"
+# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
+# meant to be binary backward compatible.
+SLOT="0/5"
+KEYWORDS="~alpha ~amd64 ~x86"
+REQUIRED_USE="
+ nmbug? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( crypt emacs python valgrind )
+ "
+IUSE="crypt doc emacs mutt nmbug python test valgrind"
+
+CDEPEND="
+ !!<app-shells/bash-completion-1.9
+ >=dev-libs/glib-2.22:2
+ >=dev-libs/gmime-2.6.20-r2:2.6
+ >=dev-libs/xapian-1.2.7-r2:=
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=sys-libs/zlib-1.2.5.2
+ sys-libs/talloc
+ crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
+ emacs? ( >=virtual/emacs-23 )
+ python? ( ${PYTHON_DEPS} )
+ "
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
+ >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
+ crypt? ( app-crypt/gnupg dev-libs/openssl ) )
+ valgrind? ( dev-util/valgrind )
+ "
+RDEPEND="${CDEPEND}
+ crypt? ( app-crypt/gnupg )
+ nmbug? ( dev-vcs/git )
+ mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
+ dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu
+ virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long
+ virtual/perl-Pod-Parser )
+ "
+
+DOCS=( AUTHORS NEWS README )
+SITEFILE="50${PN}-gentoo.el"
+MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
+
+bindings() {
+ local ret=0
+
+ if use $1; then
+ pushd bindings/$1 || die
+ shift
+ "$@"
+ ret=$?
+ popd || die
+ fi
+
+ return $ret
+}
+
+pkg_pretend() {
+ if has_version '<net-mail/notmuch-0.18'; then
+ ewarn
+ ewarn "There are few not backward compatible changes between"
+ ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
+ ewarn "(0.18 section) for details before first use!"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use emacs; then
+ elisp-need-emacs 23 || die "Emacs version too low"
+ fi
+}
+
+src_unpack() {
+ unpack "${P}".tar.gz
+ if use test; then
+ mkdir -p "${S}"/test/test-databases || die
+ cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ bindings python distutils-r1_src_prepare
+ bindings python mv README README-python || die
+ mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
+
+ # assure that new Makefile.config will be generated
+ rm -f Makefile.config || die
+
+ if use test; then
+ append-cflags -g
+ append-cxxflags -g
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --bashcompletiondir="$(get_bashcompdir)"
+ --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
+ --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
+ --without-desktop
+ --without-ruby
+ --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
+ $(use_with emacs)
+ $(use_with doc api-docs)
+ )
+ tc-export CC CXX
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ V=1 default
+ bindings python distutils-r1_src_compile
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ emake notmuch-mutt.1
+ popd || die
+ fi
+
+ if use doc; then
+ pydocs() {
+ pushd docs || die
+ emake html
+ rm -r html/_sources || die
+ rm html/{objects.inv,.buildinfo} || die
+ mkdir -p ../html && mv html ../html/python || die
+ popd || die
+ }
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
+ fi
+}
+
+src_test() {
+ pax-mark -m notmuch
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
+ pax-mark -ze notmuch
+}
+
+src_install() {
+ default
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+
+ if use nmbug; then
+ dobin devel/nmbug/nmbug
+ dobin devel/nmbug/notmuch-report
+ fi
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ dobin notmuch-mutt
+ doman notmuch-mutt.1
+ insinto /etc/mutt
+ doins notmuch-mutt.rc
+ dodoc README-mutt
+ popd || die
+ fi
+
+ DOCS="" bindings python distutils-r1_src_install
+ use doc && bindings python dodoc -r html
+}
+
+pkg_preinst() {
+ if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
+ elog "To enable notmuch support in mutt, add the following line into"
+ elog "your mutt config file, please:"
+ elog ""
+ elog " source /etc/mutt/notmuch-mutt.rc"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ if has_version '<dev-libs/xapian-1.4'; then
+ elog "Regular expression searches supported for from: and subject:"
+ elog "require >=dev-libs/xapian-1.4."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/notmuch/notmuch-0.25.ebuild b/net-mail/notmuch/notmuch-0.25.ebuild
new file mode 100644
index 000000000000..5c7f9d0860ec
--- /dev/null
+++ b/net-mail/notmuch/notmuch-0.25.ebuild
@@ -0,0 +1,208 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
+ distutils-r1 toolchain-funcs
+
+DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
+HOMEPAGE="http://notmuchmail.org/"
+SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
+ test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
+
+LICENSE="GPL-3"
+# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
+# meant to be binary backward compatible.
+SLOT="0/5"
+KEYWORDS="~alpha ~amd64 ~x86 ~x64-solaris"
+REQUIRED_USE="
+ nmbug? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( crypt emacs python valgrind )
+ "
+IUSE="crypt doc emacs mutt nmbug python test valgrind"
+
+CDEPEND="
+ !!<app-shells/bash-completion-1.9
+ >=dev-libs/glib-2.22:2
+ >=dev-libs/gmime-2.6.20-r2:2.6
+ >=dev-libs/xapian-1.2.7-r2:=
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=sys-libs/zlib-1.2.5.2
+ sys-libs/talloc
+ crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
+ emacs? ( >=virtual/emacs-23 )
+ python? ( ${PYTHON_DEPS} )
+ "
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
+ >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
+ crypt? ( app-crypt/gnupg dev-libs/openssl ) )
+ valgrind? ( dev-util/valgrind )
+ "
+RDEPEND="${CDEPEND}
+ crypt? ( app-crypt/gnupg )
+ nmbug? ( dev-vcs/git )
+ mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
+ dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu
+ virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long
+ virtual/perl-Pod-Parser )
+ "
+
+DOCS=( AUTHORS NEWS README )
+SITEFILE="50${PN}-gentoo.el"
+MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
+
+bindings() {
+ local ret=0
+
+ if use $1; then
+ pushd bindings/$1 || die
+ shift
+ "$@"
+ ret=$?
+ popd || die
+ fi
+
+ return $ret
+}
+
+pkg_pretend() {
+ if has_version '<net-mail/notmuch-0.18'; then
+ ewarn
+ ewarn "There are few not backward compatible changes between"
+ ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
+ ewarn "(0.18 section) for details before first use!"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use emacs; then
+ elisp-need-emacs 23 || die "Emacs version too low"
+ fi
+}
+
+src_unpack() {
+ unpack "${P}".tar.gz
+ if use test; then
+ mkdir -p "${S}"/test/test-databases || die
+ cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ bindings python distutils-r1_src_prepare
+ bindings python mv README README-python || die
+ mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
+
+ # assure that new Makefile.config will be generated
+ rm -f Makefile.config || die
+
+ if use test; then
+ append-cflags -g
+ append-cxxflags -g
+ fi
+
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
+}
+
+src_configure() {
+ local myeconfargs=(
+ --bashcompletiondir="$(get_bashcompdir)"
+ --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
+ --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
+ --without-desktop
+ --without-ruby
+ --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
+ $(use_with emacs)
+ $(use_with doc api-docs)
+ )
+ tc-export CC CXX
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ V=1 default
+ bindings python distutils-r1_src_compile
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ emake notmuch-mutt.1
+ popd || die
+ fi
+
+ if use doc; then
+ pydocs() {
+ pushd docs || die
+ emake html
+ rm -r html/_sources || die
+ rm html/{objects.inv,.buildinfo} || die
+ mkdir -p ../html && mv html ../html/python || die
+ popd || die
+ }
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
+ fi
+}
+
+src_test() {
+ pax-mark -m notmuch
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
+ pax-mark -ze notmuch
+}
+
+src_install() {
+ default
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+
+ if use nmbug; then
+ dobin devel/nmbug/nmbug
+ dobin devel/nmbug/notmuch-report
+ fi
+
+ if use mutt; then
+ pushd contrib/notmuch-mutt || die
+ dobin notmuch-mutt
+ doman notmuch-mutt.1
+ insinto /etc/mutt
+ doins notmuch-mutt.rc
+ dodoc README-mutt
+ popd || die
+ fi
+
+ DOCS="" bindings python distutils-r1_src_install
+ use doc && bindings python dodoc -r html
+}
+
+pkg_preinst() {
+ if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
+ elog "To enable notmuch support in mutt, add the following line into"
+ elog "your mutt config file, please:"
+ elog ""
+ elog " source /etc/mutt/notmuch-mutt.rc"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ if has_version '<dev-libs/xapian-1.4'; then
+ elog "Regular expression searches supported for from: and subject:"
+ elog "require >=dev-libs/xapian-1.4."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/net-mail/offlineimap/Manifest b/net-mail/offlineimap/Manifest
new file mode 100644
index 000000000000..47a5885e0285
--- /dev/null
+++ b/net-mail/offlineimap/Manifest
@@ -0,0 +1,19 @@
+AUX offlineimap-6.5.3.1-darwin10.patch 361 SHA256 f736738c3f263a359e5529cea36c905b678407084ba9ab56f648274d685517da SHA512 2183ae09cb9ed489ea447180f7b50e9e023a4630f8612b829e84499257590e9bb99ac0aa65cb45073c4a1ed5d537151df451b35aeaa45b5a1eb9e063246e5a02 WHIRLPOOL 669551a0a48642e48b1bef640c74d4b646b86e1db2b651671eb3c5a6027bf04d82439a03ef16b7bad7c6da7f5ebe5a8ca9cf2d0bcf7db4b1ef0db6e76bd7c74c
+AUX offlineimap-7.0.3-darwin10.patch 316 SHA256 cdde198c638e972c3597dcc3ab5cd93d23157dfd2f566a16b9f552746a10f9ae SHA512 b195392db8e39264891b91c855cc0b1cfeb76e7b0a22281e509c17d4ae07458e980f7810c223f2a835f01f4ba63c1f9592c934121e763bb01846f20c51013186 WHIRLPOOL 4281fd78ce45b98d62aac99320cdfecca0a6a2dfa496df8b5276d06aad32e2726ed2d52413bc165c4eb527f806a8da47dce00a6f0f4f06c23005b58c035b9cc4
+DIST offlineimap-6.5.6.tar.gz 187801 SHA256 650fa588bdf86624575a5196fa12e9059b74673a51593718d058365230189abd SHA512 3f7cb63d00486de2d648aa9dd3637ce252dd100bc8237742d11f749726b2b14907c07c802ba0fd5891c88f5062f9a2d05ebc78ceee8c30981f4c4579c3143d6e WHIRLPOOL 0ca66a196683555c5a9e193ccb0a84a8104b2a7715a3839f364d77d1376637a4938b39fa7e9a47f925cde2516a4b0ace94d9e4f9d62dcff50501510c834cb023
+DIST offlineimap-6.7.0.3.tar.gz 679221 SHA256 0b7cd43501d1a65fb5e7e4f3a5d0a61f61435ec6b3a7385cc146e924eb6b03ed SHA512 21800eb14e814fa04b983e9718a5780deda4c99ae55ef900ccec9f1e65f9bb783c3469e00e6595c7dfddb60d760a6b3c98ae979da3219de51c8ae107ff1c077a WHIRLPOOL d8983260f309f427abcab65bc539bf8ff7ab38168643a863cc3d7e10a85dc864e4a6a11511a1cba32d2eb74833714f9b3f499b7d14d28800174c58816d59608c
+DIST offlineimap-7.0.14.tar.gz 698081 SHA256 19494ecad4d7234ac69480abb7462d0cdcfcec444b55f5381651057d9fdfad44 SHA512 05d5ee81e5b0483038ad3bf8ba27f7b57423a75a3456df192c0c8b7926d7252424ef8f357f99dee2fa2f2590341e9f95d225ee2ad7d01af3466fb9d5488541f9 WHIRLPOOL a791cb67f1e51197fce9005ffbbbbdb8f4ee986d78a7ba46feff6aed6b50e17c5e57a9fa03bba9db0f90325b92c23b9d76071d460f6fec60fa878616cfc6544a
+DIST offlineimap-7.1.0.tar.gz 698600 SHA256 dc998d1032f0e4f944cae0e584a146b70ea732422fc52c909eebe6e8f95b1ae4 SHA512 9e9d5ea2b58dc212c9b69adb701fb4cd1ac1a7c8af90623dcfba3115ee7e1f63cc8569c352bae8f1fe09eb8c9255c39d0bf947dfb5d683ee4b03c0c822cb192d WHIRLPOOL dbf33188c790b43e4b7756a1be6c1c7950bb192e079ba729a8ec159fb3d07a505e5892dc08b2cf8b7b55e2d3dc998f74354339e1c8ed6d3a0e190a5e904bbfdc
+DIST offlineimap-7.1.1.tar.gz 701776 SHA256 a624f8a77eae664dd458be47c5306c28911d4a1f788ff5641d7bb37e01ecb703 SHA512 a04a8bdbd2b22f8b74681707faa4fcd768a11abd4eeab1e3b6fd7e7851d97c5c7f7db56c7e7e4809a7cb661a357c38941ea320d9bcb0fc509b3f79b223a0c602 WHIRLPOOL 8fe84b4cd82c5e9d8816b4dce6aafae88ad718375927f6aa7cd08fd9b010ea0550a420045ad8f0c376102a0926c1c9ff404802b528d20cf3bf2587ab508f247d
+DIST offlineimap-7.1.2.tar.gz 708014 SHA256 7203435e34f73e90d1833b72c49a859decf7b5828384a2648ee4b2d1ef3bdc66 SHA512 14bf6c561ad9cde72f71651970b98380139a016b689c75ed150027f8b71d9f1a646f6738e8fd74d6328103b25c17985ac494d9929568f90bb4be37b71a4de22d WHIRLPOOL 961dcdf759266f90a9f1831ef8b2b85457488bbd75fd548d4ba43a8c8be7df3c62a3dd5fea7874c21882cd58a5697ab2faac4f70661f322b48445591634ca9ac
+DIST offlineimap-7.1.3.tar.gz 710766 SHA256 02fc106904ddeb3fb64b3e17d3838ed2223e5ade0018900751b1ba8111b45f45 SHA512 bf24be740b0e7607a1b53df7e872b5dd4b4c720601d99bd88a7ac8add078e5512b62b18c12177e28a00f510aaa8a48e25be82decfdd7ae2da76b671d44071e4a WHIRLPOOL 5a676d6e8ccf887c4a8d903ae969144d42d6652ed85327fcc2fc27c260f41bbdbd03d4d0e8dbc91b20908d1ae409d6d7d0aa847a6eed037237915c5ca2acb3a9
+EBUILD offlineimap-6.5.6.ebuild 2378 SHA256 acf180a6601f3cf0926e705b0187495e27653027bde3338ecce4866fcb39484c SHA512 13e3f2a90322e9fe125e1d5f61f5df3f43e0db647aab7d289e4012e767fb7c50c76b844551ff6cc42cbc0650700c704c0ae983d80cd4221c27568da1d9e939d4 WHIRLPOOL 7d7a4ccfb4d633acfeff67037266679b348922dbee1ad6b9239fb54e9db493ad79ed960d3ad871213fa1816f1ece5e6ae4d506dd227a3b798d10824e3e0b7471
+EBUILD offlineimap-6.7.0.3.ebuild 1785 SHA256 6ec3a9aa8a239bbc8d09883e1ec754aab6758a3c37eadc4cdc6bb0cb9c505b5a SHA512 16fa39e4875b3b32526730446bec76d2ac905fbfda2e83c4fcef43004d6c551eed58189dd3a55ad1cd23761d5577d7d1af37d3b92a46df39bf4fbba25ee0cb5e WHIRLPOOL 3a4440d25b4ef7a26e7c901bcb654205ccc579b0da2d5a2c3bd95f7f9dad6f3aa44e5f4932c5fc565b73c06c698a93a65663172dd1bb85cc8b1dd6c2fc7fba5a
+EBUILD offlineimap-7.0.14.ebuild 1636 SHA256 61a32ca32846c540b3343b45ee5519aaf04b9d676545cf477a491212bab7af32 SHA512 033e5823d7eb6f0aebf8efab0e926f634f4df7299a1faa8c8df11b6b6e72255abb8596197deff53114cc9908d95ea7194d3f3cef2d4b89f9132e4479721b1c22 WHIRLPOOL d4b5cd025847eb4eecd90e19c20d255a1d8d7cda8403f87c357faaf7a34c6b28abc1a8e8187fe67bde1987942b1ad9b45210e467addf4e36ecf2fe3982b2026b
+EBUILD offlineimap-7.1.0.ebuild 1636 SHA256 61a32ca32846c540b3343b45ee5519aaf04b9d676545cf477a491212bab7af32 SHA512 033e5823d7eb6f0aebf8efab0e926f634f4df7299a1faa8c8df11b6b6e72255abb8596197deff53114cc9908d95ea7194d3f3cef2d4b89f9132e4479721b1c22 WHIRLPOOL d4b5cd025847eb4eecd90e19c20d255a1d8d7cda8403f87c357faaf7a34c6b28abc1a8e8187fe67bde1987942b1ad9b45210e467addf4e36ecf2fe3982b2026b
+EBUILD offlineimap-7.1.1.ebuild 1636 SHA256 61a32ca32846c540b3343b45ee5519aaf04b9d676545cf477a491212bab7af32 SHA512 033e5823d7eb6f0aebf8efab0e926f634f4df7299a1faa8c8df11b6b6e72255abb8596197deff53114cc9908d95ea7194d3f3cef2d4b89f9132e4479721b1c22 WHIRLPOOL d4b5cd025847eb4eecd90e19c20d255a1d8d7cda8403f87c357faaf7a34c6b28abc1a8e8187fe67bde1987942b1ad9b45210e467addf4e36ecf2fe3982b2026b
+EBUILD offlineimap-7.1.2.ebuild 1636 SHA256 61a32ca32846c540b3343b45ee5519aaf04b9d676545cf477a491212bab7af32 SHA512 033e5823d7eb6f0aebf8efab0e926f634f4df7299a1faa8c8df11b6b6e72255abb8596197deff53114cc9908d95ea7194d3f3cef2d4b89f9132e4479721b1c22 WHIRLPOOL d4b5cd025847eb4eecd90e19c20d255a1d8d7cda8403f87c357faaf7a34c6b28abc1a8e8187fe67bde1987942b1ad9b45210e467addf4e36ecf2fe3982b2026b
+EBUILD offlineimap-7.1.3.ebuild 1636 SHA256 61a32ca32846c540b3343b45ee5519aaf04b9d676545cf477a491212bab7af32 SHA512 033e5823d7eb6f0aebf8efab0e926f634f4df7299a1faa8c8df11b6b6e72255abb8596197deff53114cc9908d95ea7194d3f3cef2d4b89f9132e4479721b1c22 WHIRLPOOL d4b5cd025847eb4eecd90e19c20d255a1d8d7cda8403f87c357faaf7a34c6b28abc1a8e8187fe67bde1987942b1ad9b45210e467addf4e36ecf2fe3982b2026b
+MISC ChangeLog 5074 SHA256 373cfbfcb44002a0cbde289f95ddff37043dc5cbd13e338c3e9defc47c20fe7f SHA512 4c54891ef49b83730d07df8647cca40f2ba56bed6af819bd19c15b9bc12b66deb28ca07940205f769d92e3a86e044ae2080a1944dfab765beb413ff461bda255 WHIRLPOOL f19cce448060e2151e3557966020d5609132b544eb4a265af029402fd57f249562c4fc2fd1d2719edfc1536a190109a42cd2b384f73fc1dd982da8f86689c01f
+MISC ChangeLog-2015 15556 SHA256 ee3fecc8e668621f4e2402e4f333aa5b95364b604d3abea79207b357ba7ead62 SHA512 02430f09553604d36cce6112b51d782e51505e441b31b2a701d71a4ed7c797cbf08aa6d3d67bbc013db548e7de3a46442ebf36f7493495969c73f17e645625ea WHIRLPOOL 0bcc6169a7b5553bb76ec4e82b97da3025fe8f6b3bde6f11773afdb0ba472fadf8e82f77d00e6d6d33184f7e88dd36e1f8d4558d36f80cc3c065b4f75e211e94
+MISC metadata.xml 447 SHA256 dead2ca69ef991702e8da04a8ec1c7de10712186157388d7661c3266a965540e SHA512 58d5e16ad0ea7a82e114eb99bbb6513229833523a4b3459e567083a6b21a63dbc0ca0c9559a5e4e04c64d66d19e71215154cab275d7114e0f6b57bec8020021b WHIRLPOOL 4613ef2445345ce7e9e15b27cde4a3866705657d157c3ad1cb399b5b0d5307cd574ee4d87df039795f00e937dfd495c20fd1e94d7f61a118e40f5bbfd82ea2d3
diff --git a/net-mail/offlineimap/files/offlineimap-6.5.3.1-darwin10.patch b/net-mail/offlineimap/files/offlineimap-6.5.3.1-darwin10.patch
new file mode 100644
index 000000000000..2ec9161c10a4
--- /dev/null
+++ b/net-mail/offlineimap/files/offlineimap-6.5.3.1-darwin10.patch
@@ -0,0 +1,10 @@
+--- offlineimap.py 2012-04-10 14:19:03.335823779 +0200
++++ offlineimap.py.new 2012-04-10 14:18:57.631852822 +0200
+@@ -17,6 +17,7 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
++from locale import *
+ from offlineimap import OfflineImap
+
+ oi = OfflineImap()
diff --git a/net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch b/net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch
new file mode 100644
index 000000000000..9ac221c12f74
--- /dev/null
+++ b/net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch
@@ -0,0 +1,12 @@
+see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+
+--- a/offlineimap.py 2016-07-31 23:58:39.131404136 +0800
++++ b/offlineimap.py 2016-07-31 23:58:57.987466173 +0800
+@@ -20,6 +20,7 @@
+ import os
+ import sys
+
++from locale import *
+ from offlineimap import OfflineImap
+
+ oi = OfflineImap()
diff --git a/net-mail/offlineimap/metadata.xml b/net-mail/offlineimap/metadata.xml
new file mode 100644
index 000000000000..b8a2d88e0f12
--- /dev/null
+++ b/net-mail/offlineimap/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="sqlite"> Enable runtime support for sqlite mail status backend. </flag>
+ </use>
+ <upstream>
+ <remote-id type="github">OfflineIMAP/offlineimap</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/offlineimap/offlineimap-6.5.6.ebuild b/net-mail/offlineimap/offlineimap-6.5.6.ebuild
new file mode 100644
index 000000000000..19dcb8983d0f
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-6.5.6.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite?,ssl?"
+
+inherit eutils distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/tarball/v${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ia64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl sqlite"
+
+RDEPEND=""
+DEPEND="doc? ( dev-python/docutils )"
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ mv *-${PN}-* "${S}/"
+}
+
+src_prepare() {
+ distutils-r1_src_prepare
+ # see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+ epatch "${FILESDIR}"/"${PN}-6.5.3.1"-darwin10.patch
+}
+
+src_compile() {
+ distutils-r1_src_compile
+ if use doc ; then
+ cd docs
+ rst2man.py MANUAL.rst offlineimap.1 || die "building manpage failed"
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ if use doc ; then
+ cd docs
+ doman offlineimap.1 || die "installing manpage failed"
+ fi
+}
+
+pkg_preinst() {
+ if has_version "<${CATEGORY}/${PN}-6.4" ; then
+ elog "If you upgraded from 6.3.* then you may need to update your config:"
+ elog ""
+ elog "If you use nametrans= settings on a remote repository, you will have"
+ elog "to add a \"reverse\" nametrans setting to the local repository, so that"
+ elog "it knows which folders it should (not) create on the remote side."
+ elog ""
+ fi
+}
+
+pkg_postinst() {
+ elog ""
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ elog ""
+
+ if use sqlite ; then
+ elog "The sqlite USE flag only enables a dependency on sqlite. To use"
+ elog "the sqlite backend you need to enable it in your .offlineimaprc"
+ fi
+}
diff --git a/net-mail/offlineimap/offlineimap-6.7.0.3.ebuild b/net-mail/offlineimap/offlineimap-6.7.0.3.ebuild
new file mode 100644
index 000000000000..cc24bff5c4c6
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-6.7.0.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite?,ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl sqlite"
+
+DEPEND="doc? ( app-text/asciidoc )"
+
+# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
+)
+
+src_compile() {
+ distutils-r1_src_compile
+ use doc && emake -C docs man
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ use doc && doman docs/{offlineimap.1,offlineimapui.7}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ echo
+
+ if use sqlite ; then
+ elog "The sqlite USE flag only enables a dependency on sqlite. To use"
+ elog "the sqlite backend you need to enable it in your .offlineimaprc"
+ fi
+ fi
+}
diff --git a/net-mail/offlineimap/offlineimap-7.0.14.ebuild b/net-mail/offlineimap/offlineimap-7.0.14.ebuild
new file mode 100644
index 000000000000..3258d1bf16b5
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-7.0.14.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite,ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="doc? ( app-text/asciidoc )"
+
+# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
+)
+
+src_compile() {
+ distutils-r1_src_compile
+ use doc && emake -C docs man
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ use doc && doman docs/{offlineimap.1,offlineimapui.7}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ fi
+}
diff --git a/net-mail/offlineimap/offlineimap-7.1.0.ebuild b/net-mail/offlineimap/offlineimap-7.1.0.ebuild
new file mode 100644
index 000000000000..3258d1bf16b5
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-7.1.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite,ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="doc? ( app-text/asciidoc )"
+
+# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
+)
+
+src_compile() {
+ distutils-r1_src_compile
+ use doc && emake -C docs man
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ use doc && doman docs/{offlineimap.1,offlineimapui.7}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ fi
+}
diff --git a/net-mail/offlineimap/offlineimap-7.1.1.ebuild b/net-mail/offlineimap/offlineimap-7.1.1.ebuild
new file mode 100644
index 000000000000..3258d1bf16b5
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-7.1.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite,ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="doc? ( app-text/asciidoc )"
+
+# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
+)
+
+src_compile() {
+ distutils-r1_src_compile
+ use doc && emake -C docs man
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ use doc && doman docs/{offlineimap.1,offlineimapui.7}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ fi
+}
diff --git a/net-mail/offlineimap/offlineimap-7.1.2.ebuild b/net-mail/offlineimap/offlineimap-7.1.2.ebuild
new file mode 100644
index 000000000000..3258d1bf16b5
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-7.1.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite,ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="doc? ( app-text/asciidoc )"
+
+# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
+)
+
+src_compile() {
+ distutils-r1_src_compile
+ use doc && emake -C docs man
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ use doc && doman docs/{offlineimap.1,offlineimapui.7}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ fi
+}
diff --git a/net-mail/offlineimap/offlineimap-7.1.3.ebuild b/net-mail/offlineimap/offlineimap-7.1.3.ebuild
new file mode 100644
index 000000000000..3258d1bf16b5
--- /dev/null
+++ b/net-mail/offlineimap/offlineimap-7.1.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Normally you need only one version of this.
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads,sqlite,ssl?"
+
+inherit distutils-r1
+
+DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
+HOMEPAGE="http://offlineimap.org"
+SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc ssl"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="doc? ( app-text/asciidoc )"
+
+# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
+)
+
+src_compile() {
+ distutils-r1_src_compile
+ use doc && emake -C docs man
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc offlineimap.conf offlineimap.conf.minimal
+ use doc && doman docs/{offlineimap.1,offlineimapui.7}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
+ elog "Sample configurations are in /usr/share/doc/${PF}/"
+ elog ""
+ elog "If you connect via ssl/tls and don't use CA cert checking, it will"
+ elog "display the server's cert fingerprint and require you to add it to the"
+ elog "configuration file to be sure it connects to the same server every"
+ elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
+ elog "check SSL server certificate) in cases where you have no CA cert."
+ fi
+}
diff --git a/net-mail/peephole/Manifest b/net-mail/peephole/Manifest
new file mode 100644
index 000000000000..464da6367691
--- /dev/null
+++ b/net-mail/peephole/Manifest
@@ -0,0 +1,6 @@
+AUX peephole-1.4-gcc4.patch 627 SHA256 c38febc09c317705e702049bda04eddda82f39b1bc07f9be1cb1bd726bb9966d SHA512 831724e11a99fb6c3e6ff3ec636bdb54dc6498d934b2f296c70a47fef2f00deb46155ffb271e5253f2694aa580787c7d2d31ee3f0e782abfdd57b186f0dece25 WHIRLPOOL ad86d4c074e9926e722004a328b798fc9f4839e51bb2e10d4c0eb8fb3b2c79c7e4c37e660827c2467a4a70c51703082c9de9dca5ed002cb4f5a06c43a3bc9bf4
+DIST peephole-1.5.tar.gz 351492 SHA256 7b2eac9ee5bbc797f3f41703a70ea323c3c4a7e573a89b49190bf14046d8ea4f SHA512 d60377029f21513cf8bb1c0fc5a3be0bceb57a11275ec089c235a140e069e1bb6837d9b046539c4641d154e0ba93c2803e26887c0f399e401744b1145aec3b3b WHIRLPOOL e506909906e1d6031ccbe698d797f4ebd6f246253234e9d317aaf06bbfb3feecbee2e8049c1de2137f3e5962cf3d47045176493584f6bb6e376698b696867474
+EBUILD peephole-1.5.ebuild 792 SHA256 dccf43f571d0df2f30ce6f0e506b978f9db672af6e407d4c8d992558a8df5df8 SHA512 0aada597e8ebab5327bf8bd45354cc50cb454d268d2e73d982f93f042b63a54f3e337729ec1f72d06838c3810488fe7e1c358f028f7162dc1b091690e09ff4e9 WHIRLPOOL 2851ea61315951432fa56800695924e7c96dd85a219e78bc4b9ad01c288ecf3bb213da7c190a5ef3168ddbd19579a6a49fd38b53df4755141ee2d3a7392a8084
+MISC ChangeLog 2458 SHA256 7d5f3c23934ce6eb7e73a4ce852cd809fcc2e9c671af6a8e16697a23fab8f78c SHA512 54eb92b34f644393f286c4eb1c006af7dd83bc20cd53e2a4dd40f941f6171e4b3ad3640e78afa6e99c13b3e18b24b67c1c674e35aea76000f8fccc9fe1e2e473 WHIRLPOOL 19fa3c94056052ef145af2c2f0eef4d793b259828aa7dd1892d92bf5df451c6d56d071d052025dd83423833397e1f40b5eab2c061e0f136235895b8ffa212b53
+MISC ChangeLog-2015 2189 SHA256 e66ff19cc708a2979e30497f7554de757c0ad39becfb94a6acb9a0363cac7874 SHA512 0b9c42c5dd90ec46516d8fd41857a703dacbd03edcafe2865f9956e5db5b2cea69836a7673597350b5e96cdad1e82bea0f11a4d05d971855854129f85658e7ee WHIRLPOOL 495a669e1c53e7b844a72b46fbb74f05d06965d0be0372cdd9a7165f254a675130deeef29f5680bd926cc5a7f53f3f520f226020b88901fa93e60a5151880426
+MISC metadata.xml 322 SHA256 b340583c970c3caf8e9cbb3390db81f0edeca5490c7c0050271b9290a6544538 SHA512 45d89f2f116e60bafc2090a9bdeb41feff5904b345b059de751cd2eb9331f08de95c6708a4a5c6f009cbfa29b1fd6ee8f7ad4d3ef4f73eafd1f7e4130f3ad100 WHIRLPOOL 2e13c1ba63e7f431e33eeb5ec7a1f8cbbc0523df4f24d9d974bffc9f2d17ba8c89c139db3924296edcd53400450d5ece6935d0028a432ed07da8fb4cb64ca0bb
diff --git a/net-mail/peephole/files/peephole-1.4-gcc4.patch b/net-mail/peephole/files/peephole-1.4-gcc4.patch
new file mode 100644
index 000000000000..d73546da4b25
--- /dev/null
+++ b/net-mail/peephole/files/peephole-1.4-gcc4.patch
@@ -0,0 +1,14 @@
+diff --exclude='*.lo' --exclude=.libs --exclude=.deps --exclude=libtool --exclude=Makefile --exclude='*.o' --exclude='*.la' --exclude='config*' -Nru peephole-1.4.vanilla/src/grammar/local/local.c peephole-1.4/src/grammar/local/local.c
+--- peephole-1.4.vanilla/src/grammar/local/local.c 2006-02-03 14:23:46.000000000 +0100
++++ peephole-1.4/src/grammar/local/local.c 2006-02-03 14:25:13.000000000 +0100
+@@ -25,8 +25,8 @@
+ static struct wm_local *parse_local(char *path, char *name)
+ {
+ struct wm_config wmc = {
+- .wml NULL,
+- .path path
++ NULL,
++ path
+ };
+
+ char rc[80]; // FIXME: possible buffer overflow...
diff --git a/net-mail/peephole/metadata.xml b/net-mail/peephole/metadata.xml
new file mode 100644
index 000000000000..c2d6a6c4d937
--- /dev/null
+++ b/net-mail/peephole/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">peephole</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/peephole/peephole-1.5.ebuild b/net-mail/peephole/peephole-1.5.ebuild
new file mode 100644
index 000000000000..cb0997b2f423
--- /dev/null
+++ b/net-mail/peephole/peephole-1.5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="A daemon that polls your POP servers, checking if there are messages from specific people"
+HOMEPAGE="http://peephole.sourceforge.net/"
+SRC_URI="mirror://sourceforge/peephole/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc ~sparc x86"
+IUSE="static-libs"
+
+RDEPEND=">=dev-libs/openssl-0.9.7d-r1"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.4-gcc4.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+pkg_postinst() {
+ elog "Before you can use peephole you must copy"
+ elog "/etc/skel/.peephole.providers and /etc/skel/.peepholerc"
+ elog "to your home dir and edit them to suit your needs."
+}
diff --git a/net-mail/pflogsumm/Manifest b/net-mail/pflogsumm/Manifest
new file mode 100644
index 000000000000..78884d92ff67
--- /dev/null
+++ b/net-mail/pflogsumm/Manifest
@@ -0,0 +1,5 @@
+DIST pflogsumm-1.1.5.tar.gz 47130 SHA256 da6443679117de5109fd7d65fe915286c20ad1ecee63fe07d8cdddd0b75fe466 SHA512 994d660692dfea38a1dd9866d15f15035657e85131c1f5a2cd82baa5bd4ad987a00939cb5233f316d2090014c52ae68ef20db0c893f8634969484e0e74678f4d WHIRLPOOL b9734a9d8adae5c10c71a9bdd228edfa3426fd3f1dd392bab843f900a4f71e0fb1e08193a8ced887a4b2a1373110f2fd9b639ef0e377c81b398536bcf25b802d
+EBUILD pflogsumm-1.1.5.ebuild 504 SHA256 bfbf433ef38f31b8e316d47d0e923eeaa9d90a8b97212b3572be552a9f16f4d0 SHA512 465dc10498292a90f9ffc6162fdf5af4f9b83df8a32a7ca51480d774cd5374c86907d64e8e977c22c9352c918e1b4437ecaf25eda0d49f69cdbb290426d19752 WHIRLPOOL bd796665b5716f0b4542b27b1398c571ae61d27de49e1df084420b213e17ca7978a161a4ce50484a6a69edf4f370a0d674f872c0c56f35f4d5e8d49e70055aaa
+MISC ChangeLog 2433 SHA256 6e217ba5902e8562c3f6ae61251d7ef161571306445c4ce75e95a2b4d0706453 SHA512 a0b4dea3e8a49a0980b5023fc0d86c13e768dd2aa6903586c4bf3d11bb6765e7d995f2cd1c4c8a10c95b06ea5cea4fbb9a5f4f17ce2b30eeceaabfee881f236b WHIRLPOOL af0d13108cd30f907e034d1ac0ae18d0e843900bbd41e917495f1bdf920d2418200d8c6b89fa5c57e8177bc2c68a00e6f1261c3d634f874be58eb927a53dabb7
+MISC ChangeLog-2015 3748 SHA256 169694f3dbab2856f5e6dbd1958870844ff84149679dd8e2072a095c0ab8d26d SHA512 da2ac89fd1e5f38afbd35e7777ca69e4a1a07f2b439d731a9490c72563a85bf9635b347b10d6ec799e9873ed57b2980c14350b8500f8f5c406ee848b977e4f4b WHIRLPOOL 153905761b5673a82ca47e6b5207d8b649751f55b6008d713c32fe26d897dc7316827eca6fd7d069f08ffe4a5012e882e98a349f35fffb43331a89d323b3b58a
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/pflogsumm/metadata.xml b/net-mail/pflogsumm/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/pflogsumm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/pflogsumm/pflogsumm-1.1.5.ebuild b/net-mail/pflogsumm/pflogsumm-1.1.5.ebuild
new file mode 100644
index 000000000000..b9f9773e606b
--- /dev/null
+++ b/net-mail/pflogsumm/pflogsumm-1.1.5.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Pflogsumm is a log analyzer for Postfix logs"
+HOMEPAGE="http://jimsun.linxnet.com/postfix_contrib.html"
+SRC_URI="http://jimsun.linxnet.com/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ dev-perl/Date-Calc"
+
+src_install() {
+ dodoc README ToDo ChangeLog pflogsumm-faq.txt
+ doman pflogsumm.1
+ dobin pflogsumm.pl
+}
diff --git a/net-mail/pfqueue/Manifest b/net-mail/pfqueue/Manifest
new file mode 100644
index 000000000000..80c47ef78152
--- /dev/null
+++ b/net-mail/pfqueue/Manifest
@@ -0,0 +1,6 @@
+AUX pfqueue-0.5.6-tinfo.patch 249 SHA256 b8b677b883048eb61add7fc2545877cbe7f3da6a6dd5148eb943552c6080bb33 SHA512 ac0f652a16ee74250e92f29280a178bd7794ac7a9f4192b9558482d078cbdc8b4b75d668ac63ff8bd8c0f4bfd191d32e3d9a2af0c3dc420d191c8c79bde4bd2f WHIRLPOOL 0791be532e1e346f4e053ad9d5a2161b43fdc4c0fa963a6dea2e3d9268ca6be15d5bd766c2ca3d7523c1a00d9c356489aaffb0fbcbc48def464750486837dabf
+DIST pfqueue-0.5.6.tar.gz 298870 SHA256 efedc8ea73ea09cf3edfbdbb6bf3fb0678017818fd0c1816abd9360120c59a41 SHA512 1bb622bba6d72ff98ee862d794854debcebabeff24cb6f06cecb06513f453cbb09f0cb8e5fa4c26bfde03aadbc5e803692279427021ccda10749a6c5a326bfb9 WHIRLPOOL f086055e1a26fdb524206f122d283bbfa8813e640f0800ab583748e6dbe86706798832ce25932b9424b38e4e3436e4e011bd0d9b23b9f9fd0c7ca2f0acbc9f2c
+EBUILD pfqueue-0.5.6.ebuild 671 SHA256 8526be21a575c4ed601896d4ffe1cc1e9f5f6337d8fa701dec0c72b05d480cbe SHA512 950e3b2f55cda27ded6348844d70deab78d18719fdf3903b17ff705cc0ce96ec726d8fffe1b3efaddca8d810d71ee0385188905b550bbb63d64deda720f2a90b WHIRLPOOL 4e177e2b4b184cd3dccda3b8b4f214751065e22e5836ddfaccbe18718fb58fd561ace7ef414d0c342a4ae9da495e85aa8e7eee72d1635a232ac6cd679dffbf8a
+MISC ChangeLog 2461 SHA256 8c9c2a8c3dbe34afdaaa02b41b1a38c374a1d084c7dbad4ac6d3eefbbc1687af SHA512 5b317f24c9653bc4b1d4ed5ba8bd2de66023a349bc35be31c3b588b5c014d48144c351171f89515a22056936a7deaf0cc8bd5053c4e6463944f5a80b1b9494e2 WHIRLPOOL 14384c43df072781e93877df0cb863cde0c2f1cc320282d9c3aa695e3c910c8f1fe204f1ebe61b4ee911c50ae6061f0690dc1e2668f9ab5c71cf65cb355e9886
+MISC ChangeLog-2015 6539 SHA256 0eda6e5f75d6605357a9294504ff4f982b4d79e68e298094f32f3fc11a8b2ad0 SHA512 f67896a3d3e54533ed138cda4d194193b6061d302b18f2c3536ac520909deecdd3852b5e40b029fbabb17f3648f7638cef2d641d027440dcee1e78c9dfdbfd42 WHIRLPOOL 13b78b4ae6e8acdda1fcb0207e2d291a660bc04f5c07024e58728f7fada3f21efb02ec3c98bf33113ee507df770de8486634110e9cf3dc7ec3eeadc7e063c76e
+MISC metadata.xml 422 SHA256 8e52596c5ef3ad12d48423322a858a5dace26642d1f89371042c3bec06791031 SHA512 78e63cf024fbd99cbabd0722887fb88da5ae659cd1c01f0d0064e67d86abf1881e46f6cc5b9742f11941550eaade785e606ac7c655589d4606b63fc293b6192e WHIRLPOOL 33e494d3e075c183601f850145080dbe1d81414b4fb57431d301f51b91894d4be34845d625e01a134f3c39a2c6c772a1271c193cfc11e8176a847cb0f42e1aa5
diff --git a/net-mail/pfqueue/files/pfqueue-0.5.6-tinfo.patch b/net-mail/pfqueue/files/pfqueue-0.5.6-tinfo.patch
new file mode 100644
index 000000000000..6efd5bb0d74b
--- /dev/null
+++ b/net-mail/pfqueue/files/pfqueue-0.5.6-tinfo.patch
@@ -0,0 +1,10 @@
+--- a/configure.in
++++ b/configure.in
+@@ -38,6 +38,7 @@
+
+ dnl Checks for library functions.
+ AC_CHECK_LIB(ncurses,newwin)
++AC_SEARCH_LIBS(COLS, tinfo)
+ AC_CHECK_LIB(pthread,pthread_create)
+ AC_CHECK_LIB(c_r,pthread_create)
+ AC_CHECK_LIB(dl,dlopen)
diff --git a/net-mail/pfqueue/metadata.xml b/net-mail/pfqueue/metadata.xml
new file mode 100644
index 000000000000..c00e1a883542
--- /dev/null
+++ b/net-mail/pfqueue/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription lang="en">
+ A ncurses-based tool for handling postfix queues.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">pfqueue</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/pfqueue/pfqueue-0.5.6.ebuild b/net-mail/pfqueue/pfqueue-0.5.6.ebuild
new file mode 100644
index 000000000000..806a93223697
--- /dev/null
+++ b/net-mail/pfqueue/pfqueue-0.5.6.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="pfqueue is an ncurses console-based tool for managing Postfix queued messages"
+HOMEPAGE="http://pfqueue.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+RDEPEND="
+ sys-libs/ncurses
+ sys-devel/libtool
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+DOCS=( README ChangeLog NEWS TODO AUTHORS )
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-mail/pop-before-smtp/Manifest b/net-mail/pop-before-smtp/Manifest
new file mode 100644
index 000000000000..a8ec1fdf2539
--- /dev/null
+++ b/net-mail/pop-before-smtp/Manifest
@@ -0,0 +1,6 @@
+AUX pop-before-smtp.init 613 SHA256 f80a4f4c9db407fee8dc6e829c8b073d4a3f94e9128440026bd78c1a26924b8d SHA512 5018ab8d4acf4bd58c635f029c32ee691462836da37b75afd7e26873b0f0e94969a18cdbd77e69aeb7aa32e5ab08b2c3b644939799e3601367ab0380423516ca WHIRLPOOL 72c531ba9124935b2772e8ce8f4288c043b822282556619fbd01f724d1ded5b1ba10f988302cef4d1e8f627a41349abb7b898ff3209a803bc62153c61eefe8ec
+DIST pop-before-smtp-1.42.tar.gz 40612 SHA256 cfa9e1b24b185c1f7bd9a5f076d39d9b4e50f92d68a1463ec937e7c1526aaa41 SHA512 54556509dcd51025519deb1253e0860c23e2862061992781c79606af00d6db493a5b3b1ca505f609f6a157918b19e959568dc138cc926f8886bec54cf9b404ea WHIRLPOOL 1cb5f6da761865b8915a0806385c05e43fb59866a878443dd6e89caf79bf3a7afe28e0e330970827bd418bddc716519ea3adc0a17a50f5b069a6a14dc40850ed
+EBUILD pop-before-smtp-1.42.ebuild 1046 SHA256 8bb5a5d323013e2698743de2498316f90cf968780af3f166f34a3b984b49a4fd SHA512 7278763ed2538654edcff1451a4c204951bb54f9339e6fbbfb8cf470ab1a13bd7b585dd84b0ae6111dd58346fedb842686c455cf14c6d0bcad0a62d5a88e893f WHIRLPOOL 00628c4b76e58dc34cc4e2774a65d84a25bf763e0b4f625891dacf074334399ae877a9ebedc72da2eb25bfc89893c176a2390b7037d3c9cba006698d0629edad
+MISC ChangeLog 2617 SHA256 93afa3d4c56f30d00b6d31dd0da2305938a113870ff885e811f56a7d76a65c7a SHA512 bbe8db0ac5333cd2ddf03c9dd1e40afa0c35a4e1c674487f1d067a01e3daa8173d3b529352d419d7f3cf570f224764f9fc51a0b2ab2a7c6a19802b6b3d6c256a WHIRLPOOL 353096cbc2c69b8813f6e39a03835502e881c12985bbf0638619f9cba4621f8c4a6fc5ed17d92c37bf73a7f69e40acac906e83eaf3093f6125afafb7113d4ec8
+MISC ChangeLog-2015 3218 SHA256 a9465b8a2175304209140ba57c5a5e4eb2bf4f004f4e8c07852f2f5d2dd33751 SHA512 f7d4cec07eae80eba20ee13da5c0c2b3ff9ec7cc9f7fcec1d0059623a5a2bc1f8a8477e338795e2edeb8caa443e94526032c6e1df6636ea1d8842d9eae82c0e7 WHIRLPOOL 7cb426da9cdf8d2e6e16668a97fbf4b6f5d228f2d10496f32c7670f1fd5a7b4663288ae2b2f54a1f64f3471bf5644fd122e00de201091827df3748b86dfc0827
+MISC metadata.xml 322 SHA256 ec0f2a4199d2d32904711bfaae5c85201900b205e93f862ef45f08618a21283b SHA512 7b2b6cd86a1183ee11439fb0e5128c36ca9e5945335f9fd55cefa1e3c05c2d284e5fe8766962fb1cce4fb84a0fa5d536378e4472310a8055d119f977588ffe3b WHIRLPOOL 34c523cfdd367489e042f6a44f351aadf750e302cee90b3991000165a27cc5bf4acbe0de8a1b7ea717eb29128903417bc0bae4c4e84e174c2d18740c67175677
diff --git a/net-mail/pop-before-smtp/files/pop-before-smtp.init b/net-mail/pop-before-smtp/files/pop-before-smtp.init
new file mode 100644
index 000000000000..5ae84aa2fc11
--- /dev/null
+++ b/net-mail/pop-before-smtp/files/pop-before-smtp.init
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+depend() {
+ need net
+ use logger dns ypbind
+}
+
+start() {
+ ebegin "Starting pop-before-smtp"
+ start-stop-daemon --start --pidfile /var/run/pop-before-smtp.pid --exec /usr/sbin/pop-before-smtp -- --daemon=/var/run/pop-before-smtp.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pop-before-smtp"
+ start-stop-daemon --stop --pidfile /var/run/pop-before-smtp.pid
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading postfix"
+ /usr/sbin/postfix reload &>/dev/null
+ eend $?
+}
diff --git a/net-mail/pop-before-smtp/metadata.xml b/net-mail/pop-before-smtp/metadata.xml
new file mode 100644
index 000000000000..97ce2c2591bb
--- /dev/null
+++ b/net-mail/pop-before-smtp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">popbsmtp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild b/net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild
new file mode 100644
index 000000000000..89c00b0fa817
--- /dev/null
+++ b/net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="a simple daemon to allow email relay control based on successful POP or IMAP logins"
+HOMEPAGE="http://popbsmtp.sourceforge.net"
+SRC_URI="mirror://sourceforge/popbsmtp/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 BSD Artistic )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl[berkdb]
+ dev-perl/Net-Netmask
+ dev-perl/TimeDate"
+
+src_prepare() {
+ # enable syslog
+ sed -i \
+ -e "/^=cut #============================= syslog ===========================START=$/d" \
+ -e "/^=cut #============================= syslog =============================END=$/d" \
+ "${S}"/pop-before-smtp-conf.pl \
+ || die "sed pop-before-smtp-conf.pl failed"
+}
+
+src_install() {
+ dosbin pop-before-smtp || die "dosbin failed"
+ dodoc README ChangeLog TODO contrib/README.QUICKSTART
+ insinto /etc
+ doins pop-before-smtp-conf.pl || die "doins failed"
+ newinitd "${FILESDIR}/pop-before-smtp.init" pop-before.smtp \
+ || die "newinitd failed"
+}
diff --git a/net-mail/pop2imap/Manifest b/net-mail/pop2imap/Manifest
new file mode 100644
index 000000000000..afb090eff75f
--- /dev/null
+++ b/net-mail/pop2imap/Manifest
@@ -0,0 +1,7 @@
+DIST pop2imap-1.18.tgz 20059 SHA256 6dc8b4d83427d5f8be5585cd62835ea3f80efd23e44182a15f98f1942802e161 SHA512 8b3a41cc2c7f9b51890d2ba19897f0b1576a027f0f3443fb3fcfeec9beecd797cba383ad83f0b56abb8e79625ad52b25fda20b94dc80cc11ddfe60550809a86f WHIRLPOOL c451cb3f7077b0221c69ab0bbb092218cd11931325fd90377323a4808f36776a9dc5b393e9a95426b8dbadefc6b8afa44b207997750ff141bec624e602eb9c22
+DIST pop2imap-1.21.tgz 10920 SHA256 2bc842e4422631cd85d4e0ede102e746afbbbe17f75976ce8e0bc207a2f5d9ae SHA512 8f49ce6ee0dbb71699ec83415f3002f752975eaa39c70ccdc0f2e62ab2791a29d483e1159c2ef035c411fe5e351b9c99845ba2451e95fd3331c3bfb03b8a061e WHIRLPOOL ffd9710d4257ccf7952b3d0121bea325faf22f10b31ef9046d181e0acdd13f1243c8a0924e630418bfc1af4dbc74c343da26e0676f9d05ac20bfb6af34f3ec7a
+EBUILD pop2imap-1.18.ebuild 581 SHA256 810fbe799e882e196359c00c6e47dccbd594d73d92d1292d74cc6cf04aa1c53d SHA512 bab7703af78173a494d20a3f78e2933b0b461609c52bfbee569fdddaa28e73c47e8a94dc5cf49f4dfaf6e56c023fd7c36da69ccb4464cbd7186f38c90c1bad36 WHIRLPOOL 52d6f31774ccf1a92477cb3d70c83caa440bb24afdff181b90c997e76a3801d29136bc9346213addda30fb81b0834fe3858c311efcfb4c71ac39634f0ba7e114
+EBUILD pop2imap-1.21.ebuild 590 SHA256 258532d4200fd5cd2388f259cf32b24150c870b0690f89423b0e0cfade269eb1 SHA512 333d243a5b599f805710ba2418a869cc9df1cccea6d7159998b7764a57a7626a994b8470b8279551b8da0c8025f2d5d6f46757f350db0b8ff4ad2f853e571e63 WHIRLPOOL defc6a5bc405a7ab494bf48e44409f90749e2cab637c63f363a0ead910f64431c51f6b6d0a73cbbf5449b127418a0d0c45199a8b4c529eb966866869c9f0ec07
+MISC ChangeLog 2659 SHA256 bccc57813721a0c5070f9b00ac6be236891c98f594c191d7d7d606f847b0a580 SHA512 ff0e8e2a8fb3351aeca083216e3f4c672aeff422674e53bb6361ac65ec4650b0fe035d5ec6300c8447c2e78e841155a68dfe8ebadab94451a1618ca336111b37 WHIRLPOOL 84364dc0e3108e51ff8effb4cbaa98705b43c1d08d65acd93f164ca0645d1ce9f166c054885a52ef262e24b2f26b2a54c7ed811a1346749654c002834533bb86
+MISC ChangeLog-2015 1510 SHA256 f8788c82db005d4a75707ab3846de6460c108fd0e2eccd2962695a13ce3f54de SHA512 d1f05ca50e978f3bfec92f72c119b32f1cafe70b9600eea0389df45cc42ede2d39209dd827019e033cb067148ec18a09e0f96d8a7c475362d0793e49ec85bd2c WHIRLPOOL 55b18d944198adc5dc5aa37186c4485a2aba7ce06ad50eb09ecc19da68160a5ac1c63ba63e033f058bab0a85c82e8f90052cf47effd2d6760118e9e994c6a508
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/pop2imap/metadata.xml b/net-mail/pop2imap/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/pop2imap/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/pop2imap/pop2imap-1.18.ebuild b/net-mail/pop2imap/pop2imap-1.18.ebuild
new file mode 100644
index 000000000000..4da06b095bcc
--- /dev/null
+++ b/net-mail/pop2imap/pop2imap-1.18.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="Synchronize mailboxes between a pop and an imap servers"
+HOMEPAGE="http://www.linux-france.org/prj/pop2imap/"
+SRC_URI="http://www.linux-france.org/prj/pop2imap/dist/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ dev-perl/Mail-POP3Client
+ dev-perl/Mail-IMAPClient
+ dev-perl/Email-Simple
+ dev-perl/Date-Manip
+ dev-perl/IO-Socket-SSL"
+
+src_install(){
+ dobin pop2imap
+ dodoc ChangeLog README VERSION
+}
diff --git a/net-mail/pop2imap/pop2imap-1.21.ebuild b/net-mail/pop2imap/pop2imap-1.21.ebuild
new file mode 100644
index 000000000000..5122fc25d855
--- /dev/null
+++ b/net-mail/pop2imap/pop2imap-1.21.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Synchronize mailboxes between a pop and an imap servers"
+HOMEPAGE="http://www.linux-france.org/prj/pop2imap/"
+SRC_URI="http://www.linux-france.org/prj/pop2imap/dist/${P}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ dev-perl/Mail-POP3Client
+ dev-perl/Mail-IMAPClient
+ dev-perl/Email-Simple
+ dev-perl/Date-Manip
+ dev-perl/IO-Socket-SSL"
+
+src_install(){
+ dobin pop2imap
+ dodoc ChangeLog README VERSION
+}
diff --git a/net-mail/popa3d/Manifest b/net-mail/popa3d/Manifest
new file mode 100644
index 000000000000..cb9d273195c1
--- /dev/null
+++ b/net-mail/popa3d/Manifest
@@ -0,0 +1,8 @@
+AUX popa3d-initrc 368 SHA256 d054e4ac8e36d1df1167fd43e3dd16044928117344575d42e80d00fcc339694b SHA512 92ec9786bf8aa5f82c248283b1451c8293f68a3f58b71b3c4b7c249a0c0207a5f25e399276a9bf6c362735334259f0c8baaea1467226b66c270d24617cc9f567 WHIRLPOOL efb71f3e7a6d49caa8ebc623446b22dfb793864b434fe2c789c08035b310e91035306c05e2809867ad1e731d68a97f5f02a3fea40e45afbae6278e4203a2801b
+DIST popa3d-0.5.9-maildir-2.diff.gz 3227 SHA256 f3402a4dd462b8564456c65582dc10cbe620f112f11936a88b978696f35b73e1 SHA512 7d2ab786e6249acfaadaa544adf49dca42b5628f50aa9f52fd1caa80127adc83afa4623824170c9f3b761a39949fcf3c90edbdbb9fdfbf4e06afaa67cdfbaac3 WHIRLPOOL e3b99f33bda8b0b631fa49e9cd3f78e2d55ca61d4c80596db2192efaad937b51c59475d5940db9484fd2439d3a41a077f42e38a532bcb2a9de26dab07fc5cd8f
+DIST popa3d-0.6.3-vname-2.diff.gz 947 SHA256 12c157142650801cf4ca534350b332eeb5d16ca329bce06f3fca5b5f0e13d7c2 SHA512 eba7df6d03d2745272505b62053d0db56ea326a716e43a9133257465f78fc5030cb09b48d79e86f6a982f7d8e9d18ee64aadf261e60a4f0a56357a4a2517a30a WHIRLPOOL ce3e458a60a97b34b94a40d105f7b278151e386d65f9f188e64053a7476f90e6413cd4c5f4c62dcae9541e4d5867f93be935acef6a57572c115c9595dd39fa24
+DIST popa3d-1.0.2.tar.gz 32848 SHA256 e7034336c1e4b6ed1ddff7c92851292d396d011237acb2268492f44cedbb7a7f SHA512 e577297b4dafb4091110886a5db07184707475651a8ee3b6369f4cab5676852d7286a3729da46fff9161bc3cd46bdc0d032205dc5609bfb38be69eaeab068906 WHIRLPOOL e27820a951261170afe514d63e9860bd267d3c123710e6bb2d72fdc3ef6285a22534a4d42d197fe502db2d9e575970aa03bd3902746accbdea172d8edb524bd0
+EBUILD popa3d-1.0.2-r1.ebuild 4985 SHA256 db11914a44cdfc44d5f66f69ca4aca1d1d224703a655ed9aafc278d52ee50ab4 SHA512 b760666182894426255af5f097741e5f65be9c5f84f1713c3f5d6c4510a8f4c45093c8e4fe1f1f457d1db29d9dd28635c7574168fc7e91ff7b40e0319c476d3c WHIRLPOOL 09417cb02ae80383d24102d8da1badb7bf6f2050033dda297f8765a58555a1a7830c1a93324ef0334016b51986e25be1176322375596a32cc281233e40e0fd9d
+MISC ChangeLog 2811 SHA256 25292092fb49f9c6022082da0c8255d4a44450a3dc9272c752051f7e429c7bf0 SHA512 d347dcd10536524ff4195017c2a91259eec09a788348e86dfba41b14af32d37af761714d5c51ae8e96ddd134dfe09a1aa360c853d91444f41be0e34a1b576e5b WHIRLPOOL 7172366a736612ca32a2d1082005c3b3d64ad95789ed4c5a7f6677084faf6ea3c9aa841afe65acd9472014c65f43d3dba8aa7710141f5525c97d7f7ccec7d399
+MISC ChangeLog-2015 5850 SHA256 d8b2948f27c51e0f3ad1dd37986f5694ff34aa44b74969907a26d189918c4842 SHA512 6a334bd7f8842761354b8d7fcfeeb286c5cec10e8075ae22b999e6c410da6bc4e7a7b69cf80eb33c81cf2deb7f9dcfb74c25650bc3b9536f7a756c4db9dea21c WHIRLPOOL 4a15a89007e8c8f2743ae2f897411a5c3df1aa536266f6e22a7f749532824a3c80cad6740f7045eef543c2d139c5c368a2cbe1a2260bc74acb8daf3269ef23d3
+MISC metadata.xml 314 SHA256 490b031c733a1ca1d886d1e6ae95e6d5d5f7477e5079b1c3ac4d0c2daf00077d SHA512 aa6c3bfc333c8d2c9d47e250881264348b5ae5b903c1645ef90f9bf6dda0bb95fad589b463a7db4eb18f21a3cfdb8e84805e1939e88241429f92ebb42483a32c WHIRLPOOL a1babf9e8dcb1fa2fe0f21b951c96e06d671c3e4d1fac54e8d2a01d638288c1a72be9ad1536d01e27fc732a19403d9d23eb0b9099e61352bda0b9c41f62dcde5
diff --git a/net-mail/popa3d/files/popa3d-initrc b/net-mail/popa3d/files/popa3d-initrc
new file mode 100644
index 000000000000..7405bdef2266
--- /dev/null
+++ b/net-mail/popa3d/files/popa3d-initrc
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting popa3d"
+ start-stop-daemon --start --quiet --exec /usr/sbin/popa3d -- -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping popa3d"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/popa3d
+ eend $?
+}
diff --git a/net-mail/popa3d/metadata.xml b/net-mail/popa3d/metadata.xml
new file mode 100644
index 000000000000..e58671dbb55a
--- /dev/null
+++ b/net-mail/popa3d/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>
+ A security oriented POP3 server.
+</longdescription>
+</pkgmetadata>
diff --git a/net-mail/popa3d/popa3d-1.0.2-r1.ebuild b/net-mail/popa3d/popa3d-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..6ef18a842976
--- /dev/null
+++ b/net-mail/popa3d/popa3d-1.0.2-r1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs user
+
+#
+# Mailbox format is determined by the 'mbox' and 'maildir'
+# system USE flags.
+#
+# Mailbox path configuration denoted by the system USE
+# flags.
+#
+# USE flag 'maildir' denotes ~/.maildir
+# USE flag 'mbox' denotes /var/mail/username
+#
+# You can overwrite this by setting the POPA3D_HOME_MAILBOX
+# environmental variable (see below) before emerge.
+#
+# Environmental variables.
+#
+# POPA3D_HOME_MAILBOX
+#
+# Overwrite the local user mailbox path. For example
+# if you want qmail-styled ~/Mailbox you can set it
+# to "Mailbox". For the traditional (although not in
+# gentoo Maildir) set it to "Maildir".
+#
+# POPA3D_VIRTUAL_ONLY
+#
+# Set this field to "YES" if you dont want local users
+# to have POP access. Setting this makes the POPA3D_HOME_MAILBOX
+# variable effectively useless.
+#
+# POPA3D_VIRTUAL_HOME_PATH
+#
+# Set this field to the base virtual home path. For more information
+# read the virtual guide here: https://forums.gentoo.org/viewtopic.php?t=82386
+#
+######
+# 12/07/2005 - port001
+# Version 1.0 introduced some increased default values for a number of
+# configuration paramaters. These values are way too high for most systems.
+MAX_SESSIONS=100 # Default is 500
+MAX_SESSIONS_PER_SOURCE=10 # Default is 50
+
+MAX_MAILBOX_MESSAGES=100000 # Default is 2097152
+MAX_MAILBOX_OPEN_BYTES=100000000 # Default is 2147483647
+MAX_MAILBOX_WORK_BYTES=150000000 # Default is 2147483647
+######
+
+IUSE="pam mbox +maildir"
+
+DESCRIPTION="A security oriented POP3 server"
+HOMEPAGE="http://www.openwall.com/popa3d/"
+
+SRC_URI="http://www.openwall.com/popa3d/${P}.tar.gz
+ mirror://gentoo/popa3d-0.6.3-vname-2.diff.gz
+ maildir? ( mirror://gentoo/popa3d-0.5.9-maildir-2.diff.gz )"
+
+LICENSE="Openwall"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+
+DEPEND=">=sys-apps/sed-4
+ pam? ( >=sys-libs/pam-0.72
+ >=net-mail/mailbase-0.00-r8[pam] )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="^^ ( maildir mbox )"
+
+pkg_setup() {
+ echo
+ ewarn
+ ewarn "You can customize this ebuild with environmental variables."
+ ewarn "If you don't set any I'll assume sensible defaults."
+ ewarn
+ ewarn "See inside this ebuild for details."
+ ewarn
+ echo
+
+ enewgroup popa3d
+ enewuser popa3d -1 -1 -1 popa3d
+}
+
+src_prepare(){
+ epatch "${DISTDIR}"/popa3d-0.6.3-vname-2.diff.gz
+ use maildir && epatch "${DISTDIR}"/popa3d-0.5.9-maildir-2.diff.gz
+}
+
+src_compile() {
+ sed -i \
+ -e "s:^\(#define MAX_SESSIONS\) .*$:\1 ${MAX_SESSIONS}:" \
+ -e "s:^\(#define MAX_SESSIONS_PER_SOURCE\).*$:\1 ${MAX_SESSIONS_PER_SOURCE}:" \
+ -e "s:^\(#define MAX_MAILBOX_MESSAGES\).*$:\1 ${MAX_MAILBOX_MESSAGES}:" \
+ -e "s:^\(#define MAX_MAILBOX_OPEN_BYTES\).*$:\1 ${MAX_MAILBOX_OPEN_BYTES}:" \
+ -e "s:^\(#define MAX_MAILBOX_WORK_BYTES\).*$:\1 ${MAX_MAILBOX_WORK_BYTES}:" \
+ params.h || die "sed on params.h failed (1)"
+
+ if use maildir ; then
+ einfo "Mailbox format is: MAILDIR."
+ if [[ -z ${POPA3D_HOME_MAILBOX} ]] ; then
+ POPA3D_HOME_MAILBOX=".maildir"
+ fi
+ else
+ einfo "Mailbox format is: MAILBOX."
+ fi
+
+ if [[ -n ${POPA3D_HOME_MAILBOX} ]] ; then
+ einfo "Mailbox path: ~/${POPA3D_HOME_MAILBOX}"
+ sed -i \
+ -e "s:^\(#define MAIL_SPOOL_PATH.*\)$://\1:" \
+ -e "s:^\(#define HOME_MAILBOX_NAME\).*$:\1 \"${POPA3D_HOME_MAILBOX}\":" \
+ params.h || die "sed on params.h failed (2)"
+ else
+ einfo "Mailbox path: /var/mail/username"
+ fi
+
+ if [[ ${POPA3D_VIRTUAL_ONLY} = "YES" ]] ; then
+ einfo "Virtual only, no local system users"
+ sed -i -e "s:^\(#define VIRTUAL_ONLY\).*$:\1 1:" \
+ params.h || die "sed on param.h failed (2.5)"
+ fi
+
+ if [[ -n ${POPA3D_VIRTUAL_HOME_PATH} ]] ; then
+ einfo "Virtual home path set to: ${POPA3D_VIRTUAL_HOME_PATH}"
+ sed -i \
+ -e "s:^\(#define VIRTUAL_HOME_PATH\).*$:\1 \"$POPA3D_VIRTUAL_HOME_PATH\":" \
+ params.h || die "sed on params.h failed (3)"
+ fi
+
+ if [[ ${POPA3D_VIRTUAL_ONLY} = "YES" ]] ; then
+ einfo "Authentication method: Virtual."
+ elif use pam ; then
+ einfo "Authentication method: PAM."
+ LIBS="${LIBS} -lpam"
+ sed -i \
+ -e "s:^\(#define AUTH_SHADOW\)[[:blank:]].*$:\1 0:" \
+ -e "s:^\(#define AUTH_PAM\)[[:blank:]].*$:\1 1:" \
+ params.h || die "sed on params.h failed (4)"
+ else
+ einfo "Authentication method: Shadow."
+ fi
+
+ sed -i \
+ -e "s:^\(#define POP_STANDALONE\).*$:\1 1:" \
+ -e "s:^\(#define POP_VIRTUAL\).*$:\1 1:" \
+ -e "s:^\(#define VIRTUAL_VNAME\).*$:\1 1:" \
+ params.h || die "sed on params.h failed (5)"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/^CFLAGS =/d' \
+ -e '/^LDFLAGS =/d' \
+ Makefile || die "Makefile cleaning failed"
+
+ emake LIBS="${LIBS} -lcrypt" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC=$(tc-getCC)
+}
+
+src_install() {
+ into /usr
+
+ dosbin popa3d
+ doman popa3d.8
+ dodoc DESIGN INSTALL CHANGES VIRTUAL CONTACT
+
+ diropts -m 755
+ dodir /var/empty
+ keepdir /var/empty
+
+ newinitd "${FILESDIR}"/popa3d-initrc popa3d
+
+ if use pam ; then
+ dodir /etc/pam.d/
+ dosym /etc/pam.d/pop /etc/pam.d/popa3d
+ fi
+}
diff --git a/net-mail/popick/Manifest b/net-mail/popick/Manifest
new file mode 100644
index 000000000000..88e1da24a569
--- /dev/null
+++ b/net-mail/popick/Manifest
@@ -0,0 +1,5 @@
+DIST popick-0.1.tar.gz 4000 SHA256 e95b2598cb03949936e2a977a4a1b049ca0138aeebf1ff683b32e0ecc027c16b SHA512 973c20e2f56f2a49ad1164ddd530344375150362c2e083717cf2034e7851938de9c71300f41164cd2b3687b68db70e66bef268af650556ede5fb74ce7705dcca WHIRLPOOL 000448acbb3b799debe35db5a702e130ff2847d210297cb00204a40c1d8a5768e442eb82ae8bb2ac037527a77b4b50ab38f56d07afee8ffc25d1f315846481c6
+EBUILD popick-0.1.ebuild 792 SHA256 a01a44d14d1ffcc19517df81bab5074891bfa5a44c84bb247d12f800f71b9dc6 SHA512 0567a891ef1f929e619d1634a2531bf899cdf3c42b7b96287f83e2f4059caaa8782636ade7861042d86bcbee4374f75ce71a0b5437892f77a30741e37522531b WHIRLPOOL 5d52c2e854ea75339fd0673eeb2dd0e429d4d19ca4a068b02f5a72c042463edeffdf3a1eeac3ebd94fe51d5f5bc3fb27ae5d594778367644886c658adb66033e
+MISC ChangeLog 2420 SHA256 07abdb8aaddf7896cddf5cb2b02bd88e5d473855fde4128d6a8d1ca4a2b48496 SHA512 04870148bf690d42ace09ba20b1bb58db27e5f5a1022d271299b6cf262f9e01a47be7486d7ae71a803fb3e6b65e19fd6df98fb6d715699087d61c7295978b985 WHIRLPOOL 0eebe7942595be3b8456cc63cad5bd8adf3d460a0208473391f2daa72fcafcc756be8a01a2fcd62e729c2870520f8efbfcbd6ce34cd2358240317061dc407510
+MISC ChangeLog-2015 1157 SHA256 599068ea790f6768bd17c4769fcbd79478fae6adb58a55c79adbbf2ec8ae16e3 SHA512 a0f626a6d32f9824158b28fd1a04154f64b14f2a5be7a7651f95d7522c9e8a603c39041230b9df8ea5aea905ca236a88460746b1a49aa3ed7d47ebfec187e3c0 WHIRLPOOL c2819ea176d07ed1de5d97b2a3b775ee830a6b126d882836fa77bba6c8993d93c40e8192a629ad8a95f8bed95b9070e7c84cb6ae9817d2da2f2d7ccf59db2d59
+MISC metadata.xml 375 SHA256 e8fc02317767b141aa9486449a447ac2044936110edc3cefdcbcb9bc8e7d93f1 SHA512 63cb8a86abca135e7eac31d3e58525e019611d03c470e0a7c12affc93d1ce0090d4d5b8958b7c0884ddf936fd07a790b69c5627abb1f1b656db5a9536e064741 WHIRLPOOL 0b129d367b6b77b3571d945c50a3880322c57fb3ed0e611e64f67489bc9ac35d7277bcba4b368bc4c7d3f6a8ff61453bad8e58bfb4594d3755165cde668b5279
diff --git a/net-mail/popick/metadata.xml b/net-mail/popick/metadata.xml
new file mode 100644
index 000000000000..fccb0b99db06
--- /dev/null
+++ b/net-mail/popick/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>An interactive, curses-based POP3 mail deleter that allows you to match messages with regexes.</longdescription>
+</pkgmetadata>
diff --git a/net-mail/popick/popick-0.1.ebuild b/net-mail/popick/popick-0.1.ebuild
new file mode 100644
index 000000000000..e4286fd8aab3
--- /dev/null
+++ b/net-mail/popick/popick-0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="POP3 mailbox deleter using regular expressions to match message headers and delete messages"
+HOMEPAGE="http://www.topfx.com"
+SRC_URI="http://www.topfx.com/dist/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ dev-perl/Curses-UI
+ virtual/perl-Getopt-Long"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mv popick.pl popick || die "Renaming popick.pl to popick"
+ sed -i -e 's:/usr/local:/usr:g' $(grep -rl /usr/local *) || die "sed /usr/local failed"
+}
+
+src_compile() {
+ # No compiling needed :)
+ pod2man popick > popick.1 || die "Generating manpage failed"
+}
+
+src_install() {
+ dobin popick
+ doman popick.1
+}
diff --git a/net-mail/poppassd_ceti/Manifest b/net-mail/poppassd_ceti/Manifest
new file mode 100644
index 000000000000..69e71f136e86
--- /dev/null
+++ b/net-mail/poppassd_ceti/Manifest
@@ -0,0 +1,7 @@
+AUX poppassd.xinetd 245 SHA256 a565cf9ebf854c2251401e4a1df2cbf15e4bd7df1b35504eef85b4dceee46346 SHA512 333d331433a0b43f414f83e51cad3502afb6f5b287967e55d0dedd90ac06955ccbcbe598a3dafe682c97a7ac4ecf501c0842ade940c0702fb797717e8844ffd4 WHIRLPOOL 2c0c92b3f216d0b3efce43f0999c15f69079e39025a5ca038b2b27ccc5fb9eae388d4975bd0342609ac9bb9ed068350cd7b369b435a1b663d736ff30df3ba765
+DIST poppassd-1.8.5.tar.gz 6054 SHA256 3b4ccb61c9b97fd91add8b798429c7e1aee0561a19781e413186e9da733c95a8 SHA512 4d8d9c3b15b986bd34e5e459f654e8137019a2466b9fec001d9e61a3267b09f150c3faee8e6914d98742c7b3a7301271ba522ee6dff614cca97815a3ae241ae9 WHIRLPOOL 09a9779a74db186fb2991b72e2caf410ac9086751b9453b1a62e46fc9b5ae06609b30a636acc58611e26953ad0f4796a0a0c813106a36299df07d98f27a7e336
+EBUILD poppassd_ceti-1.8.5-r1.ebuild 1045 SHA256 83237d090d9e8e5ba3dfa693ba528ff99349c6884f5dafb6faf373056e31c295 SHA512 e6089fb7a6c6caf2ef85bbe07edbee764183495e7e943260193dd72166aacfc543c8e203408761a61806d9189b16f77027eb920f669b8d167f93d48e310176f4 WHIRLPOOL 84954edd4cb2ff6919a1bb20e4595eb8c1d3942200f418c885efe2471e99f2c6af2f82e04539be5990f7a53c7e630a710b2d882effeb727a176615582fc7e360
+EBUILD poppassd_ceti-1.8.5-r2.ebuild 902 SHA256 7fd00c33ed31d7074c10226f28a1e4d6c2977861b9adbc8ea1c07655471b08a0 SHA512 02825df92b4118e326ab7916b1f1247a46cb0ba7871410373f6156ecc73217bc642502034d2b07b7235309f8d5a8047d55c15b70670f868cd48af8a18308eb0c WHIRLPOOL 5ba17b65f96267beb0d5cff7d2c0e5143dc27a4f2cf643ba471ddb6ae3dccce85a6b071e6a10cda49efb3d78142e6bf6d91ee2ee316d4da48ddf1e771faa1732
+MISC ChangeLog 2547 SHA256 9db6069c89747df49a9ac105f352276f69b9dc458bd530b93323c6f2e4480967 SHA512 0b3e7161859f0db654f41bbc6af5069872ec1f22dd3d725c88928c4c13ad427e096fd6974b997479e738ec2c42b52eb58388a6ad14eb72efce371122700994ef WHIRLPOOL 582c0db655257cf4b1c017ac709a24b87b35d335fb4ce42f7773269bdc6469bfd4e9be228611af7d56d1f5229061c618d14703fb29eff4d30d50355924e0421b
+MISC ChangeLog-2015 2308 SHA256 b73201ab7eb756515d80af23abde9b5ccf7d27df065a0622f6c8393cc79dc0d8 SHA512 66f596beee79ebfc4545b9abea8bccf0daf50cc363f07c4e325547f981cb007bc184f9722f9e4eb0c2294674e20fd385f7886eeb67c6629522df68d1ad2ee776 WHIRLPOOL f98228c4dfb52301c0658c0b7e66c5fd392250b558b91b907d2e32143e24e038febf6eca68091d4a26f85797552b51608b89f0a6b2ceb72d9d2ba68fc97487df
+MISC metadata.xml 782 SHA256 e4ffd626de11ffb8224512869095491e7e56c990783d4e912655cd81bd90c9cc SHA512 8ce15614cc7864c9d4a40ad1c83609d403d012f1d4bb9b6f0fcd523b210d943e816d58a3dd6f9e5345fc889118f7d833980b9615cba1d04d54184c2df8d4e2f8 WHIRLPOOL 4ae16412b9fd3af405dc2d4dd7c0f1dc1a520a623a7ad80ae21a2628408a0b84ac35e2690a4f61858623e0d7d157c365ede070a23b31de9d217132f5e063a648
diff --git a/net-mail/poppassd_ceti/files/poppassd.xinetd b/net-mail/poppassd_ceti/files/poppassd.xinetd
new file mode 100644
index 000000000000..7f0344781bce
--- /dev/null
+++ b/net-mail/poppassd_ceti/files/poppassd.xinetd
@@ -0,0 +1,12 @@
+service poppassd
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ server = /usr/sbin/poppassd
+ log_on_success += HOST DURATION
+ log_on_failure += HOST
+ disable = yes
+}
+
diff --git a/net-mail/poppassd_ceti/metadata.xml b/net-mail/poppassd_ceti/metadata.xml
new file mode 100644
index 000000000000..32eb1e27b6df
--- /dev/null
+++ b/net-mail/poppassd_ceti/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ Provides a daemon for changing passwords over the network. This feature
+ is commonly used for TCP loopback password changing from web scripting
+ languages such as Perl and PHP, removing the requirement for setuid perl
+ scipts or running a web server process as root. This version of poppassd
+ has PAM support, and also optional support for cracklib enforcing the use
+ of strong passwords. Note that the protocol is plain text and so insecure
+ for all but loopback use.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r1.ebuild b/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r1.ebuild
new file mode 100644
index 000000000000..b9029a221c85
--- /dev/null
+++ b/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs pam portability
+
+MY_PN="poppassd"
+MY_P="${MY_PN}-${PV}"
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Password change daemon with PAM support"
+HOMEPAGE="http://echelon.pl/pubs/poppassd.html"
+SRC_URI="http://echelon.pl/pubs/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cracklib"
+
+DEPEND="virtual/pam"
+
+RDEPEND="${DEPEND}
+ sys-apps/xinetd
+ cracklib? ( sys-libs/cracklib )"
+
+src_compile() {
+ $(tc-getCC) -c ${CFLAGS} ${MY_PN}.c || die "Compile failed."
+ $(tc-getCC) -o poppassd ${MY_PN}.o -lpam $(dlopen_lib) || die "Linking failed."
+}
+
+src_install() {
+ dodoc README
+
+ pamd_mimic_system poppassd auth account password
+ if use cracklib; then
+ echo -e "password\trequired\tpam_cracklib.so retry=3" >> \
+ ${D}/etc/pam.d/poppassd
+ fi
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/poppassd.xinetd poppassd
+
+ insinto /usr/sbin
+ insopts -o root -g bin -m 500
+ doins poppassd || die "Install failed."
+}
diff --git a/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r2.ebuild b/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r2.ebuild
new file mode 100644
index 000000000000..ff5a2b157ec2
--- /dev/null
+++ b/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs pam portability
+
+MY_PN="poppassd"
+MY_P="${MY_PN}-${PV}"
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Password change daemon with PAM support"
+HOMEPAGE="http://echelon.pl/pubs/poppassd.html"
+SRC_URI="http://echelon.pl/pubs/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/pam"
+
+RDEPEND="${DEPEND}
+ sys-apps/xinetd"
+
+src_compile() {
+ $(tc-getCC) -c ${CFLAGS} ${MY_PN}.c || die "Compile failed."
+ $(tc-getCC) ${LDFLAGS} -o poppassd ${MY_PN}.o -lpam $(dlopen_lib) || die "Linking failed."
+}
+
+src_install() {
+ dodoc README
+
+ pamd_mimic_system poppassd auth account password
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/poppassd.xinetd poppassd
+
+ insinto /usr/sbin
+ insopts -o root -g bin -m 500
+ doins poppassd || die "Install failed."
+}
diff --git a/net-mail/postfix-logwatch/Manifest b/net-mail/postfix-logwatch/Manifest
new file mode 100644
index 000000000000..f672357c5ec6
--- /dev/null
+++ b/net-mail/postfix-logwatch/Manifest
@@ -0,0 +1,9 @@
+AUX multi-digit-enhanced-status.patch 1479 SHA256 89c7b86632ccff9f1cb2720a58510092f81a881865b775d0a4b402ee418ec78a SHA512 6f732591637c5a076532b210a0b9378904609e7927ed5549c1b3e976e45a38e080ed0a754b230d04f4fd0b1904ddc75acd4c420032e23bd663276398cb35a5c7 WHIRLPOOL aa3343631322117d718b9b2332d9b2605c74a2fa44d859f119037939c23997546a3022016e7a292e3b6cf6a76c12d76b46634c62e8b46d9bbd6c5a3c51347ddc
+AUX redundant-argument-to-sprintf.patch 1744 SHA256 a3e500da7b5379f3c0600904b2092e7a6b3a9a8270d1137ebc0f0c07211a4103 SHA512 31e35603cee7c51ffe126ba0caeadbbca564694439101d92293d2163d3b674be552ac3e781d4b10fab11435d072bf3bb540e3070bd3a839dd6297fff02cf5b04 WHIRLPOOL 408129f782a7fd6a40f72061f4953726c48e87b5b3fdbb3b2e58e5f488a17e584ca411786591cbdc7d0f7e2745e8b5005b420a62b5c1811c92a0268d8c5f597d
+AUX unescaped-left-brace.patch 1277 SHA256 cf57345d6dec8bf8d45020af79d4c15bb95d4c3d98b2495bea39df561439eb15 SHA512 dcfdb1fc7793fcf8a1e41fd890023c901bccff5c241601f99a5aef398fe35c1eae82d786064e189ef2113aad9d2081a67d8451d9c58ceefc78192e22ac5d3033 WHIRLPOOL fde7e75c52ca4afc97bc7d8183c5161badf379f71ae543f5660cf566f7a42a780153457d18ce18492eb8aa9f524ac06e7f28539ec5e155649151b12127d4793b
+DIST postfix-logwatch-1.40.03.tgz 107065 SHA256 c9aae87471554bb93c9d91bd2df3999ce3fae19f75ffd43fdee3f8552232c748 SHA512 7059f409cabb3cb638885342ab876e1c85c87530c3544bf04c54a56707695acdc5cbb706e3f192ef5608c9a00706e4d7be3cc7b32286460719d7b497e44b3341 WHIRLPOOL 3c8e556863a79ec55af5e1a19204ddbc2fb3ac60c1a8162239f465da2cda465983f705755be7750e58e0a196c680b1e880f5c6aed0157baf275f6443535104a4
+EBUILD postfix-logwatch-1.40.03-r2.ebuild 1071 SHA256 e26f7d9d889364847fceec4712ffa74aff48319aa9a446500d0ab41c7cb5c46f SHA512 4fe1e57565820139e3228d3b3a10400d0ae68bfd89aa3a066bf2e83247244a2fd704c8c7ed7c2140659dabe8e2a3887c02fddbd40b6763e599d4594f24d40456 WHIRLPOOL dc557e7a7fe266617e7b1ad950c8411b7a893463633c5470690e16b1d1c46edb0d64d9c4ad29faea46f1f119b748f37b4c757121ec7216ad6305954094fcae5e
+EBUILD postfix-logwatch-1.40.03.ebuild 905 SHA256 d27fe92c7a60846aa5a796c2e22ed7cd1684699b853ff0e2d40c011dae12ec03 SHA512 ab5358dacd8bcbf723d2c8a310f67b2a351bf814a018f3a258d6ae68ca244aca34b214194d53678caa5cd5ba99e24a0c74a2fe068078659a955694c02adbca30 WHIRLPOOL 05afddb1f12be1e8a2a6e93a75692e1e7d6796afe560e434f75c04e31dd467e380d4dc55c3ac40bd1b4e06b0241987ed92a95dfdae1c9a1ed9defa8f7db89976
+MISC ChangeLog 2439 SHA256 23a257bb21b554b1099d717e06e9c6e22c92b564e921edafcf3297e53c361f66 SHA512 a78e1a9c4d3d70f6d2fcbff2201d0d348441f1ad1ce3d690cefcc82286f0571afda1676efb3c97a7f8cb34dee12f8f1f5dd86f0361562fede4b2750d6ad3e26f WHIRLPOOL 5967139fac80d2013a40056206dca62a5606f88a6b8cf2bf6580b438aa1ca57ecbf49e3ede57088cfcdfbd2a230263f16b6aa39e2509705c8365427f3524fbbf
+MISC ChangeLog-2015 1150 SHA256 0ea7b481e33e04aa79b6033fe7b2197661fc5599c5fa0c9df9382e98d536c3d6 SHA512 6d84cd9cba19e811f48b254cddd65d3fb43064f644ed179e95588c73b287520b78c272d43db1297b53dff6fda222ed6f5e45166acdede705b63aabe0530e30cd WHIRLPOOL 8eeffdfb7b8bae200f8ac33bd6b25339cc8b9d1bc4fe997c5fcb926af4b3aab3ecd0a2acdfd2c316a21d8e513f01dab3dce0f2f1a9bb0535ebe7abc25d88d523
+MISC metadata.xml 304 SHA256 b182e57c2917b40d2337cc57fe76f04e36af8c24004a80c61c3eea94f9b5477f SHA512 6df4937b334df95e1178cd70c594d9ef08e52f5b34f4da0a129cd3586192dabe974623b13b6992021231150e8a70b7c2d68e7b65faea39113efe04f9a2244cb1 WHIRLPOOL b774e93c9c2e496b4d859e2149b688d68785cb18bde4a6f17dc10dc1e09c199b0d3c775441b863936ce726a392adc7d6f69eeb2a45fd33ea7967984165cfb272
diff --git a/net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch b/net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch
new file mode 100644
index 000000000000..f07ab22813c9
--- /dev/null
+++ b/net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch
@@ -0,0 +1,38 @@
+From ced6e6fcbf1a025419e8ee9f940e5022ed440532 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Tue, 5 Sep 2017 09:19:44 -0400
+Subject: [PATCH 1/1] Allow multi-digit numbers in enhanced SMTP status codes.
+
+The re_DSN regular expression is intended to match a response like
+"550 1.2.3", where "1.2.3" is an enhanced status code. However, the
+regular expression was only expecting single-digit numbers between the
+dots; thus it was missing codes like "550 5.7.23". The expression has
+been updated to accept any number of digits between the dots.
+
+This fixes unmatched rejection lines that begin with,
+
+ 550 5.7.23 <user@example.com>: Recipient address rejected...
+
+Such lines appear with newer versions of the python SPF policy daemon.
+---
+ postfix-logwatch | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/postfix-logwatch b/postfix-logwatch
+index 92ed621..827dfe0 100644
+--- a/postfix-logwatch
++++ b/postfix-logwatch
+@@ -66,7 +66,9 @@ my $re_QID_s = qr/[A-Z\d]+/;
+ my $re_QID_l = qr/(?:NOQUEUE|[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ\d]+)/;
+ our $re_QID;
+
+-our $re_DSN = qr/(?:(?:\d{3})?(?: ?\d\.\d\.\d)?)/;
++# The enhanced status codes can contain two-digit (or more) numbers;
++# for example, "550 5.7.23".
++our $re_DSN = qr/(?:(?:\d{3})?(?: ?\d+\.\d+\.\d+)?)/;
+ our $re_DDD = qr/(?:(?:conn_use=\d+ )?delay=-?[\d.]+(?:, delays=[\d\/.]+)?(?:, dsn=[\d.]+)?)/;
+
+ #MODULE: ../Logreporters/Utils.pm
+--
+2.13.0
+
diff --git a/net-mail/postfix-logwatch/files/redundant-argument-to-sprintf.patch b/net-mail/postfix-logwatch/files/redundant-argument-to-sprintf.patch
new file mode 100644
index 000000000000..ee0e79bd41d9
--- /dev/null
+++ b/net-mail/postfix-logwatch/files/redundant-argument-to-sprintf.patch
@@ -0,0 +1,48 @@
+From 6afb8e258a5a2a0e7c72c4c25927dde9d1e2ad89 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 24 Aug 2017 07:34:36 -0400
+Subject: [PATCH 2/2] Fix redundant argument to sprintf warning.
+
+Perl 5.22 now warns about redundant (i.e. extra) arguments to the
+sprintf function. If your format string only has two place-holders but
+you pass three place-fillers, you get warned:
+
+ Redundant argument in sprintf at ./postfix-logwatch line 1382...
+
+The issue there was that the format string passed to sprintf was
+constructed dynamically; sometimes it would contain two place-holders,
+and sometimes three. Three place-fillers were always passed, so when
+only two place-holders were used, the warning would be thrown. This was
+fixed by testing whether or not there are two or three place-holders,
+and passing the appropriate number of place-fillers.
+---
+ postfix-logwatch | 13 +++++++++++--
+ 1 file changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/postfix-logwatch b/postfix-logwatch
+index 1e58a95..92ed621 100644
+--- a/postfix-logwatch
++++ b/postfix-logwatch
+@@ -1378,8 +1378,17 @@ sub print_summary_report (\@) {
+ $$divisor == $Totals{$keyname} ? 100.00 : $Totals{$keyname} * 100 / $$divisor;
+ }
+ else {
+- push @{$lines[$cur_level]},
+- sprintf "$fmt %-23s $extra\n", $total, $desc, commify ($Totals{$keyname});
++ my $new_line;
++ if ($extra eq '') {
++ $new_line = sprintf("$fmt %-23s \n", $total, $desc);
++ }
++ else {
++ $new_line = sprintf("$fmt %-23s $extra\n",
++ $total,
++ $desc,
++ commify ($Totals{$keyname}));
++ }
++ push @{$lines[$cur_level]}, $new_line
+ }
+ }
+ }
+--
+2.13.0
+
diff --git a/net-mail/postfix-logwatch/files/unescaped-left-brace.patch b/net-mail/postfix-logwatch/files/unescaped-left-brace.patch
new file mode 100644
index 000000000000..65139a3aff14
--- /dev/null
+++ b/net-mail/postfix-logwatch/files/unescaped-left-brace.patch
@@ -0,0 +1,37 @@
+From 84f9fb47783e63757f27e5990ee606ff01e079a9 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 24 Aug 2017 07:09:28 -0400
+Subject: [PATCH 1/2] Fix unescaped left brace warning for "Config: {".
+
+New versions of Perl are starting to complain about unescaped braces
+in regular expressions, and supposedly the warning will become a fatal
+error in Perl 5.30. This particular warning is,
+
+ Unescaped left brace in regex is deprecated, passed through in regex;
+ marked by <-- HERE in m/^Config: { <-- HERE / at ./postfix-logwatch
+ line 1850.
+
+and it was fixed by going to line 1850 and putting a backslash before
+the left brace.
+
+Bug: https://sourceforge.net/p/logreporters/bugs/4/
+---
+ postfix-logwatch | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/postfix-logwatch b/postfix-logwatch
+index 3e4a673..1e58a95 100644
+--- a/postfix-logwatch
++++ b/postfix-logwatch
+@@ -1847,7 +1847,7 @@ sub postfix_policy_spf($) {
+ # KeyboardInterrupt
+ $line =~ /^Read line: "/ or
+ $line =~ /^Found the end of entry$/ or
+- $line =~ /^Config: {/ or
++ $line =~ /^Config: \{/ or
+ $line =~ /^spfcheck: pyspf result/ or
+ $line =~ /^Starting$/ or
+ $line =~ /^Normal exit$/ or
+--
+2.13.0
+
diff --git a/net-mail/postfix-logwatch/metadata.xml b/net-mail/postfix-logwatch/metadata.xml
new file mode 100644
index 000000000000..c2f0518836b4
--- /dev/null
+++ b/net-mail/postfix-logwatch/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">logreporters</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild b/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild
new file mode 100644
index 000000000000..b798aeb3512f
--- /dev/null
+++ b/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A log analyzer for postfix"
+HOMEPAGE="http://logreporters.sourceforge.net/"
+SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-lang/perl"
+
+PATCHES=(
+ "${FILESDIR}/unescaped-left-brace.patch"
+ "${FILESDIR}/redundant-argument-to-sprintf.patch"
+ "${FILESDIR}/multi-digit-enhanced-status.patch"
+)
+
+src_prepare() {
+ default
+ # Replace the default config file location with ours.
+ local cfg_default='/usr/local/etc/${progname_prefix}-logwatch.conf'
+ local cfg_gentoo='/etc/${progname_prefix}-logwatch.conf';
+ sed -i "s~${cfg_default}~${cfg_gentoo}~" ${PN} \
+ || die 'failed to update the default config location'
+}
+
+src_compile() {
+ # The default make target just outputs instructions. We don't want
+ # the user to see these, so we avoid the default emake.
+ :
+}
+
+src_install() {
+ dodoc Bugs Changes README ${PN}.conf-topn
+ doman ${PN}.1
+ dobin ${PN}
+ insinto /etc
+ doins ${PN}.conf
+}
diff --git a/net-mail/postfix-logwatch/postfix-logwatch-1.40.03.ebuild b/net-mail/postfix-logwatch/postfix-logwatch-1.40.03.ebuild
new file mode 100644
index 000000000000..375d2ed98b4b
--- /dev/null
+++ b/net-mail/postfix-logwatch/postfix-logwatch-1.40.03.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A log analyzer for postfix"
+HOMEPAGE="http://logreporters.sourceforge.net/"
+SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="dev-lang/perl"
+
+src_prepare() {
+ # Replace the default config file location with ours.
+ local cfg_default='/usr/local/etc/${progname_prefix}-logwatch.conf'
+ local cfg_gentoo='/etc/${progname_prefix}-logwatch.conf';
+ sed -i "s~${cfg_default}~${cfg_gentoo}~" ${PN} \
+ || die 'failed to update the default config location'
+}
+
+src_compile() {
+ # The default make target just outputs instructions. We don't want
+ # the user to see these, so we avoid the default emake.
+ :
+}
+
+src_install() {
+ dodoc Bugs Changes README ${PN}.conf-topn
+ doman ${PN}.1
+ dobin ${PN}
+ insinto /etc
+ doins ${PN}.conf
+}
diff --git a/net-mail/qlogtools/Manifest b/net-mail/qlogtools/Manifest
new file mode 100644
index 000000000000..0b3a3f674855
--- /dev/null
+++ b/net-mail/qlogtools/Manifest
@@ -0,0 +1,6 @@
+AUX qlogtools-3.1-errno.patch 348 SHA256 3b6356aac223bcb5527773592a40c63dfa60f7db18bfb6d168cace2281d5af34 SHA512 5f9e49aba6e01d5712ceadd8f2a0e3e03bdb2d1cb0c6cc4de7e6b54ef99aff0daa14a93fbeb0557ca9fdb6b75edaf4d0b24ad2b41971fc4f330435ab74ed48f8 WHIRLPOOL 3cb51db4db88e1950d6fdf3c7f20d6a83a73b0b3f6d6ac0fbb6b4c99dc2ddef025751da45980aee5eb5cee29f74f1ccd2bd220a43247fbf556b1f857fb07afb3
+DIST qlogtools-3.1.tar.gz 20868 SHA256 7a81eb8b8bf32abc75092b9779715b3d20eab902e6aba52a3b4ac04232af2de3 SHA512 aa080114d543d70879b091e3c1d4ddf7a3c1eaf0848c7215fb291e0dac49070833917f66bf02012bcfb1c5df63dadd0ab8c1c1642e5e1c4dd3c34c88bf2751e7 WHIRLPOOL a2bc4185640640c7e2993803e34032a1d864dc0fb24a2575dc2fe873e44997ecaaac7e6cde2cebe59300b8825069c81a50537f2086452d04ee16485950b9786c
+EBUILD qlogtools-3.1.ebuild 928 SHA256 28dafb12ee417bcf816126df3e84e54368fa0c8e38d7c50e608cad947ae28436 SHA512 c5615fac1ff68f732711084c5710bc6b9aa65c319b96d803c35043f3e0534a1589653a7cb303281dd74668fc9eea415efa1bcd73854fa05dead2def9ce73943c WHIRLPOOL 5f70816d9ed7b65edf6708f13c88883166fc9f3e18855fd565c6cb6884257854849ea25aee6a60fa228676afd80f8bb5b0a6d9a37614575ea4f6c22e15a63f1d
+MISC ChangeLog 2463 SHA256 2f1db4cd501d099116330dbe2447417a3b5da2d3589e44bab384d396c659679a SHA512 ed726e093627d72e60deb5e02ab2e5f5bdabd78349d6586693034ee77fd39dca4dfd068a275f00ae631bd2c602419de46538b712e879bb0d8e64c101df3c5e67 WHIRLPOOL 46997e8111d4bdbb8dcae6cbe45e28882486d11e50dcebe0dc8593fc95aed28aa4ee04b256816796722eb9e70496def3b0df11d73a23a7e2ddf443338a9935cf
+MISC ChangeLog-2015 1238 SHA256 4d0785e00a8178dd887d17d2943de4018e4a53bd7d93d6ceaee8695a74045ec9 SHA512 bb1b1647240e6aa83cede0189419457237628930a5997a81115efb8c0b01efefcb9f33a48c259984d9aab6a7e6f0b84c4747645333af5cfb56c930c123687218 WHIRLPOOL 6fefd95b1b7c4369d4bc5a5550d3eb265bfb2cd8924e787e9dfc3a0ea866a2070c0b728eff0ffedafb6f32f74c0a61fb230eb3b32021f319288af70339b250af
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/qlogtools/files/qlogtools-3.1-errno.patch b/net-mail/qlogtools/files/qlogtools-3.1-errno.patch
new file mode 100644
index 000000000000..b080e1d285f8
--- /dev/null
+++ b/net-mail/qlogtools/files/qlogtools-3.1-errno.patch
@@ -0,0 +1,13 @@
+diff -ur qlogtools-3.1.orig/qfilelog.c qlogtools-3.1/qfilelog.c
+--- qlogtools-3.1.orig/qfilelog.c 2001-06-12 14:41:47.000000000 -0700
++++ qlogtools-3.1/qfilelog.c 2003-07-31 21:52:51.000000000 -0700
+@@ -3,8 +3,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+-
+-extern int errno;
++#include <errno.h>
+
+ #define PAUSE sleep(60)
+
diff --git a/net-mail/qlogtools/metadata.xml b/net-mail/qlogtools/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/qlogtools/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/qlogtools/qlogtools-3.1.ebuild b/net-mail/qlogtools/qlogtools-3.1.ebuild
new file mode 100644
index 000000000000..42b1c28b8cb3
--- /dev/null
+++ b/net-mail/qlogtools/qlogtools-3.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Qmail Log processing tools"
+HOMEPAGE="http://untroubled.org/qlogtools/"
+SRC_URI="http://untroubled.org/qlogtools/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="!app-text/multitail"
+
+src_unpack() {
+ unpack ${A}
+ EPATCH_OPTS="-p1 -d ${P}" epatch "${FILESDIR}"/qlogtools-3.1-errno.patch
+}
+
+src_compile() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ echo "${D}/usr/bin" > conf-bin
+ echo "${D}/usr/share/man/" > conf-man
+ emake || die
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/
+ ./installer || die "Installer failed"
+ dodoc ANNOUNCEMENT FILES NEWS README TARGETS VERSION
+}
+
+pkg_postinst() {
+ elog "Please see /usr/share/doc/${PF}/README for configuration information"
+}
diff --git a/net-mail/qmail-autoresponder/Manifest b/net-mail/qmail-autoresponder/Manifest
new file mode 100644
index 000000000000..e428f5022b33
--- /dev/null
+++ b/net-mail/qmail-autoresponder/Manifest
@@ -0,0 +1,7 @@
+AUX qmail-autoresponder-0.97-remove-mysql.h.diff 347 SHA256 52fc2742320ee48d96f227861bde605073e163dae8f594c262fbaea0e93ff4dd SHA512 fa1ae38b8c61c1a67c20653b4e19e48946c140496d7380f918818bc18171de36762c70fc664947a22d0fb479f224d16bb2741374e8813ac46768178e3285f7d5 WHIRLPOOL f26c8cb4854cc6ef985502b84a66eb592a4111dd90ee34e2fdc0cc5df85e51ad35ab07e9d73fb388876795a92523dc39533d74aecec4b7cc730331e46ff8ef91
+DIST qmail-autoresponder-0.97.tar.gz 28158 SHA256 445a36f10dd4c0af3608c9d546f3b2aad48870bffe35db31ea5dcb857abf699c SHA512 02bc3afd7a13c9494913986d34c641804c731e26207d32aeff5de36fdbd872d6361872e7ab583d5df1e34fe2a7a35b621337974a2cc71a3283de22f0e6f60916 WHIRLPOOL a87cdb5e635f828ff9a2e54f06fa276a794efc94067aa051da5bfec4f5c6f35230a8117f98e419da63455dbab339a154e3f29d0573834f75084dd1961751884a
+EBUILD qmail-autoresponder-0.97-r1.ebuild 1370 SHA256 eb498d58d2682062ee971cd13e8e02693e662a78e201222497da24b42358b7ae SHA512 5c21559ea633760e0e400fc58f766446e3d597d12a390439decbf672f1a1145f56e3fa781832b002e96c8f44a6abd12b27615b2ca83a6927206514d6b3a122df WHIRLPOOL 56cbf074839a83d7674a15c51e0a585a4a6608e7f02e8fd44af83fddf2b75c51588f5652c7a47af5a9a4a23dca5fe3d219bcca6536725757ae08f971888a1a25
+EBUILD qmail-autoresponder-0.97-r2.ebuild 1395 SHA256 36d1bd66480d4a0243f5ed79de39bd8bf1e7155634fae1f873a68513993fa3d9 SHA512 f0cc65782ca072265c8f498cc0050ee12f0350501d93e28ba29ae2da10b51512f28f4d95132fa09d90c3e5187010b50c6b0a24036e6d3d685b1c2d54c18d68f5 WHIRLPOOL f52bca40488858f9d8773789f8b8ea84fe9f9f8f448c229c787b3a2751b706f0bcda9d81517cdb8b4c068c04b6169ad5c3f27f55e4b8bfff914596786fde63f8
+MISC ChangeLog 2602 SHA256 5c2fb04b73683dd7b41cf539b24dac55cb1f05c8b2a55b926b5f6a322be3ba50 SHA512 4a6dc305d125706d870597aa3d9cffbeb2dece47aa60514a7ebb7cd981d11df03aacd54244304893a3622b52a9a4ddf7913893baa1dfaac7bb20e3a69c583be3 WHIRLPOOL 6adcaf2480907fd6848296ef400606f3bd09789973d6247f15dc47248a791e14a0fb772aa3d10ad9c57ee412c83816a5a79ddf514f7ebfac10f2b5ee4068cf66
+MISC ChangeLog-2015 6740 SHA256 ecb1247d7190243254d7c4bb87b1e07b94a6b76acf3ae1a2a605740c0188d7a1 SHA512 b033649c3479f5205b1d457a6522a463e5609ddfbd699bc803af71a5d0ef5ae31ff91ff11cf147b81dcba12592a6774316636717a6bdd8bbcdd032add5da69e3 WHIRLPOOL be8a2f94e33478c2c57e9ec4f7b0ae69a99c4a7e5d0a36e807dae8482d67c58598c7f6791880fb7813639ad77af8ec323563a96e4c860a1de73e189ca8656ba8
+MISC metadata.xml 489 SHA256 6ba6829a4825eb3511794be34bc43efbddf9bc92425050daf4e3377732da54ee SHA512 de41d320e5c5efa4aaae8cc862990179bca55069f3ec37a4633af610729d37f39a4bdcfdb6797c940f1920b2475e575fe55e12230a1ad993e65464fc37a5faeb WHIRLPOOL a17af8a031070e0441f300344526cb8b7eb6762b67b43408971d8998cb8a50a9e2fa432830313fc3fb12d5e261131ed79f0e6dda3e660c5b9cc35833c9d5ed2b
diff --git a/net-mail/qmail-autoresponder/files/qmail-autoresponder-0.97-remove-mysql.h.diff b/net-mail/qmail-autoresponder/files/qmail-autoresponder-0.97-remove-mysql.h.diff
new file mode 100644
index 000000000000..be33e047b16a
--- /dev/null
+++ b/net-mail/qmail-autoresponder/files/qmail-autoresponder-0.97-remove-mysql.h.diff
@@ -0,0 +1,8 @@
+diff -Naur qmail-autoresponder-0.97.orig/options.c qmail-autoresponder-0.97/options.c
+--- qmail-autoresponder-0.97.orig/options.c 2009-09-26 22:45:17.000000000 +0200
++++ qmail-autoresponder-0.97/options.c 2009-09-26 22:46:07.000000000 +0200
+@@ -1,4 +1,3 @@
+-#include <mysql/mysql.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <str/str.h>
diff --git a/net-mail/qmail-autoresponder/metadata.xml b/net-mail/qmail-autoresponder/metadata.xml
new file mode 100644
index 000000000000..6b25c3daa7b3
--- /dev/null
+++ b/net-mail/qmail-autoresponder/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription lang="en">
+This is a simple program to automatically respond to emails.
+
+It is based on some ideas (but little or no code) from a similar
+autoresponder by Eric Huss, and ideas presented
+on the qmail mailing list.
+</longdescription>
+</pkgmetadata>
diff --git a/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild b/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild
new file mode 100644
index 000000000000..d7c0c1da018e
--- /dev/null
+++ b/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Rate-limited autoresponder for qmail"
+HOMEPAGE="http://untroubled.org/qmail-autoresponder/"
+SRC_URI="http://untroubled.org/qmail-autoresponder/archive/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86"
+IUSE="mysql"
+
+DEPEND=">=dev-libs/bglibs-1.022
+ mysql? ( virtual/mysql )"
+RDEPEND="
+ ${DEPEND}
+ virtual/qmail
+ mysql? ( virtual/mysql )
+"
+
+src_prepare() {
+ use mysql || epatch "${FILESDIR}/${PN}-0.97-remove-mysql.h.diff"
+}
+
+src_configure() {
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/lib/bglibs" > conf-bglibs
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_compile() {
+ # fails on parallel builds!
+ make qmail-autoresponder || die "Failed to make qmail-autoresponder"
+ if use mysql; then
+ make qmail-autoresponder-mysql || die "Failed to make qmail-autoresponder-mysql"
+ fi
+}
+
+src_install () {
+ dobin qmail-autoresponder || die
+ doman qmail-autoresponder.1
+ if use mysql; then
+ dobin qmail-autoresponder-mysql || die
+ dodoc schema.mysql
+ fi
+
+ dodoc ANNOUNCEMENT NEWS README TODO ChangeLog procedure.txt
+}
+
+pkg_postinst() {
+ elog "Please see the README file in /usr/share/doc/${PF}/ for per-user configurations."
+}
diff --git a/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r2.ebuild b/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r2.ebuild
new file mode 100644
index 000000000000..6950af0af69c
--- /dev/null
+++ b/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs eutils multilib
+
+DESCRIPTION="Rate-limited autoresponder for qmail"
+HOMEPAGE="http://untroubled.org/qmail-autoresponder/"
+SRC_URI="http://untroubled.org/qmail-autoresponder/archive/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="mysql"
+
+DEPEND=">=dev-libs/bglibs-1.106
+ mysql? ( virtual/mysql )"
+RDEPEND="
+ ${DEPEND}
+ virtual/qmail
+ mysql? ( virtual/mysql )
+"
+
+src_prepare() {
+ use mysql || epatch "${FILESDIR}/${PN}-0.97-remove-mysql.h.diff"
+}
+
+src_configure() {
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/$(get_libdir)/bglibs" > conf-bglibs
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_compile() {
+ # fails on parallel builds!
+ make qmail-autoresponder || die "Failed to make qmail-autoresponder"
+ if use mysql; then
+ make qmail-autoresponder-mysql || die "Failed to make qmail-autoresponder-mysql"
+ fi
+}
+
+src_install () {
+ dobin qmail-autoresponder || die
+ doman qmail-autoresponder.1
+ if use mysql; then
+ dobin qmail-autoresponder-mysql || die
+ dodoc schema.mysql
+ fi
+
+ dodoc ANNOUNCEMENT NEWS README TODO ChangeLog procedure.txt
+}
+
+pkg_postinst() {
+ elog "Please see the README file in /usr/share/doc/${PF}/ for per-user configurations."
+}
diff --git a/net-mail/qmail-lint/Manifest b/net-mail/qmail-lint/Manifest
new file mode 100644
index 000000000000..0d7f672b4579
--- /dev/null
+++ b/net-mail/qmail-lint/Manifest
@@ -0,0 +1,5 @@
+DIST qmail-lint-0.55 13531 SHA256 6385075f12aaa699dcccda99efa8f2e86eb266ad511d26b9430270ce6cd55dc6 SHA512 d9f81df52f5587c1f4083789ec55795c1b9cfd896583f4bd910ec7fc542daa9da0a6cbe368d261071224981c5e731aa26560ef645a2c9ce64ae8563e9b6b28ec WHIRLPOOL 12893e3ed442baef73ce7aebe1acb539887ba769e792e212db93666eddc631c85f06f4a9bf2ae41dc9208cf3bca2e39bdde8d7cf2133900d5e616e6307113c94
+EBUILD qmail-lint-0.55.ebuild 555 SHA256 9f4b5101bf2b650760b2624d75291909a7f547a0794b493a4dc24f0d058d978e SHA512 8234a99278a88012ef51f81f3be1bf4d1419b4a7d2e6a05709024770c6f70c9ea26dd7e4317f776ad86b2040de9eed6f69af543cadae0c21f28600d45f989e91 WHIRLPOOL 9f35f66b6bc07fb35beb415cd06883c64bdb62141349244a47ac38eca83206cd055b2cdf712aa49ad76d9453c1d76f2a5dc808cb63128598064514b97ce916a5
+MISC ChangeLog 2434 SHA256 2741a15bfa2af2db23515a8aed0e9b16417743d4ab48c0c553b1c8cdb118b053 SHA512 8099c0d2ddced31e95f4f167f3c25d4535d95dca513e2eebfd8b08fb3b0b9ec3fd1755a318c8f59b39589526d4a952697a96bd479fda3c448948a192be361a66 WHIRLPOOL 9d7c3621e4d9959849a6358f17af2e01a5447ca24e595cb7e4d0995e68fa53dcc1e04720e8d1e2b677cfea3147db419128b7168d9660506e8e143dead645d9a2
+MISC ChangeLog-2015 681 SHA256 a7e6799060757a3a0e83d0776a0944343f8b51054a89e80a217abc51fe8c5e8b SHA512 88a61d561d156d07b2c94a7202d6d0e7b41b7d987839a9b7c43b6ef1b2f511252a43af329cb4aab17b4455af76e1d8512067e2d61ae420987c13dc530be97ae2 WHIRLPOOL 0c035747df609dfcf1b4da35583ecf248e676c7299501e0af82aca6449cf4619715de729d8c14c14af72d1d868258a60270b9f7b9b619af15995d7f0f7d11bc0
+MISC metadata.xml 548 SHA256 06e16b983c63e752924bcd884fa3c985d4cf4297bfdefcb3bd905987a0a934ea SHA512 aa1f925e2bd3c5f3c3e0665384b7857890496d90f872adc285abed9afcf974e4a82a5a6bfe6530ac7e66cee47313c801d48184ed6a3a4777aee9485325d79cab WHIRLPOOL 931457945561030b19f72e68ff8f703565f5faf9bbb33a36f4b2d911e025ecc2777705685a0a90741ec73100fd59970c6d9a439456452d45e542cb1382fdd49b
diff --git a/net-mail/qmail-lint/metadata.xml b/net-mail/qmail-lint/metadata.xml
new file mode 100644
index 000000000000..afaeef99d61c
--- /dev/null
+++ b/net-mail/qmail-lint/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ <description>Primary Maintainer</description>
+</maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>qmail-lint checks your qmail configuration for common
+ problems. Prints warning or error messages to stdout. </longdescription>
+</pkgmetadata>
diff --git a/net-mail/qmail-lint/qmail-lint-0.55.ebuild b/net-mail/qmail-lint/qmail-lint-0.55.ebuild
new file mode 100644
index 000000000000..6e6f8e316daf
--- /dev/null
+++ b/net-mail/qmail-lint/qmail-lint-0.55.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="qmail-lint checks your qmail configuration for common problems"
+HOMEPAGE="http://www.qmail.org/"
+SRC_URI="mirror://qmail/${P}"
+
+LICENSE="qmail-nelson"
+SLOT="0"
+# Should run on all platforms without issue
+KEYWORDS="~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="virtual/qmail dev-lang/perl"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cp "${DISTDIR}"/${P} ${PN}
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ dobin ${PN}
+}
diff --git a/net-mail/qmail-notify/Manifest b/net-mail/qmail-notify/Manifest
new file mode 100644
index 000000000000..ebae682cc4af
--- /dev/null
+++ b/net-mail/qmail-notify/Manifest
@@ -0,0 +1,6 @@
+AUX qmail-notify.cron 80 SHA256 6584020af104922a34399e8058f4e6826aaab9d1e002bbf1a90d66cf6880d5bb SHA512 6242a426a601b9461ca1a79b14d2f850b963604de8291779001a2e18aeead5b7315664808968640de62b5615688a246451ba67f6bf05cc002d694d0c73836c23 WHIRLPOOL 9c79b22cdf30d8b3349435f41f390b489a4640a77381c2662ad7d743725464b2ac0cbd896046f7cce4f49d545a3e4bdef2434dcc11b2f11cb886a569ec1d4319
+DIST qmail-notify-0.93.tar.gz 37923 SHA256 f39c5a302613c31eccc0cb385a8ee03527c3cbb70b788bab64317178a6843a8d SHA512 b39ba70360fff69c40fa9421e94f6bba8b8f65aa85fa8e86580628de25f3d9cff26484909a71e50fd8ae8cd5198c194a43d00c2776132bfedac9c546a2628e4f WHIRLPOOL eff647a591a43ccdd46be0366165679349b720b4eac30a4dd78d02dff3884da1723f33d20e4471ce7331b8e922f5e0b64914429adeaa05201f2a231298a172c2
+EBUILD qmail-notify-0.93-r1.ebuild 848 SHA256 0e564544b990e24de399ffc49693f072c3e079396ae40d9a52f0997e0158775d SHA512 2de9c96ab60841a5bd0e9636cf6bd53ddb4e8d7c66f477a2a152f57ba46b1d040097ea737382c3aa06d5c6f7431a11463a99d6ed83a5b25f0229751eba4cf56f WHIRLPOOL 70c789e1a423b0d319ce57bfebb2a2753438180848e90677b98755586ed66f4f13497500afbad4de786857949b592f0f17260eda4750a637c94607a5a6afc25a
+MISC ChangeLog 2472 SHA256 f1a80a35e95bbf6c513c63e157a3b837045fc9d350f3be91eba2481613512581 SHA512 433cc4b498861e434b7d6734ae5430b90ffcc0b2731c8a6ea2263f71733b2cb9a9d8bd7884dddb792bc2108b263e852803d76c9b0d6b35ab1f96d98a1bcd2f2d WHIRLPOOL 06f702bb6f737212b04f8a0eadc6e8b599821a6a4014c832a0fd9c37add9ae4d217c6287b9da83bd698a5860b771897f4b35966adc35466711c2d0abbebe8bac
+MISC ChangeLog-2015 1905 SHA256 424c1f37fbf44138778942703859e5ad7cb8f7a5f38d876d669b3dfde0031d2e SHA512 eb97e3d4c73b5f6d219c971f342c8b34195cd605276f6b35f272834d332b75ac830efa21a167ab448ac9074ad41bfc192f51b8c93d6dc8e4bc7846305d0ba651 WHIRLPOOL 58979ec777ff005e93acc026b82bd66d3af5dbacebfcc9c26a94355cb2794ef0d6a4ded5336799a11dd35859ce8aa4b50b0c17ec8a665d8e96a585a414db55a0
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/qmail-notify/files/qmail-notify.cron b/net-mail/qmail-notify/files/qmail-notify.cron
new file mode 100644
index 000000000000..9d713e508cfc
--- /dev/null
+++ b/net-mail/qmail-notify/files/qmail-notify.cron
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# uncomment this to make it work
+#
+
+#exec /usr/sbin/qmail-notify -r
diff --git a/net-mail/qmail-notify/metadata.xml b/net-mail/qmail-notify/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/qmail-notify/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/qmail-notify/qmail-notify-0.93-r1.ebuild b/net-mail/qmail-notify/qmail-notify-0.93-r1.ebuild
new file mode 100644
index 000000000000..d82f98d1d07d
--- /dev/null
+++ b/net-mail/qmail-notify/qmail-notify-0.93-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="Delayed delivery notification for qmail"
+SRC_URI="http://untroubled.org/qmail-notify/archive/${P}.tar.gz"
+HOMEPAGE="http://untroubled.org/qmail-notify/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~hppa ~ppc sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ ${DEPEND}
+ virtual/cron
+ virtual/qmail
+"
+
+src_compile() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ emake || die
+}
+
+src_install () {
+ exeinto /usr/sbin
+ doexe qmail-notify
+
+ exeinto /etc/cron.hourly
+ doexe "${FILESDIR}"/qmail-notify.cron
+
+ dodoc README ANNOUNCEMENT TODO cron.hourly NEWS VERSION
+}
+
+pkg_postinst() {
+ echo
+ elog "Edit qmail-notify.cron in /etc/cron.hourly"
+ elog "to activate qmail-notify!"
+ echo
+}
diff --git a/net-mail/qmail-qfilter/Manifest b/net-mail/qmail-qfilter/Manifest
new file mode 100644
index 000000000000..4c3dc44666d2
--- /dev/null
+++ b/net-mail/qmail-qfilter/Manifest
@@ -0,0 +1,6 @@
+DIST qmail-qfilter-2.1.tar.gz 22242 SHA256 67d7f6d92eb034b1696ceb1672114c871dde06618c33dfc7f83e3a6667034468 SHA512 a515969b60aaa08a06513a9d88f3bfb36fa9d1333ea87613facb1d65055d44e69c4cad2298870607c012dffdec4d03c36dc87b24b3b3c0602ba1d7df6cb1ff2c WHIRLPOOL 7ebc2c958d9289f4f4c0cd75e9b59e60d019ce1fbd132ee04fc1152c869c85f7a1c6277fe361ed536324f50df3cb1e18f5f581ecac87a8b2607fa60b03e9f3a7
+EBUILD qmail-qfilter-2.1-r1.ebuild 1023 SHA256 15bc0901a72d949b5dc797cc57346a1549da60a5a241ef6f893e9f0378f30883 SHA512 5a4b4b0708adea80a32b8e8f067e69b6ee1b035dc5c7e524ff55f0d8f60f62590896c2b9c1e0ca92d9cf73ab118d1e28a5bffbc8cb030e5c4691ec7f207ea755 WHIRLPOOL 45b71382f8e73cdaf0348d7be54f079909e5a76abace7e8b1bc1b391ac64ae5459094b4d8dd1cd8c28db7d77bd6c3f33258d6fc77dcc0bd505e9ed80ee66e26c
+EBUILD qmail-qfilter-2.1.ebuild 1002 SHA256 4e5727ed35a09f54781ef7efb7b4de3e4953eb36257d7462a8ea43e5c6d2c975 SHA512 12775f5406a1df999255226f1fd90be91f04655786e1a1c13d7228d7b4084505c134e6ae482c7afb74435c70acad99169ff0db353681a118bef023d9fbf33484 WHIRLPOOL 120249dff8ca1d70f81a8a37c963fa227e321c01421df45a6fb473bd2af43d37faa5a9b2f09580fb19260155bc318b4faee3cb0d7a323dacb6180c21daa7e3e5
+MISC ChangeLog 2507 SHA256 c1279592c5d42b78e6aa514f1db5ff6ad156ca67171642c681566e1f59aaf54c SHA512 7ed101369ab30e4c3d70eaf68a478f7cbcbc16940db5a13270c9ec516af7fd4325a88bd618550227ca660c3483852e88b5695551d1828bd18902f2a30466fba1 WHIRLPOOL 120bc737ea363bcd77b0dbb9ec92bbd0a6f3c1ee5fbde49f261f3a640c5793e424e1cae7c5203a226566d394cc0efd683b30b0b92552fe806612e0779275c25c
+MISC ChangeLog-2015 3278 SHA256 f1ee7e886e695c705335baf430b249b16e477240a2c6b5237db68108d284d368 SHA512 022b4bfee90fcb9ba8e1e0b63ab4a0914aee0d31f3a934bda6cb2251354e594b16639946f18428b764d37f9e6917cda20e222d6200a44a9c00fa0cb3f0108e34 WHIRLPOOL 75e056708efccb50c49f8106c3b494302d9dbdfaa76df07dbbab91c60676a2c7465fc49fd7ac696da8547f23a89e12991963791a84130fd2ab17197641a80dab
+MISC metadata.xml 476 SHA256 087caf9f3bd9b3bdab184986db202254251a1d9af2741477fc60d842d2fe832a SHA512 0fe8371c47d4b41d63ea9fd64513bcae698faebc7be6c28615fa77ccab52522a8ed6a91de289edd464faa4bc6059d22d1e4caff809b446e0bd15eb2d49264faf WHIRLPOOL b91744921a3a064886e9d81fa20824cbfd700fc35801ea5817aa952975bc98b3cd842d7e47b4a4fb389b5fa7a15d0ddf7fcfd7705babbb99953cd0b5553e8aa9
diff --git a/net-mail/qmail-qfilter/metadata.xml b/net-mail/qmail-qfilter/metadata.xml
new file mode 100644
index 000000000000..a3a426be3f9f
--- /dev/null
+++ b/net-mail/qmail-qfilter/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription lang="en">
+This program allows the body and/or envelope of a message to be filtered
+through a series of filters before being passed to the real qmail-queue
+program, and injected into the qmail queue.
+</longdescription>
+</pkgmetadata>
diff --git a/net-mail/qmail-qfilter/qmail-qfilter-2.1-r1.ebuild b/net-mail/qmail-qfilter/qmail-qfilter-2.1-r1.ebuild
new file mode 100644
index 000000000000..d918e846aeac
--- /dev/null
+++ b/net-mail/qmail-qfilter/qmail-qfilter-2.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="qmail-queue multi-filter front end"
+SRC_URI="http://untroubled.org/qmail-qfilter/archive/${P}.tar.gz"
+HOMEPAGE="http://untroubled.org/qmail-qfilter/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.106"
+RDEPEND="${DEPEND} virtual/qmail"
+
+QMAIL_BINDIR="/var/qmail/bin/"
+
+src_configure() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ echo "${D}${QMAIL_BINDIR}" > conf-bin
+ echo "${D}/usr/share/man/" > conf-man
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/$(get_libdir)/bglibs" > conf-bglibs
+}
+
+src_install () {
+ dodir ${QMAIL_BINDIR} /usr/share/man/
+ emake install || die "Installer failed"
+ dodoc ANNOUNCEMENT NEWS README TODO
+ docinto samples
+ dodoc samples/*
+}
+
+pkg_postinst() {
+ elog "Please see /usr/share/doc/${PF}/README* for configuration information"
+}
diff --git a/net-mail/qmail-qfilter/qmail-qfilter-2.1.ebuild b/net-mail/qmail-qfilter/qmail-qfilter-2.1.ebuild
new file mode 100644
index 000000000000..1ff57de295b6
--- /dev/null
+++ b/net-mail/qmail-qfilter/qmail-qfilter-2.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="qmail-queue multi-filter front end"
+SRC_URI="http://untroubled.org/qmail-qfilter/archive/${P}.tar.gz"
+HOMEPAGE="http://untroubled.org/qmail-qfilter/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.0.19"
+RDEPEND="${DEPEND} virtual/qmail"
+
+QMAIL_BINDIR="/var/qmail/bin/"
+
+src_compile() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ echo "${D}${QMAIL_BINDIR}" > conf-bin
+ echo "${D}/usr/share/man/" > conf-man
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/lib/bglibs" > conf-bglibs
+ make || die
+}
+
+src_install () {
+ dodir ${QMAIL_BINDIR} /usr/share/man/
+ emake install || die "Installer failed"
+ dodoc ANNOUNCEMENT NEWS README TODO
+ docinto samples
+ dodoc samples/*
+}
+
+pkg_postinst() {
+ elog "Please see /usr/share/doc/${PF}/README* for configuration information"
+}
diff --git a/net-mail/qmail-qsanity/Manifest b/net-mail/qmail-qsanity/Manifest
new file mode 100644
index 000000000000..df22b8915ce2
--- /dev/null
+++ b/net-mail/qmail-qsanity/Manifest
@@ -0,0 +1,5 @@
+DIST qmail-qsanity-0.52 3888 SHA256 37fae10ed955c6c46e520a5097773569bf66ae0aa09bd7ede9e9aa762f248154 SHA512 fa0b9f9efc3138ab700d03fab4214b1f1e07eb03a812f0c74435c545ddb64d0a2e9b47bb3c063c16259c6f2e23ed2157d6316d6cabc820ad7f00dbf22ae4c0bb WHIRLPOOL 972fdd703a5e36251f31050c4acd6a7b636d4b80b9e8a4ba42db1e23e92c12af90611faf47ce0535ec3ab01ef3ecf2e5c8c983fd3679c42fbbbb05af0de6a907
+EBUILD qmail-qsanity-0.52.ebuild 557 SHA256 565da5335e0c90510437fe58710c339ecb816ad00f1b36e7626f9080291c971e SHA512 e9ce1bc1793bf0ce34de948febef7875fcdc833dc5e77568727b40a74e4334eaefbac1405b200c756063a0f42c04017fcc18bccb47a41d277b04b96716dbad56 WHIRLPOOL 357476c48c5ccf7e8b9c1662ca70dcff19c3f207d51bd3cec53451dd263a0dbcdc1c4a6759cb0d52619d4b3eac4febbcbbef181bc0e7574896a19f7e3ac9d0f5
+MISC ChangeLog 2443 SHA256 d9b3b0abd24577cc7b69d89122c1c5042a229f26aa4686af23158b2f88837cba SHA512 60df95e7f0e62ba378ede4fc1dd8af9f7374bc3837f8548d1146a4102c303451801b926cbf5cf3ed83907b26524229b03d4ef3cc2cbedbf5001a3c3305198279 WHIRLPOOL c2dbef9e4eb27b11c481817682035e56d014bc3845030ec190f2484081dfca7b6ccf4c18a2d73f0019dc27acb0188252eeca3b6d69ab6e63ad10c2ac2796f79d
+MISC ChangeLog-2015 922 SHA256 998498d0dba8a69a4b8f5d84ee963ae6d47823e32ffde7f08c723b0dba593ef8 SHA512 96e4bb0d7027b48609426ba7cf5c6186bac47ae20dcce33bf0f2eb50aa920b331b3e5330484920bb31250c528aed788b5d60a89f3f15557d5fd9e44def3ae80c WHIRLPOOL b751badab822ab93fe21f725a06ff62d23be0e4df1bee50792e4ee8ff2b52b2fb41e841dae31a1099321090fb0851e3e50a0cfd87758f082772d899c04fce547
+MISC metadata.xml 660 SHA256 7697c8808b98c2ab107123dcd61fb5ab6f737f744e58636cee2f6ebc89b0d87a SHA512 fb5f64e5ca7297ff87eb5a2d7a3c76af6260cf7a4d9901b8ceba94723fb2dc5a12349619b963b1a06cfe860f8c4c28edbe2cff4e83326bb47f9ae61aa6303c0d WHIRLPOOL f368165dd0eb54a680725f2dbdba1b726ce5f66af52c0a1fec74e921014a57f689a82168558bbbea81748767dc0848c49e845726c7d7b0f948f4570d9a8fd792
diff --git a/net-mail/qmail-qsanity/metadata.xml b/net-mail/qmail-qsanity/metadata.xml
new file mode 100644
index 000000000000..00bc569fbbad
--- /dev/null
+++ b/net-mail/qmail-qsanity/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ <description>Primary Maintainer</description>
+</maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>qmail-qsanity checks your queue data structures for internal
+ consistency. If it finds any problems, it prints a warning to stderr. Plans
+ are to change it to generate shell commands which will correct the
+ problems.</longdescription>
+</pkgmetadata>
diff --git a/net-mail/qmail-qsanity/qmail-qsanity-0.52.ebuild b/net-mail/qmail-qsanity/qmail-qsanity-0.52.ebuild
new file mode 100644
index 000000000000..16a155e587d5
--- /dev/null
+++ b/net-mail/qmail-qsanity/qmail-qsanity-0.52.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="qmail-qsanity checks your queue data structures for internal consistency"
+HOMEPAGE="http://www.qmail.org/"
+SRC_URI="mirror://qmail/${P}"
+
+LICENSE="qmail-nelson"
+SLOT="0"
+# Should run on all platforms without issue
+KEYWORDS="x86 ~ppc ~hppa"
+IUSE=""
+
+DEPEND=""
+RDEPEND="virtual/qmail dev-lang/perl"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cp "${DISTDIR}"/${P} ${PN}
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ dobin ${PN}
+}
diff --git a/net-mail/qmailadmin/Manifest b/net-mail/qmailadmin/Manifest
new file mode 100644
index 000000000000..82183a254cbb
--- /dev/null
+++ b/net-mail/qmailadmin/Manifest
@@ -0,0 +1,15 @@
+AUX qmailadmin-1.2.12-quota-overflow.patch 3613 SHA256 82bc168a1c52f26a02fdd568d6bea0323d4a7508241861cd523037fbcefbdddb SHA512 bc2550c86a97dad01558ec57f5ee01e49f1f76feb12cef85e7947fa25d0eaac064b401084972dc195116252bec5454115c432f8be4e9b1377eedbf007a3c4087 WHIRLPOOL 8939ae085f52bc4b5c736b39594ef77f95b0627404a2612fe37cad9e4e4d402f79e333159222bcd28dfe0e1446edbe16f90e98a27f0c8538f16219520b59ac69
+AUX qmailadmin-1.2.15-quota-security.patch 1820 SHA256 155dd74a9dffa752ad5a2f76e017d925d94861fc35d294e80f12ac9f7ca1c67c SHA512 bff16e5066f4090e307c971f0be772a9d3db1715cba75063e1e7a7d1760297d849ee54e2f22e6a4c27d369353ba9492f66111ecf2b9637ee57b29da337affa38 WHIRLPOOL c6a12e40856eef8e8c2ef2648f6edecd1b61f5e699d6f82da631becac4355feafffe1fb9a9afe691bf1781b3e74cfd024e619557d3c3a984c598c7e5c296a16d
+AUX qmailadmin-1.2.9-maildir.patch 253 SHA256 038e72a7770883e6418a10dfacd80d414ff504d554d798e2f42b5a2dadf98caf SHA512 e6d617db023af69d96e5d7d85ba7bbf24886b7b947feab333e4bd219c719351076396bf27b4de97e78a4888cdeabb0d989107133fe3dfcdcfbe92079c2f86045 WHIRLPOOL 6eaab49431fb1f403bc1c77835293d1e1637e0276387ca8f759f0fb5fefebcb15402d55afd5402f4929daf8b6ba995e6d751f29d4b43ebe3eca5b1331085d7ba
+DIST qmailadmin-1.2.10.tar.gz 390150 SHA256 24f27697c268a0031145d1fe3b597f0e3e55af41a09f5c6d499b6c2409ce771b SHA512 43dcd55b9b3458896398eada9a7d0b513cce5bde6edecb8ae54b6519509361dfab18c7600a3f94ff141b4a3b824e93b4a88a5db3e5a8980ddabf2e6dda8cfb47 WHIRLPOOL 7ab4afacb84b210507916b19ea35ab3280a5ea8289b10dcf8a3ba9e2c23467f2bc1f14cd5d5cda7d1ebf5d9fcceebd12a85877961580743d650826801221ada6
+DIST qmailadmin-1.2.12.tar.gz 400144 SHA256 926c6dd91540aed9b011e0c3623ed108acdb5ecc3d6cff8f08731c2f2bba42c4 SHA512 9fea49c3cab31606b37b9b827cd21ee852267e8c5555d96c48d52fc8388d7a3a862384cf18211c89c34525b84f866fa371a70a88386309e32dde1d7d8bb5b3ed WHIRLPOOL f681e817bc9eb96a25e2c73af3535ece35308472870d1a2348eec1c3c4c3b4a2462c791bb443319f10aad8795014c90eae291854cb9affac8cd9ebc8576db901
+DIST qmailadmin-1.2.15.tar.gz 385529 SHA256 3b8bb55a5e567497434c7cf9cbaf8cd73f85b8fa5c56b4bebdf7aef8b2c70db7 SHA512 0cf32916bd6ef47fce091d4a92203fb8b80e0c3349cf8af826c047ba778e7992bcb98002023219648c7aa1ab60fbb052d4726f12f44d68647e657fb3760b8347 WHIRLPOOL 4555e2ee3581f89a1fbcb2777546461cbbbd47ace7577579d5a5c6cb41cb20265e7a31c89d571ed5258e503937f9d5a8f56f34de2adfe59962f33c3ddf23fc5f
+DIST qmailadmin-1.2.16.tar.gz 388689 SHA256 89b72184e31bf2c88a169950a0804dc32389106735f0ab09800996c7be06260f SHA512 4afa18461d8bb91e7075f08f00f3e1ef030a01381d049e122d4c234f2b6db9884d4426e9f4c61d5257e55786228741a3b8ded1fbfb925611f536cedb9d61de91 WHIRLPOOL 397bf6a1158fa015bfe3348fafa063693e0558f8037c24ed93083b8a34cc3fc1425c34c7227ab8e193d5df05763ce19007b9490bfb8bca1ff80b218a11eec3a0
+EBUILD qmailadmin-1.2.10.ebuild 2621 SHA256 ef9e6cfce7ad793d012b4afdde214347fcfdf0c313ce7550bf67701d732a01c8 SHA512 837d3c59e9d0e41ad49c194fffafd44959ba56a4a639857e9a9031be33bb58f0b1f389175e98ed2252370beb8f733d90db6679d8e5682794e596f8ca068fcda4 WHIRLPOOL 95f27ab0c68d5faced073e448537f31aa8edca964cf5e7aaffc627026a20355a08dd09c0a8a9749ce760132f82e1d9817213a8c779490fe8f8901732b389690a
+EBUILD qmailadmin-1.2.12.ebuild 2145 SHA256 27e30766afad740fa40415e66e4ebab12c688d55ee70d5e5216d7d92014e127f SHA512 48a88219bfb7d255fd55a04741c47b1e70170690e7f78730339754320e2d459a7a51f79202f5a0902d1818468625648a68542de0402b5c405145a2e36c0d227a WHIRLPOOL 3b142bfc0a455a27570c600be696c8cb149afb546104b7a6fc61bd9a1141ed3009eca10179410d48aaefd289bd1a6af8a9373c050713cda1c4c7a9938ffc0d01
+EBUILD qmailadmin-1.2.15-r1.ebuild 2333 SHA256 af99c5ab93f45bc8961289e8dc269ab767d5430718c231e7b3e23f4e69e5fa29 SHA512 71bcf44644a28d2cf9d2e28882cb7fa9675200594004f81dfbe6ac4f5c931d9f5b99b83372caf305bc20e393460a38c464580985e9b2c77fcdcc404efb59bdff WHIRLPOOL b5de6dc95781b41274f41afae5646cab33e46acbadb6bc6ad79501ebcd770206bd64a431fe55b78827f12c4bc2d4af432024048bdc7c4783c450b9f74c04c98f
+EBUILD qmailadmin-1.2.15.ebuild 2482 SHA256 86c96fd4856102d3795f281761cc38e99eb76401841b77c4849cf3ac1e706ccd SHA512 eda201b2bd72c85e0f0a9bc6ef4ad2b6b413e19a43ef670ebed5617d0ba49efd772f482f4bd506ba73127e74989b960f2f92fd185c2b13284eb6e318292a4d43 WHIRLPOOL 5f82defe349aa8621e264c41e2efc29ba8eaa8d33092ff9e17368ae04c0d572a657ff8bcd017506aef271f44b989d3387c2f5766c3ba04cd371feb7ecde9477f
+EBUILD qmailadmin-1.2.16.ebuild 2751 SHA256 8fb50461f3aaf22f0e9c490a0838554f669658176d39b2257c585fbe7e01449a SHA512 2b90ccdb084551b3660f96642d704817eb9a6562057c179796cc109254b15b92c05bd800690379835c29dbeff86a4c6f6e7917804b996b51a76b7b14cd690f9a WHIRLPOOL 60008c28b1d6ec1688f7ef4123cf3e2cfae5c4a09244634961f02e10c084a018d003012c3e997e087ee0d601b489dc0fe2b6bad53728f4e570d3debd71dcfe7b
+MISC ChangeLog 2827 SHA256 842a3797f4224af3ce71da94e590ac250b844d99deddf3ec340f48ed2e65422d SHA512 204c547f417baee2b8a35fb9fe845a6ee8f4b06ff120215a7321055b24ac6c5399a3052f48a8f9948c3b3b632045e1ce535ccb6dc8bd01a8ddc8f29eb8b2203a WHIRLPOOL e823b1a8054e4b401ea62e6f1e484bf4b87f5a85481cc87a74e0c7d3737d20fcde07e777055418267b04519f0a368bca20b9f85a215642cfdd2a9a0e67526390
+MISC ChangeLog-2015 5939 SHA256 9aa42eb18ea57bbe31ec226423a4ecfd0fba4a984c5a333fbaf341025943dc76 SHA512 846b40b2710c4c0e31475aa8d39d40ee44c6fcc529d16d5be28b53f82b7619bc8c7ce948b4880846ebefe95c2ec7b54e6b76dd8502ea8fbfe7b8bc326c39534f WHIRLPOOL d56939e98647c132bf780401878bae1294be0108d4725fffcff201d61aa3da5d0847b1a7edf9e3ef167f8161302e7a16bb9a4b841b2acb244f7d4ddd0361b205
+MISC metadata.xml 494 SHA256 eb49992a408b6edb0e11223a05c19d1188ce9cbde9d4c52144b5a3e02a37971e SHA512 b2fbb40308df4de4d19781832a17557947033ab4b44f0ce6a6b8048c81d05ae8e67780970914e97e9774b190c57474ca20877c4d4f93c3d6357e7ec6f7535c5b WHIRLPOOL eeea99e923928277b98ddf668ad8848261730e930887bc6375c05a2bcdd1003a3c60887734b1ff238fbc3c244d6c962a3839f50169edfd168b53b3c2ef10801a
diff --git a/net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch b/net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch
new file mode 100644
index 000000000000..b4c5aa90248a
--- /dev/null
+++ b/net-mail/qmailadmin/files/qmailadmin-1.2.12-quota-overflow.patch
@@ -0,0 +1,118 @@
+diff -Nurp qmailadmin-1.2.12/util.c qmailadmin-1.2.12.new/util.c
+--- qmailadmin-1.2.12/util.c 2007-09-21 19:27:40.000000000 -0400
++++ qmailadmin-1.2.12.new/util.c 2009-07-11 01:54:02.000000000 -0400
+@@ -19,10 +19,11 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stddef.h>
++#include <errno.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/stat.h>
+-#include <unistd.h>
+ #include <pwd.h>
+ #include <dirent.h>
+ #include <ctype.h>
+@@ -352,41 +353,70 @@ char *get_quota_used(char *dir) {
+ back to bytes for vpasswd file
+ return value: 0 for success, 1 for failure
+ */
+-int quota_to_bytes(char returnval[], char *quota) {
++int quota_to_bytes(char returnval[], const char *quota) {
+ double tmp;
++ int err = 0;
+
+ if (quota == NULL) { return 1; }
+- if ((tmp = atof(quota))) {
+- tmp *= 1048576;
+- sprintf(returnval, "%.0lf", tmp);
+- return 0;
++
++ /* first set errno to 0 to determine if an error occurs */
++ errno = 0;
++ tmp = strtod(quota, NULL);
++ err = errno;
++ if (err != 0) {
++ perror("quota_to_bytes");
++ return 1;
+ } else {
+- strcpy (returnval, "");
+- return 1;
++ tmp *= (1024*1024);
++ err = sprintf(returnval, "%.0lf", tmp);
++ if (err > 0) {
++ return 0;
++ } else {
++ returnval[0] = '\0';
++ return 1;
++ }
+ }
+ }
+ /* quota_to_megabytes: used to convert vpasswd representation of quota
+ to number of megabytes.
+ return value: 0 for success, 1 for failure
+ */
+-int quota_to_megabytes(char *returnval, char *quota) {
++int quota_to_megabytes(char *returnval, const char *quota) {
+ double tmp;
+- int i;
++ int err = 0;
++ size_t i;
+
+ if (quota == NULL) { return 1; }
+ i = strlen(quota);
++
++ errno = 0;
++ tmp = strtod(quota, NULL);
++ err = errno;
++ if (err != 0) {
++ perror("quota_to_megabytes");
++ return 1;
++ }
++
+ if ((quota[i-1] == 'M') || (quota[i-1] == 'm')) {
+- tmp = atol(quota); /* already in megabytes */
++ /* already in megabytes */
+ } else if ((quota[i-1] == 'K') || (quota[i-1] == 'k')) {
+- tmp = atol(quota) * 1024; /* convert kilobytes to megabytes */
+- } else if ((tmp = atol(quota))) {
+- tmp /= 1048576.0;
++ /* convert kilobytes to megabytes */
++ tmp *= 1024;
++ } else if (tmp != 0) {
++ /* convert bytes to megabytes */
++ tmp /= (1024*1024);
+ } else {
+- strcpy (returnval, "");
+- return 1;
++ returnval[0] = '\0';
++ return 1;
++ }
++
++ err = sprintf(returnval, "%.2lf", tmp);
++ if (err > 0) {
++ return 0;
++ } else {
++ returnval[0] = '\0';
++ return 1;
+ }
+- sprintf(returnval, "%.2lf", tmp);
+- return 0;
+ }
+
+ void print_user_index (char *action, int colspan, char *user, char *dom, time_t mytime)
+diff -Nurp qmailadmin-1.2.12/util.h qmailadmin-1.2.12.new/util.h
+--- qmailadmin-1.2.12/util.h 2007-09-21 19:27:40.000000000 -0400
++++ qmailadmin-1.2.12.new/util.h 2009-07-11 02:02:45.000000000 -0400
+@@ -25,8 +25,8 @@ void str_replace (char *, char, char);
+
+ void qmail_button(char *modu, char *command, char *user, char *dom, time_t mytime, char *png);
+
+-int quota_to_bytes(char[], char*); //jhopper prototype
+-int quota_to_megabytes(char[], char*); //jhopper prototype
++int quota_to_bytes(char[], const char*); //jhopper prototype
++int quota_to_megabytes(char[], const char*); //jhopper prototype
+
+ void print_user_index (char *action, int colspan, char *user, char *dom, time_t mytime);
+ char *cgiurl (char *action);
diff --git a/net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch b/net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch
new file mode 100644
index 000000000000..bf8ca4785dfd
--- /dev/null
+++ b/net-mail/qmailadmin/files/qmailadmin-1.2.15-quota-security.patch
@@ -0,0 +1,41 @@
+Previous patch did not fix the 32-bit overflow properly.
+This goes with the vpopmail 5.4.33 matching quota fix (in upstream).
+
+X-Gentoo-Bug: 269129
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar qmailadmin-1.2.15.orig/qmailadmin.h qmailadmin-1.2.15/qmailadmin.h
+--- qmailadmin-1.2.15.orig/qmailadmin.h 2013-05-30 23:42:27.689759997 +0000
++++ qmailadmin-1.2.15/qmailadmin.h 2013-05-30 23:44:33.870866242 +0000
+@@ -63,4 +63,4 @@
+ /* copied from maildirquota.c in vpopmail
+ * it really needs to get into vpopmail.h somehow
+ */
+-int readuserquota(const char* dir, long *sizep, int *cntp);
++//int readuserquota(const char* dir, storage_t *sizep, storage_t *cntp);
+diff -Nuar qmailadmin-1.2.15.orig/template.c qmailadmin-1.2.15/template.c
+--- qmailadmin-1.2.15.orig/template.c 2009-02-06 05:30:05.000000000 +0000
++++ qmailadmin-1.2.15/template.c 2013-05-30 23:45:47.319571080 +0000
+@@ -426,7 +426,7 @@
+ case 'Q':
+ vpw = vauth_getpw(ActionUser, Domain);
+ if (strncmp(vpw->pw_shell, "NOQUOTA", 2) != 0) {
+- long diskquota = 0;
+- int maxmsg = 0;
++ uint64_t diskquota = 0;
++ uint64_t maxmsg = 0;
+ char path[256];
+
+diff -Nuar qmailadmin-1.2.15.orig/user.c qmailadmin-1.2.15/user.c
+--- qmailadmin-1.2.15.orig/user.c 2009-05-02 19:13:29.000000000 +0000
++++ qmailadmin-1.2.15/user.c 2013-05-30 23:45:26.039946212 +0000
+@@ -170,7 +170,7 @@
+ (AdminType==USER_ADMIN && strcmp(pw->pw_name,Username)==0)))) {
+ if (AdminType==DOMAIN_ADMIN ||
+ (AdminType==USER_ADMIN && strcmp(pw->pw_name,Username)==0)) {
+- long diskquota = 0;
+- int maxmsg = 0;
++ uint64_t diskquota = 0;
++ uint64_t maxmsg = 0;
+
+ /* display account name and user name */
diff --git a/net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch b/net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch
new file mode 100644
index 000000000000..e2a8f49a5c1b
--- /dev/null
+++ b/net-mail/qmailadmin/files/qmailadmin-1.2.9-maildir.patch
@@ -0,0 +1,11 @@
+--- qmailadmin-1.2.9/qmailadmin.h
++++ qmailadmin-1.2.9/qmailadmin.h
+@@ -24,7 +24,7 @@
+ * it below.
+ */
+ #ifndef MAILDIR
+-#define MAILDIR "Maildir"
++#define MAILDIR ".maildir"
+ #endif
+
+ /* max # of forwards a user can set on the Modify User screen */
diff --git a/net-mail/qmailadmin/metadata.xml b/net-mail/qmailadmin/metadata.xml
new file mode 100644
index 000000000000..8510b6c0671f
--- /dev/null
+++ b/net-mail/qmailadmin/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="maildrop">Filter spam using maildrop</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">qmailadmin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.10.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.10.ebuild
new file mode 100644
index 000000000000..03103df34d1e
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.10.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+# TODO: convert this ebuild to use web-app.
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT='userpriv'
+
+MY_PV="${PV/_rc/-rc}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~hppa ppc s390 sh sparc x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+RDEPEND="${DEPEND}"
+# apache and lighttpd both work, but there's no virtual yet
+# www-servers/apache"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+}
+
+src_compile() {
+ local dir_vpopmail="/var/vpopmail"
+ local dir_vhost="/var/www/localhost"
+ local dir_htdocs="${dir_vhost}/htdocs/${PN}"
+ local dir_htdocs_images="${dir_htdocs}/images"
+ local url_htdocs_images="/${PN}/images"
+ local dir_cgibin="${dir_vhost}/cgi-bin"
+ local url_cgibin="/cgi-bin/${PN}"
+ local dir_htdocs_htmlib="/usr/share/${PN}/htmllib"
+ local dir_qmail="/var/qmail"
+ local dir_true="/bin"
+ local dir_ezmlm="/usr/bin"
+ local dir_autorespond="/var/qmail/bin"
+
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=${dir_vpopmail} \
+ --enable-htmldir=${dir_htdocs} \
+ --enable-imageurl=${url_htdocs_images} \
+ --enable-imagedir=${dir_htdocs_images} \
+ --enable-htmllibdir=${dir_htdocs_htmlib} \
+ --enable-qmaildir=${dir_qmail} \
+ --enable-true-path=${dir_true} \
+ --enable-ezmlmdir=${dir_ezmlm} \
+ --enable-cgibindir=${dir_cgibin} \
+ --enable-cgipath=${url_cgibin} \
+ --enable-autoresponder-path=${dir_autorespond} \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog TRANSLATORS NEWS FAQ README contrib/*
+}
+
+pkg_postinst() {
+ elog "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ elog "please emerge some variant of ezmlm-idx."
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.12.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.12.ebuild
new file mode 100644
index 000000000000..72b043e6e48e
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.12.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild
new file mode 100644
index 000000000000..ac996e0daec4
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp autotools
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="amd64 arm ~hppa ia64 ppc s390 sh sparc x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.4.33
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+ epatch "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
+ epatch "${FILESDIR}"/${PN}-1.2.15-quota-security.patch
+ eautoreconf
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-trivial-password \
+ --enable-catchall \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.15.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.15.ebuild
new file mode 100644
index 000000000000..03817b4d3ed0
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.15.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp autotools
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="amd64 arm ~hppa ppc s390 sh sparc x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+ epatch "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
+ eautoreconf
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+ # If vpopmail is built with mysql, we need to pick that up.
+ CFLAGS="${CFLAGS} $(</var/vpopmail/etc/inc_deps)"
+ LDFLAGS="${LDFLAGS} $(</var/vpopmail/etc/lib_deps)"
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-trivial-password \
+ --enable-catchall \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ LDFLAGS="${LDFLAGS}" \
+ CFLAGS="${CFLAGS}" \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+}
diff --git a/net-mail/qmailadmin/qmailadmin-1.2.16.ebuild b/net-mail/qmailadmin/qmailadmin-1.2.16.ebuild
new file mode 100644
index 000000000000..cf2bb9ac919e
--- /dev/null
+++ b/net-mail/qmailadmin/qmailadmin-1.2.16.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit qmail eutils webapp autotools
+
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
+
+MY_P=${P/_rc/-rc}
+
+DESCRIPTION="A web interface for managing a qmail system with virtual domains"
+HOMEPAGE="http://www.inter7.com/qmailadmin.html"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE="maildrop"
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.4.33
+ net-mail/autorespond
+ maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+ eautoreconf
+}
+
+src_compile() {
+ # Pass spam stuff through $@ so we get the quoting right
+ if use maildrop ; then
+ set -- --enable-modify-spam \
+ --enable-spam-command='|preline maildrop /etc/maildroprc'
+ else
+ set --
+ fi
+
+ econf \
+ --enable-valias \
+ --enable-vpopmaildir=/var/vpopmail \
+ --enable-htmldir="${MY_HTDOCSDIR}" \
+ --enable-imagedir="${MY_HTDOCSDIR}"/images \
+ --enable-imageurl=/${PN}/images \
+ --enable-htmllibdir=/usr/share/${PN}/htmllib \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ --enable-cgipath=/cgi-bin/${PN} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-autoresponder-path="${QMAIL_HOME}"/bin \
+ --enable-true-path=/bin \
+ --enable-ezmlmdir=/usr/bin \
+ --enable-domain-autofill \
+ --enable-modify-quota \
+ --enable-no-cache \
+ --enable-trivial-password \
+ --enable-catchall \
+ --enable-maxusersperpage=50 \
+ --enable-maxaliasesperpage=50 \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ "$@" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
+ TRANSLATORS NEWS FAQ README contrib/*
+
+ webapp_src_install
+
+ # CGI needs to be able to read /etc/vpopmail.conf
+ # Which is 0640 root:vpopmail, as it contains passwords
+ cgi=/usr/share/webapps/${PN}/${PV}/hostroot/cgi-bin/qmailadmin
+ fowners root:vpopmail $cgi
+ fperms g+s $cgi
+}
+
+pkg_postinst() {
+ einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
+ einfo "please emerge some variant of ezmlm-idx."
+ webapp_pkg_postinst
+ einfo "For complete webapp-config support:"
+ einfo "1. Add this for the Apache cgi-bin dir: Options +ExecCGI -MultiViews +FollowSymLinks"
+ einfo "2. Run: webapp-config -I -h localhost -d qmailadmin $PN $PV"
+ einfo "3. Symlink: ln -s {/usr/share/webapps/${PN}/${PV}/hostroot,/var/www/localhost}/cgi-bin/${PN}"
+}
diff --git a/net-mail/qmailanalog/Manifest b/net-mail/qmailanalog/Manifest
new file mode 100644
index 000000000000..0ca183790032
--- /dev/null
+++ b/net-mail/qmailanalog/Manifest
@@ -0,0 +1,7 @@
+AUX 0.70-errno.patch 243 SHA256 924e0154181011e67dde22da580af340d7feb9aacc8fa350112eab00a7514c54 SHA512 1d4c1abde8eb0b4d6dd2254be29b685c922265ededa02a19010bc487e2e2013ef2df9a86a5dd797e0d7a30567cc18ae72324f2a67558633aae76262b2a9681a1 WHIRLPOOL 4816f339c317b6a3283498462ced0353bc5db7d57bacd3c421b1179f988172472f9839a1f918b482f19603df18e082da13eb1d815a6699fd57b97b2336bb0bb4
+AUX tai64nfrac.c 1461 SHA256 0621bf277f6ee021211141126b3641c9301f6dbf8e15a87f1b02b222a62d1e75 SHA512 0febee72c3a0328f651134105e6c9c7db1f2822458fa873694cad9807847a9a1bfb7d91a3f7a7ecbb99564515d001e10f2829f70b9a8e768d26764c0ab408be4 WHIRLPOOL efe3b2b04d21d858880f0e2f49c88006b8bf1519f35f3260f320d51f7e83c25344acedec2d08be874656b7a8b606d7da4f550152e0c0778d1c37f62ee2560607
+DIST qmailanalog-0.70.tar.gz 28416 SHA256 3b76f4c35c980ce8d09def568657fb1402a66c8bea9b56d204c5d3df3798a55b SHA512 0a4991a9ac13b64494b15a6ad42df1bee273a7a3c5ead923450d5516d747989e80e3a0f88e29203dce24dc833cc3bb46d5935633f67bed547f27ac22ad866f3d WHIRLPOOL 727910467b37de38fbed0ed45cb3fd2c9b6e0b26d2671facc626f560764d1d4eb752c7ad4454d92df91558b5c4f55a1a75fe361b4840679519b91cca98f691c6
+EBUILD qmailanalog-0.70-r1.ebuild 1269 SHA256 209319a6793c900a85d99210c5ff06e7f3db6b5c8c0ecb34eca7830e3649c454 SHA512 d2d6ca9421b204a32072474a536314865e82b2d1776b8c927ae282ae26a761da722a03a12813ac87e8267ecdbae5873064b43bc5aa577910a521f2e02f433d1e WHIRLPOOL 68578402f78fe1100cf7c4b0e6f01ff9b31cd861a1c2e616e57189516bcbc06044860236dce86273f563f949e17b2021a3e733a60ac03d5771d809c74915260c
+MISC ChangeLog 2489 SHA256 513d0f541579620750f33520ab5f8d6514ce58df9da741a45e20ff190fa6b3c0 SHA512 590538d8e90242bc4cd1a89fba11eaba9dfef4c5745124f82f7fa43c01a05bb580f99126c078661283a1888e3a934bc6a40d993a120a72b99a0b2826378668d6 WHIRLPOOL 1486eac792d62e23b8da3fcfaae282dd34730b571c75f80fd745cdfcb3e76485c6945a4eaf46a48ad80dcbac7e3ce8f9af59e1b24e425b084e61769cd2d3e63c
+MISC ChangeLog-2015 1733 SHA256 c1eb7ea8719905ddbe7b9eade20efd174d083060630c75817e0dc1d8604dc17a SHA512 771ef1a273a1e06f453260637b6958762a1d7061eddd02618569b2a61752baeb8177523c47c8bc4158b2cd8d423a4bbe602cc7374fb9886780759624b4b2f264 WHIRLPOOL eefd85dbe66d0784d40fc683e51e993b76463b2ea78a6bea95deb05d8f1a4a0679b385ab413d815c3aa30b1d369dc114b4b37073fb2acb22421d40e9dcb8cee0
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/qmailanalog/files/0.70-errno.patch b/net-mail/qmailanalog/files/0.70-errno.patch
new file mode 100644
index 000000000000..4aca1b2b4e58
--- /dev/null
+++ b/net-mail/qmailanalog/files/0.70-errno.patch
@@ -0,0 +1,11 @@
+--- error.h.orig 2003-03-05 15:42:51.000000000 -0500
++++ error.h 2003-03-05 15:43:00.000000000 -0500
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+
+-extern int errno;
++#include <errno.h>
+
+ extern int error_intr;
+ extern int error_nomem;
diff --git a/net-mail/qmailanalog/files/tai64nfrac.c b/net-mail/qmailanalog/files/tai64nfrac.c
new file mode 100644
index 000000000000..28e6cdbb8754
--- /dev/null
+++ b/net-mail/qmailanalog/files/tai64nfrac.c
@@ -0,0 +1,66 @@
+/*
+ Convert external TAI64N timestamps to fractional seconds since epoch.
+
+ Written by Russ Allbery <rra@stanford.edu>
+ This work is in the public domain.
+
+Usage:
+
+tai64nfrac < input > output
+
+Expects the input stream to be a sequence of lines beginning with @, a
+timestamp in external TAI64N format, and a space. Replaces the @ and the
+timestamp with fractional seconds since epoch (1970-01-01 00:00:00 UTC).
+The input time format is the format written by tai64n and multilog. The
+output time format is expected by qmailanalog. */
+
+#include <stdio.h>
+
+/* Read a TAI64N external format timestamp from stdin and write fractional
+ seconds since epoch (TAI, not UTC) to stdout. Return the character after
+ the timestamp. */
+int decode(void)
+{
+ int c;
+ unsigned long u;
+ unsigned long seconds = 0;
+ unsigned long nanoseconds = 0;
+
+ while ((c = getchar()) != EOF)
+ {
+ u = c - '0';
+ if (u >= 10)
+ {
+ u = c - 'a';
+ if (u >= 6) break;
+ u += 10;
+ }
+ seconds <<= 4;
+ seconds += nanoseconds >> 28;
+ nanoseconds &= 0xfffffff;
+ nanoseconds <<= 4;
+ nanoseconds += u;
+ }
+ seconds -= 4611686018427387914ULL;
+ printf("%lu.%lu ", seconds, nanoseconds);
+ return c;
+}
+
+
+int main(void)
+{
+ int c;
+ unsigned long seconds;
+ unsigned long nanoseconds;
+
+ while ((c = getchar()) != EOF)
+ {
+ if (c == '@') c = decode();
+ while (c != EOF)
+ {
+ putchar(c);
+ if (c == '\n') break;
+ c = getchar();
+ }
+ }
+}
diff --git a/net-mail/qmailanalog/metadata.xml b/net-mail/qmailanalog/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/qmailanalog/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/qmailanalog/qmailanalog-0.70-r1.ebuild b/net-mail/qmailanalog/qmailanalog-0.70-r1.ebuild
new file mode 100644
index 000000000000..604881b35545
--- /dev/null
+++ b/net-mail/qmailanalog/qmailanalog-0.70-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils fixheadtails toolchain-funcs
+
+DESCRIPTION="collection of tools to help you analyze qmail's activity record"
+SRC_URI="http://cr.yp.to/software/${P}.tar.gz"
+HOMEPAGE="http://cr.yp.to/qmailanalog.html"
+
+LICENSE="freedist public-domain" # public-domain for files/tai64nfrac.c
+SLOT="0"
+KEYWORDS="x86 sparc ~amd64"
+IUSE=""
+
+DEPEND="sys-apps/groff"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-errno.patch
+ ht_fix_file auto_home.c.do default.do Makefile
+}
+
+src_compile() {
+ echo "/var/qmail" > conf-home
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+
+ emake || die
+ $(tc-getCC) ${CFLAGS} "${FILESDIR}"/tai64nfrac.c -o tai64nfrac || die
+}
+
+src_test() { :; }
+
+src_install() {
+ doman matchup.1 xqp.1 xsender.1 xrecipient.1 columnt.1
+ dodoc MATCHUP ACCOUNTING BLURB
+
+ insopts -o root -g qmail -m 755
+ insinto /var/qmail/bin
+ into /var/qmail
+ dobin columnt ddist deferrals failures matchup recipients rhosts
+ dobin rxdelay senders successes suids xqp xrecipient xsender
+ dobin zddist zdeferrals zfailures zoverall zrecipients zrhosts
+ dobin zrxdelay zsenders zsendmail zsuccesses zsuids tai64nfrac
+}
diff --git a/net-mail/qmhandle/Manifest b/net-mail/qmhandle/Manifest
new file mode 100644
index 000000000000..c674515020dc
--- /dev/null
+++ b/net-mail/qmhandle/Manifest
@@ -0,0 +1,8 @@
+AUX qmHandle-gentoo-svc.patch 718 SHA256 a1a172f671ff71fe96b233290eda676e74f105d8400950653769afd647e238e0 SHA512 9beeb4a2b17c2577807620b3a67147c694de3f43f491452a7511fd213e5376950b3da55278f2a64b76b95129b3ea7153fc117c286fffd2f472dd9fc4a2f20992 WHIRLPOOL 6134ca3ace32d9ec9b1f24a6563f309d66d7d89de38af63730ec4b4805384ad2fb2f48906877a715ca4340480a84e7518cabc9d41cba62b5cd1daca2c24369ec
+DIST qmhandle-1.2.0.tar.gz 13134 SHA256 001530bedb8b3f2696a645abd28a5af3c46fa31e0e0208f94287920d784433bd SHA512 5db69a0fff3a2b6cfc150995f6ff13bcaac4f9c99b653af05904f0af5c38cdee9a5378a8b66d460f403dd938daa650bcffd6d5dc860d0a0813d060105a22ce0e WHIRLPOOL d611f1630005c4ec22cbc6c369196d1f2a7ba1e07103c6c6a16e1187a0ab7d9b01f724bf91b65e3e75221df29714be85a447459acbbd178521700c89fd92b27b
+DIST qmhandle-1.3.2.tar.gz 15423 SHA256 a626888b6d208bea80e79fc18f38da5a13c5afd0f920abe9909d3aa2ca4dfa8f SHA512 ec6bb344f4d345e4a59ab3acb336a5a76a22c07a9eccac1e1f178b2a96f83afb9a4d669f16f960c254cc203745db96027ef9e6181ea8a16b0bff5e86141ce779 WHIRLPOOL b2207a3b44850108dcab70668c6fccd32940925950ba3299a652b0eebb7c2a35e5b3a92bb11397584680c9a48a2959ffb3796942010c12c460700c96cfc547a6
+EBUILD qmhandle-1.2.0-r1.ebuild 589 SHA256 18e9f2a9474bbee0b8212c534741542bf0c001579efe743631e4fa7798ba6e58 SHA512 d495239c0f1ecc977d1e43d402656070dd5cee7fb44f1dcd7975fe103ff97a0ebf2e4beb92f77783e719b5c799cea7cb1da52e3a0703a977175625cc7fa14262 WHIRLPOOL df606d5fce4b4c6743d08081df699c29854bdcb4406f3b10c05e35a5a931fe6f17f1081c290ce041a123399b4386d5dc8e6dd9c584e3e636a999dc05a152ad84
+EBUILD qmhandle-1.3.2.ebuild 670 SHA256 94eb6f42967be95523c0d40221f5648e0bea4dfeeea87116579364c9477022d1 SHA512 5dc839dc2672e4c962ce7b7023e2e85c6a3aafca8c384fb54fc570fddaabd84fbcd73649655663ed357635fdd8912794e2e6f0e06594d283758bee4703808df8 WHIRLPOOL 3dbb032100bad87b8ee4f1ad9c4fb651514e8a2f76df2a17d07c5844e864c2526712ea1677ca3b3ab07fd47b7f8a6ab8e803c43d36122b571d4a97585f9b2e47
+MISC ChangeLog 2556 SHA256 7352d5d9ca5fedb58715cee7460232a215962331314df3c02434036a5580a0d6 SHA512 d827181632db2a01936812efae77e6f59314af342346348b4a20ec2cf84aad73930f7976b0ea9768e0894f0b8231e23779ca6ec45326081faf9b38d7fa0fbed6 WHIRLPOOL 5f975f8f2ea816f200e1efcec11c9b7f9b892dc63ba31f689160ddd04307c8acb1b5782ebcfd5dad50bc1f8e7d0228637ee05494ac16632496d2027db9d510b9
+MISC ChangeLog-2015 2903 SHA256 cbce443a78699b61d7a53f79a60c32c01d0aee495a55a09dea3f4e1af522992b SHA512 fd333948325d8b30227b815a5cfcc8923a2b498d829c6c4b280f6b769e2d647315a3ca410ae762da0fec1c7b06f31768967ed056f2071e93721c5b5db7e73e38 WHIRLPOOL 2f95ed4b3f6fd674a5cc227365327dfc9c58cb43f3871a65d12ba6bf758fa22283f8b6185b142c29905876a589a86e188232120b3013f6f2bcfce4511a82183f
+MISC metadata.xml 812 SHA256 25e6ac6f6d252f130dda5fa15a21ed95df6b44d1cc749a3d7f2b8401abcb8163 SHA512 8afd68c0b3fe58d9557b9cef357b7f3cfa8df5ff1284ba538911f295b050b8b2b69e1e9335f8bfd0ac2af0bab052b3b6fc11431bf8a9c089f113c2cbbf669f25 WHIRLPOOL 222308256c8bbf0697aa14ebb09b9eee0721ef709ab271e67a82a77d028b10c3dfcd4b53368404c571f6e2cc76d70395d1bdfd05c2f8d57c9275f4359adc1e4b
diff --git a/net-mail/qmhandle/files/qmHandle-gentoo-svc.patch b/net-mail/qmhandle/files/qmHandle-gentoo-svc.patch
new file mode 100644
index 000000000000..fc516d4e0b7a
--- /dev/null
+++ b/net-mail/qmhandle/files/qmHandle-gentoo-svc.patch
@@ -0,0 +1,17 @@
+--- qmHandle.orig 2005-08-24 19:39:11.000000000 +0200
++++ qmHandle 2005-08-24 19:40:15.000000000 +0200
+@@ -29,8 +29,12 @@
+ #my ($startqmail) = '/usr/local/bin/svc -u /service/qmail-send';
+
+ # While this is if you have a Debian GNU/Linux with its qmail package
+-my ($stopqmail) = '/etc/init.d/qmail stop';
+-my ($startqmail) = '/etc/init.d/qmail start';
++#my ($stopqmail) = '/etc/init.d/qmail stop';
++#my ($startqmail) = '/etc/init.d/qmail start';
++
++# Gentoo Linux:
++my ($stopqmail) = '/usr/bin/svc -d /var/qmail/supervise/qmail-send';
++my ($startqmail) = '/usr/bin/svc -u /var/qmail/supervise/qmail-send';
+
+ # If you don't have scripts, leave $stopqmail blank (the process will
+ # be hunted and killed by qmHandle):
diff --git a/net-mail/qmhandle/metadata.xml b/net-mail/qmhandle/metadata.xml
new file mode 100644
index 000000000000..7cd4de1327bc
--- /dev/null
+++ b/net-mail/qmhandle/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>qmHandle is a tool which can be used to manage the qmail
+ message queue. It's written in Perl (so fully customizable) and much more
+ powerful than qmail-qread and qmail-qstat. Key features are colored output
+ and the ability to view and delete messages in the queue.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">qmhandle</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/qmhandle/qmhandle-1.2.0-r1.ebuild b/net-mail/qmhandle/qmhandle-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..bc516bd1c204
--- /dev/null
+++ b/net-mail/qmhandle/qmhandle-1.2.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Qmail message queue tool"
+HOMEPAGE="http://qmhandle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qmhandle/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="
+ virtual/qmail
+ dev-lang/perl
+ sys-process/psmisc
+"
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/qmHandle-gentoo-svc.patch
+}
+
+src_install() {
+ dodoc README HISTORY
+ dobin qmHandle || die "dobin failed"
+}
diff --git a/net-mail/qmhandle/qmhandle-1.3.2.ebuild b/net-mail/qmhandle/qmhandle-1.3.2.ebuild
new file mode 100644
index 000000000000..2bf3394612cb
--- /dev/null
+++ b/net-mail/qmhandle/qmhandle-1.3.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Qmail message queue tool"
+HOMEPAGE="http://qmhandle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qmhandle/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="virtual/qmail
+ dev-lang/perl
+ sys-process/psmisc
+"
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed \
+ -e 's|/usr/local/bin/svc|/usr/bin/svc|g' \
+ -e 's|/service/qmail-deliver|/var/qmail/supervise/qmail-send|g' \
+ -i qmHandle
+}
+
+src_install() {
+ dodoc README HISTORY
+ dobin qmHandle || die "dobin failed"
+}
diff --git a/net-mail/qmrtg/Manifest b/net-mail/qmrtg/Manifest
new file mode 100644
index 000000000000..edd57d5c2cd5
--- /dev/null
+++ b/net-mail/qmrtg/Manifest
@@ -0,0 +1,8 @@
+AUX mrtg.cfg.patch 3510 SHA256 becd8aa35ccdc8078a99abfdd0a94fc9def90870841ae22f55c2f80c67981689 SHA512 aefcd7fc7bdf129ba958da2ec782823825ffdc3865f4ae71344c6d19e996d7380564e7c213be14443d7301baf2c31170fbe71e5b9ccec63e82580f863bbdbb88 WHIRLPOOL 783b643bb593f9f7794bc5265e07725e91646fe826caa5c6c4ee1fc95b2a0c8aab3153109fef78f5cc4b2d0fadff312aa453078f97b574718efd56608f61e66c
+AUX qmrtg-2.1-TAI_STR_LEN.patch 215 SHA256 e5fadd4f93f82a2db6630da89230e201217fa2359c7613a8c1582b3f22103d30 SHA512 027bb8b3d7cc1a3714f482a396a5ecb17ebc401f8fa8491cc4f326c92ad64d2708165ad1462adcddd278c757daba50d4d72c9bfed99283bd308adc29e162532c WHIRLPOOL 06cb5b1209cba16c9b63ada71dec40189410d2f128aaa63edef7f9d36c4e3721f86265ece6005ef4e0ab08aaa371339c294876073696d8267311d62d73fe7b40
+AUX qmrtg.conf.sample.patch 544 SHA256 99386a5ca635e7bb83f136a68f00408c8783f48d75860d4e8be8e9f607c07d6f SHA512 c667fb5be05b2356782f2fe96d8b3eef1a3bdc6a8b74dfe6254f5718400cd6527baf6cee1badd0e96db26d2f5d2f160e1b47cbfb41baffcb8c79d959333d5cd7 WHIRLPOOL 9a3f49e484b8cf1bcb8e56dab76133de2eb1fb5be562c9384d9ff117cc685e714e7d49bbb9662fe64d95c8e17286f8c238cd1558a0a6a0e707a7557db8b7f7e1
+DIST qmrtg-2.1.tar.gz 97255 SHA256 6f8cd553f2c2ae66c7177694e96d6ee78e4892bdfd2b6227bffda184d1dcb5dd SHA512 22d7ed55d22af74a62f3974f3d55edbdd08aab2db256cb0866dae566ec7f58eb5ae6ffeaa77ba571cf06eb6cf55a62720534408cb80bf95cecdbe587024259fb WHIRLPOOL b5e10ec45f7e34747cf988c15241500c00c9ad484004ecc336eba3659cdda8922939c9233c7183fe037b0d23c9387eb5876cc2209f7c2c7b22e749da72d623db
+EBUILD qmrtg-2.1-r1.ebuild 1090 SHA256 95518ae4dbc8735bd928320237ce46919ba69023fd0db3d9198e729785c7c3bf SHA512 43e8a9bdf3fcaa497089427266da2ce4a4d5e7d6c5fb3427c007289619c0b6b77c8b4cf56baae453c411abde1bc6e6102d88d624e64894b0748bb12d72dbd6f1 WHIRLPOOL 29f4ae26306266b878cc169fba98a8c48649ce40f2a3f2d5a586795bd87af78db5238a3e334b4ce226e70a82bb21ef33e38ec76fa31ec91dfc97175c89771a9a
+MISC ChangeLog 2516 SHA256 bb6f3c557fd0b1a2547217428f1443410513c85d780dbfb95f40d2e77076d2c3 SHA512 8e17772ecf7529b054f2c76e5b947736061f3b68f7117ba4eb2e26aeee8d217d79a7bbb76a40c6676a02c1ad9bf95f4ddda3a928878fcf4e93a1fcc734858545 WHIRLPOOL 77d48879caac41bf2edf734ba854ff2be71ecbc5f517a314a9435972f1e0f4f76576566c29b88ded7b75bc6160aa085e15a16e41a3976122206bb2582ef74fac
+MISC ChangeLog-2015 1350 SHA256 822891e652ea32dc95e6fb066e50897a0e768ca435da73cb55550b80519ba9d3 SHA512 08e292e16a43c161e8fd7d7c44c2e0a2f3e2d8e6f800ed58e990c49876c482d32927f3cec531c7bc3b21e4fd0822c22b1e2c463a813d70ce58a39cfc47fb2790 WHIRLPOOL e7b7d31db13828c192ea4371e3595072a31706705bb79362d97fac68d453a12ad068aae2eea2b6bfc51e5c17184ac1aa726639101256ae517247010c93182041
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-mail/qmrtg/files/mrtg.cfg.patch b/net-mail/qmrtg/files/mrtg.cfg.patch
new file mode 100644
index 000000000000..8bde992139ae
--- /dev/null
+++ b/net-mail/qmrtg/files/mrtg.cfg.patch
@@ -0,0 +1,83 @@
+--- a/examples/mrtg.cfg
++++ b/examples/mrtg.cfg
+@@ -52,7 +52,7 @@
+ Directory[qmail.deliveries]: qmail.deliveries
+ MaxBytes[qmail.deliveries]: 10000
+ AbsMax[qmail.deliveries]: 20000
+-Target[qmail.deliveries]: `/usr/local/bin/qmrtg.sh deliveries`
++Target[qmail.deliveries]: `/usr/bin/qmrtg.sh deliveries`
+ PageTop[qmail.deliveries]: <H1>Deliveries</H1>
+ ShortLegend[qmail.deliveries]: delivs
+ YLegend[qmail.deliveries]: deliveries
+@@ -71,7 +71,7 @@
+ Directory[qmail.queue-size]: qmail.queue-size
+ MaxBytes[qmail.queue-size]: 10000
+ AbsMax[qmail.queue-size]: 100000
+-Target[qmail.queue-size]: `/usr/local/bin/qmrtg-queue /var/qmail/queue`
++Target[qmail.queue-size]: `/usr/bin/qmrtg-queue /var/qmail/queue`
+ PageTop[qmail.queue-size]: <H1>Queue size</H1>
+ ShortLegend[qmail.queue-size]: msgs
+ YLegend[qmail.queue-size]: messages
+@@ -90,7 +90,7 @@
+ Directory[qmail.deliverrors]: qmail.deliverrors
+ MaxBytes[qmail.deliverrors]: 10000
+ AbsMax[qmail.deliverrors]: 100000
+-Target[qmail.deliverrors]: `/usr/local/bin/qmrtg.sh errors`
++Target[qmail.deliverrors]: `/usr/bin/qmrtg.sh errors`
+ PageTop[qmail.deliverrors]: <H1>Delivery errors</H1>
+ ShortLegend[qmail.deliverrors]: errs
+ YLegend[qmail.deliverrors]: errors
+@@ -109,7 +109,7 @@
+ Directory[qmail.bytes]: qmail.bytes
+ MaxBytes[qmail.bytes]: 200000
+ AbsMax[qmail.bytes]: 10000000
+-Target[qmail.bytes]: `/usr/local/bin/qmrtg.sh throughput`
++Target[qmail.bytes]: `/usr/bin/qmrtg.sh throughput`
+ PageTop[qmail.bytes]: <H1>Throughput</H1>
+ ShortLegend[qmail.bytes]: B
+ YLegend[qmail.bytes]: bytes
+@@ -127,7 +127,7 @@
+ Options[qmail.smtp-concurrency]: growright,unknaszero,nopercent,gauge
+ Directory[qmail.smtp-concurrency]: qmail.smtp-concurrency
+ MaxBytes[qmail.smtp-concurrency]: 100
+-Target[qmail.smtp-concurrency]: `/usr/local/bin/qmrtg.sh smtp-concurrency`
++Target[qmail.smtp-concurrency]: `/usr/bin/qmrtg.sh smtp-concurrency`
+ PageTop[qmail.smtp-concurrency]: <H1>SMTP Concurrency</H1>
+ ShortLegend[qmail.smtp-concurrency]: conns
+ YLegend[qmail.smtp-concurrency]: connections
+@@ -146,7 +146,7 @@
+ Directory[qmail.smtphits]: qmail.smtphits
+ MaxBytes[qmail.smtphits]: 1000
+ AbsMax[qmail.smtphits]: 10000
+-Target[qmail.smtphits]: `/usr/local/bin/qmrtg.sh smtpconns`
++Target[qmail.smtphits]: `/usr/bin/qmrtg.sh smtpconns`
+ PageTop[qmail.smtphits]: <H1>SMTP Totals</H1>
+ ShortLegend[qmail.smtphits]: conns
+ YLegend[qmail.smtphits]: connections
+@@ -165,7 +165,7 @@
+ Directory[qmail.pop-concurrency]: qmail.pop-concurrency
+ MaxBytes[qmail.pop-concurrency]: 100
+ AbsMax[qmail.pop-concurrency]: 500
+-Target[qmail.pop-concurrency]: `/usr/local/bin/qmrtg.sh pop-concurrency`
++Target[qmail.pop-concurrency]: `/usr/bin/qmrtg.sh pop-concurrency`
+ PageTop[qmail.pop-concurrency]: <H1>POP3 Concurrency</H1>
+ ShortLegend[qmail.pop-concurrency]: concur
+ YLegend[qmail.pop-concurrency]: concurrency
+@@ -184,7 +184,7 @@
+ Directory[qmail.pophits]: qmail.pophits
+ MaxBytes[qmail.pophits]: 1000
+ AbsMax[qmail.pophits]: 10000
+-Target[qmail.pophits]: `/usr/local/bin/qmrtg.sh popconns`
++Target[qmail.pophits]: `/usr/bin/qmrtg.sh popconns`
+ PageTop[qmail.pophits]: <H1>POP3 Totals</H1>
+ ShortLegend[qmail.pophits]: conns
+ YLegend[qmail.pophits]: connections
+@@ -203,7 +203,7 @@
+ Directory[qmail.dnsbl]: qmail.dnsbl
+ MaxBytes[qmail.dnsbl]: 1000
+ AbsMax[qmail.dnsbl]: 10000
+-Target[qmail.dnsbl]: `/usr/local/bin/qmrtg.sh dnsbl`
++Target[qmail.dnsbl]: `/usr/bin/qmrtg.sh dnsbl`
+ PageTop[qmail.dnsbl]: <H1>POP3 Totals</H1>
+ ShortLegend[qmail.dnsbl]: conns
+ YLegend[qmail.dnsbl]: connections
diff --git a/net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch b/net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch
new file mode 100644
index 000000000000..bf8855b1f96c
--- /dev/null
+++ b/net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch
@@ -0,0 +1,11 @@
+--- a/filters/qtaif.c
++++ b/filters/qtaif.c
+@@ -28,7 +28,7 @@
+ return 3;
+ }
+ }
+- taibuf[TAI_STR_LEN] = '\0';
++ taibuf[TAI_STR_LEN -1] = '\0';
+
+ printf("%s\n", taibuf);
+
diff --git a/net-mail/qmrtg/files/qmrtg.conf.sample.patch b/net-mail/qmrtg/files/qmrtg.conf.sample.patch
new file mode 100644
index 000000000000..1df7ec79f835
--- /dev/null
+++ b/net-mail/qmrtg/files/qmrtg.conf.sample.patch
@@ -0,0 +1,20 @@
+--- a/examples/qmrtg.conf.sample
++++ b/examples/qmrtg.conf.sample
+@@ -6,7 +6,7 @@
+ # this it where qmrtg keeps its dbfiles
+ # dbfiles are a few little files used
+ # to store service informations
+-QMRTG_DBPATH="/var/db/qmrtg"
++QMRTG_DBPATH="/var/lib/qmrtg"
+
+ # use this for debugging qmrtg
+ # the greater the level, the more info you'll get
+@@ -19,7 +19,7 @@
+ DEBUG=$QMRTG_DBPATH/qmrtg.log
+
+ # root location for binary files
+-BINPLACE=/usr/local/bin
++BINPLACE=/usr/bin
+
+ # this beams "new" lines from log files
+ QFILT=$BINPLACE/qfilt
diff --git a/net-mail/qmrtg/metadata.xml b/net-mail/qmrtg/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-mail/qmrtg/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/qmrtg/qmrtg-2.1-r1.ebuild b/net-mail/qmrtg/qmrtg-2.1-r1.ebuild
new file mode 100644
index 000000000000..dad4124cce50
--- /dev/null
+++ b/net-mail/qmrtg/qmrtg-2.1-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="A tool to analyze qmail activity with the goal to graph everything through MRTG"
+HOMEPAGE="http://dev.publicshout.org/qmrtg"
+SRC_URI="${HOMEPAGE}/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="net-analyzer/mrtg"
+
+src_prepare() {
+ sed -i \
+ -e 's|^CFLAGS =|CFLAGS ?=|g' \
+ analyzers/Makefile.in filters/Makefile.in || die
+
+ epatch "${FILESDIR}"/mrtg.cfg.patch
+ epatch "${FILESDIR}"/qmrtg.conf.sample.patch
+ epatch "${FILESDIR}"/${P}-TAI_STR_LEN.patch
+}
+
+DOCS=( INSTALL.txt )
+
+src_install () {
+ default
+ keepdir /var/lib/qmrtg
+ if use doc ; then
+ docinto txt
+ dodoc doc/*.txt
+ docinto html
+ dohtml -r html/*
+ fi
+
+ insinto /usr/share/qmrtg2
+ doins examples/*
+
+}
+
+pkg_postinst () {
+ elog
+ elog "You need to configure manually qmrtg in order to run it."
+ elog "The configuration templates in /usr/share/qmrtg2/ and"
+ elog "the INSTALL file in /usr/share/doc/qmrtg-2.1/"
+ elog "will be useful."
+ elog
+}
diff --git a/net-mail/qpopper/Manifest b/net-mail/qpopper/Manifest
new file mode 100644
index 000000000000..10b5d16cdba3
--- /dev/null
+++ b/net-mail/qpopper/Manifest
@@ -0,0 +1,9 @@
+AUX qpopper-4.1-parallel-build.patch 464 SHA256 55a3014b5db01656b062fb374f9e9f31513de0e76b87b448c96268386c8d669b SHA512 b80d0ecf87523a9f52927029f5d11b0937bf27ee634309a02184686ce5077f6da53f4e2cf12d3e2ae76ee45f16720addf2d23d6de7bf0c5b1a1a7b7906a25764 WHIRLPOOL f2e1860a4e522bf136e2eed44254d374c2857a16ac97a2d9eb585aa88aff6d2acee9464b400edd31d01c476f01aeaf6dd4d73b3d68ce7d4c319b779f7d003a68
+AUX qpopper.conf 20457 SHA256 ed4d6a22d9e1c5e9cb89c86d7d63a9cf552d76cba9bb94b4adc467662043ae52 SHA512 d7be7f0528b3059c1c09bcdef5dd519bfae82d1f63bd9316f5f1c86ca2df911a4e91ff87ec50ceb5e6b0e27a0b1f86dd2949800619df0a507f4bbb13a0d895b5 WHIRLPOOL 4d934f06da604083b5db4589f13e6402ae32d98808f8bfb9e58af69f4460c99aae1842d7ef9abba99a54cf1fbc91956b93459b3316bb72e61c4e246ec6e62513
+AUX qpopper.init.d 411 SHA256 265135ea2dc7926e13f4344f6f9695e048fa8ce73ba28da6b50eb6a4a22bd7d1 SHA512 06db8105e0e925b5b25a5024e6b4080e64317a0219d3db8e0a75fad1c8271d2aea3f38f7e44a07256a24a3354fb2bebc0a63ef22fc41381ad91239a540240aba WHIRLPOOL 34dc50864ae3133148b12678db33cf3ac3552dc08032febf2a3953c41f6d0b9ab8757f9b43b7b56c48a600c2cde757c096fb17fbbf037dfb23724b2e3f8c3e6a
+AUX qpopper.xinetd 408 SHA256 e6de613540086c0312029c0f0c762a6383df3c3f106c7112a371bdfd1ed087c4 SHA512 291c2ab21356210d415fae4816bfc9f295ebb47a75a4d523f81f0d14dd9380fe0ffceac53fa84f0491c68b7082d543f4c6f4e486ca818efc1fbc254ad5926458 WHIRLPOOL 0cd8cf2950a3a35d426b3bb19568ec66f72fb468bdd300d59567ec51d8ef5bbbad1578a16d9ac415ed9e49cbbb2bd43ae0b712d7ba9e5e8193d32f1ab6095970
+DIST qpopper4.1.0.tar.gz 1239530 SHA256 1bc21f83cda47e9b2d5d8ceecc49f169e10fdb9b99ddddcd543218fad269b0de SHA512 01e3ac13fa446bded84628a29a23849f623d5e5f85fdb77126cc4c2e20785c658fbc3d8a356eafd9f0ed2e879c6b4f6a754b6b685ea51b784c2cd0458c389c8b WHIRLPOOL 1317aaf3726a0406aa3b3bda0316a8fcd859dd681fe961db2233ae3832ad262d5341fa5af42796af2b2d86ac9f9cf32e8ee625c993021eb619df0807f2fff0f5
+EBUILD qpopper-4.1.0.ebuild 3076 SHA256 ea4f947ac4743b4e1c29f6ba63fcffae1aa2a8cbba74bb3b5cc20b94a20a6cc3 SHA512 73b74e0ca671b77eba35d08d2754811f6e0a0bb0ccc4d58647d8da47e16a0d2b03f05a8064855cf187bcb36c1e83c6612af255e3bed70a213cbc8545e9c1e399 WHIRLPOOL 86194e0fb83f4c600fd2bebee5b61c64678b44906a409d7ab238d3d597a6aa7be645b17a95888558d644045e1a0cf27a73f84015565249b95742470267b14cd3
+MISC ChangeLog 2670 SHA256 1efaed7f284ae6c2738219e56cebeda3145d0e05e77cfb0559af95966ce83fad SHA512 7f92b609afd35b7828d33b27e22f79d67c274e12c67d22833f2f33584533891e86ad5fb861aa0f0c041a5aeea18dd8d8ce192824e7b3736f7ae77c90f37c3c6b WHIRLPOOL fee5365be7076fc1df87b8b3847415b20b38176dd2f8eecd127c2d412e82537af025ad636b123f3822d83a1e458859fe799a27d7704b2eeeb4362a81fd01111e
+MISC ChangeLog-2015 5837 SHA256 d225f25f916b24973354b78eb44fe5bb39c3f41a5e4fb43e23df777fddd5965f SHA512 f4cc6e821b7e3706fa04cf9b0322379bb8423d52d7b935168a8bdb9b594895e85bd69f91871bc45deda1a8e8396ddbc0114e8ee4ae75b156d5ea9e80c91786b7 WHIRLPOOL 7b01c7725552ba6306eb9ccf6ed83b6e777a5e9089c21f89f65bbb5f0fba47b99b50d4e77556d6b1fb2d8415b66ba43b777cb9cd5f3bf1c52ecef96c0369b373
+MISC metadata.xml 476 SHA256 18098224e50ed353bcf263755f8fa82bb02b1b9283be22bfc1130c830f537b2e SHA512 9e8beaacad50c6f2c7397793d61cbe31a85e000aad1d0f161c07f6886705b42b5e1ceae30bd71f4877f461c2c9d46d9b49565a8ac6d662fe0495198f63395e19 WHIRLPOOL a76bde42c6f6e7bf912a109f34cc3d6d3419834b26d24e2be4004f364cb9099e4762037cc1fbbf60e0e29039f84daae3606a93c188213958afd8c0662d883a6b
diff --git a/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch b/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch
new file mode 100644
index 000000000000..23cc7c39cece
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch
@@ -0,0 +1,13 @@
+=== modified file 'popper/Makefile.in'
+--- popper/Makefile.in 2011-09-11 13:29:01 +0000
++++ popper/Makefile.in 2011-09-11 13:29:23 +0000
+@@ -212,7 +212,7 @@
+ -I${common_srcdir} ${common_dir}/libcommon.a \
+ ${LIBS} ${LDFLAGS}
+
+-popauth: ${POPAUTHOBJS} ${MISSING_OBJS}
++popauth: ${POPAUTHOBJS} ${MISSING_OBJS} common_library
+ ${CC} -o popauth ${POPAUTHOBJS} ${NETWORK_LIBS} \
+ ${DBM_LIBS} ${MISSING_OBJS} \
+ ${common_dir}/libcommon.a
+
diff --git a/net-mail/qpopper/files/qpopper.conf b/net-mail/qpopper/files/qpopper.conf
new file mode 100644
index 000000000000..8ce96875c520
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper.conf
@@ -0,0 +1,679 @@
+#---------------------------------------------------------------------
+# Sample Qpopper 4.0 configuration file.
+#
+# This file lists all Qpopper configuration file options. To use,
+# copy the desired setting to your own configuration file, remove
+# the leading '#' and set the desired value.
+#
+#---------------------------------------------------------------------
+
+
+
+# An integer value for the number of seconds to announce in
+# the CAPA response for the server's minimum login delay.
+#
+# Default:
+#
+# set announce-login-delay =
+
+
+# An integer value for the number of days to announce in
+# the CAPA response for the server's maximum message
+# retention period.
+#
+# Default:
+#
+# set announce-expire =
+
+
+# The full path to the bulletins directory.
+#
+# Default: /var/spool/bulls
+#
+# set bulldir = "/var/spool/bulls"
+
+
+# Set TRUE to permit sessions to continue even if the
+# bulletins database can't be accessed. This permits
+# users to get their mail, but they might not see some
+# bulletins for a while, or at all.
+#
+# Only valid when compiled with '--enable-bulldb'.
+#
+# Default: false.
+#
+# set bulldb-nonfatal = false
+
+
+# Sets the maximum number of attempts to lock the bulletins
+# database. You normally do not need to adjust this. This value
+# should only be changed if you know if your system has usleep(3C)
+# or not. On systems with usleep(3C), this can be a large value
+# (the default is 75). On systems without usleep(3C), this should
+# remain small (the default is 10).
+#
+# Only valid when compiled with '--enable-bulldb'.
+#
+# Default: 75 (10 on systems without usleep(3c)).
+#
+# set bulldb-max-tries = 75
+
+
+# Sets clear text handling options. Values are:
+# o 'default' Clear text passwords are permitted for all users,
+# except those in the APOP database
+# o 'never' Clear text passwords are never permitted
+# o 'always' Clear text passwords are always permitted
+# o 'local' Clear text passwords are permitted on the local
+# (127.*.*.*) loop back interface only
+# o 'tls' Clear text passwords are permitted when TLS/SSL
+# has been negotiated for the session
+# o 'ssl' Same as tls
+#
+# The 'tls' and 'ssl' values are only valid if '--with-openssl' or
+# '--with-sslplus' was used with ./configure.
+#
+# Default: default
+#
+# set clear-text-password = default
+
+
+# Reads additional run-time options from the specified file.
+#
+# Caution. There are no restrictions on which options may
+# appear in files specified with the '-f' command-line flag
+# or the 'config-file' configuration file option in files
+# chained from -f. Be certain that the file specified with
+# '-f' or in any files it chains to are not writable by
+# users.
+#
+# Default: none
+#
+# set config-file = /etc/mail/pop/qpopper.config
+
+
+# Enables debug logging. Output is in syslog. If this option is used,
+# it should be first, so that debug records are generated for subsequent
+# options.
+#
+# Only valid if ./configure was run with '--enable-debugging'
+#
+# Default: false
+#
+# set debug = false
+
+
+# Changes uppercase user names to lowercase. This permits users to
+# configure their clients with user names in UPPER or MiXeD case.
+# They can then login, assuming their actual user name is all
+# lowercase.
+#
+# Default: false
+#
+# set downcase-user = false
+
+
+# If '--with-drac' used with ./configure, this option specifies the DRAC
+# host.
+#
+# Default: localhost
+#
+# set drac-host = localhost
+
+
+# Enables Kerberos support.
+#
+# Only valid if ./configure run with '--enable-kerberos5'.
+#
+# Default: false
+#
+# set kerberos = false
+
+
+# Specifies the Kerberos service to use (same as the compile time
+# KERBEROS_SERVICE define). The default is rcmd, although the use of
+# pop is popular.
+#
+# Only valid if ./configure run with '--enable-kerberos5'.
+#
+# Default: rcmd
+#
+# set kerberos-service = "rcmd"
+
+
+# Checks if mail lock needs to be refreshed every this many messages.
+#
+# You normally do not need to adjust this. See "Performance" in the
+# Qpopper Administrator's Guide for more information.
+#
+# Default:
+#
+# set mail-lock-check =
+
+
+# Disables the reverse lookups on client IP addresses.
+#
+# Default: true
+#
+# set reverse-lookup = true
+
+
+# Enables server mode by default. See the Qpopper Administrator's
+# Guide for more information.
+#
+# Default: false
+#
+# set server-mode = false
+
+
+# Enables statistics logging. After each session ends, a statistics
+# record is written to the log. This record resembles the following
+# example: 'stats randy 0 0 1 385 randy.example.org 192.168.2.4' and
+# has the following meaning:
+# Username: 'randy'
+# Deleted messages: 0
+# Deleted octets: 0
+# Messages left on server: 1
+# Octets left on server: 385
+# Name of client machine: 'randy.example.org'
+# IP address of client machine: '192.168.2.4'
+#
+# Default: false
+#
+# set statistics = false
+
+
+# Sets the timeout for network reads. Qpopper terminates the
+# connection with the client if no input is received in this
+# many seconds. RFC 1939 states that this timeout must be
+# 600 seconds (10 minutes). However, ideal settings in some
+# cases are between 30 and 120 seconds. In other cases the 600
+# value is best, and sometimes a value in between is better.
+#
+# Default: 120
+#
+# set timeout = 120
+
+
+# Enables debug logging if '--enable-debugging' was used with
+# ./configure. All debug and standard log records are written to
+# the specified file. If this option is used, it should be first,
+# so that debug records are generated for subsequent options.
+#
+# If used without '--enable-debugging', redirects all log messages
+# to the specified file but does not enable debug logging.
+#
+# Default: none
+#
+# set tracefile =
+
+
+# Reads additional run-time options from a file named
+# '.qpopper-options' in the user's home directory, if present.
+#
+# This file is normally owned by the user.
+#
+# Default: false
+#
+# set user-options = false
+
+
+# Reads additional run-time options from a file named
+# 'username.qpopper-options' in the spool directory.
+#
+# This file should not be owned by nor writable by the user.
+#
+# Default: false
+#
+# set spool-options = false
+
+
+# When updating the spool at the end of a session, this option
+# instructs Qpopper to rename the temporary file to the spool instead
+# of copying it. This reduces I/O at session end by a third, but is
+# likely to break programs such as biff or the shell's mail check
+# feature. Use this option only if such programs are not used. It is
+# safest to only enable this option when users do not have shell
+# access to the mail server.
+#
+# See "Performance" in the Qpopper Administrator's Guide for more
+# information.
+#
+# Default: false
+#
+# set fast-update = false
+
+
+# When set, domains are trimmed from user names before use. For
+# example, if a user named 'maida' enters her login name in her POP
+# client as 'maida@example.org', Qpopper treats this as just 'maida'.
+#
+# Default: false
+#
+# set trim-domain = false
+
+
+# Specifies TLS/SSL support. The permitted values are:
+# o 'default' TLS/SSL is not supported
+# o 'none' Same as default
+# o 'stls' Enables support for the STLS command. This
+# permits TLS/SSL negotiations on the
+# standard (or any) port, allowing the same
+# port to be used by TLS/SSL and regular
+# clients.
+# o 'alternate-port' Enables alternate-port TLS/SSL. Some older
+# clients require this. (The usual port for
+# alternate-port TLS/SSL with pop is 995.)
+#
+# Only valid when '--with-openssl' or '--with-sslplus' used with
+# ./configure
+#
+# Default: default
+#
+# set tls-support = default
+
+
+# Specifies the permitted cipher suites. See the OpenSSL documentation
+# for syntax. You normally do not need to set this.
+#
+# Only valid when '--with-openssl' used with ./configure
+#
+# Default:
+#
+# set tls-cipher-list =
+
+
+# Restricts the version of TLS/SSL recognized in session negotiations.
+# You normally do not need to set this. Supported values are:
+# o 'default' (same as SSLv23)
+# o 'SSLv2' Forces Qpopper only to understand SSLv2 client hello
+# messages.
+# o 'SSLv3' Forces Qpopper only to understand SSLv3 client hello
+# messages. This especially means that it does not
+# understand SSLv2 client hello messages, which are
+# widely used for compatibility reasons.
+# o 'TLSv1' Forces Qpopper only to understand TLSv1 client hello
+# messages. This especially means that it does not
+# understand SSLv2 client hello messages, which are
+# widely used for compatibility reasons. It also does
+# not understand SSLv3 client hello messages.
+# o 'SSLv23' Allows Qpopper to understand SSLv2, SSLv3, and TLSv1
+# client hello messages. This is the best choice when
+# compatibility is a concern. This is the default
+# value.
+# o 'all' (same as SSLv23)
+#
+# Only valid when '--with-openssl' used with ./configure
+#
+# Default: default
+#
+# set tls-version = default
+
+
+# Specifies the file containing the server's TLS/SSL certificate and
+# encrypted private key.
+#
+# Only valid if '--with-sslplus' used with ./configure.
+#
+# Default: none
+#
+# set tls-identity-file =
+
+
+# Specifies the passphrase to decrypt the server's private key (in the
+# identify file).
+#
+# Only valid if '--with-sslplus' used with ./configure.
+#
+# Default: none
+#
+# set tls-passphrase =
+
+
+# Specifies the file which contains the server's TLS/SSL certificate.
+# This file may also contain the server's unencrypted private key.
+#
+# Only valid if '--with-openssl' used with ./configure
+#
+# Default: none
+#
+#
+# set tls-server-cert-file = /etc/mail/certs/cert.pem
+
+
+# Specifies a file which contains the server's TLS/SSL private key.
+# Note: This private key must not be encrypted.
+#
+# If the private key is contained in the same file as the certificate
+# (as specified with tls-server-cert-file), you do not need to set
+# this option.
+#
+# Only valid if '--with-openssl' used with ./configure
+#
+# Default: none
+#
+# set tls-private-key-file =
+
+
+# When set, Qpopper writes a log record at the end of a session
+# containing the elapsed time for the session authentication,
+# initialization. and cleanup.
+#
+# Default: false
+#
+# set timing = false
+
+
+# When set, Qpopper checks for old .user.pop files in old locations
+# when hash-spool or homedirmail is used. When reset, Qpopper skips
+# this check, which speeds things up.
+#
+# Default: true
+#
+# set check-old-spool-loc = true
+
+
+# When set, Qpopper checks for and creates if needed the hashed spool
+# directories. When reset, Qpopper doesn't check for or create the
+# hashed spool directories. Set to false if you precreate the
+# directories.
+#
+# Default: true
+#
+# set check-hash-dir = true
+
+
+# When set, Qpopper checks for expired passwords (if the platform
+# permits). When reset, Qpopper omits this check.
+#
+# Default: true
+#
+# set check-password-expired = true
+
+
+# Determines whether Qpopper updates the read/unread status of
+# messages (a feature relied on by some mail clients). Also
+# determines if Qpopper saves the message's unique identifier
+# (UID) in the spool.
+#
+# When reset, it forces the UID for every message to be
+# recalculated, using more CPU but potentially less I/O.
+#
+# See the "Performance" section of the Qpopper Administrator's Guide
+# for more information.
+#
+# Default: true
+#
+# set update-status-headers = true
+
+
+# Determines whether Qpopper enters update state when a session
+# aborts. Resetting this option causes Qpopper to ignore any
+# deletions if the session is aborted.
+#
+# Note that RFC 1939, section 6 prohibits the default behavior,
+# but experience showed that otherwise users on noisy lines were
+# often unable to delete their mail. Reset this option to inhibit
+# the default behavior, and obey RFC 1939, but watch for users who
+# download the same messages over and over, or whose spools fill up.
+#
+# Default: true
+#
+# set update-on-abort = true
+
+
+# When set, Qpopper automatically and unconditionally deletes messages
+# that have been downloaded using the RETR command (the normal command
+# for accessing messages).
+#
+# Caution: This option could result in lost mail. Be sure to
+# inform your users that the option is in effect before enabling.
+#
+# Default: false
+#
+# set auto-delete = false
+
+
+# When set, Qpopper shows bulletins to users by groups (the group name
+# is the second dot-separated element in each bulletin's name). See
+# "Using Bulletins" in the Qpopper Administrator's Guide for more
+# information. Use a group name of 'ALL' for all users.
+#
+# Default: false
+#
+# set group-bulletins = false
+
+
+# When set to a 1 or 2, the subdirectory for the mail spools is
+# determined from the user name by either (1) hashing the first four
+# characters or (2) by using directories equal to the first letter and
+# the second letter (if any). For example, if the spool directory is
+# '/var/mail', the spool file for user 'maida' would be:
+# '/var/mail/maida' hash-spool = 0
+# '/var/mail/o/maida' hash-spool = 1
+# '/var/mail/m/a/maida' hash-spool = 2
+#
+# See the "Performance" section of the Qpopper Administrator's Guide
+# for more information.
+#
+# Default: 0
+#
+# set hash-spool = 0
+
+
+# To have the user's home directory be the spool location, set this
+# option to be the correct file name for the spool.
+#
+# Default: none
+#
+# set home-dir-mail = ".mail"
+
+
+# When set, instructs Qpopper to generate message unique identifiers
+# (UIDs) using old (pre-3.x) style encoding. This is useful only if
+# you also set 'update-status-headers' to false, have existing users
+# with old (pre-3.x) spool files, and you want to keep the UIDs the
+# same.
+#
+# Default: false
+#
+# set old-style-uid = false
+
+
+# When set, Qpopper checks for and hides status messages created by
+# University of Washington software.
+#
+# Default: false
+#
+# set UW-kluge = false
+
+
+# When set, Qpopper keeps (does not delete) the '.user.pop' file (the
+# temporary drop file). Normally this file is deleted when the
+# session ends. Some sites like to retain it to determine the last
+# time a user has accessed his or her mail.
+#
+# Default: false
+#
+# set keep-temp-drop = false
+
+
+# When set, causes server mode to be on for users who are members of
+# the specified group. See the "Enabling Server Mode" and
+# "Performance" sections of the Qpopper Administrator's Guide for more
+# information.
+#
+# Default: none
+#
+# set group-server-mode =
+
+
+# When set, causes server mode to be off for users who are members of
+# the specified group. See the "Enabling Server Mode" and
+# "Performance" sections of the Qpopper Administrator's Guide for more
+# information.
+#
+# Default: none
+#
+# set group-no-server-mode =
+
+
+# Specifies a file that permits only users listed in the file to have
+# Qpopper access. The format is a list of user names, one per line.
+#
+# Default: none
+#
+# set auth-file =
+
+
+# Specifies a file that denies access to users listed in the file.
+# The format is a list of user names, one per line.
+#
+# Default: none
+#
+# set nonauth-file =
+
+
+# Set this option if you don't want Qpopper to display its version in
+# the POP protocol banner or CAPA IMPLEMENTATION response of
+# unauthenticated users.
+# Some sites believe this improves security since it avoids advertising
+# that an old version (perhaps with known vulnerabilities) is being
+# used. Others feel is makes the site more likely to be attacked,
+# since it also avoids advertising when running a secure version.
+#
+# Default: false
+#
+# set shy = false
+
+
+# Set this to the full path to sendmail or other such program used to
+# submit new messages. Qpopper uses this to implement XTND XMIT.
+#
+# The default is determined at compile time.
+#
+#
+# set mail-command = /usr/sbin/sendmail
+
+
+# Set this to the full path to the mail spool directory.
+#
+# The default is determined at compile time.
+#
+# set spool-dir = /var/spool/mail
+
+
+# If you do not want '.user.pop' (temporary drop files) to be in the
+# spool directory, set this to the full path to the directory to be
+# used for temp drop files. Note that use of /tmp is not recommended,
+# because a system reboot will wipe out the files. This could cause
+# lost mail.
+#
+# Default: spool directory
+#
+# set temp-dir =
+
+
+# The name of the temporary drop files. You should not normally set
+# this option.
+#
+# Default: ".%s.pop"
+#
+# set temp-name = ".%s.pop"
+
+
+# If you do not want user cache files to be in the same directory as
+# temporary drop files, set this to the full path to the directory for
+# cache files. Note that use of /tmp is not recommended, because a
+# system reboot wipes out the files.
+#
+# Default: temp-dir
+#
+# set cache-dir =
+
+
+# The name of the cache files. You should not normally set this
+# option.
+#
+# Default: ".%s.cache"
+#
+# set cache-name = ".%s.cache"
+
+
+# Specifies the maximum number of old bulletins seen by new users.
+#
+# Default: 1
+#
+# set max-bulletins = 1
+
+
+# When set, Qpopper uses a method of opening lock files that may work
+# over NFS. This has not been thoroughly tested, however.
+#
+# Default: false
+#
+# set no-atomic-open = false
+
+
+# Qpopper sends network output to client in small chunks (for example,
+# line-by-line when sending a message). By default, Qpopper
+# aggregates data to be sent to clients in large chunks. This may be
+# faster or slower, depending on specifics of both the client and
+# server hardware and networking stacks as wel as network elements in
+# between (such as routers). Also, some networking stacks do their
+# own aggregation.
+#
+# Under congested network conditions, larger packets increase the
+# incidence of lost packets and thus client or server timeouts,
+# leading to "POP timeout" or "EOF" errors.
+#
+# When TLS/SSL is in effect, smaller packets increase the overhead
+# needed to send data, which may result in worse performance.
+#
+# You can adjust the Qpopper behavior by setting this option. The
+# values are:
+# o 'default' Always send large chunks
+# o 'always' Same as 'default'
+# o 'never' Never aggregate data into large chunks
+# o 'tls' Only aggregate data into large chunks when TLS/SSL
+# has been negotiated for the session
+# o 'ssl' Same as 'tls'
+#
+# Default: default
+#
+# set chunky-writes = default
+
+
+# Specifies the log facility that Qpopper uses.
+#
+# Note that this does not apply to popauth, nor to the daemon in
+# standalone mode. These continue to use the compile-time default.
+#
+# Values are:
+# o 'mail' Qpopper logs to LOG_MAIL facility.
+# o 'local0' Qpopper logs to LOG_LOCAL0 facility.
+# o 'local1' Qpopper logs to LOG_LOCAL1 facility.
+# o 'local2' Qpopper logs to LOG_LOCAL2 facility.
+# o 'local3' Qpopper logs to LOG_LOCAL3 facility.
+# o 'local4' Qpopper logs to LOG_LOCAL4 facility.
+# o 'local5' Qpopper logs to LOG_LOCAL5 facility.
+# o 'local6' Qpopper logs to LOG_LOCAL6 facility.
+# o 'local7' Qpopper logs to LOG_LOCAL7 facility.
+#
+# Default: determined at compile time, usually LOG_LOCAL0 or
+# LOG_MAIL, depending on the operating system.
+#
+# set log-facility = local1
+
+
+# When set, Qpopper logs successful authentications using the
+# specified string. Within the string, an occurrence of '%0' is
+# replaced with the Qpopper version, '%1' with the user name, '%2'
+# with the user's host name, and '%3' with the user's IP address.
+#
+# Default: none, unless '--enable-log-login' used with ./configure,
+# in which case "(v%0) POP login by user /"%1/" at (%2) %3" is used.
+#
+# set log-login = "(v%0) POP login by user /"%1/" at (%2) %3"
+
+
diff --git a/net-mail/qpopper/files/qpopper.init.d b/net-mail/qpopper/files/qpopper.init.d
new file mode 100644
index 000000000000..45e55148ac10
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper.init.d
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting qpopper"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/sbin/popper -- -f /etc/qpopper.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping qpopper"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/popper
+ eend $?
+}
diff --git a/net-mail/qpopper/files/qpopper.xinetd b/net-mail/qpopper/files/qpopper.xinetd
new file mode 100644
index 000000000000..16cc899f42cc
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper.xinetd
@@ -0,0 +1,16 @@
+# default: off
+# description: The POP3 service allows remote users to access their mail \
+# using an POP3 client such as Netscape Communicator, mutt, \
+# or fetchmail.
+service pop-3
+{
+ socket_type = stream
+ wait = no
+ user = root
+ port = 110
+ server = /usr/sbin/popper
+ server_args = -f /etc/qpopper.conf
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/qpopper/metadata.xml b/net-mail/qpopper/metadata.xml
new file mode 100644
index 000000000000..6c8e884f1b7b
--- /dev/null
+++ b/net-mail/qpopper/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="apop">Enables the pop.auth file in /etc/pop.auth</flag>
+ <flag name="drac">Enables DRAC support</flag>
+ <flag name="mailbox">Enables mail spool file is in home directory ~/Mailbox</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/qpopper/qpopper-4.1.0.ebuild b/net-mail/qpopper/qpopper-4.1.0.ebuild
new file mode 100644
index 000000000000..e9b1d4e5b43e
--- /dev/null
+++ b/net-mail/qpopper/qpopper-4.1.0.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+#inherit eutils flag-o-matic ssl-cert
+inherit eutils ssl-cert user
+
+MY_P=${PN}${PV}
+
+DESCRIPTION="A POP3 Server"
+HOMEPAGE="http://www.eudora.com/products/unsupported/qpopper/index.html"
+SRC_URI="ftp://ftp.qualcomm.com/eudora/servers/unix/popper/${MY_P}.tar.gz"
+
+LICENSE="qpopper ISOC-rfc"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug drac gdbm mailbox pam ssl xinetd apop"
+
+DEPEND="virtual/mta
+ >=net-mail/mailbase-0.00-r8
+ xinetd? ( virtual/inetd )
+ gdbm? ( sys-libs/gdbm )
+ drac? ( mail-client/drac )
+ pam? ( >=sys-libs/pam-0.72 )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ use apop && enewuser pop
+}
+
+src_prepare() {
+ # Test dirs are full of binary craft. Drop it.
+ rm -rf ./mmangle/test || die
+ epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
+ sed -i -e 's:-o popauth:& ${LDFLAGS}:' popper/Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable !xinetd standalone) \
+ $(use_enable debug debugging) \
+ $(use_with ssl openssl) \
+ $(use_with gdbm) \
+ $(use_with pam pam pop3) \
+ $(use_enable apop apop /etc/pop.auth) \
+ $(use_enable mailbox home-dir-mail Mailbox) \
+ $(use_with drac) \
+ --enable-shy \
+ --enable-popuid=pop \
+ --enable-log-login \
+ --enable-specialauth \
+ --enable-spool-dir=/var/spool/mail \
+ --enable-log-facility=LOG_MAIL
+
+ if ! use gdbm; then
+ sed -i -e 's|#define HAVE_GDBM_H|//#define HAVE_GDBM_H|g' config.h || die "sed failed"
+ fi
+}
+
+src_install() {
+ if use apop; then
+ dosbin popper/popauth
+ fowners pop:root /usr/sbin/popauth
+ fperms 4110 /usr/sbin/popauth
+ doman man/popauth.8
+ fi
+
+ dosbin popper/popper
+ doman man/popper.8
+
+ insinto /etc
+ doins "${FILESDIR}/qpopper.conf"
+
+ if use ssl; then
+ sed -i -e 's:^# \(set tls-server-cert-file\).*:\1 = /etc/mail/certs/cert.pem:' \
+ -e 's:^# \(set tls-support\).*$:\1 = stls:'\
+ "${D}/etc/qpopper.conf"
+ fi
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}/qpopper.xinetd" pop-3
+ else
+ newinitd "${FILESDIR}/qpopper.init.d" qpopper
+ fi
+
+ dodoc README doc/{Release.Notes,Changes}
+
+ docinto rfc
+ dodoc doc/rfc*.txt
+ dohtml doc/LMOS-FAQ.html
+
+ insinto /usr/share/doc/${PF}
+ doins GUIDE.pdf
+}
+
+pkg_postinst () {
+ if use ssl; then
+ install_cert /etc/mail/certs/cert
+ chown root:mail /etc/mail/certs
+ chmod 660 /etc/mail/certs
+ fi
+ if use apop; then
+ elog "To authenticate the users with APOP "
+ elog "you have to follow these steps:"
+ elog ""
+ elog "1) initialize the authentication database:"
+ elog " # popauth -init"
+ elog "2) new users can be added by root:"
+ elog " # popauth -user <user>"
+ elog " or removed:"
+ elog " # popauth -delete <user>"
+ elog " Other users can add themeselves or change their"
+ elog " password with the command popauth"
+ elog "3) scripts or other non-interactive processes can add or change"
+ elog " the passwords with the following command:"
+ elog " # popauth -user <user> <password>"
+ elog ""
+ fi
+}
diff --git a/net-mail/qprint/Manifest b/net-mail/qprint/Manifest
new file mode 100644
index 000000000000..bbdfac869819
--- /dev/null
+++ b/net-mail/qprint/Manifest
@@ -0,0 +1,7 @@
+DIST qprint-1.0.tar.gz 248872 SHA256 a92f02f2b1c12e29895df7ce200bd8001ce6be9ef092ef14284f94918719bfa8 SHA512 2cba2e4c986e51485f26988173d16bfdbecbc9e84aeb7abbf3e77fba8f9d5ad442c0d61a8d17f4b715c0ec0b3ec25b948438fa5c88a0777d7aff7b6d99c40a31 WHIRLPOOL 09a51ae9579ed2b21d4c1d2bfef0711a1be775768bb4dd41a44e3f201f2d07309f1210cac046f9cd34c0070a2c42276039ae28391d676c7b915ecd2fe6c570e4
+DIST qprint-1.1.tar.gz 358575 SHA256 ffa9ca1d51c871fb3b56a4bf0165418348cf080f01ff7e59cd04511b9665019c SHA512 4748f52cc8cabf72a2685fba93ee9957a9a36658a8b0c9fc1994e1779aad59a94b942ed3dd2501c6a35636e7c75e24d512a5de5f95b0ba66ae40acee8bbe1cca WHIRLPOOL 846d89b7775cd2d913d98ba72277a6f5e3001f4d3006c41810707682e40cef0abee546e75a9eefa94aa09fcb6afb2b5849409978a5a124c18233357896e4e48e
+EBUILD qprint-1.0.ebuild 642 SHA256 79d5668d9e80032af637ac846237b99dc3d412674c1c68d5e1d5359b5404dd3e SHA512 4ea8900a789344b01c996b118573286b975a2e84e17e488a6211b3f1dffa8e93df6367f638e4b2aaccdc18de5e9357bfc4aa331cb8858f5a906bc1523dcb610c WHIRLPOOL 7bf05e9d8e2bafe3db475e38e101a109c5e144408766672c40fd7cb06851711135645dae736af10bd6d9acda0e5d7c255238313e6ed881df5bf3a00acd54897e
+EBUILD qprint-1.1.ebuild 531 SHA256 f32fdf4afbaade07212da8bc0493d47410071c1e992721db438158b9e14ef31e SHA512 0603260e8b1d812ef1e763a071b4ded73140d68fcd854dc5ff6709d24aef001a116c1405a78e12296239d68fd127332b530f1ba06d586fd9d054c9348f852cea WHIRLPOOL da791ad9786f0e32cef2b0af6d10db98b6ddee91916b3694747a12a9fc7cda33b843ffffe51c17631f443a6485e7a07c37ca026bb4337aa7b98dc3ad5ba70aa2
+MISC ChangeLog 2566 SHA256 9a7b2a4e0ffa677d5d497417e4bd0f2fa104b1e1608a4089f1b54004c109e860 SHA512 9ea5b69463c08e5aaac6d717fec67317c2ed349336f976a097de52981248653ae9d50af0383580edfd6dd29e0d35ac406a2f0ef4db33ab6fbfb0674c3e685af0 WHIRLPOOL 925216e33020da0f5508b04f4aaa1c28280613b3140c6c4d9857a901ee35852e41e23b0b21b3c679459cb5ae97197fe0c712c7dd7db96e07c8d1a7b0c623e9e0
+MISC ChangeLog-2015 1255 SHA256 e92a92c4fffd0778a1ab55a66f3ea54034026dcc5cc37245e65762c01f7ba968 SHA512 e7fe8f47ac6446243bbce5601332a1ad7fa8cc5cf3fefab174f1df17ac706b02c07c94162a9f23be726e2f7acf31cfbf61801bf04c0f5d3e9eadc5a64ce3f89d WHIRLPOOL 5e6f57fd608f617c696211f80e602001404a3fcf4e3e766af514f4ec3819c098e154cf73ddd6f6b9ebcd29b19ebc21a781d34353cd4fa67cb9c91f256c7fbcd6
+MISC metadata.xml 405 SHA256 c9e9352b4ce456e2a50976c988c73ea2298bb90f625614a8e089ef45410095a4 SHA512 65f4d4963f91de85a1f5869ceb92f2c09ad2b644d37fe19f21af61ab9484d9ecee6a84f7206859ee970e315b7fffac9328ec4bac84ce16e8a83311cb9900070a WHIRLPOOL 0925d64abd3fc85721bab30342fdb4d0d7479d702af15cbb336fd208851b88cf34ba701f84fd80668be0f49a839c010e1e1eb04548d512a34d1d896274bc9e80
diff --git a/net-mail/qprint/metadata.xml b/net-mail/qprint/metadata.xml
new file mode 100644
index 000000000000..991a7243a462
--- /dev/null
+++ b/net-mail/qprint/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>qprint is a command-line filter for decoding or encoding a block of text in MIME Quoted-Printable format, as defined in RFC 1521.</longdescription>
+</pkgmetadata>
diff --git a/net-mail/qprint/qprint-1.0.ebuild b/net-mail/qprint/qprint-1.0.ebuild
new file mode 100644
index 000000000000..cd6d620d27c6
--- /dev/null
+++ b/net-mail/qprint/qprint-1.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="MIME quoted-printable data encoding and decoding utility"
+HOMEPAGE="http://www.fourmilab.ch/webtools/qprint/"
+SRC_URI="http://www.fourmilab.ch/webtools/${PN}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~ppc-macos"
+IUSE=""
+
+DEPEND=""
+
+src_compile() {
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+ make DESTDIR=${D} install || die "make install failed"
+ dodoc COPYING INSTALL README *.html qprint.pdf qprint.w logo.gif
+}
diff --git a/net-mail/qprint/qprint-1.1.ebuild b/net-mail/qprint/qprint-1.1.ebuild
new file mode 100644
index 000000000000..59789807acbe
--- /dev/null
+++ b/net-mail/qprint/qprint-1.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="MIME quoted-printable data encoding and decoding utility"
+HOMEPAGE="http://www.fourmilab.ch/webtools/qprint/"
+SRC_URI="http://www.fourmilab.ch/webtools/${PN}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos"
+IUSE=""
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+ emake DESTDIR="${D}" install
+ dodoc INSTALL README *.html qprint.pdf qprint.w logo.gif
+}
diff --git a/net-mail/qtools/Manifest b/net-mail/qtools/Manifest
new file mode 100644
index 000000000000..7f8843e8eff5
--- /dev/null
+++ b/net-mail/qtools/Manifest
@@ -0,0 +1,7 @@
+AUX qtools-0.56-errno.patch 291 SHA256 8572c0795af4494ffd016ced1a4e96b8de2fbb49f6b67575c29ea1e48b014549 SHA512 ca8fc0fc14724a1dfc9931e24071f0b72ba8bdc3c13c3dc84a597b73e92541043526a288ceb2e260dfb8ab8ce4f970b6505b323458817e499188cc4c6680ba22 WHIRLPOOL 402c4aa5e985e87163390dfc56a9bfa91397d604e13ae78c7fbb29b538c1e8665b59ebf03abd99fd67d8446daaa2883aea484a6a7f35ce8d9658c29bfb8eefd7
+AUX qtools-0.56-head.patch 2129 SHA256 cee4590bf8f5962efa12a6a95134b06a136f443b29fb342c69bd97f37e3e07c9 SHA512 e8a447921df973f43a0dc061eb18d6cb9f69fa69ae1d21140d49f3fd20af7aedb3463a9c72e9855e0740b8f3d41670e0ae69ff693b149d1b3adeb4243a742c3a WHIRLPOOL aa159e74a8d000f3ccfdd154a483e745d16a9fa6c054a1db57448f4ef0b9db43330c58f7ce005610bb8b86793a8b3b8dbe3771b99a843442c9a432eb1388f51c
+DIST qtools-0.56.tar.gz 37748 SHA256 cc8c6a25746523131c150b4bc6aebbe0d7d7d8a67896cb87b65862165ee790a9 SHA512 2016ca4f77fc370f6caac56f447325461018dff1f8a61fad305744578f0c26f0495c26d6cba6a8a9d5c86c6ef86635edd69705e9af88f70477a3f6ed121e6085 WHIRLPOOL a3ffbbe2bf6c671be4a0129bf4171c1925f4d90d73924568c1676eaf627c5a73f558dc6a9bd13ccf2a315a7714f7b916542e2274866f7e60748b825b9d60d7c5
+EBUILD qtools-0.56.ebuild 1152 SHA256 1d536953c02472d08861c68ab051beb9dd8c60f40f08f9efef74c554abf7c53a SHA512 acc98608139c40e4bf1f6913440a14ac7b155a3a27ae2abce3fba22855596affff464e7647402ec6d64427df8db69b5a3a9e74b12273af272734faa5f8201d60 WHIRLPOOL 57f477c12b36362b6effb9707e229a91226825686cf0a015a9fd5b1f23e5fad8134b8cee1271b22652282893b836a5aef15da806b444382a5bdd925f42db547b
+MISC ChangeLog 2487 SHA256 80a51b7cbd9af358c93f95f4677b9e1381ae939ecbd858c5799ff80dce6e1941 SHA512 11c1abc6266db4b1b713edc5720a0efdc4518f8c9026a39adb9109b2fd644fa8ee4c55ec7ff3bc3c5329bec72742eb43b54580b84f0ea4e22e583c287069f70f WHIRLPOOL 075ab30d351df661a3e28a97445bcee76df40a50e4ba08e2f6ddc51f248c9dd06caa2308487c43d4a1407dc8abfac0e8222dd78bae6895abf9acc718e0e4beb5
+MISC ChangeLog-2015 1489 SHA256 5c894096eba8003a567403010d8c9e8a976d7d2654d241f254bc06474cb7699a SHA512 8651ccae722ca492762af8ca6e61454bd5d98af1cc8ad99df30defffa4cf101f95e65631027f52ba2d9185f1cb375caad5a1f65b591fc52d4960385d012457a9 WHIRLPOOL b368e51692f522b95e20d3ccdeb796bbf2d10f05918637d4c332f6ccf757d8d561e222e88b50725163536a95acc3e296a7ff2040132550eb063b00f92b2f7f57
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/qtools/files/qtools-0.56-errno.patch b/net-mail/qtools/files/qtools-0.56-errno.patch
new file mode 100644
index 000000000000..a5fdab64b733
--- /dev/null
+++ b/net-mail/qtools/files/qtools-0.56-errno.patch
@@ -0,0 +1,12 @@
+--- qtools-0.56.old/error.h 2000-03-18 14:01:20.000000000 -0800
++++ qtools-0.56/error.h 2003-03-23 21:50:05.000000000 -0800
+@@ -1,7 +1,8 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+
+-extern int errno;
++/* extern int errno; */
++#include <errno.h>
+
+ extern int error_intr;
+ extern int error_nomem;
diff --git a/net-mail/qtools/files/qtools-0.56-head.patch b/net-mail/qtools/files/qtools-0.56-head.patch
new file mode 100644
index 000000000000..5032a7791c9d
--- /dev/null
+++ b/net-mail/qtools/files/qtools-0.56-head.patch
@@ -0,0 +1,76 @@
+diff -ur qtools-0.56/Makefile ../../qtools-0.56.patched/Makefile
+--- qtools-0.56/Makefile 2001-11-08 14:07:57.000000000 +0100
++++ ../../qtools-0.56.patched/Makefile 2005-06-29 00:44:05.000000000 +0200
+@@ -13,7 +13,7 @@
+ load: warn-auto.sh conf-ld
+ ( cat warn-auto.sh; \
+ echo 'main="$$1"; shift'; \
+- echo exec "`head -1 conf-ld`" \
++ echo exec "`head -n 1 conf-ld`" \
+ '-o "$$main" "$$main".o $${1+"$$@"}' \
+ ) > load
+ chmod 755 load
+@@ -27,7 +27,7 @@
+
+ compile: warn-auto.sh conf-cc
+ ( cat warn-auto.sh; \
+- echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
++ echo exec "`head -n 1 conf-cc`" '-c $${1+"$$@"}' \
+ ) > compile
+ chmod 755 compile
+
+@@ -57,8 +57,8 @@
+
+ systype: find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c
+ ( cat warn-auto.sh; \
+- echo CC=\'`head -1 conf-cc`\'; \
+- echo LD=\'`head -1 conf-ld`\'; \
++ echo CC=\'`head -n 1 conf-cc`\'; \
++ echo LD=\'`head -n 1 conf-ld`\'; \
+ cat find-systype.sh; \
+ ) | sh > systype
+
+@@ -379,7 +379,7 @@
+
+ choose: warn-auto.sh choose.sh conf-home
+ cat warn-auto.sh choose.sh \
+- | sed s}HOME}"`head -1 conf-home`"}g \
++ | sed s}HOME}"`head -n 1 conf-home`"}g \
+ > choose
+ chmod 755 choose
+
+@@ -529,7 +529,7 @@
+ ./compile checkdomain.c
+
+ auto_qmail.c: auto-str conf-qmail
+- ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c
++ ./auto-str auto_qmail `head -n 1 conf-qmail` > auto_qmail.c
+
+ filterto.o: compile \
+ filterto.c \
+@@ -660,7 +660,7 @@
+
+ rts: warn-auto.sh rts.sh conf-home
+ cat warn-auto.sh rts.sh \
+- | sed s}HOME}"`head -1 conf-home`"}g \
++ | sed s}HOME}"`head -n 1 conf-home`"}g \
+ > rts
+ chmod 755 rts
+
+@@ -715,14 +715,14 @@
+ ./compile auto_ezmlm.c
+
+ auto_ezmlm.c: auto-str conf-ezmlm
+- ./auto-str auto_ezmlm `head -1 conf-ezmlm` > auto_ezmlm.c
++ ./auto-str auto_ezmlm `head -n 1 conf-ezmlm` > auto_ezmlm.c
+
+ auto_home.o: compile \
+ auto_home.c
+ ./compile auto_home.c
+
+ auto_home.c: auto-str conf-home
+- ./auto-str auto_home `head -1 conf-home` > auto_home.c
++ ./auto-str auto_home `head -n 1 conf-home` > auto_home.c
+
+ install: load install.o hier.o auto_home.o stralloc.a alloc.a strerr.a \
+ buffer.a open.a error.a str.a
diff --git a/net-mail/qtools/metadata.xml b/net-mail/qtools/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/qtools/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/qtools/qtools-0.56.ebuild b/net-mail/qtools/qtools-0.56.ebuild
new file mode 100644
index 000000000000..19b2f5e5da2e
--- /dev/null
+++ b/net-mail/qtools/qtools-0.56.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Several utilities for use with qmail, typically as part of .qmail command processing"
+HOMEPAGE="http://www.superscript.com/qtools/intro.html"
+SRC_URI="http://www.superscript.com/qtools/${P}.tar.gz"
+
+LICENSE="all-rights-reserved public-domain" # includes code from qmail
+SLOT="0"
+KEYWORDS="alpha ~amd64 ~hppa ~mips ppc ~sparc x86"
+IUSE="static"
+RESTRICT="mirror bindist"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-errno.patch
+ epatch "${FILESDIR}"/${P}-head.patch
+}
+
+src_compile() {
+ use static && LDFLAGS="${LDFLAGS} -static"
+ export CC="$(tc-getCC)"
+ echo "${CC} ${CFLAGS}" > conf-cc
+ echo "${CC} ${LDFLAGS}" > conf-ld
+ echo "/usr" > conf-home
+ emake || die "emake failed"
+}
+
+src_install() {
+ into /usr
+ dobin 822addr 822body 822bodyfilter 822fields 822headerfilter \
+ 822headerok 822headers checkaddr checkdomain \
+ condtomaildir filterto ifaddr iftoccfrom replier \
+ replier-config tomaildir
+
+ dodoc BAPVERSION CHANGES FILES README SYSDEPS TARGETS TODO VERSION
+}
diff --git a/net-mail/queue-fix/Manifest b/net-mail/queue-fix/Manifest
new file mode 100644
index 000000000000..49e72b477704
--- /dev/null
+++ b/net-mail/queue-fix/Manifest
@@ -0,0 +1,6 @@
+DIST queue-fix-1.4.tar.gz 18486 SHA256 63da6360e3225a8fef38925b53a18e67a1197eea1f42fd41bbc928f20a0d0496 SHA512 b7e0ac070a409eff156b3803cc1bb78d1c800ae685d107b872bf5b022a8645d1ca55a5c3380f6bc82e99927df8dbf586b74af587e882938b9a7678b506c600e0 WHIRLPOOL 07755cc53ebf23c774333b2aab7d09d06653b2ea40faf94e4c9cd36cd57a78cc69bbd153b5120475b242913108a2f51805abd8cf7ccbdf5fb921dd425a02991c
+DIST queue-fix-todo.patch 3056 SHA256 911f84081d0fb68878a0744f5859ce7a45792606cd0af31945cccb41f0d01a7f SHA512 78d79f1eaa8492fd9a14dc4a4d2adfaa8c0429a4faec32305f83ea1f16769b8d337fe732adc8cc0c33b909a19617862c9df999f2e938a6b845e15bc49ab5bfbe WHIRLPOOL fc03a9923b57372db5c34a3dd8415cb6131ccdc267b2f07213a5f45ebb99bc474e904289438fe8ab86e5ab695e225c1905c665d20d17c5052e413cfe16c934fd
+EBUILD queue-fix-1.4-r2.ebuild 949 SHA256 aadcd53dce5f5af00db6770be8f1af2de9a9a0607cac8141db5e4d8611c56845 SHA512 03e9c45aa415efbe91935be0a4aa601083bcdc702eba950e948b1b7e5e1f0a6f8f8e2280b661e5c87599898a96cbf0644136d8bd19c8c26bd683965bc6b0ae51 WHIRLPOOL e42e5cdc09c911022f45cf6f3e804bf762f3ef665b0ee52f1362d0cd2d0d7973a02205d7f0410677a85931e0b3a72a0a62d85ee620c493a4be41a0f5b9defef9
+MISC ChangeLog 2435 SHA256 4f64ba7b44795c2a471fd7e760a1ece28adb316757bd3abf858f87ebf66f2311 SHA512 0c6a705c8587db5ca2f91a6362b4fd548084d9c4390e963514c1c21008fc898e66e873060567065f86f9cf42a5ffafe0d8f92469f706b6e8bc186c59a11a52d8 WHIRLPOOL 29123b129e164c416f07da91a9dd7b9d004af830876c1138dfec9a529031d93c67d86523d3803965b74cbcc6cf05351a9575feb0a3faa75b9725612ed144c6eb
+MISC ChangeLog-2015 2350 SHA256 b2ed079710e93f0e03aa3609fad701323d7c7a2e1d9cc049475d13adc2292908 SHA512 685166d3966bbe8c8a4e32c2988743b4a087c796c61d1de4bbecc894a8ca6625ef94a3ac9d5a083f77d62101ed2a51fcc151a95c23811683b3083f0ce23ee77c WHIRLPOOL a75b513d98f48b0d19bb879cb02594c6305bafa5f2f5d38dd9f202d0e6faf5b12ae942b5a85c49a77f54bf4787edd6f0e9688736f564e58fe3755500f75dba32
+MISC metadata.xml 674 SHA256 9bbf494d6217dda69637a06a240460d711e8336819ef34699d92a271b5843650 SHA512 73110590fb0272a19ec8992aedd7c92788c2f8fc7454f0be6d711c011f57844432ab3f546a3a4b8c07216e6a58ee95ff694ce3e72ae18655037310b4952ac923 WHIRLPOOL a4571daa02f9a3a64c980e254959218c3a5d410803614b79b375d308fc5b1a3227f89a7215be7c6ed3e860af9b62dbdbacb5b14d7477522cb32bfaeeb7f97d21
diff --git a/net-mail/queue-fix/metadata.xml b/net-mail/queue-fix/metadata.xml
new file mode 100644
index 000000000000..46bd852e60a3
--- /dev/null
+++ b/net-mail/queue-fix/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ <description>Primary Maintainer</description>
+</maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>It repairs or generates a qmail queue structure. You can use
+ this to help move your queue location, or if you regenerate the file system
+ and the inode numbering changes. It will also fix permissions and
+ ownerships of the files.</longdescription>
+</pkgmetadata>
diff --git a/net-mail/queue-fix/queue-fix-1.4-r2.ebuild b/net-mail/queue-fix/queue-fix-1.4-r2.ebuild
new file mode 100644
index 000000000000..3c5a30463154
--- /dev/null
+++ b/net-mail/queue-fix/queue-fix-1.4-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs fixheadtails
+
+DESCRIPTION="Qmail Queue Repair Application with support for big-todo"
+HOMEPAGE="http://www.netmeridian.com/e-huss/"
+SRC_URI="http://www.netmeridian.com/e-huss/${P}.tar.gz
+ mirror://qmail/queue-fix-todo.patch"
+
+LICENSE="all-rights-reserved public-domain" # includes code from qmail
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc s390 sh sparc x86"
+RESTRICT="mirror bindist"
+
+PDEPEND="virtual/qmail"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch "${DISTDIR}"/queue-fix-todo.patch
+ sed -i 's/^extern int errno;/#include <errno.h>/' "${S}"/error.h
+ ht_fix_file "${S}"/Makefile*
+}
+
+src_compile() {
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ emake || die
+}
+
+src_install () {
+ into /var/qmail
+ dobin queue-fix || die
+ into /usr
+ dodoc README CHANGES
+}
diff --git a/net-mail/queue-repair/Manifest b/net-mail/queue-repair/Manifest
new file mode 100644
index 000000000000..6dc94618068d
--- /dev/null
+++ b/net-mail/queue-repair/Manifest
@@ -0,0 +1,6 @@
+DIST queue-repair-0.9.0.tar.gz 13913 SHA256 b1a863bbcfbedab348415425df8962a6f936c4ca3f3de72735d38f7d7471a96a SHA512 b7c21de207c80c3f764eddae6e60b4d54869f2037f572f98ff4e0a1e34f55ae1feeab5162b4f0f902a5a3c9d631c687057cdfdc4f646d6843d845f31f5b7bf6f WHIRLPOOL b8601e357e34d3863378c1b365b1ac1f18577a0420b89ac894ab4b982cc8ee926a2673afc050fd92dc9fc144a2e126478ee759d58e7482972ba9478fd9024279
+EBUILD queue-repair-0.9.0-r1.ebuild 747 SHA256 db3e9df079076d348e403c7d923b18182eead35d8786f1ba3dd7814e5240945d SHA512 c45fbeada2812e640e59a9f63ba613dafc67b2559a3e992ebf761b4b52a25ddcc90d31d0938b13419e4a305c2f8f6bf5d9e20cfd2de5fa8cbe87a79609e267be WHIRLPOOL 3f326ebad5663cb71a4cd6ea6f66fbfb4e82942bae5f149af543bd2efaf385e6e433d86cc3218efc01b0c1c0def8d7b4a3afc13960554c030ee879508b515acc
+EBUILD queue-repair-0.9.0.ebuild 638 SHA256 b3ce1b8f7e047f02af4a4ff7360449b22e5ee5161ca2e6ba90b0396be6705f49 SHA512 d6eff34fd75b07426d5d52b0ede25aa8be7f2b4b1909607b890cccc0087ee575355e7065dbacfa15637d4360996a0c8e26011544e57efbd5dcd40ee4498eaa4b WHIRLPOOL 8c0f04907d532c4de2ac6de940f4326bf92ad3df0a6106d263594b63fee6870cebee3e922470e35ed3029fa7b1fb78ccebf598b2a2b8134562368c8eef26249e
+MISC ChangeLog 2709 SHA256 1a0cbec5f7db983a102f59205d61f9179f6ff0fa77000d258682b99b7140edb6 SHA512 cdc38ad7318f8f0611acf25f3dc74b813e0da46bb370384b9d3c82676ade5e89499478602609461f851d3791d277540c9ca8735996088e817cb6fe25c163635c WHIRLPOOL 01d550e3f5ea7d7ef7ab90a219d2ceff2cad029a6ebb28efa27b3de17098b56fd6d37a519b2fa0f383d1d0635722af557bb2663494486da4f18fc549829bfdae
+MISC ChangeLog-2015 1516 SHA256 0c9082ab864614e9d769c919cf2ce7e2e73b371ef53f1e5bbaa8bd08fe08f99c SHA512 4a0d416af421da9f1c4b298201926e3311b6d00595b9df82035c4e7e7520ac9b8f89dee3882482f5885044f38c88d6a0ec65dd4b09092093d92e54af2b067235 WHIRLPOOL 32bb897ff34f49e7ecb60438e54c174dcb18e0c678afae9aed9a75a9f531109f6991ad77b747f80166bb47ff8da2eeb5681e394c47bb2b39787929fd816a2ff3
+MISC metadata.xml 543 SHA256 55502ccc772d33f20f2573f51704b4360a0327626e0fb1ae30f59c0ce6cd3974 SHA512 ce15418980c9dd62654e82f4b3ae07e55da17d3efee6bcac1bfa5dbe9a76b25736f51cf38a347783aa33b2ec82e41075de8e98d0ef0720919a0d36180396118e WHIRLPOOL 45a4746c08388e1298339efeec4c76d612fee0c6a518f720b9f47266d28e3a41eb4211536b30c8a1320d04fe84a10d93c39c7fc856ed1ac2a2014a42bc83a82e
diff --git a/net-mail/queue-repair/metadata.xml b/net-mail/queue-repair/metadata.xml
new file mode 100644
index 000000000000..ab089d76ca87
--- /dev/null
+++ b/net-mail/queue-repair/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ A toolkit for dealing with the qmail queue directory structure; it can create a
+ new queue, move and properly rename a queue, dynamically change the conf-split
+ value, convert big-todo queues to non-big-todo and vice versa, and repair a
+ corrupted queue.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/queue-repair/queue-repair-0.9.0-r1.ebuild b/net-mail/queue-repair/queue-repair-0.9.0-r1.ebuild
new file mode 100644
index 000000000000..ecb94ffdd881
--- /dev/null
+++ b/net-mail/queue-repair/queue-repair-0.9.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A toolkit for dealing with the qmail queue directory structure"
+HOMEPAGE="http://pyropus.ca/software/queue-repair/"
+SRC_URI="http://pyropus.ca/software/queue-repair/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+DOCS=( BLURB TODO CHANGELOG )
+
+src_install () {
+ python_newscript queue_repair.py queue-repair.py
+ dosym /usr/bin/queue-repair.py /usr/bin/queue-repair
+ einstalldocs
+}
diff --git a/net-mail/queue-repair/queue-repair-0.9.0.ebuild b/net-mail/queue-repair/queue-repair-0.9.0.ebuild
new file mode 100644
index 000000000000..3a25dbdca27b
--- /dev/null
+++ b/net-mail/queue-repair/queue-repair-0.9.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="A toolkit for dealing with the qmail queue directory structure"
+HOMEPAGE="http://pyropus.ca/software/queue-repair/"
+SRC_URI="http://pyropus.ca/software/queue-repair/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+src_compile() {
+ :
+}
+
+src_install () {
+ insinto /usr/bin
+ newbin queue_repair.py queue-repair.py || die
+ dosym /usr/bin/queue-repair.py /usr/bin/queue-repair || die
+ dodoc BLURB TODO CHANGELOG || die
+}
diff --git a/net-mail/randomsig/Manifest b/net-mail/randomsig/Manifest
new file mode 100644
index 000000000000..17831a78ff4c
--- /dev/null
+++ b/net-mail/randomsig/Manifest
@@ -0,0 +1,5 @@
+DIST randomsig-v1.10.0.tar.gz 24910 SHA256 2e01bfbbc7f5dfe4e1f773fbfa2209b1e7f4074997be42204abbc6bf045ef9c6 SHA512 eb47bd017dee819e7b7151a47f5aca03e688e3aa9a4b9bf4882a4df51c6fcc1880e382b02d68d0c1d3a773b1179d5abb0782ec4d6a7649be226151e9e2579408 WHIRLPOOL ddae4cf9101cfd0406945191c0565c5315775f8691b36007a5b6175ad1977ed1ee9755a326839965a72102e944f8a58050ea6fc6e6b63274415c20a6896ef167
+EBUILD randomsig-1.10.0.ebuild 862 SHA256 16e86f67589046257a7bd624594fbdcc9ffdc81f074b4748d4f06f4f0834d21b SHA512 94ab7fcba7f7282c2b9ac6a428e13b9aa304383dd3d294dbc0b61fef7ac5b92a3ae5be1f83651b1d88518785fb17783a58ce990c4030ca2bd745ae3d1af810a4 WHIRLPOOL f2dd390ebc66377482ce589c47886881e247dc258aa45f46dfec1dfdc38a3ef8d44906f63117c8d205ad0828048d931b1e9f2aee1de94a0e662fd8edff9690c9
+MISC ChangeLog 2435 SHA256 58a4f275477e3a1f89f9806cbaa4ba7ddf7c677d73f7bb29102263be2e86d5a8 SHA512 e2e205d69a0e0b95e6c4b5136eeaee865cd25aa5f533238195401445bd4435ce1dad5ffde47660971f59a30d65e5b1d7065362056556d150442cf6c253385e05 WHIRLPOOL 40089b5aaad0f90f921a4e06378dfdc4a2a915df49f8754b1aa65aaaf134a31a73f3b4aeb5c383220cabbf7f6669c0bc075ca1f4c48ff700ce1e1b06ec76e3ae
+MISC ChangeLog-2015 719 SHA256 a70abff7324dd1cd86695ec7ad968e28b58a471201a19bfdd6608881bcc632a2 SHA512 6fe11bcd6610c7b7ded492af7b08245d777e2afd38f19b6d8eabd959a3aff7c75deac150511e54a3f9f854755f679ae308b927948c22f8f7f928a8569bb3b5fa WHIRLPOOL 05a65fedf684302aa7fa4d7b86c6e38e9265df0836716869330b01a0eeb0c0ba25d2025034c6e1dfcfad1c67d978bb4ea4fa8d0214c6f2e2ac8cc06c50dc6e5e
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/randomsig/metadata.xml b/net-mail/randomsig/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/randomsig/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/randomsig/randomsig-1.10.0.ebuild b/net-mail/randomsig/randomsig-1.10.0.ebuild
new file mode 100644
index 000000000000..f3b6f0000e80
--- /dev/null
+++ b/net-mail/randomsig/randomsig-1.10.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P=${PN}-v${PV}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="randomsig - perl script for generating random .signature files"
+HOMEPAGE="http://suso.suso.org/programs/randomsig/"
+DEPEND="dev-lang/perl"
+SRC_URI="http://suso.suso.org/programs/randomsig/downloads/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 s390 sparc x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ cp Makefile Makefile.orig
+ cp randomsig randomsig.orig
+ sed -e "s:/usr/local/bin:/usr/bin:" \
+ -e "s:/usr/local/etc:/etc:" \
+ Makefile.orig > Makefile
+
+ sed -e "s:/usr/local/etc:/etc:" \
+ randomsig.orig > randomsig
+}
+
+src_install () {
+ dobin randomsig
+ dodoc README BUGS LICENSE MANIFEST COPYING TODO
+
+ insinto /etc/randomsig
+ doins .randomsigrc .sigquotes .sigcancel .sigread
+}
diff --git a/net-mail/relay-ctrl/Manifest b/net-mail/relay-ctrl/Manifest
new file mode 100644
index 000000000000..4c6c31cab9ca
--- /dev/null
+++ b/net-mail/relay-ctrl/Manifest
@@ -0,0 +1,6 @@
+AUX authenticated.c-relayfixup.diff 702 SHA256 7300ee978661b421ffe9f6339296a077ef9617d488cf480995f459e82c0ab38a SHA512 2515f2b5a43e5bae900ef0f419d7f9fb95953e39ebaee524efd8952e0764d82507483b08279866426cd84c6c8524a57cd51b8cf439a6dfbfca3da3e5d3fb0089 WHIRLPOOL 3b4391d13e15d71a8c019cb5c7435802db8ad5bb523da9373f0ba5537230baa8b6c0bbe9c3c84c7de558d132156fd4479781a4c648c46ef686634a1e9d271032
+DIST relay-ctrl-3.1.1.tar.gz 35046 SHA256 de9101e0cf92232b3aca8696dccf1e91d5c98f53504d35bd350f7cd2a24f206f SHA512 738a001f6a058809955f04664919f261ff1a0bfc280ec5e805b870baf448b27664e1b376dd078100a2847e38248eb16651e23812f00609a437893e7b1dc9102c WHIRLPOOL d15137897ac3bb4404afd0e6e3ccb6ce35fa025e75ff93ea6629f03a2d2014dde374700b34e4ed855c9c16aa1191a51615bbb0687c50db60c5c64293ccf0f417
+EBUILD relay-ctrl-3.1.1-r2.ebuild 2037 SHA256 e0946be6c9ae44f14a70b667d0557c06d28a864128c021ca944ac57af5961603 SHA512 d1cc7d9d811de6aafcd54dadadc7f11cc498215ea7b24dcfd8dfc9a85e04e3bcc5cb499139d12e971c872fb92fa98d5c89625e6a6a95e1c52c4501e12b2fd464 WHIRLPOOL 83c381c92b3601911a8ffac3850e2f7c3a8486c2aa33022792f964ceb466eb0ec3a843cac24fe11ce0ab7e5fb8d4ba8523b2306f8ac3b785842c596c735f8e1b
+MISC ChangeLog 2484 SHA256 18c621205619afc3c1e4cf45e080852bad5768c7a1406f647a2345b6c3e7e325 SHA512 6104e549d607bdf7ceedbaa824c998a8adef20074e7aa951979cd20b5eacaa3efb717c9ce1d0c3cac9bc034c0f59df687b46c790ee6d8aab96cd63b4061c9552 WHIRLPOOL ddc3dfb75b383e65a60f1b74d97081a66fa9586486f163041d78520691aa6cccb3324d96638eb6fadd83cf9590a89dac5d3230d606a7e742e1df909715955deb
+MISC ChangeLog-2015 3319 SHA256 b97aebbc27e18dd7d218ed6ce95467317df097bf2200f9e49ead5afbcedc9b98 SHA512 7cb48ad8ef8dba08dbc82c0025ec8c0cf5aa9461876a21b03bdd950dd93d242ebe8851f711f7528268be75bb9e7fbc249a9de388a1ea3b8aff6340a6c4d13993 WHIRLPOOL 0a4fc0da31418286b2970bb8561bf0f906cc0970cfca997d4ec8031393a846e3f29279fe9f76d7169851026930d57c1bb857b455ac03bd1696179e64eeba03a8
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff b/net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff
new file mode 100644
index 000000000000..72bb5a27aa47
--- /dev/null
+++ b/net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff
@@ -0,0 +1,28 @@
+diff -ur relay-ctrl-3.1.1/authenticated.c relay-ctrl-3.1.1-r2/authenticated.c
+--- relay-ctrl-3.1.1/authenticated.c 2002-04-26 09:07:38.000000000 -0700
++++ relay-ctrl-3.1.1-r2/authenticated.c 2004-05-24 02:31:47.000000000 -0700
+@@ -1,14 +1,20 @@
+ #include <stdlib.h>
++#include <string.h>
+ #include "relay-ctrl.h"
+
+ int is_authenticated(void)
+ {
+ if (getenv("AUTHUSER") && getenv("AUTHARGV0")) {
+ /* Courier IMAP or POP3 */
+- if (getenv("AUTHENTICATED"))
+- return 1;
+- }
+- else
++ char *authenticated = getenv("AUTHENTICATED");
++ if (authenticated && strlen(authenticated)) {
++ return 1;
++ } else {
++ return 0;
++ }
++ } else {
+ return 1;
++ }
++ // unreachable code
+ return 0;
+ }
diff --git a/net-mail/relay-ctrl/metadata.xml b/net-mail/relay-ctrl/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/relay-ctrl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild
new file mode 100644
index 000000000000..8e04095c233f
--- /dev/null
+++ b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs fixheadtails
+
+DESCRIPTION="SMTP Relaying Control designed for qmail & tcpserver"
+HOMEPAGE="http://untroubled.org/relay-ctrl/"
+SRC_URI="http://untroubled.org/relay-ctrl/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="sys-apps/ucspi-tcp
+ virtual/daemontools"
+
+RELAYCTRL_BASE="/var/spool/relay-ctrl"
+# this is relative to RELAYCTRL_BASE
+RELAYCTRL_STORAGE="allow"
+RELAYCTRL_CONFDIR="/etc/relay-ctrl"
+RELAYCTRL_BINDIR="/usr/bin"
+
+src_unpack() {
+ unpack ${A}
+ ht_fix_file "${S}"/Makefile
+ epatch "${FILESDIR}"/authenticated.c-relayfixup.diff
+}
+
+src_compile() {
+ myCC="$(tc-getCC)"
+ echo "${myCC} ${CFLAGS}" > conf-cc
+ echo "${myCC} ${LDFLAGS}" > conf-ld
+ emake || die
+}
+
+src_install () {
+ exeinto ${RELAYCTRL_BINDIR}
+ doexe relay-ctrl-age relay-ctrl-allow relay-ctrl-check relay-ctrl-send relay-ctrl-udp relay-ctrl-chdir
+
+ #NB: at some point the man page for relay-ctrl-chdir will be added!
+ doman relay-ctrl-age.8 relay-ctrl-allow.8 relay-ctrl-check.8 relay-ctrl-send.8 relay-ctrl-udp.8
+ dodoc README ANNOUNCEMENT NEWS
+
+ keepdir ${RELAYCTRL_BASE} ${RELAYCTRL_BASE}/${RELAYCTRL_STORAGE}
+ fperms 700 ${RELAYCTRL_BASE}
+ fperms 1777 ${RELAYCTRL_BASE}/${RELAYCTRL_STORAGE}
+
+ dodir ${RELAYCTRL_CONFDIR}
+
+ # tell it our storage dir
+ echo "${RELAYCTRL_BASE}/${RELAYCTRL_STORAGE}" > ${D}${RELAYCTRL_CONFDIR}/RELAY_CTRL_DIR
+ # default to 30 minutes
+ echo "1800" > ${D}${RELAYCTRL_CONFDIR}/RELAY_CTRL_EXPIRY
+
+ dodir /etc/cron.hourly
+ echo "/usr/bin/envdir ${RELAYCTRL_CONFDIR} ${RELAYCTRL_BINDIR}/relay-ctrl-age" >${D}/etc/cron.hourly/relay-ctrl-age
+ fperms 755 /etc/cron.hourly/relay-ctrl-age
+}
+
+pkg_postinst() {
+ [ -d /usr/lib/courier-imap/authlib ] && ln -sf /usr/bin/relay-ctrl-allow /usr/lib/courier-imap/authlib/relay-ctrl-allow
+ elog "Please see the instructions in /usr/share/doc/${PF}/README for setup instructions with Courier-IMAP and Qmail"
+}
diff --git a/net-mail/renattach/Manifest b/net-mail/renattach/Manifest
new file mode 100644
index 000000000000..ba71f0465b67
--- /dev/null
+++ b/net-mail/renattach/Manifest
@@ -0,0 +1,5 @@
+DIST renattach-1.2.4.tar.gz 112566 SHA256 05b6a7dfde17165a35cdb60a7909899bc8060cbc3468f06ce31745e285153155 SHA512 f46aa714d794e8b1c7ff98c1a4210ed9cb83cfa6811d1724c782f25c4c250ab22dd9ff98966e821559cd0f6781ecd491bc2c260cd8f4ff64f678ef59b8cb4ad6 WHIRLPOOL 922a300651fe88f104617cbabbfaefaaf18672535df24ebd10d68ce73bba114d768403a3b2fa582989031377eb5f05a12f86066b35ac5d882fb980b506eb36cd
+EBUILD renattach-1.2.4-r1.ebuild 520 SHA256 05b09b14d5c2a9f2b072736f387f56348369fc56a241449a3601087d03e70887 SHA512 b9794d11def726cb792ebbba7b439cd2c3633af06bd437d676d691152f6be2611297cd12ba3b127e647400f8dfa1e32763855ed6cc278a377f33172fc85c511c WHIRLPOOL d792bc81f6aafc3c6de1b7ef64c2f38de8add8b45225b66653b77c9e8a0deaac551d9e82cbc7f49cd85c42dd4aec4d59bb7887883bed70e3846423e64d6a0772
+MISC ChangeLog 2534 SHA256 45a87ffaa33e3ae5caa96f8dd1c46cd7102b649092c794f83785e21298b8d4d5 SHA512 982e100052795c99c308ed5cc75cfeb1c4f9b507379a334e94463b09c66302bcf1c3fe33bd1b0cd3bb37c5f6f17a175e943c691528881488eca9d7cad4d2c253 WHIRLPOOL 19a2d1e3dbb3d66b67595356d9344e1c9af82a4ab43194d6bee11652746acfc8de0cc72b45cb8110c5dbe6b2273d2f6b5efe7aed059909a7b6842c7f35c09658
+MISC ChangeLog-2015 1385 SHA256 c6ed1f02c3f25721c756eb80b88198a6acbb64c3fbb6691d9646aaa3700e224d SHA512 cec68a94557490bc4e4692e5124f646849bb8e85c7fa4e3c95c6322455dcb3758f5d8ee7865147370973b2df72d45e3a7852b014d23bdeade3ea6e71cc5bed87 WHIRLPOOL 8829b7babf8c52a1ade17c9ec8f8e7f1bbc8f888df9ba7f5c0fc81bf8a68c5527f6d57ff6aabd7bdd89d930b186ed0ce3e04932551e48bae849ea60631a77e71
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-mail/renattach/metadata.xml b/net-mail/renattach/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-mail/renattach/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-mail/renattach/renattach-1.2.4-r1.ebuild b/net-mail/renattach/renattach-1.2.4-r1.ebuild
new file mode 100644
index 000000000000..d89611b23f15
--- /dev/null
+++ b/net-mail/renattach/renattach-1.2.4-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Filter that renames/deletes dangerous email attachments"
+HOMEPAGE="http://www.pc-tools.net/unix/renattach/"
+SRC_URI="http://www.pc-tools.net/files/unix/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_install () {
+ emake DESTDIR="${D}" install || die
+
+ mv "${D}"/etc/renattach.conf.ex "${D}"/etc/renattach.conf || die
+
+ dodoc AUTHORS ChangeLog README NEWS || die
+}
diff --git a/net-mail/ripmime/Manifest b/net-mail/ripmime/Manifest
new file mode 100644
index 000000000000..e97b05be5732
--- /dev/null
+++ b/net-mail/ripmime/Manifest
@@ -0,0 +1,7 @@
+AUX ripmime-1.4.0.9-buffer-overflow.patch 595 SHA256 6e792f39d6ee75a42a8f5b64b086ea9de4d7a4f6115e7cb0fc61d36b1011e347 SHA512 1ee8fd284ddfd1dcd77351f08e0c25a8605529c57ce6109cb9afefd37a5c9e410c6f639d4dbd529b975e50430aca5bfd2fec030bb0f5c805453d7e4af0885055 WHIRLPOOL 486f5201b73630d8c941ee42f9e6e2dac4b62d9ea448202095616fe96cfed59f5f6a34345bde406df80b5a350c60d9a7beb4bdbac5540ffcad6053a541542613
+AUX ripmime-1.4.0.9-makefile.patch 2162 SHA256 32af5dcda01e04a7129953fb3baa0514378a0ca9fe1be6b6a77afa3c89dfabe6 SHA512 3b4935a57aebc581f907610852b465f64ebaef11317823c45b0cd5501ac1b19fb7c86565850565d88cb77ca68cf764e597f7c80080e1d8887983e03430e081e0 WHIRLPOOL e598f797849bb39857faa7ef01223f8fdc8f324a607ffc3b485b5dc3d34a9530e48d78d52810245bf18e4c6565a4b7f64d27be658888dca7f5dd9898f2a94975
+DIST ripmime-1.4.0.10.tar.gz 172155 SHA256 bc7ce0c2ebb6007167718ecfb0c64a9d85a8789d5a6e730ed3f60109a7e1f3f7 SHA512 1c2d2180d60a56c70046e95a29925e39d3f76da98cc2fa153b6fc3a8eb0fc5ec5f45524e9f5ae8706a955366a752d25a0a2f560f1d75de3f2733ec31befb83d3 WHIRLPOOL c82f57a2bd44609b8b698ba15a7353adba601aab52237a7c4f220ffd892052e7c1281272f7d2fcb2c16e8544280070ed0810ea346a68cfb7e7a8177d6761a001
+EBUILD ripmime-1.4.0.10.ebuild 1077 SHA256 d6bfbb0e031d0d7963ae04755e89a5e99850459c92c4dbd97fbd4b14cd66c3b0 SHA512 12b3923d72cd64fcf6b34fcc917196172eca4a111ae6d8578177670f19dc62eb60a94708f1c8109150c7a3d12680902f57d02ce7d205c45a4046dd3f7d6058eb WHIRLPOOL aef4b19e911413c2982bf3a7e6b9a9e4fc84260968f73e34ebd6bf39c99edcb7de8d8670713e65d3ace675756f72d37528de6dabac9f8b5b222760d0613de6f2
+MISC ChangeLog 2522 SHA256 d49b788e7a5404b82aa1bd037984a1d4e5c83710671f92807e7e4a6b51f33eee SHA512 06fd91225869a41b71cccb407530f6a3ae037e343da2d90238ae96bdc5628957ad0f8cd9abbc92b6539eb18a5412ca1697dfa45cb46db19f8b505b15f07968c8 WHIRLPOOL d964926e4f2f4caa922b94983ebeb650ab9586dc1fa82893950e9eb19dd68c5c6dd00522b7c24342eb63fcabe9f44a3d75972049d3258119d99410915b9a4646
+MISC ChangeLog-2015 5063 SHA256 d55be9f3bb5071fc4d2cc30af5eea6408e08b47c558254473d6b376a406d112d SHA512 714dd0f16edcb02ef211aeeb2b1242e0791485f599f179f03d3e3e1e8e5d0b25892b2236aff6a84d6575a1a916828dfcc7196efa6981aa33b79768af8549c451 WHIRLPOOL aaefc4bc1b2b783fe886c1411650248f5cd1b82a4559e5cca9d6c2553cf339fc79845d47d825682611df71e1dfa1544d140519dda9dd73bf8f262cb60cf2fa6f
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/ripmime/files/ripmime-1.4.0.9-buffer-overflow.patch b/net-mail/ripmime/files/ripmime-1.4.0.9-buffer-overflow.patch
new file mode 100644
index 000000000000..418a204101e9
--- /dev/null
+++ b/net-mail/ripmime/files/ripmime-1.4.0.9-buffer-overflow.patch
@@ -0,0 +1,11 @@
+--- ripmime-1.4.0.9/MIME_headers.c.orig 2010-11-07 12:38:52.994063648 -0800
++++ ripmime-1.4.0.9/MIME_headers.c 2010-11-07 12:39:06.395161970 -0800
+@@ -2239,7 +2239,7 @@
+ {
+ if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: filename = %s\n", FL, p);
+ snprintf(hinfo->name, sizeof(hinfo->name),"%s",p);
+- snprintf(hinfo->filename, sizeof(hinfo->name),"%s",p);
++ snprintf(hinfo->filename, sizeof(hinfo->filename),"%s",p);
+ FNFILTER_filter(hinfo->filename, _MIMEH_FILENAMELEN_MAX);
+ SS_push(&(hinfo->ss_filenames), hinfo->filename, strlen(hinfo->filename));
+
diff --git a/net-mail/ripmime/files/ripmime-1.4.0.9-makefile.patch b/net-mail/ripmime/files/ripmime-1.4.0.9-makefile.patch
new file mode 100644
index 000000000000..856319bf63b7
--- /dev/null
+++ b/net-mail/ripmime/files/ripmime-1.4.0.9-makefile.patch
@@ -0,0 +1,79 @@
+--- ripmime-1.4.0.9.orig/Makefile 2008-11-06 19:33:33.000000000 -0800
++++ ripmime-1.4.0.9/Makefile 2010-11-07 12:53:03.898947384 -0800
+@@ -42,22 +42,22 @@
+ ./generate-buildcodes.sh
+
+ ripOLE/ole.o:
+- ./build_ripOLE
++ $(MAKE) -C ripOLE
+
+ tnef/tnef.o:
+- ./build_tnef
++ $(MAKE) -C tnef
+
+ .c.o:
+- ${CC} ${CFLAGS} $(COMPONENTS) -c $*.c
++ ${CC} ${CFLAGS} -fPIC $(COMPONENTS) -c $*.c
+
+ all: ${OBJ}
+
+
+ solib: ${OFILES} ripmime-api.o
+- gcc --shared -Wl,-soname,libripmime.so.1 ${OFILES} ripmime-api.o -o libripmime.so.1.4.0 -lc
++ ${CC} ${LDFLAGS} --shared -Wl,-soname,libripmime.so.1 ${OFILES} ripmime-api.o -o libripmime.so.1.4.0 -lc
+
+-libripmime: ${OFILES} ripmime-api.o
+- ar ruvs libripmime.a ${OFILES} ripmime-api.o
++libripmime.a: ${OFILES} ripmime-api.o
++ ${AR} ruvs $@ $^
+
+ ripl: ripmime.a
+ ${CC} ${CFLAGS} ripmime.c ripmime.a -o ripmime
+@@ -65,8 +65,10 @@
+ sco: ${OFILES}
+ ${CC} ${CFLAGS} ripmime.c ${OFILES} -o ripmime -lsocket
+
+-ripmime: ${OFILES} ripmime.c buildcodes.h
+- ${CC} ${CFLAGS} $(COMPONENTS) ripmime.c ${OFILES} -o ripmime ${LIBS}
++ripmime: ${OFILES} ripmime.o
++ ${CC} ${CFLAGS} $(COMPONENTS) $(LDFLAGS) $^ -o $@ ${LIBS}
++
++ripmime.o: buildcodes.h
+
+ riptest: ${OFILES}
+ ${CC} ${CFLAGS} riptest.c ${OFILES} -o riptest
+--- ripmime-1.4.0.9.orig/ripOLE/Makefile 2008-10-31 09:17:32.000000000 -0700
++++ ripmime-1.4.0.9/ripOLE/Makefile 2010-11-07 12:55:38.222278266 -0800
+@@ -4,7 +4,7 @@
+
+
+ .c.o:
+- $(CC) $(CFLAGS) $(DEFINES) -c $*.c
++ $(CC) $(CFLAGS) -fPIC $(DEFINES) -c $*.c
+
+ default: ripole
+
+@@ -12,7 +12,7 @@
+ rm -f *.o ripole
+
+ ripole: $(OBJS) ripole.[ch]
+- $(CC) $(CFLAGS) $(OBJS) $(DEFINES) ripole.c -o ripole
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(DEFINES) ripole.c -o ripole
+
+ validate: ripole
+ cp ripole validate
+--- ripmime-1.4.0.9.orig/tnef/Makefile 2008-11-06 19:33:33.000000000 -0800
++++ ripmime-1.4.0.9/tnef/Makefile 2010-11-07 12:54:47.434840614 -0800
+@@ -8,10 +8,10 @@
+ CFLAGS=-Wall -g -O2 -I.
+
+ default: config.h tnef.h tnef.c
+- $(CC) $(CFLAGS) $(PLATFORM) -c tnef.c
++ $(CC) $(CFLAGS) -fPIC $(PLATFORM) -c tnef.c
+
+ lib: tnef.o
+- ar ruvs tnef.a tnef.o
++ ${AR} ruvs tnef.a tnef.o
+
+ clean:
+ rm -f *.o *.~[ch]
diff --git a/net-mail/ripmime/metadata.xml b/net-mail/ripmime/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/ripmime/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/ripmime/ripmime-1.4.0.10.ebuild b/net-mail/ripmime/ripmime-1.4.0.10.ebuild
new file mode 100644
index 000000000000..36bdac2eeef9
--- /dev/null
+++ b/net-mail/ripmime/ripmime-1.4.0.10.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="extract attachment files out of a MIME-encoded email pack"
+HOMEPAGE="http://pldaniels.com/ripmime/"
+SRC_URI="http://www.pldaniels.com/ripmime/${P}.tar.gz"
+
+LICENSE="Sendmail"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.4.0.9-makefile.patch \
+ "${FILESDIR}"/${PN}-1.4.0.9-buffer-overflow.patch
+}
+
+src_compile() {
+ local maketargets="default solib"
+ use static-libs && maketargets="${maketargets} libripmime.a"
+
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" CFLAGS="${CFLAGS}" ${maketargets}
+}
+
+src_install() {
+ dobin ripmime
+ doman ripmime.1
+ dodoc CHANGELOG INSTALL README TODO
+
+ insinto /usr/include/ripmime
+ doins mime.h ripmime-api.h
+
+ dolib.so libripmime.so.1.4.0
+ dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so
+ dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so.1
+
+ if use static-libs ; then
+ dolib.a libripmime.a
+ fi
+}
diff --git a/net-mail/ripole/Manifest b/net-mail/ripole/Manifest
new file mode 100644
index 000000000000..3388ea99f0f8
--- /dev/null
+++ b/net-mail/ripole/Manifest
@@ -0,0 +1,8 @@
+AUX ripole-0.2.0-ldflags.patch 495 SHA256 92e125d656ae8a4f1bae18a0decff2dd13cf01d923ff1ac4d38f719079e06e15 SHA512 749d9a864c1cbc4c28e6a8b8dfd69fddb72e4bd0150a143bd4398e4757edc8326c6c2c7da4d0ce3e17a212636b3894726a6488d8b03618b3d0641faff390d1d3 WHIRLPOOL f516949a696e890c633a4632a97d82055bf3d674c25f25cbd1b86b46f54fbf2b9e98c47c8c9a1b5531d1c4e72777b4baf57b43c4de57f9f4fa22a2ef3322e957
+DIST ripole-0.2.1.tar.gz 31031 SHA256 ba858d7ec382ad478f0a5b1a3a7591105448ca26c3ea801bf815f37f826e4cc6 SHA512 bec441ab80219bbd2f5032603a655a5211fbc046d1ea61d5d42ea9bc0e3d6cdd6ef1beb3bb51be4616c94d5cbb45c9e9f64cc3f1ada3733b7f850730d4df68fb WHIRLPOOL 6effefed6fd9aed6497cb33e763549322d77c8de6b93dd2bb2aa9c7e7577ab88700d6de2441812b72de9641549f001917b8a3d0ef232ee3706969eafe9c5f93d
+DIST ripole-0.2.2.tar.gz 30629 SHA256 990cb5b682ce87c77a5b619b79c449991ac9d8b2a7f095494a37df759c6b5563 SHA512 de3a4fe511e11d4ed8b5589aaf102c60c59c8a3cbbd1d988955b89d597ac7a5992f63a7ac36d8aad3916fa9f6311c5a0260136d534973fdf1b4a5fa5296b6b92 WHIRLPOOL 5277be1db0d6e2cc78ccc43bb111d33362a27113dc7ed906a142651ff3504ae590eda1b26da17bb1089ea48de4a4435dbdafaa285b3d96871723aa6cf9b76159
+EBUILD ripole-0.2.1.ebuild 584 SHA256 43c251489fcd29ce014b1dc1289c5f5aa937ef45774260686f57b36b8d3beba6 SHA512 0fb1dd175d4314298735963c7c6d405df09a0003883bd4cbce3e9a0b9b50f342da6fb708d4eb4d05121ab75dd803ef9182409c33afefa4e78232fbb8755cbf02 WHIRLPOOL 226723d5128ccfd932a8d681d161b42c8a43ae3e75aa939dd48e4448e8fa82eb6b5ee79454800c61d9fac11ca637f45120d1df55d7b38d29d8a1b2a968a6d565
+EBUILD ripole-0.2.2.ebuild 592 SHA256 8bd0901e519d80c931370af6f9182327297acdc1a75c6e4c12439750bcf97451 SHA512 de3169ace39c1389ee17c31d554dd5a3ad607c7e2e5bb7177181245047af31f43a5c1cea7136887a5f3681516e88d49c1762d68d96558d4a6fe780e7c0432c3b WHIRLPOOL 0051437da3ee9946124803e701159d543596c61859074504d2ea0fa2345a8811930c7837a62db29dd55e96d847d924429482eceef11edfd57cfa8c9113e9effc
+MISC ChangeLog 2511 SHA256 639b77726695ddc7b4e27b76d21389795c56b92f812890c75bb9b4215ae0deae SHA512 ca39096a4b62cb22d99aa83396fd19afbb0cb8b2f963f6a2c6c35dff2aa8a37a4d8c256c00cef3b3e61c1605b5341e09f84bb08dc4be6fd504b966df2e1493fe WHIRLPOOL 1b55c0fbb63a9b0f53f2b85872daee0fe96ed8e709b6d1539f92a5bd20fa2007b84346a9d9cfb7f588bfd8a8dcb9f52a09982f5fb3002b1229fd5fff77e684a7
+MISC ChangeLog-2015 2711 SHA256 f523fc23bd23b88cd4f8c92e371579ee1715b6cac771e8d3ec16d1f4c12e9f0e SHA512 026aed8dc53a533d32cb3f414d64597ac99d246adfe1e5f89df90e0579fcd4c0e1b8b7e2ef327cd75d739010741dbda4f47d8b61ecc3472bb1754c916ef14314 WHIRLPOOL 04fe4e6281aeef539a92ce266e5783065ebefb3082c4f255f22ad7479954b4c2138ac61be5b5dea013d5b19be72edb17ea7afef0027c9be99d59d91753af4599
+MISC metadata.xml 402 SHA256 be7a61c62fdce9db6e237ef22f2eb286801e2df58a75767f3ddedd7c21ba0d11 SHA512 42dc67ccd291ab06e2f62a6fc455b87d05b23bb209a744db1b8a765607cd32e54711e93f4b0fcc1adefba5c7a3bec5bc705eca085d937b805f9927816e62643c WHIRLPOOL ebb6255e75838df522dffac49762b3db1d3de2f67c5f7e33deefe0b6da4cfc58cf5a0653734f3a331583fee5c69abe2bf648dd7083cbe7bc5891cdaed176b888
diff --git a/net-mail/ripole/files/ripole-0.2.0-ldflags.patch b/net-mail/ripole/files/ripole-0.2.0-ldflags.patch
new file mode 100644
index 000000000000..b1de50217660
--- /dev/null
+++ b/net-mail/ripole/files/ripole-0.2.0-ldflags.patch
@@ -0,0 +1,19 @@
+commit eae881de61b8622913761d88a79ee827d8dee002
+Author: Eray Aslan <eras@gentoo.org>
+Date: Mon Jun 6 13:03:44 2011 +0300
+
+ Respect LDFLAGS - bug #337843
+
+diff --git a/Makefile b/Makefile
+index e32ba91..c5240ae 100644
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,7 @@ clean:
+ rm -f *.o ripole
+
+ ripole: $(OBJS) ripole.[ch]
+- $(CC) $(CFLAGS) $(OBJS) $(DEFINES) ripole.c -o ripole
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(DEFINES) ripole.c -o ripole
+
+ validate: ripole
+ cp ripole validate
diff --git a/net-mail/ripole/metadata.xml b/net-mail/ripole/metadata.xml
new file mode 100644
index 000000000000..948b16d3c9ce
--- /dev/null
+++ b/net-mail/ripole/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ ripOLE is a small program/library designed to pull out attachments from
+ OLE2 data files (ie, MS Office documents).
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/ripole/ripole-0.2.1.ebuild b/net-mail/ripole/ripole-0.2.1.ebuild
new file mode 100644
index 000000000000..5e8fab2f787b
--- /dev/null
+++ b/net-mail/ripole/ripole-0.2.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Program/library to pull out attachment from OLE2 data files"
+HOMEPAGE="http://www.pldaniels.com/ripole/"
+SRC_URI="http://www.pldaniels.com/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 hppa ~sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.2.0-ldflags.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ripole
+ dodoc CHANGELOG README CONTRIBUTORS
+}
diff --git a/net-mail/ripole/ripole-0.2.2.ebuild b/net-mail/ripole/ripole-0.2.2.ebuild
new file mode 100644
index 000000000000..b2830570efa9
--- /dev/null
+++ b/net-mail/ripole/ripole-0.2.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Program/library to pull out attachment from OLE2 data files"
+HOMEPAGE="http://www.pldaniels.com/ripole/"
+SRC_URI="http://www.pldaniels.com/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.2.0-ldflags.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ripole
+ dodoc CHANGELOG README CONTRIBUTORS
+}
diff --git a/net-mail/rss2email/Manifest b/net-mail/rss2email/Manifest
new file mode 100644
index 000000000000..322694a6a761
--- /dev/null
+++ b/net-mail/rss2email/Manifest
@@ -0,0 +1,7 @@
+AUX rss2email-2.69-config-location.patch 433 SHA256 f29b16e42a1ff4d035bddeeb8bb968b244bfb4ea5f7787ad3638718bc5282ff0 SHA512 a486c34b58798ec8581164ef593c7320f27233b5e4abfa648389ea54b8c6b7c51f7737baf18150e65537ed198f05293befbf4c1a3abb6c0954a9870ab4985805 WHIRLPOOL 4cb467a78ebb8de7d0691393fb072d4e37f77b42ef7f9549ebd4d41d9667eae7b24fe1ded041649f24dd2047d8fc6c7324e00fdee7f8b63181a8c23ab79c6082
+DIST rss2email-2.71.tar.gz 63268 SHA256 d5245197a5034410405f1f5794610b84bf26c0c40c8d05fe0895116797a99b31 SHA512 242a4f2e4fe64f42e3348f8c159d91f79121224beec4faf542393c8323bdcba85510a28fc967ec59702f08205de1d40c2a26235f9d5590751f392880a7211c60 WHIRLPOOL da7fc074b6674a109078539c42c4583c62db82ceb73e521609692ba6983b46a5d5b2aa32f70aa9237539958d252d54c82859ac8b4bddcfc32f392619336698da
+DIST rss2email_2.65-1.diff.gz 8626 SHA256 76f599bba817ac9922993a76bdb4c444a6091e1171e58a6c89353526962b10a9 SHA512 cb0ca7f6c02f342305c6c19f03973f91343ca530a6a858427bfd6a57948e6123e02d64b1285efed10cda9541f3237f666d8e1a7954a3c2b57866a68dd43b8d8d WHIRLPOOL 837f216eb485cc4d5bd57bcc4802ce37fa96bff4e99567ec625e5a4474401a242f2c3b3dbcaa0d8c237fc3e5529f7b7bc4168c2ba2b0c337046c5a8c667b65a9
+EBUILD rss2email-2.71-r1.ebuild 1621 SHA256 01152e242161826913fec7ab83a9c9e2e8a9203b07d2b42a19baaedcb0fe4a5a SHA512 c758468374d63600c7800453186f1ce42279090cd3e39c9dff35f6fdb26a7720758ea0610bfbf99d95d38b9bd204a36217a6a91805eb662f7fd62b1f7baada53 WHIRLPOOL 340dd5f8010b6d0cd1335110c3f2fbc3aac4658070abed55653e2c33f61c372292c0359378b5fd193ff34a7b0443df50e8b4afe66b1d9f36a6d79e2779f93955
+MISC ChangeLog 3066 SHA256 ad139c9fc6097055a83827f0d4a733e81b7af86be654825061029470c6a93733 SHA512 b1e754e8cc79c19ad25e0261c32bd9818cbc0cffe533b13d9820195373f99930fad9b9b02968f0537d96c229f0b8aa9aecfd6a5344c82765d1e7d7add216bf7b WHIRLPOOL af6dcc82fc1d6fc9f15e619828c6fba912882f4ab88493db221950502141df124420485a118f7dc0d7e497b9ac12a329189768cdaaf82849b6bc0c36dbf824b5
+MISC ChangeLog-2015 2507 SHA256 445c9f62bca88c08f82a1d502d915bd2d5a7bf3aaa87b8bb317e5d7fc20085cd SHA512 c414cbe67e1086b2de0875f63854e9c9b02a1b7359b2651710884bb0572ee1fcf753eebe59864f0fd888616e054b02dda3fd993315d6686d7d6c15d7ecbfce14 WHIRLPOOL 6b33d751be7480151024aa647d810d758cb28acbf3218a0a7149a23749ec0cf97e0c8521ebede4807fb2070b80c58f7cd6499bc38bb1eed4b3232b4fde7664e8
+MISC metadata.xml 540 SHA256 ec835fdd7e59176a6d0f26da489208e5638ddf3f15694ff9722268f362910697 SHA512 4291fe42e4663a06a6481e2b5eae59f932372eb6e0c4154fb2fd46a9b871bbdf1d3140e70a66e386669a4ab313c0e10e5066a02cfab22be31168d0719080b75a WHIRLPOOL 92626038a9c36296e65ee782477b3397e94f780303359749e09deeeaa7741b36dc3bd79f856ff7538c4c447c807803bfe6600ab1ee06db21d994f12e2cb53184
diff --git a/net-mail/rss2email/files/rss2email-2.69-config-location.patch b/net-mail/rss2email/files/rss2email-2.69-config-location.patch
new file mode 100644
index 000000000000..215c1725a9c1
--- /dev/null
+++ b/net-mail/rss2email/files/rss2email-2.69-config-location.patch
@@ -0,0 +1,16 @@
+--- rss2email.py 2010-11-25 02:22:14.607431246 +0100
++++ rss2email.py 2010-11-25 02:26:54.478306015 +0100
+@@ -254,7 +254,12 @@
+
+ # Read options from config file if present.
+ import sys
+-sys.path.insert(0,".")
++import os
++_conf_dir = os.path.expanduser('~/.rss2email')
++if not os.path.exists(os.path.join(_conf_dir, 'config.py')):
++ _conf_dir = '/etc/rss2email'
++sys.path.insert(0, _conf_dir)
++
+ try:
+ from config import *
+ except:
diff --git a/net-mail/rss2email/metadata.xml b/net-mail/rss2email/metadata.xml
new file mode 100644
index 000000000000..0d7e712cbeef
--- /dev/null
+++ b/net-mail/rss2email/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ rss2email is a simple Python script that lets you subscribe to a
+ list of XML newsfeeds (RSS or Atom) and get new items sent to
+ you by email.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/rss2email/rss2email-2.71-r1.ebuild b/net-mail/rss2email/rss2email-2.71-r1.ebuild
new file mode 100644
index 000000000000..b8476f504875
--- /dev/null
+++ b/net-mail/rss2email/rss2email-2.71-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-r1
+
+DEBIAN_PV="2.65"
+
+DESCRIPTION="A python script that converts RSS/Atom newsfeeds to email"
+HOMEPAGE="http://www.allthingsrss.com/rss2email"
+SRC_URI="http://www.allthingsrss.com/${PN}/${P}.tar.gz
+ mirror://debian/pool/main/r/${PN}/${PN}_${DEBIAN_PV}-1.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="dev-util/patchutils"
+RDEPEND="${PYTHON_DEPS}
+ >=dev-python/feedparser-5.0.1
+ >=dev-python/html2text-3.01"
+
+src_unpack() {
+ # Tarball has zero permissions inside
+ tar xf "${DISTDIR}"/${P}.tar.gz || die
+ chmod 0755 ${P} || die
+ chmod 0644 ${P}/* || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.69-config-location.patch
+
+ # Extract man page from Debian patch
+ zcat "${DISTDIR}"/${PN}_${DEBIAN_PV}-1.diff.gz \
+ | filterdiff -i '*/r2e.1' \
+ > "${S}"/r2e.1.patch || die
+ EPATCH_OPTS="-p1" epatch r2e.1.patch
+}
+
+src_install() {
+ my_install() {
+ insinto "$(python_get_sitedir)"/${PN}
+ newins rss2email.py main.py || die
+ }
+ python_foreach_impl my_install
+
+ insinto /etc/${PN}
+ doins config.py.example || die
+
+ dodoc CHANGELOG readme.html || die
+ doman r2e.1 || die
+
+ # Replace r2e wrapper
+ cat <<-"EOF" >r2e
+ #! /bin/sh
+ SITE_PACKAGES=`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
+ CONF_DIR=${HOME}/.rss2email
+ mkdir -p "${CONF_DIR}"
+ exec python2 "${SITE_PACKAGES}"/rss2email/main.py "${CONF_DIR}"/feeds.dat $*
+ EOF
+
+ dobin r2e || die
+}
diff --git a/net-mail/safecat/Manifest b/net-mail/safecat/Manifest
new file mode 100644
index 000000000000..cc7333c6e29f
--- /dev/null
+++ b/net-mail/safecat/Manifest
@@ -0,0 +1,7 @@
+AUX safecat-1.11-gentoo.patch 355 SHA256 33c339b55377d09e50e038bf6a397c36f25a8baec5063e6fbbdddc308c7a05e3 SHA512 6c2f94a5ad25c20639986e8ac1865242a32c716f117f4b5077ffe802e67e1798a5b9b76b30b5551234d34b14ef6139f070b6496b9e029407000555917f6d36a9 WHIRLPOOL b55cf72bf84b56cb2070f1db6bde97e939fe56080f2fd1ba7e57954a9c542863683397c1672889f4e0ad31faa2226675a9fcfd35e3ccd589c17b9c7f774f96c2
+AUX safecat-1.13-makefile.patch 562 SHA256 21d8c1f020114603a71e30ac82877ac4adff14341e4c3ca1d22285c19a09f2d6 SHA512 d48a33ce9e68ce8a27d77968040a146b975986b85e3ef534bde6a015b8179fc563f341be1ab7e74afe3e260ad267c99e18aab027d2f63125f76c071e15867050 WHIRLPOOL b5748b426c262caaab0ad430527d1e07848757e432fdf25bd5ee6309d3c0f66e62a74825b4c4f5043410ae509301a8779ec57e57deceac2feda0a4f73a1e3efb
+DIST safecat-1.13.tar.gz 33953 SHA256 2e43dd88e703edb2e48cb3b1da6f8c4a8f9802bcc51ba36a58110e8a1c096e9b SHA512 e6f7401b55a61f70715b3d222c8286c0125c5e7b3b132e5e8d3c8573a6c45dba75b29a459c7e93d7c0760300f0a62635d8ea4eacde9b0b1ff7637b3f6c63e210 WHIRLPOOL 07a8b9bdec221f7667009c5cf11372bd80b1c3cdeb2bedf471fcf4978236298d5ba5011b57828f120319c931d0306c1360531ea91c12485d9ade5d511067848a
+EBUILD safecat-1.13.ebuild 1272 SHA256 aa12e6ba72a607a998e9a56da44fcf430a651ec7a9098d6d4613aa1eba3a779c SHA512 fa3c5b7ea5e11c8d75a53cec92988634f9aa60f9382f91fb205bf6145484d7f5e364472e951d343fd156e19773bcb787cece3ac09308854470a405c8accaae2e WHIRLPOOL b228ef8e02212058ce81a167912cc190eaf8cff6966b952af80999bca0aac9ef6af4ad1fd2cd5210406b1fa816d232356b476de578d3500274cbd5eab6f4181b
+MISC ChangeLog 2497 SHA256 0e4f80f2eb8a4f7700caf0a0d611c4b232aa9cac00cf7594e78837621fa523f6 SHA512 00a1df4bd15f4dc7526e99f1168755c3c1938fa7a5fe7372fb226ebfaab65e024cc0ae2259cab177ed84b0e447cb8a816a3b6f264b993d340937d90a296bfc4c WHIRLPOOL b5aef2365b698779b084a5507baf7966bc1f21aa60790429d8bfcdf05d9675f444d7728a8ca2575d4b70627b84e36a0914e9b870419f62ac9ef561143dc22ced
+MISC ChangeLog-2015 3019 SHA256 0ebd8e256f52a1e6b77b43f29b30a03beb900864744276a7857ddc70dc97bb8d SHA512 8b5ce179e9c8430d0d45658d34bc32a7029ceda107a0e98c9844825de110a6191c965e6ba9324601ad5674047e3fae95751c92543e4a72b60189345fcddf54c5 WHIRLPOOL 6049a06277b2bf4b443083733c5877fa4118f8e4c46c7da976108c0f42502dac1388f749748fcb35627412dff261c24b200006d1be8a65b76dfc3b69c9efccf5
+MISC metadata.xml 387 SHA256 78297e62b5cfb99e13992f7a6c7d2cb18d5533439e2c5c9d5fa08e25cbc8ec37 SHA512 be8f5c847c3229d17400cad4230398bc68046166e080ad1998c9c659a6dfb68a4ddb6d39d059c38ec0c11702c8c786b8c49a7a42147fe51bd53fbdfc52624c25 WHIRLPOOL 54058bcedea46b89b0cde9877b236be14f295ab7e729113a31ae56e8bb89b9509d0fc34f92512c7827f99cd8577dfe748582bbf72d7518632ec2e74162420909
diff --git a/net-mail/safecat/files/safecat-1.11-gentoo.patch b/net-mail/safecat/files/safecat-1.11-gentoo.patch
new file mode 100644
index 000000000000..efd3f049cfa0
--- /dev/null
+++ b/net-mail/safecat/files/safecat-1.11-gentoo.patch
@@ -0,0 +1,9 @@
+diff -durN safecat-1.11.orig/maildir.sh safecat-1.11/maildir.sh
+--- safecat-1.11.orig/maildir.sh 2003-04-14 16:03:09.000000000 +0200
++++ safecat-1.11/maildir.sh 2003-04-14 16:03:56.000000000 +0200
+@@ -1,4 +1,4 @@
+ # Copyright (c) 2000, Len Budney. See COPYING for details.
+
+ exec \
+-HOME/bin/safecat "$1"/tmp "$1"/new
++/usr/bin/safecat "$1"/tmp "$1"/new
diff --git a/net-mail/safecat/files/safecat-1.13-makefile.patch b/net-mail/safecat/files/safecat-1.13-makefile.patch
new file mode 100644
index 000000000000..50a9d44a5988
--- /dev/null
+++ b/net-mail/safecat/files/safecat-1.13-makefile.patch
@@ -0,0 +1,20 @@
+--- safecat-1.13/Makefile.orig 2010-11-07 14:06:40.071879291 -0800
++++ safecat-1.13/Makefile 2010-11-07 14:08:38.438849840 -0800
+@@ -114,7 +114,7 @@
+ ./compile install.c
+
+ instcheck: \
+-load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
++install load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
+ ./load instcheck hier.o auto_home.o strerr.a substdio.a \
+ error.a str.a
+
+@@ -387,7 +387,7 @@
+ ./compile taia_tai.c
+
+ tempfile.o: \
+-compile tempfile.c
++compile tempfile.c uint64.h
+ ./compile tempfile.c
+
+ uint32.h: \
diff --git a/net-mail/safecat/metadata.xml b/net-mail/safecat/metadata.xml
new file mode 100644
index 000000000000..8f7804014a0e
--- /dev/null
+++ b/net-mail/safecat/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/safecat/safecat-1.13.ebuild b/net-mail/safecat/safecat-1.13.ebuild
new file mode 100644
index 000000000000..78dc3a099424
--- /dev/null
+++ b/net-mail/safecat/safecat-1.13.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit fixheadtails eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Safecat implements qmail's maildir algorithm, copying standard input safely to a specified directory"
+HOMEPAGE="http://www.jeenyus.net/linux/software/safecat.html"
+SRC_URI="http://www.jeenyus.net/linux/software/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~mips ppc ~sparc x86"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="sys-apps/groff"
+RDEPEND=""
+
+src_prepare() {
+ # applying maildir-patch
+ epatch "${FILESDIR}"/safecat-1.11-gentoo.patch
+
+ # Fix parallel make errors
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ ht_fix_file Makefile make-compile.sh
+
+ sed -ni '/man\|doc/!p' hier.c
+
+ # Fix implicit decleration
+ sed -i -e '/include <signal.h>/ a #include <stdlib.h>' \
+ safecat.c
+}
+
+src_configure() {
+ # safecat segfaults on gcc-4.0 x86 with -Os, seems to be okay with -O2
+ if [[ $(gcc-major-version).$(gcc-minor-version) == 4.0 ]]; then
+ replace-flags -Os -O2
+ fi
+
+ echo "${D}/usr" > conf-root
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_install() {
+ emake setup check || die
+ dodoc CHANGES README
+ doman maildir.1 safecat.1
+}
diff --git a/net-mail/sendEmail/Manifest b/net-mail/sendEmail/Manifest
new file mode 100644
index 000000000000..ac9c9bb725ec
--- /dev/null
+++ b/net-mail/sendEmail/Manifest
@@ -0,0 +1,8 @@
+AUX 1.56-overzealous-verify-mode-check.patch 683 SHA256 12071c33f45396464adb32f6dc9d37aa05e6a4e019f48473454a397cd9672a79 SHA512 472843ceaf90fb427d626abc4b8484b279d8613ccd39a57a72f689da2f73615a3080a22322ad5cd95d7a8ae10eede7fdb7b51246d810ad066a52b6d2f1498cd0 WHIRLPOOL 52fec5bd1b57485b0272090c6402df20ebc07cca36c2ffe62fe4d6633fcc37809c443a583b5e84bedf19daeaeac2199b515ddc9db9305a9ff669be3d1bdcb998
+AUX 1.56-overzealous-version-check.patch 668 SHA256 cdd955070b2c80c696ff8c30592837ed6b04831b4c85afddcdfe64efb2f0e4d6 SHA512 51d43760d0f6bf8905a0c82a5e0a44035246a332e00ae472e3b37725e29fe461beb808f4d74542659e1a7998fbde30c24d4156770058d914b1c08934d5d6884c WHIRLPOOL 5e51614f452b883241fa99f9bbfdf74e0125f7f66f24885a834f5de091d7a7f61462cda39d19b17bd9dbeba9d9ba1b30128ddeb8f51c1ee2bf66a7ff5b45bb7e
+DIST sendEmail-v1.56.tar.gz 29740 SHA256 6dd7ef60338e3a26a5e5246f45aa001054e8fc984e48202e4b0698e571451ac0 SHA512 0ee208857d6ffa4b9e0eecea0a94decf6d3935041fad23a084fba195f2016a18f3409086eefa8c35fb5dd01697eb29e4af0607754bf1c52bef727b8b670242fd WHIRLPOOL dba6ee5b5cb50f24fd065d840f01a5860ea1eb1012f95036cb47c579be99899d775b59e8169be127760a79106ed0bda1c2c21720b9c3041d1ee2fbf22d6172dd
+EBUILD sendEmail-1.56-r1.ebuild 670 SHA256 85897e3dd8d8ef6da3faabf53cb41d54b4492a28ab88c43d4b6512b7265e48e9 SHA512 2562b5f8a99943bc60c629e508d03e01afc72cdd963bfb2e9c8567f23b3179986985371bd5e9fce3438c5ff9e6bd3f3615aa688fa6a81b036b503cf950956ea2 WHIRLPOOL ae8dd5015b760291bd4daabe3275c27c6983d6f53a5647e2ff50197b20a64589d0f347535a12747ff74934feea86a17ec674f4446aaa241acbd2b64ce3645c9c
+EBUILD sendEmail-1.56-r2.ebuild 729 SHA256 fa1c552114e5e97e5947ee2c686f54079c1c8063072d984848c7e7ba5110d932 SHA512 38ae9913a053deeabbd4450b91df03d2f801d3cad8036d3bd0184b364f858cad8b81786e95ea51dccd9c654a84a567a0dd17755a7bf6d6de093d4267070c5024 WHIRLPOOL 610ccc168cc029871ec280842f1e65232c5f8ad0a68897a7074d81c452c41393b9bd5abc791dde4aca3c6038c229b16533839f21b5bedf98287cdc3a047aaaac
+MISC ChangeLog 2737 SHA256 4d01a41d7c10ff95c026953f5876d8c66c23b5fc0104f38141e50ef4f20e5461 SHA512 df571c6642b532884d488d1171819b4a859e38dd1521c8f622a8fba09395c98003d132ef6982a5dbc2c5836cd561cff26b77c25c82f0d7f2befac7a4c116c83b WHIRLPOOL 6fb6573509a375aad807941a2d0bfeb59b3da0c6284ef04628db0cc2906b1145bb38d55b5183b31ba8a51bc18e280735773bfa310efd3c8565d23fa181a98019
+MISC ChangeLog-2015 3393 SHA256 e6ceb1f76af2f6d3784053c8cf2da50fd120c792b04862a4bcd09c5df1c53a7b SHA512 fecd8412159ce1b037b1beb664a50ff9c148e649cedf52d4ddc28bb7ddf70de8330911e482746c99e03266cb7e2da909553b285cdd248f9b9e92779682ffac0d WHIRLPOOL 4ec9cfcede98e5ad6c13fa64ba1fba61dd2ef7f06de5fde030aaf069b38d856af6ec58a98672378f6333e193f45a7bdea95b24dcc262ff9b7f77e693b9ba175b
+MISC metadata.xml 689 SHA256 85a996bab7c14710b6f12b60bb981aab7f4634d9bd83092475b16d5885c899bd SHA512 61fa434f59304fa18e844d02a363c5fa68e33755108523f9dc27ee9cb7199bcc69113c37d1fb3c5e6503dc36614b75d00aa38a20aec46a39d0577e4965352ea7 WHIRLPOOL 9b4ef439eb20c6036e31bbc32be9d3f50b5bbbff076fab5660570676534c6c6bd886dafa052deb3b488572611c8ade6d4236481faebfbf1685f37b2d392a679a
diff --git a/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch b/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch
new file mode 100644
index 000000000000..f5c5c39ee5c7
--- /dev/null
+++ b/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch
@@ -0,0 +1,11 @@
+--- sendEmail 2013-05-21 16:44:18.000000000 +0100
++++ sendEmail 2013-06-05 09:26:20.000000000 +0100
+@@ -1903,7 +1903,7 @@
+ if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
+ printmsg("DEBUG => Starting TLS", 2);
+ if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); }
+- if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3')) {
++ if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3', SSL_verify_mode => 0x00)) {
+ quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1);
+ }
+ printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);
diff --git a/net-mail/sendEmail/files/1.56-overzealous-version-check.patch b/net-mail/sendEmail/files/1.56-overzealous-version-check.patch
new file mode 100644
index 000000000000..5cd47b06788d
--- /dev/null
+++ b/net-mail/sendEmail/files/1.56-overzealous-version-check.patch
@@ -0,0 +1,11 @@
+--- a/sendEmail 2013-03-25 08:59:12.000000000 +0000
++++ b/sendEmail 2013-03-25 08:59:22.000000000 +0000
+@@ -1903,7 +1903,7 @@
+ if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
+ printmsg("DEBUG => Starting TLS", 2);
+ if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); }
+- if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv1')) {
++ if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3')) {
+ quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1);
+ }
+ printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);
diff --git a/net-mail/sendEmail/metadata.xml b/net-mail/sendEmail/metadata.xml
new file mode 100644
index 000000000000..f89710e387f0
--- /dev/null
+++ b/net-mail/sendEmail/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+</maintainer>
+<longdescription> SendEmail is a lightweight, completely command line based,
+SMTP email agent. If you have the need to send email from a command prompt
+this tool is perfect. It was designed to be used in bash scripts, Perl
+programs, and web sites, but it is also quite useful in many other contexts.
+SendEmail is written in Perl and is unique in that it requires NO SPECIAL
+MODULES. It has a straight forward interface, making it very easy to use.
+</longdescription>
+</pkgmetadata>
diff --git a/net-mail/sendEmail/sendEmail-1.56-r1.ebuild b/net-mail/sendEmail/sendEmail-1.56-r1.ebuild
new file mode 100644
index 000000000000..65f4ff4912fc
--- /dev/null
+++ b/net-mail/sendEmail/sendEmail-1.56-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MY_P="${PN}-v${PV}"
+
+inherit base
+
+DESCRIPTION="Command line based, SMTP email agent"
+HOMEPAGE="http://caspian.dotconf.net/menu/Software/SendEmail/"
+SRC_URI="http://caspian.dotconf.net/menu/Software/SendEmail/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="ssl"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ ssl? ( dev-perl/IO-Socket-SSL )"
+
+PATCHES=( "${FILESDIR}/${PV}-overzealous-version-check.patch" )
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ dobin sendEmail || die "failed to install sendEmail script"
+ dodoc CHANGELOG README TODO
+}
diff --git a/net-mail/sendEmail/sendEmail-1.56-r2.ebuild b/net-mail/sendEmail/sendEmail-1.56-r2.ebuild
new file mode 100644
index 000000000000..aaa924980ff6
--- /dev/null
+++ b/net-mail/sendEmail/sendEmail-1.56-r2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MY_P="${PN}-v${PV}"
+
+inherit base
+
+DESCRIPTION="Command line based, SMTP email agent"
+HOMEPAGE="http://caspian.dotconf.net/menu/Software/SendEmail/"
+SRC_URI="http://caspian.dotconf.net/menu/Software/SendEmail/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="ssl"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ ssl? ( dev-perl/IO-Socket-SSL )"
+
+PATCHES=( "${FILESDIR}/${PV}-overzealous-version-check.patch"
+ "${FILESDIR}/${PV}-overzealous-verify-mode-check.patch" )
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ dobin sendEmail || die "failed to install sendEmail script"
+ dodoc CHANGELOG README TODO
+}
diff --git a/net-mail/serialmail/Manifest b/net-mail/serialmail/Manifest
new file mode 100644
index 000000000000..86edfa610483
--- /dev/null
+++ b/net-mail/serialmail/Manifest
@@ -0,0 +1,7 @@
+AUX serialmail-0.75-implicit.patch 965 SHA256 bb982ee188fefbe81d96aafeecb80c68334a96ca06f87778eb8a2696919d6d50 SHA512 2c3bb49ed651aaea32f29e25db29c2a7d538e583c8d2b2200cb68790c397edebda5f8d36cf997059694f8209472e5d3949d934be9877cf0da524ff816a2ef268 WHIRLPOOL a32cdda3fe49bbefbda2f7b8c8d9a71fd9f1626a74ac8050ff246a04873064c1584e808503eab855177d547637137c934abf7e3278cf8475e66490c02f406c7d
+DIST serialmail-0.75-patch.tar.bz2 7702 SHA256 61e3895faad9820f02f69f0873b0af30baf4a73dc3cc4beebad7d00b1b35a079 SHA512 da1eb9a9a834fe5a9db4233d1a7e09657f5a2903f3356ebd6922f03c7f4833d96b4b9ecfb3412733dcdd3b384e503b25fd2564d0f93c639a7a9409872dc52c25 WHIRLPOOL 4dd9dfb737958484edfc172f742dd81deeab01a9ba9b117f5d8926072009ffa30194600c1edd96234d0db0be7ef618eb5142810e3555294e5a91b2a9de130c7d
+DIST serialmail-0.75.tar.gz 55079 SHA256 1825c911087f28692c3441d4f95747201c520a22575ab3e6132b5c14097038f3 SHA512 f0c7f14330b44f12f8e5f3590416d707bb2daaca84db8fcd236ae05855269005a726d946269c0cbb25f51238fba350420e0e3a1d57f0ab227c447fafcae497dc WHIRLPOOL 3773e02f75e7609e6e362af7355448daebdf6c98bae42d3ce268cc9bf5e4750306ec85080e7514c32a5fa0917912958083e428eec759f2d1cedd0fb8ede5d8d0
+EBUILD serialmail-0.75-r4.ebuild 1269 SHA256 e94000a5f1a74a3e1e7ef268b6176c7528a5d31f541667ed41edb5b0a00fe62e SHA512 ba52172765ae312b8f7aa27eebf9463b23179a8c4ce8822a2ecf6fc3d63f12ee40cce071dfd91cc56bddadb0e2e68c80723f34e51ecbd0fb65e9f0b7b3d69b99 WHIRLPOOL 0d6a9f5e8dcce8bfd1facaca3b6e24c25ba8b1edb4aa2a1c79dab1a5968f43ca230672d3f50fad5e86d52fe64b933635cc5d53608cc49b0b10b0a2f547c12fb5
+MISC ChangeLog 2501 SHA256 4fefaa6e46b1fb3a52ee4b84a4c608c495c973e9e7373af5cb60ae6c8708dd6d SHA512 42ef414b975811de90fa706d8f66a800141e14e2718d93bfeb1771a94107c2fd651b86ee77642e739c1ada8650b563b933de4eecc691170310ec941457ba0fc2 WHIRLPOOL 2c23fdf508ea130825196e160d94ed8866639f614999f69f5588dd954357d6636af09ceaf1384e0c0be8b9b0208c8c0932602a615183bf6fbefa161e68b31386
+MISC ChangeLog-2015 3829 SHA256 4ca32834ed2e19b8267c06027ef5c50d41493c391a7416ca058b5ebf1492606e SHA512 64229c9e2051ade909e224328389521c16da58ac56cad7496a58462fcefe55a050e103e4ca31b3b87655777ffb1df5298542c93c2a2b804629745c72a705c90a WHIRLPOOL 96622fe115f3f3cc5e55c1c1167dee64d7c2e3d6e5a4a7ae1afafc81776b54e2c6108cdf9482fe99f563c142d41bb49dc2bcbe661950c987ad909ed9c228ce5a
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/serialmail/files/serialmail-0.75-implicit.patch b/net-mail/serialmail/files/serialmail-0.75-implicit.patch
new file mode 100644
index 000000000000..988fa31bb92c
--- /dev/null
+++ b/net-mail/serialmail/files/serialmail-0.75-implicit.patch
@@ -0,0 +1,42 @@
+commit 3672e8edd2887775168c4c6c0c670a80dd413825
+Author: Eray Aslan <eras@gentoo.org>
+Date: Mon Jun 6 07:12:06 2011 +0000
+
+ Add missing includes for incompatible implicit declaration warnings.
+
+diff --git a/leapsecs_read.c b/leapsecs_read.c
+index c8f975f..248632d 100644
+--- a/leapsecs_read.c
++++ b/leapsecs_read.c
+@@ -2,6 +2,7 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
++#include <stdlib.h>
+ #include "tai.h"
+ #include "leapsecs.h"
+
+diff --git a/maildirserial.c b/maildirserial.c
+index 707470e..09214db 100644
+--- a/maildirserial.c
++++ b/maildirserial.c
+@@ -1,5 +1,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <stdlib.h>
++#include "exit.h"
+ #include "sgetopt.h"
+ #include "scan.h"
+ #include "stralloc.h"
+diff --git a/myMd5.c b/myMd5.c
+index 5f41908..869a7f9 100644
+--- a/myMd5.c
++++ b/myMd5.c
+@@ -25,6 +25,7 @@
+ */
+
+ #include "myMd5.h"
++#include <string.h>
+
+ /* Constants for MD5Transform routine. */
+ #define S11 7
diff --git a/net-mail/serialmail/metadata.xml b/net-mail/serialmail/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/serialmail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/serialmail/serialmail-0.75-r4.ebuild b/net-mail/serialmail/serialmail-0.75-r4.ebuild
new file mode 100644
index 000000000000..bf0fede65d3e
--- /dev/null
+++ b/net-mail/serialmail/serialmail-0.75-r4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A serialmail is a collection of tools for passing mail across serial links"
+HOMEPAGE="http://cr.yp.to/serialmail.html"
+SRC_URI="http://cr.yp.to/software/${P}.tar.gz
+ mirror://gentoo/${P}-patch.tar.bz2"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE="static"
+RESTRICT="mirror bindist"
+
+DEPEND="sys-apps/groff
+ >=sys-apps/ucspi-tcp-0.88"
+
+RDEPEND="sys-apps/groff
+ >=sys-apps/ucspi-tcp-0.88
+ virtual/daemontools"
+
+src_prepare() {
+ epatch "${WORKDIR}"/${P}-gentoo.patch
+ epatch "${WORKDIR}"/${P}-smtpauth.patch
+ epatch "${WORKDIR}"/${P}-smtpauth_comp.patch
+ sed -i "s:@CFLAGS@:${CFLAGS}:" conf-cc
+ use static && LDFLAGS="${LDFLAGS} -static"
+ sed -i "s:@LDFLAGS@:${LDFLAGS}:" conf-ld
+ epatch "${FILESDIR}"/${P}-implicit.patch
+}
+
+src_compile() {
+ grep -v man hier.c | grep -v doc > hier.c.tmp ; mv hier.c.tmp hier.c
+ emake it man
+}
+
+src_install() {
+ dobin serialsmtp serialqmtp maildirsmtp maildirserial maildirqmtp
+
+ dodoc AUTOTURN CHANGES FROMISP SYSDEPS THANKS TOISP \
+ BLURB FILES INSTALL README TARGETS TODO VERSION
+
+ doman maildirqmtp.1 maildirserial.1 maildirsmtp.1 \
+ serialqmtp.1 serialsmtp.1
+}
diff --git a/net-mail/signify/Manifest b/net-mail/signify/Manifest
new file mode 100644
index 000000000000..0b191c331c04
--- /dev/null
+++ b/net-mail/signify/Manifest
@@ -0,0 +1,5 @@
+DIST signify_1.14-1.tar.gz 13853 SHA256 8c1c19ead3c3dcb40e08a5ead4bba214c930d1e0e06cc18067d090b3d841cdd6 SHA512 4b94c6bae6d36b60610318625eca7856f63a578ed22cc1690ea5ffa1d823471c73729f3f404d5d944f3262004ca6a9dd8ece1ae2cfa1dc3fed0152614792f7e2 WHIRLPOOL 34329f60458755f53484daf385857ba1f8a80983c0d0e230fc570b7259ed56c788a9b9ebd8a5b71b537c694b5d0fc482349b0a717513f5e1c7a6c00b2fc865af
+EBUILD signify-1.14.ebuild 749 SHA256 028e632d84b89d50f4c3a3c31a2f42e6d5adc040230be51b3b62362513b1e47a SHA512 7b537cf1c7d1bc87f34e5115793f6ee59d7d6d615aecae71718bacd0486b546e4bd9da39b1f1abd32add04887014012ce0e3748779e6d39c958363e625fc8418 WHIRLPOOL 945ea7ca35b92374d6a80252b13bdbaa601e9ff3ece4cd18e3613fbc9184b567e1729d1efe177639f5e9b2df874aadbd36d8fcd97782516dac306ebf22b9d693
+MISC ChangeLog 2425 SHA256 6dded851f76bb341061713a9b3aabfc42806ec406a0938a9af28c13f4caa9397 SHA512 2c9642533a17d2bc9eafb4a537497429241fbc005b9ca07ac724c98b6295ee0b0c9854c119b397ee1079cfe4105c3919f60a06220f17c7a9ca7794497b6d849b WHIRLPOOL 92e75c3038bea43b76e8879ea3047ca9b65ae9c6b5870cfbb45661f18eaaba003143afed955e29142521b7c194562e2e447141f726d6763f1407c699f6654d49
+MISC ChangeLog-2015 1832 SHA256 ca78414ae2428c73daf22983710e75086bc5999b8065344d7420f1ad522147ae SHA512 1ca3a650712d976bc9285db501f30e7799b8b3eaa16d7a0b6576cbdc355f11316270af3999ec40fd2c5347d9d535b3bd810ad86101042d3f1d2ce6687e18c39b WHIRLPOOL d997e92bc77a16f060f56c7e8b466bed626cd727687fec26ef6fe87efeb7838831035b54ae60251b48c43108a417adaa1c19c67098f67265aa67401c64b1016d
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-mail/signify/metadata.xml b/net-mail/signify/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-mail/signify/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/signify/signify-1.14.ebuild b/net-mail/signify/signify-1.14.ebuild
new file mode 100644
index 000000000000..f3ec72a5e459
--- /dev/null
+++ b/net-mail/signify/signify-1.14.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+S=${WORKDIR}/${PN}
+
+DESCRIPTION="A (semi-)random e-mail signature rotator"
+SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}-1.tar.gz"
+HOMEPAGE="http://signify.sf.net/"
+
+RDEPEND="dev-lang/perl"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+SLOT="0"
+LICENSE="public-domain"
+KEYWORDS="ppc sparc x86 ~amd64"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i 's/head -1/head -n1/' Makefile
+}
+src_compile() {
+ echo "Perl script! Woohoo! No need to compile!"
+}
+
+src_install() {
+ make PREFIX=${D}/usr/ MANDIR=${D}/usr/share/man install || die
+ dodoc COPYING README
+ docinto examples
+ dodoc examples/{Columned,Complex,Simple,SimpleOrColumned}
+}
diff --git a/net-mail/smtptools/Manifest b/net-mail/smtptools/Manifest
new file mode 100644
index 000000000000..679d0d5cc877
--- /dev/null
+++ b/net-mail/smtptools/Manifest
@@ -0,0 +1,7 @@
+AUX smtptools-0.2.3-autotools.patch 3951 SHA256 a03826e38d1c43bf5ef449bd891a570ef5dfca360c000032a3677ca1f0ca2f93 SHA512 3d5984bd432dc6ca7e52a8b7e8cb52e3a77ef7c3d42343388f55d8d71251a4c13fd008c907af735b966672ccdf80e4d4e64de9a64ea6117843556577ea2ddcd2 WHIRLPOOL bd3c8328be16c65501a65109514d015f697b3854978a916b71f3a6cd05e87d0c54394a4e6a8f420acbe3eb8c9f09a8d92839f225c2dc94b0149264d06888f9c2
+AUX smtptools-0.2.3-cleanups.patch 1878 SHA256 2208c60ca082ca2ac84bff751ce82c58302b2ac931db0072b63c582068aafe2b SHA512 5bd29abde5b8b80c5a1ed688baf9cc3abe9b9516228401e9395f56f8e5af4aa725774128f1571a8e501d305a8c7258122a9bcace716d8f7704f89bf3bb2b34ec WHIRLPOOL 9599caa5258e0e0aca60affc6f76ec5332a8eb80006a6773253f6d3e495f5b4f94de2772f252da1021283ccfcab6dd2fec21260eef5ed363f9aa18c98dcf161b
+DIST smtptools-0.2.3.tar.gz 117859 SHA256 d0832fafea1d6a1a8981fc4455f41e228187331b035522fdc08f3b90f5301f89 SHA512 2d5f5a4fc5d25e5b652800047c7dcba62eb033919e485e42efd07be0e00062f9d89200dd0e65991a13b1366b5b28bb5c2d84d0468e71d05d1540178111b3cf2f WHIRLPOOL d21cc2f67e48556ee67d295ce5fe5263ca4bfef16e36bfd6781cb3175f24597b23b89b4009a33289e2b1397ae5fbe48405884b3c076784376037d925bdd0564d
+EBUILD smtptools-0.2.3.ebuild 652 SHA256 428e435a8b5e7bada4a647e5c381d229fada25c1a4af7dc00184e872f08d9b0c SHA512 5a26ba5791236746f798ee48ebc11265cefa6a68a627b15b4e1a953d4ef28d2f237f2c78254e616290888ad607793c0f8719375877176e44c7d5021ac7e4dd6f WHIRLPOOL 949464f292414500485e30d63a4c74397bcd22df8540d87883a1f7c5b436eeb6a139771c57a27d3dcea7a4ad46b1b6b45d9631925045e029ba33fb2ae8f8bd09
+MISC ChangeLog 2516 SHA256 f1d0fff2aef4495e5e1f8aaca4f5a985fe36a1e7f97a566c558acbb04496e801 SHA512 0956d3c153957da1abe3cf39029fa8f894b0c45ac16f62eb1fae1d9ac029ce4dd1e3f1b3ad7a332857cf63feb629b7df02d1910db4d9ffbac123dbc2248addd9 WHIRLPOOL 08fad8db8f77c2cdf5bb7f8e52fb0b59fb37d3ee1b1dad2366df114d0c8270e5f3e53d147320f84844d83cf42fd8aef68e8721fb5943713c2568146924c1c917
+MISC ChangeLog-2015 1432 SHA256 538b0869ae9ecc6ea34b0516950a5a5bf6b1097c479a9bdbd7506ca51654bf5f SHA512 c144fe98ed23b480e149899b2fdbc7179bd6acdc4793ef1d4e1511eef2b67a0053eff1a476a39464c10225a3f5354486a53fbdd5d66593f6dcaf1066e501d788 WHIRLPOOL afcdc6a865c4c32f78abf001ba7cd3cb08a112f765e5ee3a77a8f30d2717e7b5aeccc616d4d7fbf62437daad7339bc20d88a9df1c761db3b2e576af9da65f24b
+MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752
diff --git a/net-mail/smtptools/files/smtptools-0.2.3-autotools.patch b/net-mail/smtptools/files/smtptools-0.2.3-autotools.patch
new file mode 100644
index 000000000000..9c051b90437f
--- /dev/null
+++ b/net-mail/smtptools/files/smtptools-0.2.3-autotools.patch
@@ -0,0 +1,120 @@
+the autotools in this are ridiculously ancient (over 15 years old).
+update them to something reasonable.
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,7 +1,7 @@
+ #noinst_SCRIPTS=systype
+ PACKAGE_VERSION=@PACKAGE@-@VERSION@
+ # i can do that better ...
+-AUTOMAKE_OPTIONS=no-dependencies ansi2knr readme-alpha 1.3 gnu
++AUTOMAKE_OPTIONS=no-dependencies readme-alpha gnu
+ man_MANS=smtpblast.1 usmtpd.1 tomaildir.1 maildirblast.1 rewriteheader.1
+ EXTRA_DIST= attribs.h crc32ansi.h dirsysdep.h dns.h dynhash.h \
+ dns_int.h filelock.h \
+@@ -41,31 +41,6 @@ maildirblast_SOURCES=maildirblast.c smtp.c runqueue.c \
+ uosock_connect.c filelock.c uogetopt.c str2long.c str2ulong.c
+ maildirblast_LDADD=libdns.a libmta.a libstr.a libio.a @LIBOBJS@
+
+-if HAVE_GNU_MAKE
+-## We must create the .deps directory if it doesn't exist. We do it
+-## in this strange way to make sure the .deps directory exists,
+-## without trying to run mkdir for each compilation.
+-## stolen from automake
+-DEPS_MAGIC := $(shell mkdir deps > /dev/null 2>&1 || :)
+-endif
+-
+-if HAVE_GNU_MAKE
+-# no dependency tracking without GNU make
+-##
+-## automake depencency stuff is unreliable, it will not
+-## recreate .deps/xxx.P if it has been removed.
+-## and anyway, i dislike hidden directories.
+--include $(addprefix ./deps/,$(SOURCES:.c=.d))
+-deps/%.d: %.c
+-if HAVE_GCC_DEP
+- @echo mkdep $<
+- @$(COMPILE) -Wp,-MMD,./deps/$(@F) -E $< >/dev/null
+-else
+-# no dependency generating without GCC
+- @exit 0
+-endif
+-endif
+-
+ rpm: $(PACKAGE_VERSION).tar.gz Specfile
+ $(srcdir)/buildrpm $(srcdir)
+ success:
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -1,4 +1,4 @@
+-AC_DEFUN(UO_HEADER_SYS_SELECT,
++AC_DEFUN([UO_HEADER_SYS_SELECT],
+ [AC_CACHE_CHECK([whether sys/time.h and sys/select.h may both be included],
+ lrzsz_cv_header_sys_select,
+ [AC_TRY_COMPILE([#include <sys/types.h>
+@@ -6,7 +6,7 @@ AC_DEFUN(UO_HEADER_SYS_SELECT,
+ #include <sys/select.h>],
+ [struct tm *tp;], lrzsz_cv_header_sys_select=yes, lrzsz_cv_header_sys_select=no)])
+ if test $lrzsz_cv_header_sys_select = no; then
+-AC_DEFINE(SYS_TIME_WITHOUT_SYS_SELECT)
++AC_DEFINE(SYS_TIME_WITHOUT_SYS_SELECT, 1, [blah])
+ fi
+ ])
+
+--- a/configure.in
++++ b/configure.in
+@@ -1,7 +1,9 @@
+-AC_INIT(smtpblast.c)
+-AM_INIT_AUTOMAKE(smtptools, 0.2.3)
++AC_INIT(smtptools, 0.2.3)
++AM_INIT_AUTOMAKE
+ AM_CONFIG_HEADER(config.h)
+
++AH_BOTTOM([#define P__(x) x])
++
+ if test "x$CFLAGS" = x ; then
+ if test "x$CC" = "xlcc" ; then
+ if test "x$_CFLAGS_LCC" != x ; then
+@@ -23,38 +25,19 @@ AC_ARG_ENABLE(efence,
+ dnl Checks for programs.
+ AC_PROG_CC
+ AC_PROG_CPP
+-if test "x$GCC" = xyes ; then
+- AC_MSG_CHECKING([whether gcc supports -Wp,-MMD])
+- old="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -Wp,-MMD,myconftest.out -E"
+- AC_TRY_CPP(int main(void) {return 0;},test -s myconftest.out && GCC_DEP=yes)
+- rm -f myconftest.out
+- CPPFLAGS="$old";
+- if test "x$GCC_DEP" = xyes ; then AC_MSG_RESULT(yes) ; else AC_MSG_RESULT(no); fi
+-fi
+-if test "x$GCC_DEP" = xyes ; then : ; else
+- AC_MSG_WARN([dependency tracking disabled])
+-fi
+ AM_CONDITIONAL(HAVE_GCC_DEP, test "x$GCC_DEP" = "xyes")
++AC_CHECK_TOOL(AR, ar)
+ AC_PROG_RANLIB
+ AC_CHECK_PROGS(MAKE,gnumake gmake make pmake,make)
+-AC_MSG_CHECKING([for GNU make])
+- echo "include confMakefile2" >confMakefile1
+- echo "TESTFORGNUMAKE:" >confMakefile2
+- GNU_MAKE=no
+- $MAKE -f confMakefile1 >/dev/null 2>/dev/null && GNU_MAKE=yes
+- rm -f confMakefile2 confMakefile1
+- AC_MSG_RESULT($GNU_MAKE)
+- AM_CONDITIONAL(HAVE_GNU_MAKE, test "x$GNU_MAKE" = "xyes")
+- if test "x$GNU_MAKE" = "xno" ; then
+- AC_MSG_WARN([dependencies disabled])
+- fi
+-AM_C_PROTOTYPES
+
+ dnl Checks for libraries.
+ if test "x$WANT_EFENCE" = x ; then : ; else
+ AC_CHECK_LIB(efence, main)
+ fi
++dnl glibc uses the symbol __dn_expand and provides a dn_expand define
++dnl which expands into __dn_expand. check for both.
+ AC_CHECK_LIB(resolv, dn_expand)
++AC_CHECK_LIB(resolv, __dn_expand)
+ dnl SCO needs this.
+ AC_CHECK_LIB(socket,syslog,,,)
+ dnl slowlartis needs this
diff --git a/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch b/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch
new file mode 100644
index 000000000000..6873cf390255
--- /dev/null
+++ b/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch
@@ -0,0 +1,61 @@
+--- smtptools/usmtpd.c
++++ smtptools/usmtpd.c
+@@ -60,8 +60,8 @@
+ /* run */ static const char *reminfo;
+ /* run */ static const char *relayclient;
+
+-/* opt */ static unsigned long read_timeout=1200;
+-/* opt */ static unsigned long write_timeout=1200;
++/* opt */ static unsigned long u_read_timeout=1200;
++/* opt */ static unsigned long u_write_timeout=1200;
+ /* opt */ static char *log_spec_str=NULL;
+ /* opt */ static unsigned long aging=0;
+
+@@ -108,7 +108,7 @@
+ "Use $QMAILQUEUE to override, overrides --maildir\n", "PATH"},
+ {'r',"relaydb", UOGO_STRING,&relaydbname,1,
+ "Path to relaying control file", "FILE"},
+- {'R',"read-timeout", UOGO_ULONG,&read_timeout,0,
++ {'R',"read-timeout", UOGO_ULONG,&u_read_timeout,0,
+ "Timeout in seconds for reading from remote", "TIMEOUT"},
+ {'s',"max-size", UOGO_ULONG,&maxsize,0,
+ "Maximum size of messages\noverridden by $DATABYTES", "LIMIT"},
+@@ -117,7 +117,7 @@
+ "Used for DNS and envelope sender checking.\n"
+ "Default: accept messages during this time"},
+ /*123456789012345678901234567890123456789012345678901234567890*/
+- {'W',"write-timeout", UOGO_ULONG,&write_timeout,0,
++ {'W',"write-timeout", UOGO_ULONG,&u_write_timeout,0,
+ "Timeout in seconds for writing to remote.","TIMEOUT"},
+ {0,0}
+ };
+@@ -632,9 +632,9 @@
+ }
+
+ uoio_assign_r(&i,0,read,0);
+- i.timeout=read_timeout;
++ i.timeout=u_read_timeout;
+ uoio_assign_w(&o,1,write,0);
+- o.timeout=write_timeout;
++ o.timeout=u_write_timeout;
+
+ if (rblcheck) do_rbl_check(&o);
+
+--- smtptools/relaydb.c
++++ smtptools/relaydb.c
+@@ -1,4 +1,5 @@
+ #include "config.h"
++#include <string.h>
+ #include <unistd.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+--- smtptools/uostr.h
++++ smtptools/uostr.h
+@@ -1,6 +1,7 @@
+ #ifndef UOSTR_H
+ #define UOSTR_H
+
++#include <string.h>
+ #include "uocompiler.h" /* P__ */
+ #include "attribs.h"
+
diff --git a/net-mail/smtptools/metadata.xml b/net-mail/smtptools/metadata.xml
new file mode 100644
index 000000000000..1c3bc7b3fcef
--- /dev/null
+++ b/net-mail/smtptools/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-mail/smtptools/smtptools-0.2.3.ebuild b/net-mail/smtptools/smtptools-0.2.3.ebuild
new file mode 100644
index 000000000000..875d3efd46de
--- /dev/null
+++ b/net-mail/smtptools/smtptools-0.2.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils autotools
+
+DESCRIPTION="A collection of tools to send or receive mails with SMTP"
+HOMEPAGE="http://www.ohse.de/uwe/software/smtptools.html"
+SRC_URI="ftp://ftp.ohse.de/uwe/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh x86"
+IUSE=""
+
+RDEPEND="!net-mail/qtools"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ mv configure.{in,ac} || die
+ rm acconfig.h || die
+ epatch "${FILESDIR}"/${P}-cleanups.patch
+ eautoreconf
+}
diff --git a/net-mail/spamcup/Manifest b/net-mail/spamcup/Manifest
new file mode 100644
index 000000000000..d0d956bd123e
--- /dev/null
+++ b/net-mail/spamcup/Manifest
@@ -0,0 +1,5 @@
+DIST spamcup-1.09.tar.gz 6801 SHA256 6fb0123df76a4e8fc0a3c4212145f1c89f32d195eac373a58f3d29a5c2e59685 SHA512 a43a194b7f90fd4ca9a444cba0d42b7a87284842fa2bba6bbd5e2bc2bf8e5aed17de5ba6fbfd7c439fcd40fd0f9233d989ba7abf4d907d857f9c72f2c3bb0504 WHIRLPOOL e8ab4c384e70bfbe8055c6819f79e6a6c2719a25dc72453c08a1c1aa175bbf882b2c898a1edecfa64c3d4234b42e74436d55311f66d48fa418d05d7cc6a85006
+EBUILD spamcup-1.09.ebuild 639 SHA256 fdcb0c9458a50cae31c898d4ad8e3821dc09e64e470fc2d0170346d39b8ae5c2 SHA512 6f1b209d7feec9125811dcd09a1a1a6041d5b20b58ebeaafadbbdf783397f37596c63ac0f30faee65c31da660667054868ff278a83e36ee22edf1cc37799c313 WHIRLPOOL 6e7ffd4d1fc4241a3acddc8cf76225da9ea8a187f12ae3278fa47f245435a70e8b52d61d3550631dccbbcbcbf55b48393eabf83828d75406c7d10150db660b7b
+MISC ChangeLog 2536 SHA256 6b6ca877f12e0ec85799f2aa94ce3be7a47f8376937ecb2c600bf016be7b456a SHA512 ac1fa8d529acdbb5d9e35450ad96f4184c54fbc96285a07cd8b06b623a1c54421204c0dd809774cdfc540ac526d49c61ac970a9f3534d63279f0888b78bf8a9d WHIRLPOOL 7181180b599e29bb8003958efa40bab4bd9966fcb28c36160a81c99556133122cc0b860326618a28afd23357814f6fc2bffebf8e80e49c43dcb60a0c404e59dc
+MISC ChangeLog-2015 1797 SHA256 01b5beca30acef048e8082204a5802e4c926d9668a0e2383e4b714a39c11e02a SHA512 6a9be91e6c7e1d5e3f97da9acdeaa3b8b6c1341531e3c381be763adf136d6aa9e3c3a0d01c514a952d4f5d282732c5e29edc6399ceb3385ff411ddc0bf743f8c WHIRLPOOL ec4bb8aeb32abad51363796ba58c22ef96a7674ca078c0568ecd92a8d7044be0d6988e0519d02a4ed98f0c78ef87d4a73d8e80a8304f019485eaaff16a9c6067
+MISC metadata.xml 321 SHA256 2a613a1c89053541c9ad40d8a478429150a9eb2bd497f2ccbe9fa4e3997a97be SHA512 82f1683bc6b0f509b1ba46c5c57a07dde0ce0d64a1e657861bd1849599cb2a538ba123bc6b61c8ba6d1f425921944d30c0f0a3f31506d59d80a1cecc2d431662 WHIRLPOOL fbb8d4d796cc5bd15bfac382e80bb2d332bcd33effc5dd5995787a823f42e3cedbc5342e10d559fc9570cc8d170382229cdf9f4af7e886ff7bf8ba2142c70b73
diff --git a/net-mail/spamcup/metadata.xml b/net-mail/spamcup/metadata.xml
new file mode 100644
index 000000000000..2316dd73d07e
--- /dev/null
+++ b/net-mail/spamcup/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">spamcup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/spamcup/spamcup-1.09.ebuild b/net-mail/spamcup/spamcup-1.09.ebuild
new file mode 100644
index 000000000000..aba9275fab0b
--- /dev/null
+++ b/net-mail/spamcup/spamcup-1.09.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="This script does the same you would do when you report spam with your browser in Spamcop.net"
+HOMEPAGE="https://sourceforge.net/projects/spamcup/"
+SRC_URI="mirror://sourceforge/spamcup/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.8.0
+ dev-perl/Getopt-ArgvFile
+ || ( ( >dev-perl/libwww-perl-6 dev-perl/HTML-Form ) <dev-perl/libwww-perl-6
+ ) "
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dodir /usr/bin
+ dobin spamcup.pl || die "dobin failed"
+
+ dodoc ChangeLog INSTALL
+}
diff --git a/net-mail/swaks/Manifest b/net-mail/swaks/Manifest
new file mode 100644
index 000000000000..ab6c606e1c91
--- /dev/null
+++ b/net-mail/swaks/Manifest
@@ -0,0 +1,6 @@
+AUX swaks-perl-5.18.patch 2139 SHA256 8a1c8a326463f918535ffdea81f430b933cac7fe5cf2831337ebc5d26ad391bc SHA512 f5d507e2b2812776f4a35e66a3ace3a9edb3d3c50fc7734304d48a278aa7c3fe725f363d14c61442d11a07e8266bab8ce486c4c9eaae2c5ec7e93484c5ffcb53 WHIRLPOOL f3d3084b3b63aecc4a283eb5d89bc4e3a08b4025aaac6e301dee37ec75e95c75ce1ce8d1f9b97f4e75df54e038ea4594499f333ef77ca4265742b4d3a6800425
+DIST swaks-20130209.0.tar.gz 102227 SHA256 0b0967256dca82776f610f1db862bc47644b236f325fa48cbdb2651babd41f7c SHA512 bf3c639f2c227d8219d5bc98a3d3519886471168c16e38d036283eeb1bb786c80bb80a648637150b3eb1903ef0c0d01bc37fd7b4f55af66a20f7bef18067b118 WHIRLPOOL 2eaf63e060f6d2816ad3140e966d2048844ece2ad92409cdccb4b1ecc47967e11368eb02ca0183d6c40acdce08ba48506290d629c4aefa9ff514494bc9fd3dba
+EBUILD swaks-20130209.0-r1.ebuild 1010 SHA256 6dc4d5e4119956e03c66774c173c46f3be29e740881a961d29f86c33eafd15ee SHA512 9ef336029b8e2d2e7f3f10726e2f96d7dfca90b4fa6896e9dfb0e8de59d3c0397c9bc680802d32a33693ad378c1850d5b39254223d30fd0e4c4f1f102ee82002 WHIRLPOOL 43349388f5ba92d06686617e348cb956fd07b17fa2ec58cac29e2011fbfe408cd1f727de179b6aa8a886fec15a7d508b90f6439eda242cbb2d25e7942ff657a2
+MISC ChangeLog 2527 SHA256 241d2253c91ff2a0e122d5286617e06cb79377176aaf45088e36cf66c13c1708 SHA512 b62c5b17288e5eb5eead0e5ca9e392727ceeef346413114f80cc3269f8846190f2f4fca43b047f94f0617ec1020dfddb04613e20a0ef2b3a207bf880497ab0ab WHIRLPOOL 73743052d86c95f0da918231f68e70cf5d050521a0df5a6ea9b4647aa6c40c3a9edd8983879715c55175d1ec0904b654fa9e82c963117b57474d8f113ecbcc72
+MISC ChangeLog-2015 4032 SHA256 6b6983145ba3fe8a1cfd4f87cd6edd549a4c429183524c8ef672c2122df401ad SHA512 634d0772eb646996ab0a3e28e32bf0b9e8f41636ef09c20f9e453b322f80420a453dc412d1043fdf99bb3809b449bac619e6a1bce58222dbcc8055caf37b469b WHIRLPOOL c6209e6a0b70798a16e6231ee8367b9e254628ac42a41d607ff222281c8a7baaba42f078d225d8f07f1ebc350156cc289fd7b38c4c5fd3a633babbc4355b6924
+MISC metadata.xml 406 SHA256 68daddf4516a563fc568b03fedcc547166e6f04409f9d648d892db511ed75d46 SHA512 1ad98c07755689c2b8696404d73525593ca72deaa0245cd3297763a3b2c81e196fb85568f0de881fe759b4e1ae9d80715f744c85d4c4dea305238711f9b9d17c WHIRLPOOL 7370732565571d859d942dd9ef111136742e1b81aff6af65acb5b6eba36c3b8be8f5da9e411b70e1290c26260c275b445156e1e790db415a27f5a0838ec5b146
diff --git a/net-mail/swaks/files/swaks-perl-5.18.patch b/net-mail/swaks/files/swaks-perl-5.18.patch
new file mode 100644
index 000000000000..3fd89341474e
--- /dev/null
+++ b/net-mail/swaks/files/swaks-perl-5.18.patch
@@ -0,0 +1,106 @@
+--- swaks-20130209.0.orig/doc/ref.pod 2014-04-02 19:30:12.742814178 +0300
++++ swaks-20130209.0.orig/doc/ref.pod 2014-04-02 19:31:49.135105112 +0300
+@@ -824,83 +824,83 @@
+
+ =over 4
+
+-=item 0
++=item C<0>
+
+ no errors occurred
+
+-=item 1
++=item C<1>
+
+ error parsing command line options
+
+-=item 2
++=item C<2>
+
+ error connecting to remote server
+
+-=item 3
++=item C<3>
+
+ unknown connection type
+
+-=item 4
++=item C<4>
+
+ while running with connection type of "pipe", fatal problem writing to or reading from the child process
+
+-=item 5
++=item C<5>
+
+ while running with connection type of "pipe", child process died unexpectedly. This can mean that the program specified with --pipe doesn't exist.
+
+-=item 6
++=item C<6>
+
+ Connection closed unexpectedly. If the close is detected in response to the 'QUIT' swaks sends following an unexpected response, the error code for that unexpected response is used instead. For instance, if a mail server returns a 550 response to a MAIL FROM: and then immediately closes the connection, swaks detects that the connection is closed, but uses the more specific exit code 23 to detail the nature of the failure. If instead the server return a 250 code and then immediately closes the connection, swaks will use the exit code 6 because there is not a more specific exit code.
+
+-=item 10
++=item C<10>
+
+ error in prerequisites (needed module not available)
+
+-=item 21
++=item C<21>
+
+ error reading initial banner from server
+
+-=item 22
++=item C<22>
+
+ error in HELO transaction
+
+-=item 23
++=item C<23>
+
+ error in MAIL transaction
+
+-=item 24
++=item C<24>
+
+ no RCPTs accepted
+
+-=item 25
++=item C<25>
+
+ server returned error to DATA request
+
+-=item 26
++=item C<26>
+
+ server did not accept mail following data
+
+-=item 27
++=item C<27>
+
+ server returned error after normal-session quit request
+
+-=item 28
++=item C<28>
+
+ error in AUTH transaction
+
+-=item 29
++=item C<29>
+
+ error in TLS transaction
+
+-=item 32
++=item C<32>
+
+ error in EHLO following TLS negotiation
+
+-=item 33
++=item C<33>
+
+ error in XCLIENT transaction
+
+-=item 34
++=item C<34>
+
+ error in EHLO following XCLIENT
+
diff --git a/net-mail/swaks/metadata.xml b/net-mail/swaks/metadata.xml
new file mode 100644
index 000000000000..8fa91475b838
--- /dev/null
+++ b/net-mail/swaks/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>"Swiss Army Knife SMTP; Command line SMTP testing, including TLS and AUTH" - a full-featured Perl script for testing SMTP servers.</longdescription>
+</pkgmetadata>
diff --git a/net-mail/swaks/swaks-20130209.0-r1.ebuild b/net-mail/swaks/swaks-20130209.0-r1.ebuild
new file mode 100644
index 000000000000..cfbd70a84663
--- /dev/null
+++ b/net-mail/swaks/swaks-20130209.0-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Swiss Army Knife SMTP; Command line SMTP testing, including TLS and AUTH"
+HOMEPAGE="http://www.jetmore.org/john/code/swaks"
+SRC_URI="http://www.jetmore.org/john/code/swaks/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+IUSE="ssl"
+
+DEPEND=">=dev-lang/perl-5.8.8"
+
+RDEPEND="${DEPEND}
+ >=dev-perl/Net-DNS-0.65
+ ssl? ( >=dev-perl/Net-SSLeay-1.35 )
+ >=virtual/perl-MIME-Base64-3.07
+ >=virtual/perl-Digest-MD5-2.39
+ >=virtual/perl-Time-HiRes-1.97
+ >=virtual/perl-Time-Local-1.19
+ >=dev-perl/Authen-NTLM-1.02
+ >=dev-perl/Authen-DigestMD5-0.04
+ virtual/perl-Digest-SHA"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-perl-5.18.patch
+}
+
+src_compile() {
+ /usr/bin/pod2man -s 1 doc/ref.pod swaks.1 || die "man page compulation failed"
+}
+
+src_install() {
+ newbin swaks swaks || die "newbin failed"
+ doman swaks.1 || die
+ dodoc README doc/*.txt || die
+}
diff --git a/net-mail/t-prot/Manifest b/net-mail/t-prot/Manifest
new file mode 100644
index 000000000000..ec9b94b63b8d
--- /dev/null
+++ b/net-mail/t-prot/Manifest
@@ -0,0 +1,5 @@
+DIST t-prot-3.4.tar.gz 46066 SHA256 39b7a5f0fefdea87885f3b6ab041e7148c600fb50017c3a283231f6dde5eca2b SHA512 6c86c10e5b381b93cbaa9382f8bd2c94eeb9c8ecec092d83cfbda5f0eea5933fb85397b364ea58e08ef93e6a06198447f167f0850959ddf16b8a18d3fe8953f0 WHIRLPOOL 47cba7b88ec012eea371a55db3cdaa2d05a6bd83e29219f562ba32cc1f97ece0c2959f9ea20efbdf947d5eed82c63f716500c6fc4538855f9069fd53be14504d
+EBUILD t-prot-3.4.ebuild 614 SHA256 bab9de3d4066c064eade7c4a00ea34c1c934f57cdb8e676e78c36e7674d8f101 SHA512 961c2997eb39c2b971da08f1ac5b80b49a2b20a827d7cc5845021606a8087fff9550affb238a19a20a1135784c73c897d52877d5e76a5a2d0121f54d9ec64037 WHIRLPOOL 661e72af343dddb640b2e6051ffe3bcf3e959f7ce1b62b8a11716486a138245a77deb09fcdbc11b4555c4968c7ef910f72575c0d22d77ecc25820ce9408f2981
+MISC ChangeLog 2420 SHA256 0ca682a6f43c6bc01fbda788b781c43c8d8bd46f7b489a4436275b59a7c169b7 SHA512 78c1c1540011989e728cb366cba905032b25ba73462d1cb930dc004846ee9a3e99bb54482ab1f9e0a8461a09369db27b810f2412450c306d48e087979014e2cb WHIRLPOOL 050c239b16c4d203ea2a3105122e92914c4af0af1fd9aa3313c543a9484c8c7c6e14ad3130823028d3b3e0547d37e2939b5f9aaa85b0754be6c4cdf7a52c5109
+MISC ChangeLog-2015 6868 SHA256 1fab6fe6ce78d4eaf7392ccb16aeb6096438819cabb2bb8df4a25eb6f312db49 SHA512 58851a6b226cdd8848c4f3536f86cc617f408f263940b03e51ae248d6da348ef7817437103c45605636472c1652ae4a1047b5b455eee19bb7d5149c5a4a2d96f WHIRLPOOL 87f7d1f3eee2b4c03364a5b01473da5654178fa8d9e46a4e5a7b7d601ff18398c86d52d35c53e2a195496994f2af8f933527877d018f215effcb6e2b649636ee
+MISC metadata.xml 919 SHA256 c89424b5f674064836c5c5190bf063c2678744b7292ffc3de5bfd6955094f1d4 SHA512 e159bed8ee54f18f220ddfb0323986056a4534b82800470655d22dc0709be00aa029f553dae09d6f0965f0e96b4ab3ad10fddef90eebb1b8fb86c3a8a5312ea6 WHIRLPOOL 4fccba47816a179c1f7130828dfa625dfa538e7f2c17d9cb9309a16472b03eefa65c2734798a0704dadca1972b78ef6ff1067a0fe5c42e97283ed106962df081
diff --git a/net-mail/t-prot/metadata.xml b/net-mail/t-prot/metadata.xml
new file mode 100644
index 000000000000..360d7833c5e4
--- /dev/null
+++ b/net-mail/t-prot/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ This program is a filter which shall improve the readability for messages
+ (emails and usenet postings) by *hiding* some annoying parts, e.g. mailing
+ list footers, signatures, and TOFU, as well as squeezing sequences of blank
+ lines or punctuation.
+
+ TOFU is an acronym that stands for "Text oben, Fullquote unten" (german
+ language) which means the style of sadly so many people that just leave all
+ the quotes in a reply and add some own lines above. This acronym is what
+ gave the script its name - TOFU Protection.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/t-prot/t-prot-3.4.ebuild b/net-mail/t-prot/t-prot-3.4.ebuild
new file mode 100644
index 000000000000..e4bf5442e85c
--- /dev/null
+++ b/net-mail/t-prot/t-prot-3.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="TOFU protection - display filter for RFC822 messages"
+HOMEPAGE="http://www.escape.de/~tolot/mutt/"
+SRC_URI="http://www.escape.de/~tolot/mutt/t-prot/downloads/${P}.tar.gz"
+
+LICENSE="BSD-4"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+RDEPEND="dev-lang/perl
+ dev-perl/Locale-gettext
+ virtual/perl-Getopt-Long"
+
+src_install() {
+ dobin t-prot
+ doman t-prot.1
+ dodoc ChangeLog README TODO
+ docinto contrib
+ dodoc contrib/{README.examples,{muttrc,mailcap,nailrc}.t-prot*,t-prot.sl*,filter_innd.pl}
+}
diff --git a/net-mail/tnef/Manifest b/net-mail/tnef/Manifest
new file mode 100644
index 000000000000..a533e9132e7e
--- /dev/null
+++ b/net-mail/tnef/Manifest
@@ -0,0 +1,7 @@
+DIST tnef-1.4.14.tar.gz 4649748 SHA256 26cd7c1a91fa080b4a05b9e81cdee4af9fbd5c6cda44db5f112a2ae9b3c37bd8 SHA512 8111797c4185103df8cb662d0a038f386922b51344c5f68300050d012bc2cf5bfa2da509619786e62c4d57d4ac8479d15b2ab526d7252bc82e19117fae9d048f WHIRLPOOL 42e69ac14f0df25d53f0d7e86fcc7755b10760110469bd16e76c290f5549feed3fa568c282df9b4e0eedb9ecb95ca89351c234476b312763359a5c017a6bf4b8
+DIST tnef-1.4.15.tar.gz 4650572 SHA256 ca76ad6d95665549c46f98160f5e4a63903ccf912f5c667727db3304a2978486 SHA512 51a8c3abd99065fda59ab4129b1a6ca4d58919bfe1b8b10951787ddb007fac69a82d93b7d2a7f1799a9b04f531960f3e1bb7424bcb7cd831b1eb3fcdfad0e720 WHIRLPOOL 1fe0a4ff478b224ccf24ee4a33dcfb9af6cace55e3f6bb1e23f18e60b8364cd1a944cd06457a811cb288e2aa5ed7b77fa6588bceb214b9070488c6e76018b01a
+EBUILD tnef-1.4.14.ebuild 457 SHA256 531c6bc02bd74f741a20ee5a04c5ac854a7364bbf270ef5558853ea73977e760 SHA512 9492ac35c4d4de7dabebe65dcdbd6883718fb07ad17181c004dfc09403407a0ac233bde5676c123916951ea93cd17ba46d6d17b0476f6cf86326110a549fa8dd WHIRLPOOL b92e026f221c1aa259169c0c1c98933332cb212e26d365212d023f131a4915096fa6795a55789dd3abb6a8ec609d470b86c55ea6cb7d71e11b202091fa46f6c2
+EBUILD tnef-1.4.15.ebuild 454 SHA256 0d6cc5915793a931c5ba420ded62495393c61d8c1acf7a9829f50f594aa0fc01 SHA512 009dd7688c0511925fd4a47366de2e19efcdad7a543d0e8f357a894aacaef6665af8356fc4e9041f4ba72ce777154630ac45e153a52406cc440d704fccb31bc9 WHIRLPOOL 7ff8d0029909f1b0dcbe3d8bfbea7076f07ad23fd0f5be7f8bbac89c70fcea5db646837887060d905f1648c1c75b537e9f2ea8121af938c8853a8b0c3e59fcfc
+MISC ChangeLog 2420 SHA256 ef6159670fc0778ca5ba8c6a1ae1552a9d432211e1773233517f659f1f7e7085 SHA512 5f03c650b525a31923388db09b0427b1bc18c4b543b79a1f63d199414bddbe765535f5d14a546a042202b8522198bd3ed295f6e713b23e15dda13dffbec678ac WHIRLPOOL 9a261ec761e1745af3cf61abe76ac997053b72e454ae3c12b47db478225b32a4a027402c15ea75a413af20fc32aa2ea729d79304834fed4ab8e12d73f885c285
+MISC ChangeLog-2015 8440 SHA256 12c2796aa07702541c87282744abef5d4b388c6a17448b6ada0e2153300e6ae5 SHA512 17066bcabc7d0f7b30727b46692f02c98de8937fdec800a71900314ea56ebc9f832c827b0c0bd004aedcaebd3befad68ea7341f5c1ed35929818f2272b169280 WHIRLPOOL 0bfed56178572dfb0ef09f518bd8d27c9e0edcb0238d1da0438d84c03845c798a3b9852cccb5ae7c9c5bb37d164e3622df4492e4d54efa3b3194078ada607696
+MISC metadata.xml 318 SHA256 701fbcd9e2d817896e01cdb84e704c6d853711276a4bd3641a9fe8d5f971d186 SHA512 e485756ad4674420d72bceb57b6e5145a7e46f2c7e4d2f5e60191af658dd7e2b1cd58af2a9980f5d1b8bb68b0fc22488349de6e3979f7ffb68cffcbb6a85111c WHIRLPOOL 2235dfaa8f0dba2bb656b868288eb3faf52840bf54fc2005747584fceae2879721d3b79084cf390ed649638e156acde0ef0e53eaf83a25f17cb62e0cec3c9d0e
diff --git a/net-mail/tnef/metadata.xml b/net-mail/tnef/metadata.xml
new file mode 100644
index 000000000000..91112302a793
--- /dev/null
+++ b/net-mail/tnef/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tnef</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/tnef/tnef-1.4.14.ebuild b/net-mail/tnef/tnef-1.4.14.ebuild
new file mode 100644
index 000000000000..8e0461aaa7b1
--- /dev/null
+++ b/net-mail/tnef/tnef-1.4.14.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Decodes MS-TNEF MIME attachments"
+HOMEPAGE="https://github.com/verdammelt/tnef/"
+SRC_URI="https://github.com/verdammelt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 hppa ppc ppc64 ~sparc x86"
+
+src_prepare() {
+ eautoreconf
+ eapply_user
+}
+
+src_test() {
+ emake -j1 check
+}
diff --git a/net-mail/tnef/tnef-1.4.15.ebuild b/net-mail/tnef/tnef-1.4.15.ebuild
new file mode 100644
index 000000000000..8db4423c7898
--- /dev/null
+++ b/net-mail/tnef/tnef-1.4.15.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Decodes MS-TNEF MIME attachments"
+HOMEPAGE="https://github.com/verdammelt/tnef/"
+SRC_URI="https://github.com/verdammelt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 hppa ppc ppc64 ~sparc x86"
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_test() {
+ emake -j1 check
+}
diff --git a/net-mail/tpop3d/Manifest b/net-mail/tpop3d/Manifest
new file mode 100644
index 000000000000..31514a11889d
--- /dev/null
+++ b/net-mail/tpop3d/Manifest
@@ -0,0 +1,7 @@
+AUX tpop3d-1.5.4-gold.patch 730 SHA256 5d143b97e61f2796d44363c710562c5dc6faeefc6ca4c54e59a6331d2d07710b SHA512 cf4b2ab8b6f51bf749e32a8204e850ef97426a6de14f3d5d5128725791838717b5b8cbcc4fb80a5534d6820200ebef50dde8d2e20e44133f029be3a2d72a57c6 WHIRLPOOL 9d73dbabce14c6e7d7d2a09c08587e7478a168ee487cea4ba7f34997be5663bdf5fa82472bba96f7597241ebaca5fa50bdc4d97cabef31342b58a5acbe284b53
+AUX tpop3d-1.5.4.init 607 SHA256 37db0a480263030ab1bcc8a572a2efb263440682f69aef29f3e18840d33c23f0 SHA512 004d2e5ca802ad7681c3f6392728602f54c13c6072d38b147be469e5f9ef09916f7c6c57af944c845e4b504f46fe4893323d5a125b7dc4bdfc2d479a5ee696e9 WHIRLPOOL 0adee2652dcb5a4b3af1702fe63a12ed864db02c4da6ec4df0d9ee539de97814e1e9b53fec18fc805948530d4a91bc1bcd70dadb9cfc61eb89cf6a0ef631ebc0
+DIST tpop3d-1.5.5.tar.gz 285027 SHA256 85aca837339b41f4c01c33dadd195cad7dd5942477e773845cbabc4af30cf258 SHA512 918a057c62d7518613daa6335d8fd5a2553d278dc4d6adbcf5ba3caa3ba561587f1d9e18f564690383e91f3ee2e5120af919d2799b69e93bfe3a3b8ea4f5d7e6 WHIRLPOOL 517256f649b0c11472bb0425b0c056c34eec4d18edf48dae8d0ead5e4ce23ca95559edb03a1bec8250411dd7890262fbbca57fa391aeff1656a1f0c11f7d6d24
+EBUILD tpop3d-1.5.5.ebuild 2993 SHA256 0278105952bfe1cf04a2cdf41d5fa430d60f96b5a609a6ecc5e5ea5a1814bef8 SHA512 5fbd7e2d64f9213033023cb8d9db048820afd9f1807b3b0b55180eb71fa799f37d367ca59abe7686ec05147530d9d87b8e27673b22cae9dc605da8264b587ddd WHIRLPOOL 094c33a74cded5d0ed30dcfedc456a5ca2771db0d2a5d3cc5165daa6dbd07bb29e41b2b2ca9403aaeba06bce8816f8d83c68f160074f2cdc8b844647e096f7eb
+MISC ChangeLog 2723 SHA256 d096166b4dff4281adc66de9f4b41e251357dd0c3b8a8617964d15eed3e14339 SHA512 80431134a668dd9d512070ed8864852dfbd573ec015b88cd12ea03d8824f7d77efe76dca4244e8bfe0031f456e73ac481f0c750a078130e527432bac74114ef8 WHIRLPOOL 83700487301d2517cd7d28adee809f0b07815e400d872c3790894c83bab2171958b75109e9834f1ebd5a3ab263aacc96380ca21f83583a9a55cd503386be7d8c
+MISC ChangeLog-2015 6384 SHA256 bfa82d8fe2679b33e6314b39d2bddc8a380a636f51e52198ce49776b36a560e8 SHA512 1dc60f4d65e45e8d11a6fbdeceb22c70cb1fb67aaca21bb0e64d68d8aa9f4e8b30b9427e528880491a04c552f4c0423bcc65f24e2d75e52791403fa81fcff309 WHIRLPOOL 85fe25b2f7e16627c98a7183a328adcb394aef795d0d54a77792419a6e6ff7de78b99e9f12142ca110d43f62040afdba8391f7e83ccad0529fdd3923ff11b23f
+MISC metadata.xml 726 SHA256 f67cfa060c493af86f9aecdf63cf371c6623e095d90c2d43f9a3257fb38742cf SHA512 b01521aa9ea935446e6c78ea73b0693e38273feb3d8d304baa2356d81f4ec2c8ee4ca58357182c346451f9dece6358f5f9823dc19a4723a6cfe166efaa488cc4 WHIRLPOOL 2f953f8e7f13ecbda713675c5dc131d729752a007e0640ba58fda15b530c55166895fc211482dfe97a321b5553d0f0397c9a782228cafc2a79f0039499110968
diff --git a/net-mail/tpop3d/files/tpop3d-1.5.4-gold.patch b/net-mail/tpop3d/files/tpop3d-1.5.4-gold.patch
new file mode 100644
index 000000000000..149dc9430dd0
--- /dev/null
+++ b/net-mail/tpop3d/files/tpop3d-1.5.4-gold.patch
@@ -0,0 +1,20 @@
+commit 8ed9a7721a406fea7dfc7f0a5eb6e68f3d63a99e
+Author: Eray Aslan <eras@gentoo.org>
+Date: Fri Jun 3 13:52:55 2011 +0000
+
+ Fix linking against gold
+
+diff --git a/configure.in b/configure.in
+index ac16864..a260652 100644
+--- a/configure.in
++++ b/configure.in
+@@ -587,7 +587,8 @@ fi
+ # OpenSSL
+ if test x"$enable_tls" = x"yes" || test x"$enable_sha1_passwords" = x"yes"
+ then
+- AC_CHECK_LIB2(ssl, SSL_new, [], AC_MSG_ERROR([[TLS/SHA1 passwords enabled, but can't find libssl]]), -lcrypto)
++ AC_CHECK_LIB(ssl, SSL_new, [], AC_MSG_ERROR([[TLS/SHA1 passwords enabled, but can't find libssl]]))
++ AC_CHECK_LIB(crypto, SHA1_Init, [], AC_MSG_ERROR([[TLS/SHA1 passwords enabled, but can't find libcrypto]]))
+ fi
+
+ # GNU dbm
diff --git a/net-mail/tpop3d/files/tpop3d-1.5.4.init b/net-mail/tpop3d/files/tpop3d-1.5.4.init
new file mode 100644
index 000000000000..ad6243871d61
--- /dev/null
+++ b/net-mail/tpop3d/files/tpop3d-1.5.4.init
@@ -0,0 +1,29 @@
+#!/sbin/openrc-run
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/tpop3d/tpop3d.conf ] ; then
+ eerror "You need an /etc/tpop3d/tpop3d.conf file to run tpop3d"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting tpop3d"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/sbin/tpop3d -- -f /etc/tpop3d/tpop3d.conf \
+ -p /var/run/tpop3d.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping tpop3d"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/tpop3d
+ eend $?
+}
diff --git a/net-mail/tpop3d/metadata.xml b/net-mail/tpop3d/metadata.xml
new file mode 100644
index 000000000000..77624f3ecb7b
--- /dev/null
+++ b/net-mail/tpop3d/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="authexternal">Enable authentication by an external program</flag>
+ <flag name="drac">Enable dynamic relay support in the tpop3d pop3 server</flag>
+ <flag name="flatfile">Enable authentication against /etc/passwd-style flat files</flag>
+ <flag name="passwd">Enable /etc/passwd authentication</flag>
+ <flag name="sha1">Use OpenSSL for sha1 encrypted passwords.</flag>
+ <flag name="shadow">Enable /etc/shadow authentication</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/tpop3d/tpop3d-1.5.5.ebuild b/net-mail/tpop3d/tpop3d-1.5.5.ebuild
new file mode 100644
index 000000000000..f348994935ba
--- /dev/null
+++ b/net-mail/tpop3d/tpop3d-1.5.5.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="An extensible POP3 server with vmail-sql/MySQL support"
+HOMEPAGE="https://savannah.nongnu.org/projects/tpop3d/"
+SRC_URI="mirror://nongnu/tpop3d/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE="authexternal debug drac flatfile gdbm ldap maildir mbox mysql offensive
+ pam passwd perl postgres +sha1 shadow ssl tcpd"
+
+RDEPEND="sha1? ( >=dev-libs/openssl-0.9.6 )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ ldap? ( >=net-nds/openldap-2.0.7 )
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )
+ perl? ( >=dev-lang/perl-5.6.1 )
+ pam? ( virtual/pam
+ >=net-mail/mailbase-0.00-r8 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
+
+DEPEND="${RDEPEND}
+ drac? ( mail-client/drac )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.5.4-gold.patch"
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=""
+ local noauth=0
+
+ # Various authentication methods
+ use authexternal && myconf="${myconf} --enable-auth-other"
+ use flatfile && myconf="${myconf} --enable-auth-flatfile"
+ use gdbm && myconf="${myconf} --enable-auth-gdbm"
+ use ldap && myconf="${myconf} --enable-auth-ldap"
+ use mysql && myconf="${myconf} --enable-auth-mysql"
+ use pam || myconf="${myconf} --disable-auth-pam"
+ use passwd && myconf="${myconf} --enable-auth-passwd"
+ use perl && myconf="${myconf} --enable-auth-perl"
+ use postgres && myconf="${myconf} --enable-auth-pgsql"
+ use shadow && myconf="${myconf} --enable-auth-passwd --enable-shadow-passwords"
+
+ use authexternal || use flatfile || use gdbm || use ldap || use mysql ||
+ use pam || use passwd || use perl || use postgres || use shadow ||
+ noauth=1
+
+ if [[ ${noauth} -eq 1 ]]; then
+ ewarn "None of tpop3d's authentication mechanism USE flags are set."
+ ewarn "As a result tpop3d will be built with /etc/passwd authentication only."
+ myconf="${myconf} --enable-auth-passwd"
+ fi
+
+ # Other optional features
+ use debug && myconf="${myconf} --enable-backtrace"
+ use maildir && myconf="${myconf} --enable-mbox-maildir"
+ use mbox || myconf="${myconf} --disable-mbox-bsd"
+ use offensive || myconf="${myconf} --disable-snide-comments"
+ use sha1 || myconf="${myconf} --disable-sha1-passwords"
+ use ssl && myconf="${myconf} --enable-tls"
+ use tcpd && myconf="${myconf} --enable-tcp-wrappers"
+
+ # Install mail-client/drac for integration with tpop3d
+ use drac && myconf="${myconf} --enable-drac"
+
+ econf ${myconf}
+
+ # Causes crash with "stack smashing attack" on connect, because of bug in
+ # SSP (bug #115285)
+ filter-flags -fstack-protector
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodir /etc/tpop3d
+
+ if use pam ; then
+ dodir /etc/pam.d
+ dosym /etc/pam.d/pop3 /etc/pam.d/tpop3d
+ fi
+
+ newinitd "${FILESDIR}/${PN}-1.5.4.init" tpop3d
+}
+
+pkg_postinst() {
+ elog "Read the tpop3d.conf manpage"
+ elog "Please create /etc/tpop3d/tpop3d.conf to fit your configuration"
+}
diff --git a/net-mail/up-imapproxy/Manifest b/net-mail/up-imapproxy/Manifest
new file mode 100644
index 000000000000..1ee3fdb5be76
--- /dev/null
+++ b/net-mail/up-imapproxy/Manifest
@@ -0,0 +1,10 @@
+AUX imapproxy.initd 394 SHA256 360fff528625dae79506e4cabe7eda66daa437ef0b9e71b84143acca0a653c7a SHA512 ba5fe198d99d502c45acd45a5e65fbdccc5319b1080ebf9fe93d32a10a22328993f56c0a28a3d028b12781259dfe11ce1599598e9aae2017c613c8983ae1e9ae WHIRLPOOL 5f336f7a155b930389f8f4eb02f2b9849a9ea4618ea9406c2255b0a1bc0da3065ca939fd0487401d2168bc70496450b1f860a16ae822986e6973e529cbe2d8e5
+AUX imapproxyd.8 1984 SHA256 b1fcedc62f40664c6e820b2cc0e967d45aefa8334cc373dcf206bceba84beba2 SHA512 1368e4843fb026943beb0e547c679c319aa90a834792f856e6f06dd8a91e8142a8fe93a622b4289ed2cea21c12875e6fa37678b71297dfd24a9d2cd6cad52268 WHIRLPOOL e34a58b3c8c3a81d3bd8442b55fd6fda91976cbc11a508eef8a9374150438fcc5797316c3774e19869d6f21cd6fbcdb5cbd1f5fb94dc8fe1d516896aa3d4fc1c
+AUX pimpstat.8 836 SHA256 3bd8bb0ed654eda55123b5fc7e4b1a1bac4dfd822e59a91805cd5eab652e4cd8 SHA512 3fa58de9b9cdfaf4f9d3d04e5182ec1398e7d17fa505403266b16fa9ecf33736033b305a99addb81343450666b9f60afe8e905273ec4b8a34e8086fffb2aedcd WHIRLPOOL 3638d2d381a5733d120cd3ebee4ad76b450d76c0ae45408adb962aa9420ee47128cee4016c421dd31441ec7a10a8e9f3b1de9306969ed51775cd8a4ba6e7c2c9
+AUX up-imapproxy-1.2.7-ldflags.patch 521 SHA256 fb72b47b7c90c27fe07850a07cc51c2115c67b5973aa8b1f86419b4da3cd076a SHA512 56bed6cb49e0a7821ca40a9f73b586601f8e6c323266fb82065e3199df9d934fe4e60dfd386dbdf47b1fddeff9a678478d4f972fca715724aea801762dca0d45 WHIRLPOOL 8193c7397119de3c51158e312ec05f5ce680fc16c5c08a5df24f51bff409cb45731f2668271fdd7f16432d6d59e8f1ecc990e2c8ee2d938ba75a1cfdc8ff6ed6
+AUX up-imapproxy-1.2.7-tinfo.patch 555 SHA256 238dd2108d3e2067ead5ff4b82c07d0d700acde9eaf1ea85f03b1d2509bc9cbc SHA512 e4cd2a72337481d4060a091a4540f70997e79863ceb999b9ee64c03042b020718939caabed20706ecb4b876a0cce078559468946c5e29a7afbc185dca70f983a WHIRLPOOL 790e55eef5aa4236fa8c520b6e49600075ff0fd828f998bc09e835e80fc83b1fa333e96093b7ad66930e7b6f34637208489763e5786cf163eed48ba773ded6b1
+DIST squirrelmail-imap_proxy-1.2.7.tar.bz2 111651 SHA256 dd8ad40e3e457bd76fc9f19ef1c0d89911e3e3cc722415d1183f765dcac1ae48 SHA512 4b341fe5ea13241983c780ad2487ad5bd97136652b095f54ccf8f61d0f0818236d0d6e1005d46811cf3bd15896160fb172a40ae805ccc3ce7d6fc984099d2b2e WHIRLPOOL b0627781294cff742b189d802aa7e69ef6e60ffacefb800476f8dd28bbe973dc59c6e0b87d3fa1429ce06cf02b23c9fc9b6943ef9eaa7cb6f7f0ae8010a4a3e6
+EBUILD up-imapproxy-1.2.7.ebuild 1452 SHA256 8657f19044ae811011f2064f161ae93d26dc51bcd33ee8409b63db9d9bb5a086 SHA512 617b7473ca0ba6bac5be4d719d022612c5435eacbe203c84205596fd4b09a78e4e7538580f4afab6e186441add8e6b9c78bfb804d4b9be6db54287dea81fa97d WHIRLPOOL 985c70ac54192efba8f563e06cb5fb6a4510142dc8970e55fe2c09cca3beb9e2ef36559617c60d55ace5bb415ec94fa6895b4c0aa602dbe7208afbf095f9863e
+MISC ChangeLog 2724 SHA256 f9f97401d31e761ae40fd0c3512ab2b1681d414c8fbb5bc8231fbb92e94b7c0e SHA512 bc1ae9e87b9d92866f8ee35d8a7763b0969bf368c54c39fd6a173046290de62315407e8542eab19ea3bea8699327b26bb70d1c922622c6f809dfebf82aca06e2 WHIRLPOOL 69a2c480660004df5bb9fb2845b031f25e63bf68c0ade0d3323824ac201f96db374b96ba620349b4e76fd150bdced26459d263e2f68046bd126487acab916824
+MISC ChangeLog-2015 4659 SHA256 958485c2bea5d5fccfbd05948992f450e5567648b747ff65109a5aa378b675fe SHA512 e41f082faf3aa863ef2c9deea73948b2ea3ed30eaf7d361dfac6a4055258374b132263c2936fca4939365ad2d7f3eed216e346f29f15dc98d09503369134f752 WHIRLPOOL 4aa60f27dfb0dc3363b07477f0b77c0b3c82b342046da8c745e641ed387b2f24c06deb8cd7f3682f0ca5ee430fd3f7677e6adf50e0743f16e21b1316d91bc134
+MISC metadata.xml 336 SHA256 9fbcaaec689f29d1d25facc25e7265f0d4ed64a972da2cc3218660bcab2ed87d SHA512 2ffa6f2d766aeee72cb51c1892d01d9ebd185ca3b7a6b8572b4792a83eebbbfb74fc89a207ca8e2e76fa1362efd690dfad32851c34f9c6b631971883c6c03bf7 WHIRLPOOL 3557b47efac0300056399caa0320ddfd0733b6ae31828fd924ff12373406504e2e3d422b3c1b222af8658e60c3cb5f0fbeb90c13f1a73b59debe6184caa9596a
diff --git a/net-mail/up-imapproxy/files/imapproxy.initd b/net-mail/up-imapproxy/files/imapproxy.initd
new file mode 100644
index 000000000000..a95389027452
--- /dev/null
+++ b/net-mail/up-imapproxy/files/imapproxy.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use logger
+ need net
+}
+
+start() {
+ ebegin "Starting up-imapproxy"
+ start-stop-daemon --start --quiet --exec /usr/sbin/imapproxyd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping up-imapproxy"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/imapproxyd
+ eend $?
+}
diff --git a/net-mail/up-imapproxy/files/imapproxyd.8 b/net-mail/up-imapproxy/files/imapproxyd.8
new file mode 100644
index 000000000000..1c70d9525756
--- /dev/null
+++ b/net-mail/up-imapproxy/files/imapproxyd.8
@@ -0,0 +1,64 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH IMAPPROXYD 8 "Mar 12, 2004" "Dave McMurtrie" "IMAP proxy daemon"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.SH NAME
+.B imapproxyd
+\- IMAP proxy daemon
+.SH SYNOPSIS
+.B imapproxyd
+.RI
+[
+.B -f
+.RI
+<config file name> ]
+.RI
+[
+.B -p
+.RI
+<pidfile name> ]
+.br
+.SH DESCRIPTION
+This manual page documents briefly the
+.B imapproxyd
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+UP-ImapProxy proxies IMAP transactions between an IMAP client and an IMAP
+server. The general idea is that the client should never know that it is
+not talking to the real IMAP server, but ImapProxy caches server connections.
+.PP
+ImapProxy was written to compensate for webmail clients that are unable to
+maintain persistent connections to an IMAP server. Most webmail clients
+need to log in to an IMAP server for nearly every single transaction; This
+behaviour can cause tragic performance problems on the IMAP server.
+ImapProxy tries to deal with this problem by leaving server connections
+open for a short time after a webmail client logs out. When the webmail
+client connects again, ImapProxy will determine if there is a cached
+connection available and reuse it if possible.
+.BR
+.SH FILES
+By default, UP-ImapProxy reads /etc/imapproxy.conf on startup.
+This can be changed by using the
+.I -f
+option
+.PP
+Unless foreground_mode has been enabled, UP-ImapProxy will write its PID to to
+a PID-file. It defaults to /var/run/imapproxy.pid, but can be overridden with
+the
+.I -p
+option
+.SH SEE ALSO
+.BR pimpstat (8),
+.br
+.SH AUTHOR
+This manual page was written by Jose Luis Tallon
+.nh
+<jltallon@adv-solutions.net>,
+for the Debian GNU/Linux system (but may be used by others).
+
+
diff --git a/net-mail/up-imapproxy/files/pimpstat.8 b/net-mail/up-imapproxy/files/pimpstat.8
new file mode 100644
index 000000000000..2466e7ce2780
--- /dev/null
+++ b/net-mail/up-imapproxy/files/pimpstat.8
@@ -0,0 +1,27 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH PIMPSTATS 8 "Mar 12, 2004" "Dave McMurtrie" "IMAP proxy daemon"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.SH NAME
+ pimpstat \- UP-ImapProxy statistics
+.SH SYNOPSIS
+.B pimpstat
+.RI [options]
+.br
+.SH DESCRIPTION
+This manual page documents briefly the
+.B pimpstat
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.SH SEE ALSO
+.BR imapproxyd (8),
+.br
+.SH AUTHOR
+This manual page was written by Jose Luis Tallon
+.nh
+<jltallon@adv-solutions.net>,
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch
new file mode 100644
index 000000000000..4ba1b6b725e5
--- /dev/null
+++ b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch
@@ -0,0 +1,19 @@
+commit 98876519b581c0427b81d772f56b25ad3d0121df
+Author: Eray Aslan <eras@gentoo.org>
+Date: Sun Jun 5 19:43:41 2011 +0300
+
+ respect LDFLAGS
+
+diff --git a/Makefile.in b/Makefile.in
+index 1b235b8..8ac1e4f 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -70,7 +70,7 @@ $(XYD_BIN): $(XYD_OBJ)
+ $(CC) -o $@ $(XYD_OBJ) $(LDFLAGS) $(XYD_LIB)
+
+ $(TAT_BIN): $(TAT_OBJ)
+- $(CC) -o $@ $(TAT_OBJ) $(TAT_LIB)
++ $(CC) -o $@ $(TAT_OBJ) $(LDFLAGS) $(TAT_LIB)
+
+ clean:
+ rm -f ./src/core $(XYD_OBJ) $(TAT_OBJ) $(XYD_BIN) $(TAT_BIN)
diff --git a/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch
new file mode 100644
index 000000000000..cbe19e8c0eb7
--- /dev/null
+++ b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch
@@ -0,0 +1,20 @@
+--- a/configure.in
++++ b/configure.in
+@@ -121,12 +121,16 @@
+ save_LIBS="$LIBS"
+ LIB_CURSES=""
+ AC_CHECK_LIB(curses, initscr, LIB_CURSES="-lcurses", [ curses_found=no ])
+-if test "$curses_found" == no; then
++if test "$curses_found" = no; then
+ AC_CHECK_LIB(ncurses, initscr, LIB_CURSES="-lncurses",
+ AC_ERROR([Can't compile without curses!!!]))
+ fi
+
+ LIBS="$save_LIBS"
++
++AC_SEARCH_LIBS(stdscr, tinfo curses ncurses, [LIB_CURSES="$LIB_CURSES $ac_cv_search_stdscr"],
++ AC_MSG_ERROR([Cannot find a library providing stdscr]))
++
+ AC_SUBST(LIB_CURSES)
+
+
diff --git a/net-mail/up-imapproxy/metadata.xml b/net-mail/up-imapproxy/metadata.xml
new file mode 100644
index 000000000000..25a4937fb525
--- /dev/null
+++ b/net-mail/up-imapproxy/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">squirrelmail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild b/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild
new file mode 100644
index 000000000000..accddba17434
--- /dev/null
+++ b/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WANT_AUTOCONF="2.1"
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Proxy IMAP transactions between an IMAP client and an IMAP server"
+HOMEPAGE="http://www.imapproxy.org/"
+SRC_URI="mirror://sourceforge/squirrelmail/squirrelmail-imap_proxy-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="kerberos ssl +tcpd"
+
+RDEPEND="sys-libs/ncurses
+ kerberos? ( virtual/krb5 )
+ ssl? ( dev-libs/openssl )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
+DEPEND="${RDEPEND}
+ sys-apps/sed"
+
+S=${WORKDIR}/squirrelmail-imap_proxy-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-ldflags.patch
+ epatch "${FILESDIR}/${P}"-tinfo.patch
+
+ sed -i \
+ -e 's:in\.imapproxyd:imapproxyd:g' \
+ README Makefile.in include/imapproxy.h || die
+
+ #buffer oveflow
+ #http://lists.andrew.cmu.edu/pipermail/imapproxy-info/2010-June/000874.html
+ sed -i \
+ -e "/define BUFSIZE/s/4096/8192/" \
+ -e "/define MAXPASSWDLEN/s/64/8192/" \
+ include/imapproxy.h
+
+ eautoreconf
+}
+
+src_configure() {
+ tc-export CC
+ econf \
+ $(use_with kerberos krb5) \
+ $(use_with ssl openssl) \
+ $(use_with tcpd libwrap)
+}
+
+src_install() {
+ dosbin bin/imapproxyd bin/pimpstat
+
+ insinto /etc
+ doins scripts/imapproxy.conf
+
+ newinitd "${FILESDIR}"/imapproxy.initd imapproxy
+
+ dodoc ChangeLog README README.known_issues
+ use ssl && dodoc README.ssl
+
+ doman "${FILESDIR}"/*.8
+}
diff --git a/net-mail/uw-imap/Manifest b/net-mail/uw-imap/Manifest
new file mode 100644
index 000000000000..86e718a05ced
--- /dev/null
+++ b/net-mail/uw-imap/Manifest
@@ -0,0 +1,13 @@
+AUX uw-imap-2004c-amd64-so-fix.patch 675 SHA256 8f80dff390a5d87afd71ab07bbff0eed00acb14b3bfa2355f33ba22e833af202 SHA512 7275a7597e346e99e7d4f94423cdc4cfb947a5a93e6e29de8f15ede933dcdcb9a2e951f05e486d93a147bc5def842a089a94e2a9c63b4e841c92c39e7560b37b WHIRLPOOL 4a45bbe60939a8381449be38f4bf641c893522a5cdb24ea11ab87e5d448db4763b0c223f803eea90e083f8d13cf8b25678009bef8cc7b87037c7e223837cd0df
+AUX uw-imap-ldflags.patch 1643 SHA256 344eb67975420a661082fee770c4faf48e57ac29c7d95f3caf4f69223c979791 SHA512 ae3739fe3574a5decf15ce35f51818c8707aa883688ac584ebaa9ba7073c8f0ff606e9a948ecb71a95b98ffb8b644be133f01b3aaeb1a1aefa67085741f2b405 WHIRLPOOL 9690a6c27c797e1b0f29c263a77313b1c013b9574103e11c94f80a67584ab4962a5af913817805242d427ce42d2fb3c1edb8cf8da0669da7e38bdfefeb732dc7
+AUX uw-imap.xinetd 377 SHA256 167f3c29cdaab2dbf32a5cb6a8eee6d19639d97e714a60615be9791ef190ea4d SHA512 7575337158ba49788325bf304be1fe0be08dac37258c51cabf7106d2d935a4ca00a6218f22a44cae40c2da01aa5525552d5707e876ffd771e328c57d4e82d447 WHIRLPOOL 56ffa2a51228cdfc420cc97d6bfc9988a0675c318822d5c5364f45f37806706fb28a9e67792c66946758ec47bee1eb1eaf48fd84eff7d680813ab1540afb6678
+AUX uw-imaps.xinetd 371 SHA256 d5111e90ded1b97ee3006ff9283ce5af8dce4c74184e27274c9a2c2c57383111 SHA512 5962875a4a254a852582f3a71b7eb2861589a1d4592da8cefff0e945000ecd035a843c735a652adb647fc02aba93ffda6d6e3fadf7c69aefd86e440100301e58 WHIRLPOOL c15f208830c6e3fa4de906e36d268f9d4951ae27c0d53533553c7f6f2d8525f98f8bf6ed34daed2a902ebbf2cdfae03d847bad8d712c04f921717900ac8c6a07
+AUX uw-ipop2.xinetd 448 SHA256 9820e2ad08fa15d70c98f08c22e90d2f26735edf844de1fb50e5737937c26499 SHA512 f840d5e7ab234a5dbe3eedd2078aca0063324eba4257479fb8659497f91e3aec09e5394f057c904b380394f4987a065cb9e9206c613bb6cabf6d78474548b230 WHIRLPOOL 2c94931019d403ae5a56ca9875acb45165832766d855588bc1e454e21c5e084648bbb33d7bac566491d01be0408ae6bc4bc0469df5c5f96ec879fd3f55abd6e6
+AUX uw-ipop3.xinetd 357 SHA256 405b79e3343e5f7fad2debd4c8144ca7d0d4e7abadcebb9191691acb833268c3 SHA512 ccaaf4b6972ebcce8ece756562e51b1a0c752c50378930abb807ba878842d1afa8d88fecc091ee0f228149abdd3426fafa06bc882c3d684e44dabc4d0d32e347 WHIRLPOOL 937f77538de981ef824ced1b14d2760f56bb75cb8a3c533b924377cfb34c5196d0e88219f85322ed72448e68a034a4842143280cf906bf43652ae1933cc8d238
+AUX uw-ipop3s.xinetd 357 SHA256 7446f00962eee9da5bb79bdfb91e07108c0a9125aacc3e04515c8ff4e0e37bf1 SHA512 f60eed919c76d1a4d6f4d4f75c9801003660602b13bbf6c850ddc33c0a1a2ff087454844bdfb1caa4bb8e5239cab8cfacf84bbda485c793f14199a510d71013a WHIRLPOOL 7fa34e08e27e581f484cb2e52e707505521a3761ba79b96cf4439584df2a2c407461207532956ea1ff5c18b62c67cbffcef85ddac2977f12fdf645c3a949729e
+DIST imap-2007f.tar.Z 2793529 SHA256 870e95f6bd19265832a88fd89b77c54c841c59022fd21e69254050c8b1005e3c SHA512 2c728deaf66d23158c61ae55ff94f05d2a1cf0168002760321ca30c6ee1c58c0a4c7bc14ece0097ea662df6c7c49be3b91c8e5e943724c9e2736800fa9298dae WHIRLPOOL 655536d61a178940363241ad8c94a28be75e90abf3b8c585eb61364a6394ff49bb5fd5dc6de4bec5f992f03b592e583df04f0103e8f3c167aa68a476c574c4ec
+EBUILD uw-imap-2007f-r1.ebuild 4671 SHA256 905e9e1d83fce911bc1e349a4a04dc01bda94fd93d1ec455747ce2dbc5610d19 SHA512 5a2b876a9ca61d7b05a85a7be06065aea9964bd9446f1a8d71d9ccde819a96787a2f8a57fd2cbaaa86e9981a2bd73d774879d57364b3c53acd8f18eaecaa4c52 WHIRLPOOL e99d77c82940928f85749adec71329b11c51fdf27a35aff84698569206cd22c918c8f7a89528600dae6c4271958b5ce330c5c9184c7ac785575fff5de8cdf10d
+EBUILD uw-imap-2007f.ebuild 4407 SHA256 fc6708200fb24b46fe72f195f4c64bf9bd5111889fc6a6d45fe9ebce48568808 SHA512 04fdd4d0f9f0bfae8b05c49107eb53b06fc3471ffe27ca0f143ae5780a839e20338878c45159b61a985de3c1987ae5db40f69530d4190993a6ef2d08f8908c63 WHIRLPOOL 74524319e9caef1ad6fdbfc08fce9d5e76a668242f80a764812f8a0d6af928a82db54cd491c9f81c3d3124711c7c78230ab9cbf1044315bbe9cdac36176717d8
+MISC ChangeLog 2682 SHA256 b6c3a5d6e0142b2c5d97ad6dd58faa135c0414d50c2548b80da0489d5e1f9875 SHA512 1a475b5275f18f5972fdcd44a524ecceeddd2f78da6ff26ab40f6b719763eb4312bb6f5808c2dbb4fb598b870e331240de6ed27ed351fa172856e29f0e2a44ef WHIRLPOOL 7f7e381628bf43a20feace4be6f93fdf42026f5927fb7602677fa8a7894745754cc73df87e3d70a55d52d91c947d8ff3cd426b6291b1389a05f34f8d06e94616
+MISC ChangeLog-2015 19182 SHA256 d672fcd778ff03342f929bf78c1982f97d7b5ce79275d5e279eb166d586d2658 SHA512 1cdd6ce39f1ac915d3a93ed0d0139c6cc4d0e25c0a211808857cbdbf9cd254882c9566a0e6013f84cbd3ce2a731ac9c7678f822596aeea4bd889e0b32c43ab16 WHIRLPOOL a3de4e0b45ae739c8a62914ed3d3caa5ec755f2dfc4620f7bd4fa4b12631fda683d3a2dd68da74c411266dc753547f851c75533447fde7aac5ef06efd853d4e7
+MISC metadata.xml 352 SHA256 6ffbc3423ccee89258e4cd081678639c37457ea7bb087069ddd6e23b0b0ac65f SHA512 ba06f1bcbf2445ea006525dd5bbd6dc9d7fb62dbc12dc90ca9ba5c9cecce3cdc9d4dfe31ba5e7a11128de4ba82e97b1b37b7f3240db1cd932c6165bc28f22324 WHIRLPOOL 59c0b7700ca50016b84464a92353b58b02976222348cc6c0a08e1245afa9988a200c6d4321e8b481a64e293d653c8bceb556b97ce47500d8371c6eaefbcb5551
diff --git a/net-mail/uw-imap/files/uw-imap-2004c-amd64-so-fix.patch b/net-mail/uw-imap/files/uw-imap-2004c-amd64-so-fix.patch
new file mode 100644
index 000000000000..1400fc254c6d
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imap-2004c-amd64-so-fix.patch
@@ -0,0 +1,13 @@
+diff -ruN src/osdep/unix/Makefile src/osdep/unix/Makefile
+--- src/osdep/unix/Makefile 2005-01-29 22:43:25.739341544 +0000
++++ src/osdep/unix/Makefile 2005-01-29 22:43:50.375596264 +0000
+@@ -912,6 +912,9 @@
+ -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" > OSCFLAGS
+ echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
+ echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
++ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \
++ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \
++ >> ARCHIVE
+ echo $(OS) > OSTYPE
+ ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
+ ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)
diff --git a/net-mail/uw-imap/files/uw-imap-ldflags.patch b/net-mail/uw-imap/files/uw-imap-ldflags.patch
new file mode 100644
index 000000000000..41bd0925ed14
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imap-ldflags.patch
@@ -0,0 +1,52 @@
+diff --git a/Makefile b/Makefile
+index e6e4987..8acfe23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -257,7 +257,7 @@ EXTRACFLAGS=
+
+ # Extra linker flags (additional/alternative libraries, etc.)
+
+-EXTRALDFLAGS=
++EXTRALDFLAGS=${LDFLAGS}
+
+
+ # Special make flags (e.g. to override make environment variables)
+diff --git a/src/mlock/Makefile b/src/mlock/Makefile
+index d425da8..9c3020b 100644
+--- a/src/mlock/Makefile
++++ b/src/mlock/Makefile
+@@ -36,7 +36,7 @@ CFLAGS = -O2 -pipe -march=core2
+ all: mlock
+
+ mlock: mlock.o
+- $(CC) $(CFLAGS) -o mlock mlock.o
++ $(CC) $(CFLAGS) ${LDFLAGS} -o mlock mlock.o
+
+ install: mlock
+ chgrp mail mlock
+diff --git a/Makefile b/Makefile
+index 8acfe23..70f889d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -698,7 +698,7 @@ rebuild:
+ @echo Rebuilding c-client for `$(CAT) OSTYPE`...
+ @$(TOUCH) SPECIALS
+ $(CD) c-client;$(MAKE) all CC=`$(CAT) CCTYPE` \
+- CFLAGS="`$(CAT) CFLAGS`" `$(CAT) SPECIALS`
++ CFLAGS="`$(CAT) CFLAGS`" LDFLAGS=${LDFLAGS} `$(CAT) SPECIALS`
+
+ rebuildclean:
+ $(SH) -c '$(RM) rebuild || true'
+diff --git a/src/osdep/unix/Makefile b/src/osdep/unix/Makefile
+index ef1d059..a53318c 100644
+--- a/src/osdep/unix/Makefile
++++ b/src/osdep/unix/Makefile
+@@ -969,7 +969,7 @@ onceenv:
+ -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS
+ echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
+ echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
+- echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \
++ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` `$(CAT) LDFLAGS` -shared \
+ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \
+ >> ARCHIVE
+ echo $(OS) > OSTYPE
diff --git a/net-mail/uw-imap/files/uw-imap.xinetd b/net-mail/uw-imap/files/uw-imap.xinetd
new file mode 100644
index 000000000000..959a45573bc1
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imap.xinetd
@@ -0,0 +1,14 @@
+# default: off
+# description: The IMAP service allows remote users to access their mail using \
+# an IMAP client such as Mutt, Pine, fetchmail, or Netscape \
+# Communicator.
+service imap2
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/imapd
+ log_on_success += DURATION USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/files/uw-imaps.xinetd b/net-mail/uw-imap/files/uw-imaps.xinetd
new file mode 100644
index 000000000000..8fb2f3500a78
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imaps.xinetd
@@ -0,0 +1,15 @@
+# default: off
+# description: The IMAPS service allows remote users to access their mail \
+# using an IMAP client with SSL support such as Netscape \
+# Communicator or fetchmail.
+service imaps
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/imapd
+ log_on_success += DURATION USERID
+ log_on_failure += USERID
+ disable = yes
+}
+
diff --git a/net-mail/uw-imap/files/uw-ipop2.xinetd b/net-mail/uw-imap/files/uw-ipop2.xinetd
new file mode 100644
index 000000000000..8a7ac2ae9b41
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-ipop2.xinetd
@@ -0,0 +1,15 @@
+# default: off
+# description: The POP2 service allows remote users to access their mail \
+# using an POP2 client such as fetchmail. In most cases, clients \
+# support POP3 instead of POP2, so enabling this service is rarely \
+# necessary.
+service pop-2
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/ipop2d
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/files/uw-ipop3.xinetd b/net-mail/uw-imap/files/uw-ipop3.xinetd
new file mode 100644
index 000000000000..60acaf219cf2
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-ipop3.xinetd
@@ -0,0 +1,14 @@
+# default: off
+# description: The POP3 service allows remote users to access their mail \
+# using an POP3 client such as Netscape Communicator, mutt, \
+# or fetchmail.
+service pop-3
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/ipop3d
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/files/uw-ipop3s.xinetd b/net-mail/uw-imap/files/uw-ipop3s.xinetd
new file mode 100644
index 000000000000..a8b2ad19d971
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-ipop3s.xinetd
@@ -0,0 +1,14 @@
+# default: off
+# description: The POP3 service allows remote users to access their mail \
+# using an POP3 client such as Netscape Communicator, mutt, \
+# or fetchmail.
+service pop3s
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/ipop3d
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/metadata.xml b/net-mail/uw-imap/metadata.xml
new file mode 100644
index 000000000000..7b9eb3253953
--- /dev/null
+++ b/net-mail/uw-imap/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="clearpasswd">Enables cleartext logins outside of SSL sessions</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/uw-imap/uw-imap-2007f-r1.ebuild b/net-mail/uw-imap/uw-imap-2007f-r1.ebuild
new file mode 100644
index 000000000000..0e4154f69a6a
--- /dev/null
+++ b/net-mail/uw-imap/uw-imap-2007f-r1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils flag-o-matic ssl-cert multilib
+
+MY_P="imap-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="UW server daemons for IMAP and POP network mail protocols"
+SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z"
+HOMEPAGE="http://www.washington.edu/imap/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="ipv6 +ssl kerberos clearpasswd"
+
+DEPEND="!net-libs/c-client
+ >=sys-libs/pam-0.72
+ >=net-mail/mailbase-0.00-r8[pam]
+ ssl? ( dev-libs/openssl )
+ kerberos? ( app-crypt/mit-krb5 )"
+
+RDEPEND="${DEPEND}
+ >=net-mail/uw-mailutils-${PV}
+ sys-apps/xinetd"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !net-mail/dovecot
+ !mail-mta/courier
+ !net-mail/courier-imap
+ !net-mail/cyrus-imapd"
+
+REQUIRED_USE="!clearpasswd? ( ssl )"
+
+src_unpack() {
+ unpack ${A}
+ # Tarball packed with bad file perms
+ chmod -R ug+w "${S}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2004c-amd64-so-fix.patch
+ epatch "${FILESDIR}/${PN}-ldflags.patch"
+
+ # no interactive build
+ sed -i -e "/read x; case/s/^/#/" Makefile || die
+ sed -i -e "/make noip6/s/.*/\t@echo/" Makefile || die
+
+ # Now we must make all the individual Makefiles use different CFLAGS,
+ # otherwise they would all use -fPIC
+ sed -i -e "s|\`cat \$C/CFLAGS\`|${CFLAGS}|g" src/dmail/Makefile \
+ src/imapd/Makefile src/ipopd/Makefile src/mailutil/Makefile \
+ src/mlock/Makefile src/mtest/Makefile src/tmail/Makefile \
+ || die "sed failed patching Makefile FLAGS."
+
+ # Now there is only c-client left, which should be built with -fPIC
+ append-flags -fPIC
+
+ sed -i \
+ -e "s:BASECFLAGS=\".*\":BASECFLAGS=:g" \
+ -e 's,SSLDIR=/usr/local/ssl,SSLDIR=/usr,g' \
+ -e 's,SSLCERTS=$(SSLDIR)/certs,SSLCERTS=/etc/ssl/certs,g' \
+ src/osdep/unix/Makefile || die
+
+ sed -i \
+ -e "s/CC=cc/CC=$(tc-getCC)/" \
+ -e "s/ARRC=ar/ARRC=$(tc-getAR)/" \
+ -e "s/RANLIB=ranlib/RANLIB=$(tc-getRANLIB)/" \
+ src/osdep/unix/Makefile || die
+
+ sed -i -e "s,GSSDIR=/usr/local,GSSDIR=/usr,g" \
+ src/osdep/unix/Makefile.gss || die
+
+ # Make the build system more multilib aware
+ sed \
+ -e "s:^SSLLIB=\$(SSLDIR)/lib:SSLLIB=\$(SSLDIR)/$(get_libdir):" \
+ -e "s:^AFSLIB=\$(AFSDIR)/lib:AFSLIB=\$(AFSDIR)/$(get_libdir):" \
+ -i src/osdep/unix/Makefile || die "Makefile sed fixing failed"
+}
+
+src_compile() {
+ local mymake ipver ssltype target
+ ipver="IP=4"
+ target=lnp
+ use ipv6 && ipver="IP=6"
+ use kerberos && mymake="EXTRAAUTHENTICATORS=gss"
+ use kernel_FreeBSD && target=bsf
+ if use ssl ; then
+ if use clearpasswd ; then
+ ssltype=unix
+ else
+ ssltype=unix.nopwd
+ fi
+ else
+ ssltype=none
+ fi
+
+ emake -j1 SSLTYPE=${ssltype} ${target} ${mymake} ${ipver} EXTRACFLAGS="${CFLAGS}" EXTRALDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dosbin imapd/imapd ipopd/ipop?d dmail/dmail tmail/tmail
+ dobin mlock/mlock
+
+ dolib.so c-client/libc-client.so.1.0.0
+ dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so
+ dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so.1
+
+ insinto /usr/include/imap
+ doins src/c-client/{c-client,flstring,mail,imap4r1,rfc822,misc,smtp,nntp,utf8,utf8aux}.h
+ doins src/c-client/{env,fs,ftl,nl,tcp}.h
+ doins src/osdep/unix/env_unix.h
+ doins c-client/linkage.{c,h}
+
+ dolib.a c-client/c-client.a
+ dosym c-client.a /usr/$(get_libdir)/libc-client.a
+
+ doman src/ipopd/ipopd.8 src/imapd/imapd.8
+ doman src/dmail/dmail.1 src/tmail/tmail.1
+ dodoc README docs/*.txt docs/CONFIG docs/RELNOTES
+
+ docinto rfc
+ dodoc docs/rfc/*.txt
+
+ # install headers - bug #375393
+ cp c-client/*.h "${D}"/usr/include/imap/ || die
+ cp c-client/linkage.c "${D}"/usr/include/imap/ || die
+ #exclude these dupes (can't do it before now due to symlink hell)
+ rm "${D}"/usr/include/imap/os_*.h
+
+ # gentoo config stuff
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/uw-imap.xinetd imap
+ newins "${FILESDIR}"/uw-ipop2.xinetd ipop2
+ newins "${FILESDIR}"/uw-ipop3.xinetd ipop3
+ newins "${FILESDIR}"/uw-ipop3s.xinetd ipop3s
+ newins "${FILESDIR}"/uw-imaps.xinetd imaps
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/certs/imapd.pem && \
+ -e "${ROOT}"/etc/ssl/certs/imapd.key ]]; then
+ einfo "Creating SSL certificate for IMAP"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-UW-IMAP Server}"
+ install_cert /etc/ssl/certs/imapd
+ fi
+ if ! [[ -e "${ROOT}"/etc/ssl/certs/ipop3d.pem && \
+ -e "${ROOT}"/etc/ssl/certs/ipop3d.key ]]; then
+ einfo "Creating SSL certificate for POP3"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-UW-POP3 Server}"
+ install_cert /etc/ssl/certs/ipop3d
+ fi
+ fi
+}
diff --git a/net-mail/uw-imap/uw-imap-2007f.ebuild b/net-mail/uw-imap/uw-imap-2007f.ebuild
new file mode 100644
index 000000000000..b0baee1ca4e6
--- /dev/null
+++ b/net-mail/uw-imap/uw-imap-2007f.ebuild
@@ -0,0 +1,157 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils flag-o-matic ssl-cert
+
+MY_P="imap-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="UW server daemons for IMAP and POP network mail protocols"
+SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z"
+HOMEPAGE="http://www.washington.edu/imap/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="ipv6 +ssl kerberos clearpasswd"
+
+DEPEND="!net-libs/c-client
+ >=sys-libs/pam-0.72
+ >=net-mail/mailbase-0.00-r8[pam]
+ ssl? ( dev-libs/openssl )
+ kerberos? ( app-crypt/mit-krb5 )"
+
+RDEPEND="${DEPEND}
+ >=net-mail/uw-mailutils-${PV}
+ sys-apps/xinetd"
+
+# get rid of old style virtual - bug 350792
+# all blockers really needed?
+RDEPEND="${RDEPEND}
+ !net-mail/dovecot
+ !mail-mta/courier
+ !net-mail/courier-imap
+ !net-mail/cyrus-imapd"
+
+REQUIRED_USE="!clearpasswd? ( ssl )"
+
+src_unpack() {
+ unpack ${A}
+ # Tarball packed with bad file perms
+ chmod -R ug+w "${S}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2004c-amd64-so-fix.patch
+ epatch "${FILESDIR}/${PN}-ldflags.patch"
+
+ # no interactive build
+ sed -i -e "/read x; case/s/^/#/" Makefile || die
+
+ # Now we must make all the individual Makefiles use different CFLAGS,
+ # otherwise they would all use -fPIC
+ sed -i -e "s|\`cat \$C/CFLAGS\`|${CFLAGS}|g" src/dmail/Makefile \
+ src/imapd/Makefile src/ipopd/Makefile src/mailutil/Makefile \
+ src/mlock/Makefile src/mtest/Makefile src/tmail/Makefile \
+ || die "sed failed patching Makefile FLAGS."
+
+ # Now there is only c-client left, which should be built with -fPIC
+ append-flags -fPIC
+
+ sed -i \
+ -e "s:BASECFLAGS=\".*\":BASECFLAGS=:g" \
+ -e 's,SSLDIR=/usr/local/ssl,SSLDIR=/usr,g' \
+ -e 's,SSLCERTS=$(SSLDIR)/certs,SSLCERTS=/etc/ssl/certs,g' \
+ src/osdep/unix/Makefile
+
+ sed -i \
+ -e "s/CC=cc/CC=$(tc-getCC)/" \
+ -e "s/ARRC=ar/ARRC=$(tc-getAR)/" \
+ -e "s/RANLIB=ranlib/RANLIB=$(tc-getRANLIB)/" \
+ src/osdep/unix/Makefile
+
+ sed -i -e "s,GSSDIR=/usr/local,GSSDIR=/usr,g" \
+ src/osdep/unix/Makefile.gss
+
+ # no interactive build
+ sed -i -e "/make noip6/s/.*/\t@echo/" Makefile
+}
+
+src_compile() {
+ local mymake ipver ssltype target
+ ipver="IP=4"
+ target=lnp
+ use ipv6 && ipver="IP=6"
+ use kerberos && mymake="EXTRAAUTHENTICATORS=gss"
+ use kernel_FreeBSD && target=bsf
+ if use ssl ; then
+ if use clearpasswd ; then
+ ssltype=unix
+ else
+ ssltype=unix.nopwd
+ fi
+ else
+ ssltype=none
+ fi
+
+ emake -j1 SSLTYPE=${ssltype} ${target} ${mymake} ${ipver} EXTRACFLAGS="${CFLAGS}" EXTRALDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dosbin imapd/imapd ipopd/ipop?d dmail/dmail tmail/tmail
+ dobin mlock/mlock
+
+ dolib.so c-client/libc-client.so.1.0.0
+ dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so
+ dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so.1
+
+ insinto /usr/include/imap
+ doins src/c-client/{c-client,flstring,mail,imap4r1,rfc822,misc,smtp,nntp,utf8,utf8aux}.h
+ doins src/c-client/{env,fs,ftl,nl,tcp}.h
+ doins src/osdep/unix/env_unix.h
+ doins c-client/linkage.{c,h}
+
+ dolib.a c-client/c-client.a
+ dosym c-client.a /usr/$(get_libdir)/libc-client.a
+
+ doman src/ipopd/ipopd.8 src/imapd/imapd.8
+ doman src/dmail/dmail.1 src/tmail/tmail.1
+ dodoc README docs/*.txt docs/CONFIG docs/RELNOTES
+
+ docinto rfc
+ dodoc docs/rfc/*.txt
+
+ # install headers - bug #375393
+ cp c-client/*.h "${D}"/usr/include/imap/ || die
+ cp c-client/linkage.c "${D}"/usr/include/imap/ || die
+ #exclude these dupes (can't do it before now due to symlink hell)
+ rm "${D}"/usr/include/imap/os_*.h
+
+ # gentoo config stuff
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/uw-imap.xinetd imap
+ newins "${FILESDIR}"/uw-ipop2.xinetd ipop2
+ newins "${FILESDIR}"/uw-ipop3.xinetd ipop3
+ newins "${FILESDIR}"/uw-ipop3s.xinetd ipop3s
+ newins "${FILESDIR}"/uw-imaps.xinetd imaps
+}
+
+pkg_postinst() {
+ if use ssl; then
+ # Let's not make a new certificate if we already have one
+ if ! [[ -e "${ROOT}"/etc/ssl/certs/imapd.pem && \
+ -e "${ROOT}"/etc/ssl/certs/imapd.key ]]; then
+ einfo "Creating SSL certificate for IMAP"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-UW-IMAP Server}"
+ install_cert /etc/ssl/certs/imapd
+ fi
+ if ! [[ -e "${ROOT}"/etc/ssl/certs/ipop3d.pem && \
+ -e "${ROOT}"/etc/ssl/certs/ipop3d.key ]]; then
+ einfo "Creating SSL certificate for POP3"
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-UW-POP3 Server}"
+ install_cert /etc/ssl/certs/ipop3d
+ fi
+ fi
+}
diff --git a/net-mail/uw-mailutils/Manifest b/net-mail/uw-mailutils/Manifest
new file mode 100644
index 000000000000..93e9a01ebc25
--- /dev/null
+++ b/net-mail/uw-mailutils/Manifest
@@ -0,0 +1,7 @@
+AUX uw-mailutils-2004g.patch 1210 SHA256 4d2369c984ae1fc473feed94e3012e92b4c9dc4ea1d6cddf8a3d983115ff3113 SHA512 af99ee3d05cdd81549d258d392bf6cf7948577b383ffc3a0314f39a86b36f48abd8194b91922dc40518ff6c61dd1d2258fd9281954222d67b667b8868569718c WHIRLPOOL fb2ae2005a40dc0c8ed03a2669a5af789d2d221d9482ccebe4ab9100a406b7100afc74bae6f5380540c3fac0d553a24dc0fe5c962b7974d53304071d0a2000bc
+AUX uw-mailutils-ssl.patch 391 SHA256 10a04c7b5f6bbd4e9033db679053289846fe6d4ef6bc1fb3e6130d19649799ee SHA512 4fcc9930209f728b901565cda00c2a4446a024bcf1abfe5928399f62bf5540f56ed449b6ff401db09eb53b61e4c6bfd4a97da2a67a2942ff8a4394530eadcffa WHIRLPOOL 95c69e4a75ad0f5eeded8c299f4df26952d0ec6bcc5711a168610bf634a0799c1857ac7ed8dc2b7dfa68b45bd7d6725fd752621065d683ec901cf447cad3ed29
+DIST imap-2007f.tar.Z 2793529 SHA256 870e95f6bd19265832a88fd89b77c54c841c59022fd21e69254050c8b1005e3c SHA512 2c728deaf66d23158c61ae55ff94f05d2a1cf0168002760321ca30c6ee1c58c0a4c7bc14ece0097ea662df6c7c49be3b91c8e5e943724c9e2736800fa9298dae WHIRLPOOL 655536d61a178940363241ad8c94a28be75e90abf3b8c585eb61364a6394ff49bb5fd5dc6de4bec5f992f03b592e583df04f0103e8f3c167aa68a476c574c4ec
+EBUILD uw-mailutils-2007f.ebuild 1212 SHA256 720d01dc7b914b667e7222ddc5e5846721b0df70e23bb1ed789b558ef0ca95f7 SHA512 c6ac7afa6009c8163e33d18d7a530761e7dbce2034f8c81c48ed413b58cc2d0b00204bea81a2afcecce1b55e6cb55acbd52c52f1a78319a51a3a8c56c6d59395 WHIRLPOOL 7bd04a8820d6615c65fd8bc9847ccceb2747e6dc16dafc278fead1a4d6d64d45f7709ab0e2037d540bf5c3ba22978ad77db0aca0f71d164d4c06c15187d8e432
+MISC ChangeLog 2508 SHA256 6b0efcae122db90bd31763c8641aa03f837f156b6b8f03e81ca6397fec47b223 SHA512 26ccfbdc6d242ce08aa48e7d54b6374e0c99aeae3e26dcb299df13579e5d0c8f1b8996e2d7cb9e78a160bdf98e34b34b0702bb787a44141ed2f8f8c4457b1951 WHIRLPOOL 29ecb6cfc8600df0008186472cce569cbd371490fdfdb7a2dcdbddc3d0bcdd4dcbbb3b2e7715634704a0bb830467001a147072ed696527328aae8cb053015fca
+MISC ChangeLog-2015 5623 SHA256 b3dbdcffdfe37c9bd7822c2559f8f15722d6a02d4c049855fd9288ccbccb6b63 SHA512 d1bc53714f1363a24972cb285bc6f332e78e2227019a5c8f8cee55890cbdcfa54264baf565f3a981b3410a6c963bfc964583abfc87aa260afb2ce242b7b5dc87 WHIRLPOOL 3ddf8fcf57e517e77ddc8cc15e99e290877fc4ae2936b71d46983ae615bdf0174083439e461d78254c451bdaaa4e66773e06e810edc5a475ca1f606b64d378b7
+MISC metadata.xml 354 SHA256 dcf7cb158ebaf1e906e1469413579df3073b3b47f9c0b3f2f4d6896c76de7a1d SHA512 f07c546c9558055933bb275a504a7a38f15343ca89cdad8aded334445022ea7775b7c4ec6b7cee59faf2cd2d86e2b9f35c5dc07ce00eb8481e54c24231708977 WHIRLPOOL 8699befd5b4184e3c0e8f80244a8061fdf2d5aeec13fe1b0933ed5946f56cbd0365e32cab1b66e44e43dabf337a8939efe377a7ad2a05e5e50b27e29328022e2
diff --git a/net-mail/uw-mailutils/files/uw-mailutils-2004g.patch b/net-mail/uw-mailutils/files/uw-mailutils-2004g.patch
new file mode 100644
index 000000000000..320388357c1d
--- /dev/null
+++ b/net-mail/uw-mailutils/files/uw-mailutils-2004g.patch
@@ -0,0 +1,38 @@
+--- imap-2004g/Makefile 2005-04-30 22:50:20.000000000 +0200
++++ imap-2004g-mailutil/Makefile 2005-10-06 13:21:14.000000000 +0200
+@@ -504,12 +504,7 @@
+ $(TOOLS)/$@ "$(LN)" src/charset c-client
+ $(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client
+ $(TOOLS)/$@ "$(LN)" src/mtest mtest
+- $(TOOLS)/$@ "$(LN)" src/ipopd ipopd
+- $(TOOLS)/$@ "$(LN)" src/imapd imapd
+ $(TOOLS)/$@ "$(LN)" src/mailutil mailutil
+- $(TOOLS)/$@ "$(LN)" src/mlock mlock
+- $(TOOLS)/$@ "$(LN)" src/dmail dmail
+- $(TOOLS)/$@ "$(LN)" src/tmail tmail
+ $(LN) $(TOOLS)/$@ .
+
+ build: OSTYPE rebuild rebuildclean bundled
+@@ -540,13 +535,8 @@
+ bundled:
+ @echo Building bundled tools...
+ $(CD) mtest;$(MAKE)
+- $(CD) ipopd;$(MAKE)
+- $(CD) imapd;$(MAKE)
+ $(CD) mailutil;$(MAKE)
+ @$(SH) -c '(test -f /usr/include/sysexits.h ) || make sysexitwarn'
+- $(CD) mlock;$(MAKE) || true
+- $(CD) dmail;$(MAKE) || true
+- $(CD) tmail;$(MAKE) || true
+
+
+ sysexitwarn:
+@@ -559,7 +549,7 @@
+
+ clean:
+ @echo Removing old processed sources and binaries...
+- $(SH) -c '$(RM) an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true'
++ $(SH) -c '$(RM) an ua OSTYPE SPECIALS c-client mtest mailutil || true'
+ $(CD) tools;$(MAKE) clean
+
+
diff --git a/net-mail/uw-mailutils/files/uw-mailutils-ssl.patch b/net-mail/uw-mailutils/files/uw-mailutils-ssl.patch
new file mode 100644
index 000000000000..0214030e3ffa
--- /dev/null
+++ b/net-mail/uw-mailutils/files/uw-mailutils-ssl.patch
@@ -0,0 +1,13 @@
+--- imap-2007e/src/osdep/unix/Makefile 2009-07-05 10:00:54.000000000 +0300
++++ imap-2007e/src/osdep/unix/Makefile 2009-07-05 10:04:42.000000000 +0300
+@@ -54,8 +54,8 @@
+
+ # Extended flags needed for SSL. You may need to modify.
+
+-SSLDIR=/usr/local/ssl
+-SSLCERTS=$(SSLDIR)/certs
++SSLDIR=/usr
++SSLCERTS=/etc/ssl/certs
+ SSLKEYS=$(SSLCERTS)
+ SSLINCLUDE=$(SSLDIR)/include
+ SSLLIB=$(SSLDIR)/lib
diff --git a/net-mail/uw-mailutils/metadata.xml b/net-mail/uw-mailutils/metadata.xml
new file mode 100644
index 000000000000..ec8a6451efdb
--- /dev/null
+++ b/net-mail/uw-mailutils/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ Mail utilities common to University of Washington software packages.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/uw-mailutils/uw-mailutils-2007f.ebuild b/net-mail/uw-mailutils/uw-mailutils-2007f.ebuild
new file mode 100644
index 000000000000..55ed9cd6938e
--- /dev/null
+++ b/net-mail/uw-mailutils/uw-mailutils-2007f.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils flag-o-matic
+
+MY_P="imap-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Mail utilities from the UW"
+HOMEPAGE="http://www.washington.edu/imap/"
+SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="pam ssl"
+
+DEPEND="pam? ( virtual/pam )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}
+ !<net-mail/uw-imap-${PV}"
+
+src_prepare() {
+ chmod -R ug+w "${S}"
+
+ epatch "${FILESDIR}/${PN}-2004g.patch"
+ epatch "${FILESDIR}/${PN}-ssl.patch"
+
+ # no interactive build
+ sed -i -e "/read x; case/s/^/#/" Makefile || die
+
+ sed -i -e "s|\`cat \$C/CFLAGS\`|${CFLAGS}|g" \
+ src/mailutil/Makefile \
+ src/mtest/Makefile || die "sed failed patching Makefile CFLAGS."
+
+ append-flags -fPIC
+}
+
+src_compile() {
+ local port=slx
+ use elibc_FreeBSD && port=bsf
+ use pam && port=lnp
+ local ssltype=none
+ use ssl && ssltype=nopwd
+ emake -j1 "${port}" EXTRACFLAGS="${CFLAGS}" EXTRALDFLAGS="${LDFLAGS}" SSLTYPE="${ssltype}"
+}
+
+src_install() {
+ dobin mailutil/mailutil mtest/mtest
+ doman src/mailutil/mailutil.1
+}
diff --git a/net-mail/vacation/Manifest b/net-mail/vacation/Manifest
new file mode 100644
index 000000000000..d3d68ee539b8
--- /dev/null
+++ b/net-mail/vacation/Manifest
@@ -0,0 +1,5 @@
+DIST vacation-1.2.7.0.tar.gz 63849 SHA256 a430f3aade251ec61adf3b7a52867b014ae47a5d3db785c01a67bd8e3145e3ff SHA512 50473777fa5d36c1b7ab438e1072a56298f8155c7aaa8f8d8daaa1dee5f85f54a7b17903c416e67dbac734368b1cdbbc599cd9aa58132b0ecb145ae8e058e97d WHIRLPOOL abc371e5b0aeae3324428ba530ea63ec654d191c6bafeb1958d969a656d91e9aa1cfd4cd9afe66cd1602335fa809b0b65e3f3c544a28eb9d59d3f96423f727bc
+EBUILD vacation-1.2.7.0.ebuild 845 SHA256 85a03c07f9ebee3184b84db7cf6cc2ab369c8b19a0aae774fc7eecf01cda634a SHA512 9b7232257da24ba675a54c03eea3980d8814b9c2a5e56e4fafa4cd1d734fb6a65b38373adeec59c86e61d8ff0e6beb025874015a0b732c7db2dd0d2b73e99663 WHIRLPOOL ba0db88d808db698d313536973d81792fc187e69e36e49f060dc6ba0de9e87bf8cff2ce944493d59cc1de66a84634115b70b8d598932f86a2302e6da255184ad
+MISC ChangeLog 2529 SHA256 63c674436daa5c6a85874b46566a3df83cd6609491f293b15ce3045a749d6c30 SHA512 8467f1bae13f55f6790977120466ed1c66cf56edfdaaa9c6b3a383e43ccdd90d2d87c07981d55ce47ccf8d7ab17cc4debf8c48b840b7b2e1157b6aaf7f90388c WHIRLPOOL 28c8d9c222a7135ac4ae6ba52b63c34191e290a3c548cecb5f748a03dd0feddbef23422d956769d0f20d507836da44d1fffef4deb0a502a5e2446bb1d5199d07
+MISC ChangeLog-2015 2929 SHA256 ea881f28713bdd4609dcbbd0709ddbfd284f9327d485b82602d35dd6ae6bccfd SHA512 8d2ef94c1efa07b185091ea8b111eb777c0385f9b88cdd93b4d9e9d19acb25f2af245b1af383ab981c12c3ca59f04b42ee72496ddff5b4420408fea869d66ba6 WHIRLPOOL b51f43529b945211f8adbc71ce111181ed4fc1f39dad2ed5decd4a496a63aad72e78fc44e46ab4e6ac2608e2f6c33a461b9d677b573255e304c372b83b3b8960
+MISC metadata.xml 250 SHA256 4b51eda6bd23131db39f7c43f2dd1890944f5dadad712e68573c4682d9484a69 SHA512 eb1ce5a9aee93887dfd2e2492529a60e4b95b9dbf2dd1bb49cfa4cc00cc1388fe8c2d7f0c51a9155df1b0f7f04035aca2e3320ead405517e3da2d34914515c1e WHIRLPOOL c6b988dba2196af11f4af6d3662a25e7c6ad7a5ee653a09c0cda84f2b562e10cbca8764fa7ab18d93abe6837a15c408d69acfb3ac8fe4bdd6f278bfec288fccc
diff --git a/net-mail/vacation/metadata.xml b/net-mail/vacation/metadata.xml
new file mode 100644
index 000000000000..442218c8ed31
--- /dev/null
+++ b/net-mail/vacation/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">vacation</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/vacation/vacation-1.2.7.0.ebuild b/net-mail/vacation/vacation-1.2.7.0.ebuild
new file mode 100644
index 000000000000..2eaf3b4e99a2
--- /dev/null
+++ b/net-mail/vacation/vacation-1.2.7.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="automatic mail answering program"
+HOMEPAGE="http://vacation.sourceforge.net/"
+SRC_URI="mirror://sourceforge/vacation/${P}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 x86"
+SLOT="0"
+IUSE=""
+
+RDEPEND="virtual/mta
+ sys-libs/gdbm"
+DEPEND="${RDEPEND}
+ !mail-mta/sendmail"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i -e "s:install -s -m:install -m:" Makefile
+ sed -i -e "s:-Xlinker:${LDFLAGS} -Xlinker:" Makefile
+}
+
+src_compile () {
+ emake CC=$(tc-getCC) ARCH=$(tc-arch-kernel) CFLAGS="${CFLAGS} -DMAIN" || die "emake failed."
+}
+
+src_install () {
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+ emake BINDIR="${D}/usr/bin" MANDIR="${D}usr/share/man/man" install || die \
+ "make install failed"
+}
diff --git a/net-mail/vchkuser/Manifest b/net-mail/vchkuser/Manifest
new file mode 100644
index 000000000000..6b5bfa9ce715
--- /dev/null
+++ b/net-mail/vchkuser/Manifest
@@ -0,0 +1,5 @@
+DIST vchkuser-0.4.tar.gz 5890 SHA256 314cf937e24b6460ca816fde0d25119054ef880373151082e913aeccf9f92edd SHA512 3c33a1c26abeaf45ca90ac1f1c9cf7b1ae6eba3f6e5a8d0d8d0d12dce98fbada4209cd916af7af69d7682c174d88741b1140e5c758a08e0d196e73f2b6145699 WHIRLPOOL d33f2305c2fc5802f6cd6cccebf679df01e5626bc72d05523eb5405cd9b291d1a4dac866fd8bfd7606a93e68b9de6d9acd64395cd08fcf5dbc0be52cc9787f45
+EBUILD vchkuser-0.4.ebuild 930 SHA256 0c7ad8435634454a6ae7e7d92ce4eab9525b179c95c4c4e6bdff7c6921bca59f SHA512 e8098caa073b0a59b38b6782ee8059362f057fbaee3cbf37a3a5c54d43667b3ec43e905d573ee186ce08a67a474b823b09076401bf499e208d3e38b4549f6928 WHIRLPOOL 3e241c9094322d95f2b4079cca24b975daf622dd66b7eac468fe7be811b03baf25d392b14544ddab0207cba4c88ffedce30ee5ab5871d0de2a4a3b43acced181
+MISC ChangeLog 2768 SHA256 3ed533175e552c533056f787819afcc48d5eef9e1d6f0e99a71be49847d94e43 SHA512 bf35289043246cc189e03e8289e8f06789a0e29fabc3e07d03ab44feceed9894512bd0505754158971991a6c990f18abe9809de555f80ebfbaf90b1a1eacdac1 WHIRLPOOL e741d3812a48be8ff3893ee8a6b2f109d01f0ee412a461a2cfbb0b49eaebbf4e7230065336eea93b8537ef62c382a6c31120601c8cfe6f44ca618d36e57732a6
+MISC ChangeLog-2015 971 SHA256 41a4f9af67c009375d4fac25bc4abdc5eda7a6d35a2dd3ddd0906a406cfce36e SHA512 33a37a453e0e0667b465bc33f1ac2788611968b86a5f34c57d9e8966f98a1a4522cd229e65e53c81f490220e216da7e57c5f975792a8086e8aae5424d4088ebe WHIRLPOOL 6a58f6922802e1a73e9db249ade312e676f15e620aa337921efa725f5a8acfee7f79d35ad3cb81ca77e4b9a80f27144b2cee8f619d2a9d438458c97fa69eee9d
+MISC metadata.xml 400 SHA256 a5588e1930d418e175590346ed408d85cd077dedf8bfc98c4626333ba15c7b82 SHA512 15d3f36f238f73da85b7befce7f36e7ffc03a8207f1a828d9c7b371d4497ad004378cf2508db95317c19a94bf027a753021fcd53c5f36e88072f0efc4db87da4 WHIRLPOOL 20921f2188cfebd2f83321a7894d42b3c2c505f3b535cc2ae630bb84c1f54c9fccd152383702cf308a4c779a1df7b4557d169360c38cf15c29353d3386cb00c2
diff --git a/net-mail/vchkuser/metadata.xml b/net-mail/vchkuser/metadata.xml
new file mode 100644
index 000000000000..252c0de963a7
--- /dev/null
+++ b/net-mail/vchkuser/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="debug">Enables debug messages to syslog</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">hollow/vchkuser</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/vchkuser/vchkuser-0.4.ebuild b/net-mail/vchkuser/vchkuser-0.4.ebuild
new file mode 100644
index 000000000000..f007e274eaec
--- /dev/null
+++ b/net-mail/vchkuser/vchkuser-0.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit autotools qmail
+
+DESCRIPTION="qmail-spp plugin to check recipient existance with vpopmail"
+HOMEPAGE="https://github.com/hollow/vchkuser"
+SRC_URI="https://github.com/hollow/vchkuser/tarball/v${PV} -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+DEPEND="net-mail/vpopmail
+ || ( mail-mta/netqmail[qmail-spp] mail-mta/qmail-ldap[qmail-spp] )"
+RDEPEND=""
+
+S="${WORKDIR}/hollow-${PN}-8a048f7"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug) \
+ --with-vpopuser=vpopmail \
+ --with-qmailgroup=nofiles \
+ --with-vpopmaildir=/var/vpopmail \
+ --with-qmaildir=${QMAIL_HOME}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake failed"
+ fowners vpopmail:nofiles "${QMAIL_HOME}"/plugins/vchkuser
+ fperms 4750 "${QMAIL_HOME}"/plugins/vchkuser
+}
diff --git a/net-mail/vpopmail/Manifest b/net-mail/vpopmail/Manifest
new file mode 100644
index 000000000000..5e78044c0a02
--- /dev/null
+++ b/net-mail/vpopmail/Manifest
@@ -0,0 +1,12 @@
+AUX 99vpopmail 64 SHA256 63468f27aa1a588482b843d899d98eaeda2b4152d28b8d120dcdf8d3610532a4 SHA512 8e9323006ddafae6e4ee8da2e0c9753ce11fd3f6e7c8bb6931ccc147ab6c9782c71d704222343be902f8784aa27a4425fd04a1f11cff5421dfc25fd76d3de953 WHIRLPOOL 2fcd1e603dce3cb7c174fedf3189b8a060e64595d3a0836b15082a46cee612c8fad4f5742eb6ae5490ed5adfb16a14a431b55090c9e60140ac6c00ae62f19e4b
+AUX vpopmail-5.4.9-access.violation.patch 918 SHA256 cf6840d7dc6131969ef5a69b1d520a5d01d7414e1638a0eeebd12c5689f380ac SHA512 8d877f5057550d25a77a617e81913e9fd94875ab1f1dd6c41e5d49756ff89cd2e089c48d48c81f990d901d5fcfbd0c467b2b0d1a3cdf8c7e78581c1f368e64fd WHIRLPOOL a4111f32fbba3604285c22d01d7f53202571573144d33a1dae866f4738748db0f98b3908f845c32919f579abf019bdb32b8f40418529c339c4fb8448014cda3f
+AUX vpopmail-Maildir-dotmaildir-fix.sh 1346 SHA256 497244010307b1df59861df0a56538737b7ab39ec37fe7a743ec871efd168820 SHA512 201ad103157add727560bc1596042ae621d1645abf912aa3b3ec1af71aaf65dff92c967f000b7a126e9f2eb5e351838c78ffee855402d93bdcf89e96ebb0d0e9 WHIRLPOOL aded913f4347f65132403a0c3c160fcc897cfc83f4fa3e3ce4c9f6e1b9db5a126775b9ef4e4bbd96c71f3ae7593d1f0aaac1853293fd9b1f12faa720f850b5a8
+AUX vpopmail-double-free.patch 411 SHA256 30baf7ccd16af5ab375e03b56764c367f589f0cf1e0535fcc98b5c591829b055 SHA512 f12c29172e0bf0da173847c30db552dfb49e437805c74e0d03064dffb7a1bf71b0d897a5f13d019fd25cb103e394f0f869778de42288e6c6cc3e8612037b5190 WHIRLPOOL 8678656496fdea52e9f40ed3da113ac7c71cd24371e87108bd6bf9800ed55ecc392f044ff33ca694852772b6e815c6e167a5a3c0ec9dcc70e1bc31f840597820
+AUX vpopmail-lazy.patch 324 SHA256 aa1f8123433b82cdae554c943c8731359e226c598cea22496fdd63a11ab58fc4 SHA512 42f1e24ee850b9e858a271d734246981c506d74556a62d0124ebe8e842553e32e57603975545d8f49d76e3cca832a73ef61ef191a0a1cf07f9343fe609ecc0c5 WHIRLPOOL 6a00bc14728d58f49257350312950ac32aa8f9689fd1e53105da50464b32ea54f862411def1771a4a597681ab97c88463a4e05c892841c447b428789eb67eeda
+AUX vpopmail-vpgsql.patch 2666 SHA256 fdd5bed1b568b6a5ca7eaeccc2e41e873828e215dac465e72e12a3c4696a47b9 SHA512 a8067aabfac181637f1366be0215c885ad380e44bbae1a69f9b0438b0a99cd194c2ce2068acf25142c9bfe6623ca8a77b1a9b82790f7faeb6e921c20cd1c1e20 WHIRLPOOL f771ae0758f783090b902b349ab1405522325ee90bf16a9bbf9b979fd9d43190ded495cca09e7c14339b8f58652dc445b41f7204a7bde036f6514bd0a7ed18f9
+DIST vpopmail-5.4.33.tar.gz 612271 SHA256 383c7436dfb18e773336f608f1771fc08559143c4f3938a5807a0cc5994c44f4 SHA512 abd5060d709c661d95ca442c6f77c4c27cf30a3c6790fc36d76ccf379ed2e08c1f0af697b2bcc57176a2cdb2cb67f6c27236d7b3fa69a135fa87f45a5df208ab WHIRLPOOL 9b49635984e541880528e56da9932a74e1a0988ef0b82f0f15538b6f9744c3bf1e86da45dd5de0c55af714669547c48d1f13830c8480e6760bc548b5047520f3
+EBUILD vpopmail-5.4.33-r1.ebuild 7929 SHA256 217b46efdc5dc4c9a08c674713fdb3aab310b35ae9100f06b2c9c1a9dd2c1cc0 SHA512 0ba88759c94ab55f6f4e0cfdd4118c80bcbec34117a338e5ab423bb0e70cbcc57ffde9ccdbe765e7c834e5aec30130b42fde04c19cd045585bb38d9efe196a0b WHIRLPOOL dc8dd96f10a2e4866b3c7ca0efcd0f61dea00e97c0c6ef46caf0075e3d707523c7b8b6f2be812b8ae328ed13a018d8f18742757be50af36e33bb3099755e4fcf
+EBUILD vpopmail-5.4.33.ebuild 7532 SHA256 f5cc82b0ef3e12a808e60229abf5a8ba59380e079c6373d0dee80bf920803f70 SHA512 d9ee0f65e07ebc0de79122cc34502bbfd208fb28db7bbe68c8f9f6a5b768eae555847dc44a27e815835bc297a119756c657a842a81ab4427ef3e22a21d69a4cf WHIRLPOOL 25707aae1992a6ba84356932243ebffbbef1f42d11249f46168b404ef8bfdb0aa908f97bcb8da112d62e4e81b40ac95bc736b210ddaf0e3da66900e5e42e6243
+MISC ChangeLog 3065 SHA256 8a1377992b911a5fbb08b3f9526e5389269900555caa93a3de4ee012e0b413fb SHA512 73e14f456da30811e77fbf0a5aec6f7ce82adfb28d9dcee80ac19eba34095952a0c02a59a7f05366b5b237ec54c74fd35b36070457665688bc73a32813e051bf WHIRLPOOL 486ede1fe93a08edb0d90692a2024f416a30da25856322b650bc83e0ea2f3948251e5486eaefe2f89ce5e355b436bc122305d22ce1946bb8aaaa3a33af9da96d
+MISC ChangeLog-2015 18571 SHA256 610ccd788236e73699a6023205310533174bcfea4bf520b69ddda7e68ba91794 SHA512 2bb6e3a867769c3b809fb0b983765ec1b3f74a9eb63abfa88ee9ea103c558f5f7c414ea91ba9d918255ba72aaf85666882af0c5a4d5c8d0134cb1f6795747ad1 WHIRLPOOL 52f60baf16bf2691caf91ba11d4b6a7e11930384a629a07d6aa24c313d0ac69769a0a1aec8fd48ad06aea39654937a0d903b4aa9a12d7360f5bbd5379673f8a0
+MISC metadata.xml 680 SHA256 05070dc38eb3c290359ab6ce593298bb45f61d037e341f9b3bc96bfaebb7a0f0 SHA512 66869b1dd1465c1914461874ca44988a1cf3cc34ca53cdaf2fc2851d6580d756ac1446cedc7168f50bcdfc82821f7ebb109276deabdc099325d0848a97a63ffd WHIRLPOOL 1f2c6cae054ac3e8cc6e63d7601162902de891ba4106c5a3c775fc8e225bae86fc6411f49fb435a51fba88a2286708044b736e3d1c187f4c0d6541662aa878ee
diff --git a/net-mail/vpopmail/files/99vpopmail b/net-mail/vpopmail/files/99vpopmail
new file mode 100644
index 000000000000..02d0a9c4d35a
--- /dev/null
+++ b/net-mail/vpopmail/files/99vpopmail
@@ -0,0 +1,2 @@
+ROOTPATH="/var/vpopmail/bin"
+CONFIG_PROTECT="/var/vpopmail/etc"
diff --git a/net-mail/vpopmail/files/vpopmail-5.4.9-access.violation.patch b/net-mail/vpopmail/files/vpopmail-5.4.9-access.violation.patch
new file mode 100644
index 000000000000..7a31fa9a3d3e
--- /dev/null
+++ b/net-mail/vpopmail/files/vpopmail-5.4.9-access.violation.patch
@@ -0,0 +1,27 @@
+--- configure.in.org 2004-06-30 22:11:08.000000000 -0700
++++ configure.in 2004-08-22 16:45:36.279473008 -0700
+@@ -463,16 +463,16 @@
+ if test ! -d $vpopmaildir
+ then
+ AC_MSG_WARN( creating $vpopmaildir )
+- mkdir -p $vpopmaildir
+- chown $vpopmailuid $vpopmaildir
+- chgrp $vpopmailgid $vpopmaildir
+- chmod 755 $vpopmaildir
++ mkdir -p ${D}/$vpopmaildir
++ chown $vpopmailuid ${D}/$vpopmaildir
++ chgrp $vpopmailgid ${D}/$vpopmaildir
++ chmod 755 ${D}/$vpopmaildir
+ fi
+ AC_MSG_WARN( making a vpopmail etc directory )
+- mkdir $vpopmaildir/etc
+- chown $vpopmailuid "$vpopmaildir"/etc
+- chgrp $vpopmailgid "$vpopmaildir"/etc
+- chmod 755 "$vpopmaildir"/etc
++ mkdir ${D}/$vpopmaildir/etc
++ chown $vpopmailuid ${D}/$vpopmaildir/etc
++ chgrp $vpopmailgid ${D}/$vpopmaildir/etc
++ chmod 755 ${D}/$vpopmaildir/etc
+ fi
+
+ #----------------------------------------------------------------------
diff --git a/net-mail/vpopmail/files/vpopmail-Maildir-dotmaildir-fix.sh b/net-mail/vpopmail/files/vpopmail-Maildir-dotmaildir-fix.sh
new file mode 100644
index 000000000000..758cced2d885
--- /dev/null
+++ b/net-mail/vpopmail/files/vpopmail-Maildir-dotmaildir-fix.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# Written by Robin H. Johnson, robbat2@gentoo.org
+
+OLDNAME='Maildir'
+NEWNAME='.maildir'
+SEARCHPATH=/var/vpopmail/domains/
+MINDEPTH=3
+# If you have a very large vpopmail deployment, you may need to increase MAXDEPTH.
+MAXDEPTH=6
+
+if [ "${1}" == '--revert' ]; then
+ SEARCHNAME="${NEWNAME}"
+ REPLACENAME="${OLDNAME}"
+else
+ SEARCHNAME="${OLDNAME}"
+ REPLACENAME="${NEWNAME}"
+fi
+
+echo "Doing '${SEARCHNAME}' '${REPLACENAME}' changeover"
+echo find ${SEARCHPATH} -name "${SEARCHNAME}" -maxdepth $MAXDEPTH -mindepth $MINDEPTH -type d
+for i in `find ${SEARCHPATH} -name "${SEARCHNAME}" -maxdepth $MAXDEPTH -mindepth $MINDEPTH -type d`; do
+ foundname=${i/${SEARCHNAME}*}${SEARCHNAME}
+ base="`dirname $i`"
+ todoname=${base}/${REPLACENAME}
+ #echo "$foundname -> $todoname"
+ echo "Fixing `echo $base | sed -e "s|${SEARCHPATH}||g"`"
+ chmod +t $base
+ if [ -L ${todoname} ]; then
+ echo Removing symlink "${todoname}"
+ rm ${todoname}
+ fi
+ if [ -e ${todoname} ]; then
+ echo "Error! Cannot move ${i} as destination exists!"
+ continue
+ fi
+ mv "${foundname}" "${todoname}"
+ ln -s "${todoname}" "${foundname}"
+ chown vpopmail:vpopmail "${foundname}"
+ chmod -t $base
+done;
diff --git a/net-mail/vpopmail/files/vpopmail-double-free.patch b/net-mail/vpopmail/files/vpopmail-double-free.patch
new file mode 100644
index 000000000000..d7d118578d73
--- /dev/null
+++ b/net-mail/vpopmail/files/vpopmail-double-free.patch
@@ -0,0 +1,13 @@
+diff --git a/trunk/vpalias.c b/trunk/vpalias.c
+index 9853f14..e9bd81f 100644
+--- a/trunk/vpalias.c
++++ b/trunk/vpalias.c
+@@ -369,7 +369,7 @@ char *valias_select_names( char *domain )
+ }
+ }
+ }
+- if (num_names < max_names) {
++ if (num_names < max_names && num_names > 0) {
+ new_names = realloc( names, num_names * sizeof(char *) );
+ if (new_names != NULL)
+ names = new_names;
diff --git a/net-mail/vpopmail/files/vpopmail-lazy.patch b/net-mail/vpopmail/files/vpopmail-lazy.patch
new file mode 100644
index 000000000000..e47bbaa9d4ba
--- /dev/null
+++ b/net-mail/vpopmail/files/vpopmail-lazy.patch
@@ -0,0 +1,10 @@
+--- Makefile.am.orig 2005-11-18 03:19:43.000000000 +0100
++++ Makefile.am 2005-11-18 03:20:18.000000000 +0100
+@@ -33,6 +33,7 @@
+
+ vchkpw_SOURCES = vchkpw.c md5.c hmac_md5.c
+ vchkpw_LDADD = libvpopmail.a @auth_libs@
++vchkpw_LDFLAGS = -Wl,-z,now
+
+ vchangepw_SOURCES = vchangepw.c
+ vchangepw_LDADD = libvpopmail.a @auth_libs@
diff --git a/net-mail/vpopmail/files/vpopmail-vpgsql.patch b/net-mail/vpopmail/files/vpopmail-vpgsql.patch
new file mode 100644
index 000000000000..1d387e43f59d
--- /dev/null
+++ b/net-mail/vpopmail/files/vpopmail-vpgsql.patch
@@ -0,0 +1,94 @@
+--- vpgsql.c.2 2011-02-28 18:00:45.000000000 +0100
++++ vpgsql.c 2011-08-06 05:46:49.959717911 +0200
+@@ -392,10 +392,10 @@
+ #endif
+
+ #ifdef ENABLE_SQL_LOGGING
+- qnprintf( sqlBufUpdate, SQL_BUF_SIZE,
++ qnprintf( SqlBufUpdate, SQL_BUF_SIZE,
+ "delete from vlog where domain = '%s'", domain );
+ pgres=PQexec(pgc, SqlBufUpdate);
+- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) {
++ if( !pgres || PQresultStatus(pgres)!=PGRES_COMMAND_OK) {
+ return(-1);
+ }
+ #endif
+@@ -445,11 +445,11 @@
+ #endif
+
+ #ifdef ENABLE_SQL_LOGGING
+- qnprintf( sqlBufUpdate, SQL_BUF_SIZE,
++ qnprintf( SqlBufUpdate, SQL_BUF_SIZE,
+ "delete from vlog where domain = '%s' and user='%s'",
+ domain, user );
+ pgres=PQexec(pgc, SqlBufUpdate);
+- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) {
++ if( !pgres || PQresultStatus(pgres)!=PGRES_COMMAND_OK) {
+ err = -1;
+ }
+ #endif
+@@ -1555,6 +1555,64 @@
+ return valias_current->data;
+ }
+ }
++
++char *valias_select_names( char *alias, char *domain )
++{
++ PGresult *pgres;
++ int err;
++ unsigned ntuples, ctuple;
++ struct linklist *temp_entry = NULL;
++
++ /* remove old entries as necessary */
++ while (valias_current != NULL)
++ valias_current = linklist_del (valias_current);
++
++ if ( (err =vauth_open(0)) != 0 ) return (NULL);
++
++ qnprintf( SqlBufRead, SQL_BUF_SIZE,
++ "select distinct alias from valias where domain = '%s' order by alias", domain);
++ if ( ! (pgres=PQexec(pgc, SqlBufRead))
++ || PQresultStatus(pgres) != PGRES_TUPLES_OK ) {
++ if(pgres) PQclear(pgres);
++ vcreate_valias_table();
++ if ( ! (pgres=PQexec(pgc, SqlBufRead))
++ || PQresultStatus(pgres) != PGRES_TUPLES_OK ) {
++ fprintf(stderr,"vpgsql: sql error[o]: %s\n",
++ PQerrorMessage(pgc));
++ if (pgres) PQclear (pgres);
++ return(NULL);
++ }
++ }
++ ntuples = PQntuples (pgres);
++ for (ctuple = 0; ctuple < ntuples; ctuple++) {
++ temp_entry = linklist_add (temp_entry, PQgetvalue (pgres, ctuple, 1), PQgetvalue (pgres, ctuple, 0));
++ if (valias_current == NULL) valias_current = temp_entry;
++ }
++ PQclear (pgres);
++ pgres = NULL;
++
++ if (valias_current == NULL) return NULL; /* no results */
++ else {
++ strcpy (alias, valias_current->d2);
++ return(valias_current->data);
++ }
++}
++
++char *valias_select_names_next(char *alias)
++{
++ if (valias_current == NULL) return NULL;
++ valias_current = linklist_del (valias_current);
++
++ if (valias_current == NULL) return NULL; /* no results */
++ else {
++ strcpy(alias, valias_current->d2);
++ return(valias_current->data);
++ }
++}
++
++void valias_select_names_end() {
++ // not needed with PostgreSQL
++}
+ #endif
+
+ #ifdef ENABLE_SQL_LOGGING
diff --git a/net-mail/vpopmail/metadata.xml b/net-mail/vpopmail/metadata.xml
new file mode 100644
index 000000000000..ee267c81e3d9
--- /dev/null
+++ b/net-mail/vpopmail/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="clearpasswd">Enables cleartext password storage in the
+ vpasswd files</flag>
+ <flag name="ipalias">Enables enable-ip-alias-domains</flag>
+ <flag name="maildrop">Enables <pkg>mail-filter/maildrop</pkg> support
+ in vdelivermail</flag>
+ <flag name="spamassassin">Enables <pkg>mail-filter/spamassassin</pkg>
+ support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">vpopmail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild b/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild
new file mode 100644
index 000000000000..ecc09b21af25
--- /dev/null
+++ b/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild
@@ -0,0 +1,251 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils fixheadtails qmail user
+
+HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail"
+DESCRIPTION="A collection of programs to manage virtual email domains and accounts on your Qmail mail servers"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="clearpasswd ipalias maildrop mysql postgres spamassassin"
+REQUIRED_USE="mysql? ( !postgres )"
+
+DEPEND="virtual/qmail
+ maildrop? ( mail-filter/maildrop )
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )
+ spamassassin? ( mail-filter/spamassassin )"
+RDEPEND="${DEPEND}"
+
+# This makes sure the variable is set, and that it isn't null.
+VPOP_DEFAULT_HOME="/var/vpopmail"
+
+vpopmail_set_homedir() {
+ VPOP_HOME=$(egethome vpopmail)
+ if [[ -z "${VPOP_HOME}" ]]; then
+ ebeep
+ eerror "vpopmail's home directory is null in passwd data!"
+ eerror "You probably want to check that out."
+ eerror "Continuing with default."
+ VPOP_HOME="${VPOP_DEFAULT_HOME}"
+ else
+ einfo "Setting VPOP_HOME to: $VPOP_HOME"
+ fi
+}
+
+pkg_setup() {
+ enewgroup vpopmail 89
+ enewuser vpopmail 89 -1 ${VPOP_DEFAULT_HOME} vpopmail
+ upgradewarning
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.4.9-access.violation.patch
+ epatch "${FILESDIR}"/${PN}-lazy.patch
+ epatch "${FILESDIR}"/${PN}-double-free.patch
+ epatch "${FILESDIR}"/${PN}-vpgsql.patch
+
+ echo 'install-recursive: install-exec-am' \
+ >>"${S}"/Makefile.am
+
+ # fix maildir paths
+ sed -i -e 's|Maildir|.maildir|g' \
+ vchkpw.c vconvert.c vdelivermail.c \
+ vpopbull.c vpopmail.c vqmaillocal.c \
+ vuserinfo.c maildirquota.c || die
+
+ # remove vpopmail advertisement
+ sed -i -e '/printf.*vpopmail/s:vpopmail (:(:' \
+ vdelivermail.c vpopbull.c vqmaillocal.c || die
+
+ # automake/autoconf
+ mv -f "${S}"/configure.{in,ac} || die
+ sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' \
+ configure.ac || die
+
+ # _FORTIFY_SOURCE
+ sed -i \
+ -e 's/\(snprintf(\s*\(LI->[a-zA-Z_]\+\),\s*\)[a-zA-Z_]\+,/\1 sizeof(\2),/' \
+ vlistlib.c || die
+
+ eautoreconf
+ ht_fix_file cdb/Makefile
+}
+
+src_configure() {
+ vpopmail_set_homedir
+
+ local authopts
+ if use mysql; then
+ mysqlinc=$(mysql_config --include)
+ authopts="--enable-incdir=${mysqlinc#-I}"
+ authopts+=" --enable-auth-module=mysql"
+ authopts+=" --enable-libdir=/usr/$(get_libdir)/mysql"
+ authopts+=" --enable-sql-logging"
+ authopts+=" --enable-valias"
+ authopts+=" --disable-mysql-replication"
+ authopts+=" --enable-mysql-limits"
+ elif use postgres; then
+ pglibdir=$(pg_config --libdir)
+ authopts+=" --enable-auth-module=pgsql"
+ authopts+=" --enable-libdir=${pglibdir}"
+ authopts+=" --enable-sql-logging"
+ authopts+=" --enable-valias"
+ else
+ authopts+=" --enable-auth-module=cdb"
+ fi
+
+ econf ${authopts} \
+ --sysconfdir=${VPOP_HOME}/etc \
+ --enable-non-root-build \
+ --enable-qmaildir=${QMAIL_HOME} \
+ --enable-qmail-newu=${QMAIL_HOME}/bin/qmail-newu \
+ --enable-qmail-inject=${QMAIL_HOME}/bin/qmail-inject \
+ --enable-qmail-newmrh=${QMAIL_HOME}/bin/qmail-newmrh \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ --enable-many-domains \
+ --enable-file-locking \
+ --enable-file-sync \
+ --enable-md5-passwords \
+ --enable-logging \
+ --enable-auth-logging \
+ --enable-log-name=vpopmail \
+ --enable-qmail-ext \
+ --disable-tcpserver-file \
+ --disable-roaming-users \
+ $(use_enable ipalias ip-alias-domains) \
+ $(use_enable clearpasswd clear-passwd) \
+ $(use_enable maildrop) \
+ $(use_enable maildrop maildrop-prog /usr/bin/maildrop) \
+ $(use_enable spamassassin)
+}
+
+src_install() {
+ vpopmail_set_homedir
+
+ emake DESTDIR="${D}" install
+ keepdir "${VPOP_HOME}"/domains
+
+ # install helper script for maildir conversion
+ into "${VPOP_HOME}"
+ dobin "${FILESDIR}"/vpopmail-Maildir-dotmaildir-fix.sh
+ into /usr
+
+ dodoc doc/AUTHORS ChangeLog doc/FAQ doc/INSTALL doc/README*
+ dohtml doc/doc_html/* doc/man_html/*
+ rm -rf "${D}/${VPOP_HOME}"/doc
+ dosym /usr/share/doc/${PF}/ "${VPOP_HOME}"/doc
+
+ # create /etc/vpopmail.conf
+ if use mysql; then
+ dodir /etc
+ mv "${D}${VPOP_HOME}"/etc/vpopmail.mysql "${D}"/etc/vpopmail.conf
+ dosym /etc/vpopmail.conf "${VPOP_HOME}"/etc/vpopmail.mysql
+
+ sed -e '12d' -i "${D}"/etc/vpopmail.conf
+ echo '# Read-only DB' >> "${D}"/etc/vpopmail.conf
+ echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf
+ echo '# Write DB' >> "${D}"/etc/vpopmail.conf
+ echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf
+
+ # lock down perms
+ fperms 640 /etc/vpopmail.conf
+ fowners root:vpopmail /etc/vpopmail.conf
+ fi
+
+ insinto "${VPOP_HOME}"/etc
+ doins vusagec.conf
+ dosym "${VPOP_HOME}"/etc/vusagec.conf /etc/vusagec.conf
+ sed -i 's/Disable = False;/Disable = True;/g' "${D}${VPOP_HOME}"/etc/vusagec.conf
+
+ einfo "Installing env.d entry"
+ dodir /etc/env.d
+ doenvd "${FILESDIR}"/99vpopmail
+
+ einfo "Locking down vpopmail permissions"
+ fowners -R root:0 "${VPOP_HOME}"/{bin,etc,include}
+ fowners root:vpopmail "${VPOP_HOME}"/bin/vchkpw
+ fperms 4711 "${VPOP_HOME}"/bin/vchkpw
+}
+
+pkg_postinst() {
+ if use mysql ; then
+ elog
+ elog "You have 'mysql' turned on in your USE"
+ elog "Vpopmail needs a VALID MySQL USER. Let's call it 'vpopmail'"
+ elog "You MUST add it and then specify its passwd in the /etc/vpopmail.conf file"
+ elog
+ elog "First log into mysql as your mysql root user and pass. Then:"
+ elog "> create database vpopmail;"
+ elog "> use mysql;"
+ elog "> grant select, insert, update, delete, create, drop on vpopmail.* to"
+ elog " vpopmail@localhost identified by 'your password';"
+ elog "> flush privileges;"
+ elog
+ elog "If you have problems with vpopmail not accepting mail properly,"
+ elog "please ensure that /etc/vpopmail.conf is chmod 640 and"
+ elog "owned by root:vpopmail"
+ elog
+ fi
+
+ # do this for good measure
+ if [[ -e /etc/vpopmail.conf ]]; then
+ chmod 640 /etc/vpopmail.conf
+ chown root:vpopmail /etc/vpopmail.conf
+ fi
+
+ upgradewarning
+}
+
+pkg_postrm() {
+ vpopmail_set_homedir
+
+ elog "The vpopmail DATA will NOT be removed automatically."
+ elog "You can delete them manually by removing the ${VPOP_HOME} directory."
+}
+
+upgradewarning() {
+ ewarn
+ ewarn "Massive important warning if you are upgrading to 5.2.1-r8 or older"
+ ewarn "The internal structure of the mail storage has changed for"
+ ewarn "consistancy with the rest of Gentoo! Please review and utilize the "
+ ewarn "script at ${VPOP_HOME}/bin/vpopmail-Maildir-dotmaildir-fix.sh"
+ ewarn "to upgrade your system! (It can do conversions both ways)."
+ ewarn "You should be able to run it right away without any changes."
+ ewarn
+
+ elog
+ elog "Use of vpopmail's tcp.smtp[.cdb] is also deprecated now, consider"
+ elog "using net-mail/relay-ctrl instead."
+ elog
+
+ if use mysql; then
+ elog
+ elog "If you are upgrading from 5.4.17 or older, you have to fix your"
+ elog "MySQL tables:"
+ elog
+ elog 'ALTER TABLE `dir_control` CHANGE `domain` `domain` CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `ip_alias_map` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `lastauth` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `valias` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `vlog` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `vpopmail` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `limits` CHANGE domain domain CHAR(96) NOT NULL,'
+ elog ' ADD `disable_spamassassin` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_smtp`,'
+ elog ' ADD `delete_spam` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_spamassassin`;'
+ elog
+ fi
+
+ ewarn
+ ewarn "Newer versions of vpopmail contain a quota daemon called vusaged."
+ ewarn "This ebuild DOES NOT INSTALL vusaged and has therefore disabled"
+ ewarn "its usage in ${VPOP_HOME}/etc/vusagec.conf. DO NOT ENABLE!"
+ ewarn "Otherwise mail delivery WILL BREAK"
+ ewarn
+}
diff --git a/net-mail/vpopmail/vpopmail-5.4.33.ebuild b/net-mail/vpopmail/vpopmail-5.4.33.ebuild
new file mode 100644
index 000000000000..0084ce003a76
--- /dev/null
+++ b/net-mail/vpopmail/vpopmail-5.4.33.ebuild
@@ -0,0 +1,240 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils fixheadtails qmail user
+
+HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail"
+DESCRIPTION="A collection of programs to manage virtual email domains and accounts on your Qmail mail servers"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
+IUSE="clearpasswd ipalias maildrop mysql spamassassin"
+
+DEPEND="virtual/qmail
+ maildrop? ( mail-filter/maildrop )
+ mysql? ( virtual/mysql )
+ spamassassin? ( mail-filter/spamassassin )"
+RDEPEND="${DEPEND}"
+
+# This makes sure the variable is set, and that it isn't null.
+VPOP_DEFAULT_HOME="/var/vpopmail"
+
+vpopmail_set_homedir() {
+ VPOP_HOME=$(egethome vpopmail)
+ if [[ -z "${VPOP_HOME}" ]]; then
+ ebeep
+ eerror "vpopmail's home directory is null in passwd data!"
+ eerror "You probably want to check that out."
+ eerror "Continuing with default."
+ VPOP_HOME="${VPOP_DEFAULT_HOME}"
+ else
+ einfo "Setting VPOP_HOME to: $VPOP_HOME"
+ fi
+}
+
+pkg_setup() {
+ enewgroup vpopmail 89
+ enewuser vpopmail 89 -1 ${VPOP_DEFAULT_HOME} vpopmail
+ upgradewarning
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.4.9-access.violation.patch
+ epatch "${FILESDIR}"/${PN}-lazy.patch
+ epatch "${FILESDIR}"/${PN}-double-free.patch
+
+ # fix maildir paths
+ sed -i -e 's|Maildir|.maildir|g' \
+ vchkpw.c vconvert.c vdelivermail.c \
+ vpopbull.c vpopmail.c vqmaillocal.c \
+ vuserinfo.c maildirquota.c || die
+
+ # remove vpopmail advertisement
+ sed -i -e '/printf.*vpopmail/s:vpopmail (:(:' \
+ vdelivermail.c vpopbull.c vqmaillocal.c || die
+
+ # automake/autoconf
+ mv -f "${S}"/configure.{in,ac} || die
+ sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' \
+ configure.ac || die
+
+ # _FORTIFY_SOURCE
+ sed -i \
+ -e 's/\(snprintf(\s*\(LI->[a-zA-Z_]\+\),\s*\)[a-zA-Z_]\+,/\1 sizeof(\2),/' \
+ vlistlib.c || die
+
+ eautoreconf
+ ht_fix_file cdb/Makefile
+}
+
+src_configure() {
+ vpopmail_set_homedir
+
+ local authopts
+ if use mysql; then
+ authopts="$(mysql_config --include)"
+ authopts="--enable-incdir=${authopts#-I}"
+ authopts+=" --enable-auth-module=mysql"
+ authopts+=" --enable-libdir=/usr/$(get_libdir)/mysql"
+ authopts+=" --enable-sql-logging"
+ authopts+=" --enable-valias"
+ authopts+=" --disable-mysql-replication"
+ authopts+=" --enable-mysql-limits"
+ else
+ authopts="--enable-auth-module=cdb"
+ fi
+
+ econf ${authopts} \
+ --sysconfdir=${VPOP_HOME}/etc \
+ --enable-non-root-build \
+ --enable-qmaildir=${QMAIL_HOME} \
+ --enable-qmail-newu=${QMAIL_HOME}/bin/qmail-newu \
+ --enable-qmail-inject=${QMAIL_HOME}/bin/qmail-inject \
+ --enable-qmail-newmrh=${QMAIL_HOME}/bin/qmail-newmrh \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ --enable-many-domains \
+ --enable-file-locking \
+ --enable-file-sync \
+ --enable-md5-passwords \
+ --enable-logging \
+ --enable-auth-logging \
+ --enable-log-name=vpopmail \
+ --enable-qmail-ext \
+ --disable-tcpserver-file \
+ --disable-roaming-users \
+ $(use_enable ipalias ip-alias-domains) \
+ $(use_enable clearpasswd clear-passwd) \
+ $(use_enable maildrop) \
+ $(use_enable maildrop maildrop-prog /usr/bin/maildrop) \
+ $(use_enable spamassassin)
+}
+
+src_install() {
+ vpopmail_set_homedir
+
+ # bug #277764
+ emake -j1 DESTDIR="${D}" install
+ keepdir "${VPOP_HOME}"/domains
+
+ # install helper script for maildir conversion
+ into "${VPOP_HOME}"
+ dobin "${FILESDIR}"/vpopmail-Maildir-dotmaildir-fix.sh
+ into /usr
+
+ dodoc doc/AUTHORS ChangeLog doc/FAQ doc/INSTALL doc/README*
+ dohtml doc/doc_html/* doc/man_html/*
+ rm -rf "${D}/${VPOP_HOME}"/doc
+ dosym /usr/share/doc/${PF}/ "${VPOP_HOME}"/doc
+
+ # create /etc/vpopmail.conf
+ if use mysql; then
+ dodir /etc
+ mv "${D}${VPOP_HOME}"/etc/vpopmail.mysql "${D}"/etc/vpopmail.conf
+ dosym /etc/vpopmail.conf "${VPOP_HOME}"/etc/vpopmail.mysql
+
+ sed -e '12d' -i "${D}"/etc/vpopmail.conf
+ echo '# Read-only DB' >> "${D}"/etc/vpopmail.conf
+ echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf
+ echo '# Write DB' >> "${D}"/etc/vpopmail.conf
+ echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf
+
+ # lock down perms
+ fperms 640 /etc/vpopmail.conf
+ fowners root:vpopmail /etc/vpopmail.conf
+ fi
+
+ insinto "${VPOP_HOME}"/etc
+ doins vusagec.conf
+ dosym "${VPOP_HOME}"/etc/vusagec.conf /etc/vusagec.conf
+ sed -i 's/Disable = False;/Disable = True;/g' "${D}${VPOP_HOME}"/etc/vusagec.conf
+
+ einfo "Installing env.d entry"
+ dodir /etc/env.d
+ doenvd "${FILESDIR}"/99vpopmail
+
+ einfo "Locking down vpopmail permissions"
+ fowners root:0 -R "${VPOP_HOME}"/{bin,etc,include}
+ fowners root:vpopmail "${VPOP_HOME}"/bin/vchkpw
+ fperms 4711 "${VPOP_HOME}"/bin/vchkpw
+}
+
+pkg_postinst() {
+ if use mysql ; then
+ elog
+ elog "You have 'mysql' turned on in your USE"
+ elog "Vpopmail needs a VALID MySQL USER. Let's call it 'vpopmail'"
+ elog "You MUST add it and then specify its passwd in the /etc/vpopmail.conf file"
+ elog
+ elog "First log into mysql as your mysql root user and pass. Then:"
+ elog "> create database vpopmail;"
+ elog "> use mysql;"
+ elog "> grant select, insert, update, delete, create, drop on vpopmail.* to"
+ elog " vpopmail@localhost identified by 'your password';"
+ elog "> flush privileges;"
+ elog
+ elog "If you have problems with vpopmail not accepting mail properly,"
+ elog "please ensure that /etc/vpopmail.conf is chmod 640 and"
+ elog "owned by root:vpopmail"
+ elog
+ fi
+
+ # do this for good measure
+ if [[ -e /etc/vpopmail.conf ]]; then
+ chmod 640 /etc/vpopmail.conf
+ chown root:vpopmail /etc/vpopmail.conf
+ fi
+
+ upgradewarning
+}
+
+pkg_postrm() {
+ vpopmail_set_homedir
+
+ elog "The vpopmail DATA will NOT be removed automatically."
+ elog "You can delete them manually by removing the ${VPOP_HOME} directory."
+}
+
+upgradewarning() {
+ ewarn
+ ewarn "Massive important warning if you are upgrading to 5.2.1-r8 or older"
+ ewarn "The internal structure of the mail storage has changed for"
+ ewarn "consistancy with the rest of Gentoo! Please review and utilize the "
+ ewarn "script at ${VPOP_HOME}/bin/vpopmail-Maildir-dotmaildir-fix.sh"
+ ewarn "to upgrade your system! (It can do conversions both ways)."
+ ewarn "You should be able to run it right away without any changes."
+ ewarn
+
+ elog
+ elog "Use of vpopmail's tcp.smtp[.cdb] is also deprecated now, consider"
+ elog "using net-mail/relay-ctrl instead."
+ elog
+
+ if use mysql; then
+ elog
+ elog "If you are upgrading from 5.4.17 or older, you have to fix your"
+ elog "MySQL tables:"
+ elog
+ elog 'ALTER TABLE `dir_control` CHANGE `domain` `domain` CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `ip_alias_map` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `lastauth` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `valias` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `vlog` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `vpopmail` CHANGE domain domain CHAR(96) NOT NULL;'
+ elog 'ALTER TABLE `limits` CHANGE domain domain CHAR(96) NOT NULL,'
+ elog ' ADD `disable_spamassassin` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_smtp`,'
+ elog ' ADD `delete_spam` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_spamassassin`;'
+ elog
+ fi
+
+ ewarn
+ ewarn "Newer versions of vpopmail contain a quota daemon called vusaged."
+ ewarn "This ebuild DOES NOT INSTALL vusaged and has therefore disabled"
+ ewarn "its usage in ${VPOP_HOME}/etc/vusagec.conf. DO NOT ENABLE!"
+ ewarn "Otherwise mail delivery WILL BREAK"
+ ewarn
+}
diff --git a/net-mail/vqadmin/Manifest b/net-mail/vqadmin/Manifest
new file mode 100644
index 000000000000..d57f17b7913e
--- /dev/null
+++ b/net-mail/vqadmin/Manifest
@@ -0,0 +1,6 @@
+AUX postinstall-en.txt 291 SHA256 de409a36534723bd8bc8a73c6f386c568c34facc31c0aa36ed7f799b676b576e SHA512 27c4b4314b29547e3a485340086186c31d0d5ede249631738227ffdecd64c500baf7c3ee6852b02e18176376f0717c35ad3445b5a2bc684e82772eca27be2786 WHIRLPOOL 18f51f67bc4dacb5aae6f4cfa509c1fbcebf3c9be0d7f36b4b0a07d094cb058e3572fa4f33dbec7794463c579923a6cdde13d81b9cff4e4c13d2be53796228ee
+DIST vqadmin-2.3.7.tar.gz 153678 SHA256 af68640f454896d6d267b6aee63a79ae0605c0104cff083aa6dc5df0d8c4ee0f SHA512 c427dc4b1e30926b0d3774bd0d296bf78a98037c566a82fa790f7a25d1fac64a80172498fd6342e93514108e42fdec0ebf1a76029546e43100ebcae5b845ef88 WHIRLPOOL d684a4f88797d2d9ef0c39e0d913e7ce301e5c1853b6946bf08a180b067e647982963c2aff33c902634578630a76d962e9613d79e5d6c376b7a1ade138c43367
+EBUILD vqadmin-2.3.7.ebuild 1378 SHA256 04ef9e81b81168288d9825f6f2b016fa7097d179daa603c3c2d1adfeb6e11094 SHA512 aed0a731e5130b4926044ec2b9bbf7e5e9a0b4143f1ccf5ab212ef779b300097e1276fd20efd9e516d0da7d0ae0f341edab2f410abdb9c1c29302c40da8684b2 WHIRLPOOL 9b15ce598d31afebd60e85117f29ed0355851f4ea49472fda36b4e0026a1d7909d5797f7471b8ae1fab0800d2023beddfb7efb652578034b519d98456e9f9c19
+MISC ChangeLog 2923 SHA256 fe350a06450dfa38aa5e5fbb4f5810f6e61a691ec83d90d465b68b27a5ac9e3d SHA512 e771dba6b9473ddfd449321343a54c8a7ac7f24961371844aeaf5934b279811bf605c9e1965c34488003ecca436658cb0886d2f39e7032b05c0c7bb82030cab5 WHIRLPOOL c232daa5c8f172d68a379460dfe3c8ea34d6f8f690ea58af64a86224b7620d32642880190c6b01d0e492ad9db399ffc65a390579727c7aec73f6877f5dedaa91
+MISC ChangeLog-2015 1426 SHA256 7bfaf423c077df9f83571879564f6f8cd320b93b0f264d0ca8971b07c7934175 SHA512 576b90fe177875ee65376dbe43709020c70fe2579a04411c8b18faf8a9bd9314715ecff23154ad5bea101f34169ecd52f6e13854670355ff30201814c79b265d WHIRLPOOL 24cda43d413cb2f0c12341c402f92db023e656d84a003745d8b6f4a64021618e012ef87742d70af9700b9e54f6e76e0db1639dec9f66745a13837b7e7bce82ac
+MISC metadata.xml 357 SHA256 931ad8962129b7fb14a16d18ebc40f7ec29e00fb13deeb27da2aee505197ba02 SHA512 82473567cbefa523ec0fcee697d7b5d30b184dedc7a73fa6e49a7958a3355ba22118d572908c3ceffecf821b234053310e56e5f2b4f6e7fd66c9a23248974791 WHIRLPOOL 8ef972577fd85502cb47c2baba5398ab67b76f50ece6ca3ebe8bc2d48f1d542698f49f44d5c8cfe53be75bd131492b7b5daeb263b324cb9171ca92208b31d4bf
diff --git a/net-mail/vqadmin/files/postinstall-en.txt b/net-mail/vqadmin/files/postinstall-en.txt
new file mode 100644
index 000000000000..3a909a78d9fb
--- /dev/null
+++ b/net-mail/vqadmin/files/postinstall-en.txt
@@ -0,0 +1,12 @@
+You need to setup authentication. For apache do the following:
+
+<Files ${VHOST_CGIBINDIR}/${PN}>
+ AuthType Basic
+ AuthUserFile ${VHOST_CONFDIR}${PN}.passwd
+ AuthName ${PN}
+ Require valid-user
+</Files>
+
+The create the password file like this:
+
+htpasswd -c ${VHOST_CONFDIR}${PN}.passwd <user>
diff --git a/net-mail/vqadmin/metadata.xml b/net-mail/vqadmin/metadata.xml
new file mode 100644
index 000000000000..8a64dd2e0f4e
--- /dev/null
+++ b/net-mail/vqadmin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">vqadmin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/vqadmin/vqadmin-2.3.7.ebuild b/net-mail/vqadmin/vqadmin-2.3.7.ebuild
new file mode 100644
index 000000000000..5bbf2374db40
--- /dev/null
+++ b/net-mail/vqadmin/vqadmin-2.3.7.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit webapp eutils autotools qmail
+
+DESCRIPTION="A web based control pannel to manage Virtual Qmail Domains. Works with qmailadmin"
+HOMEPAGE="http://www.inter7.com/index.php?page=vqadmin"
+SRC_URI="http://www.inter7.com/vqadmin/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/qmail
+ >=net-mail/vpopmail-5.3"
+RDEPEND="${DEPEND}
+ net-mail/qmailadmin"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # fixes for sane webapp integration
+ sed -i \
+ -e "s|html/|/usr/share/${PN}/|g" \
+ -e "s|/images/vqadmin/|/vqadmin/|g" \
+ -e "s|/cgi-bin/vqadmin/|/cgi-bin/|g" \
+ -e "s|vqadmin\.cgi|vqadmin|g" \
+ *.h *.c html/*.html
+}
+
+src_compile() {
+ econf ${myopts} \
+ --enable-qmaildir="${QMAIL_HOME}" \
+ --enable-vpopuser=vpopmail \
+ --enable-vpopgroup=vpopmail \
+ --enable-cgibindir="${MY_CGIBINDIR}" \
+ || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install () {
+ webapp_src_preinst
+
+ insinto /usr/share/${PN}
+ doins html/*
+
+ insinto "${MY_HTDOCSDIR}"
+ doins html/*.css
+
+ insinto "${MY_CGIBINDIR}"
+ doins vqadmin.acl
+ insopts -m 755
+ doins vqadmin
+
+ dodoc ACL AUTHORS BUGS ChangeLog FAQ INSTALL NEWS TODO README
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}
diff --git a/net-mail/yosucker/Manifest b/net-mail/yosucker/Manifest
new file mode 100644
index 000000000000..389a619a3db9
--- /dev/null
+++ b/net-mail/yosucker/Manifest
@@ -0,0 +1,7 @@
+DIST YoSucker-pr73.tar.gz 43581 SHA256 73f4e0f3412b4172f1b27ebf3c68eee38efd8bb67b68987738e05c7a7b132126 SHA512 a6010b0cf04c12a6ba8aed294c5613f5c17bc7dd25b3beb90f748f40418c3cd3f52089888e879ac81e271a135efff661ec9b3e03dd9aa8c8b8b500816f235f3b WHIRLPOOL 51494fcd1178b960dfcc871271d10fa93a8f4318fcc43588016cc90283c1d808650c14eca934fe3a83903eeddbbfbb81de9565255804ff46f643f7d0a53e923f
+DIST YoSucker-pr77.tar.gz 44703 SHA256 a61b3382d9059b7f5df40223b0ccdcb49a10ca6098c9ececc935a89e5593feda SHA512 ac69ef919d602681b1812727ac1de2f2a6f158b1204bae803ce936d5db0ae16816ac778146ffd9fc886a31c1736779bfbc7c9c548e94722fd07f8e8b63139265 WHIRLPOOL d4b18796b45201b9baeb89b17198608f60536d7da8ac2007231aaaf72264eccd9260d2957a40ad7896e04db06eae07116958e9158bbc3d4978e2eb5262bfb1e1
+EBUILD yosucker-73.ebuild 973 SHA256 5cc04c5ed13ebeba04a4aa80b88e42938c6def980f4def674eed6e51a4ff7755 SHA512 d0020e67db215659383254961a4f079f8273e70b1e77426ddba05ccf8576207bf68a7900be460399429fffbb1def01429219e8e0d8746850e6215a43a39bc8f8 WHIRLPOOL 0b8f463837f17411fd70aa25cfc64be198e867757ce60fe83f3af9620cc02f8cbd2089db89fcbb573bca9e8af21b4b42f34f672ece393482a98c6dc986638768
+EBUILD yosucker-77.ebuild 938 SHA256 b6e5a876802762d638592e411a88bc9102651cceaffbac391a0f8c03b4b84996 SHA512 2f013cd34b9d1b776010abecfd234b4b75633ad90616e0367558a14d86f73152dc242ffb18ccf2f2c6aa11bee2e43eb20374cbac14b5fb821d73ec4a2847bc5d WHIRLPOOL f2ecf7dbc212fbd7e94de7a889a806c589662ca6df6658a4fd18163b0931fce1aa1fa11e1be5ee4f4040f2fe2faf9186df0b1bc1b10e4203bc4bef84f2dd1a35
+MISC ChangeLog 2662 SHA256 78182156556f2a61ec5516636041c66ab8e439110cca06fda083e2a69d23d550 SHA512 6f84fd97fbb573b8dd2af603cba24c55d82d44c0331951dbc510b66a13c1058b75d75a472f5a6e6341eb1daf71e5656b19d9816d858179d4dc16416c52e0de71 WHIRLPOOL fad9e572f38284748c6ae759d81d09ac34d1b5c91ad4d2b70a4c4854531ea9eb7fd888b3ff20e3888e103c437c11ae27315bdccedacb81ddd1f5958c192732a2
+MISC ChangeLog-2015 6483 SHA256 b498923cf1da6e043d2daa1020786b3c0ab2f1d5b9b9b5864070b39ad7698bcf SHA512 d611e80113945598b3f0be0412160c5bc595347976d3a90806c777bcfbe55b8090608c245d835aaf42fe753f7f8f702d387dcbf4fa0c0dce765dbc088aa31cee WHIRLPOOL 8c7687dbc1d326eeadb948ffbf1143bb3a79d5f230d0a5326532496b13500e4f29a38b029de7108f40926be39ee56ade0b431473102da99674fc11f3f198a844
+MISC metadata.xml 534 SHA256 217750f18574e01702dc43154240e30518b91b4f996ea39e66165b3a769c130d SHA512 791f0ee81dac6a7e0279c20c48f74f71daa917e0a59b723e3312adedb802a2308dd111eb7c20f9074a0e4fe99c9107599c327239a9c8661dcf7eb4380c0156e7 WHIRLPOOL 67ec4d79f606001b7b3c7491a9853e016c47096ee961b49a55ac076247fc31fe8c30c82e64324728d89f32375cd916b913edbc909f935bc35ccc13da2535af0f
diff --git a/net-mail/yosucker/metadata.xml b/net-mail/yosucker/metadata.xml
new file mode 100644
index 000000000000..136bd575459d
--- /dev/null
+++ b/net-mail/yosucker/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription>
+ YoSucker allows you to download Yahoo mail to a local file or pipe it to procmail. It suppourts multiple accounts, encrypted passwords, transaction safe writes, and more.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">yosucker</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/yosucker/yosucker-73.ebuild b/net-mail/yosucker/yosucker-73.ebuild
new file mode 100644
index 000000000000..004f6eedd9ea
--- /dev/null
+++ b/net-mail/yosucker/yosucker-73.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+MY_P="YoSucker-pr${PV}"
+S=${WORKDIR}/${MY_P}
+IUSE=""
+DESCRIPTION="Downloads mail from a Yahoo! webmail account to a local mail spool, an mbox file, or to procmail"
+SRC_URI="mirror://sourceforge/yosucker/${MY_P}.tar.gz"
+HOMEPAGE="http://yosucker.sourceforge.net"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+
+SLOT="0"
+
+DEPEND="dev-lang/perl
+ dev-perl/TermReadKey
+ virtual/perl-Digest-MD5
+ dev-perl/IO-Socket-SSL
+ virtual/perl-MIME-Base64"
+
+RDEPEND=""
+
+src_install() {
+ dobin bin/*
+ mv utils/README utils/README.utils
+ dodoc docs/*
+ insinto /usr/share/doc/${P}/conf
+ doins conf/*
+ dolib lib/sputnik.pm
+
+}
+
+pkg_postinst() {
+ echo
+ draw_line
+ ewarn "The Yahoo! Mail interface has changed!!"
+ ewarn "If you have been using previous versions of YoSucker, you may need to"
+ ewarn "log in to Yahoo! Mail manually before it works again."
+ draw_line
+ echo
+}
diff --git a/net-mail/yosucker/yosucker-77.ebuild b/net-mail/yosucker/yosucker-77.ebuild
new file mode 100644
index 000000000000..88c543b6272c
--- /dev/null
+++ b/net-mail/yosucker/yosucker-77.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P="YoSucker-pr${PV}"
+S=${WORKDIR}/${MY_P}
+IUSE=""
+DESCRIPTION="Downloads mail from a Yahoo! webmail account to a local mail spool, an mbox file, or to procmail"
+SRC_URI="mirror://sourceforge/yosucker/${MY_P}.tar.gz"
+HOMEPAGE="http://yosucker.sourceforge.net"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+SLOT="0"
+
+DEPEND="dev-lang/perl
+ dev-perl/TermReadKey
+ virtual/perl-Digest-MD5
+ dev-perl/IO-Socket-SSL
+ virtual/perl-MIME-Base64"
+
+RDEPEND=""
+
+src_install() {
+ dobin bin/*
+ mv utils/README utils/README.utils
+ dodoc docs/*
+ insinto /usr/share/doc/${P}/conf
+ doins conf/*
+ dolib lib/sputnik.pm
+
+}
+
+pkg_postinst() {
+ echo
+ ewarn "The Yahoo! Mail interface has changed!!"
+ ewarn "If you have been using previous versions of YoSucker, you may need to"
+ ewarn "log in to Yahoo! Mail manually before it works again."
+ echo
+}
diff --git a/net-mail/ytnef/Manifest b/net-mail/ytnef/Manifest
new file mode 100644
index 000000000000..69c10d784604
--- /dev/null
+++ b/net-mail/ytnef/Manifest
@@ -0,0 +1,3 @@
+DIST ytnef-1.9.2.tar.gz 300945 SHA256 48f7d7272ba74b267d3f98a1b14c81fef54cfb53460346d7c36a9604df1f95ad SHA512 125727a8afac959ac9c60fa977913da743b1ace05ea6af6cd75fff3a786ecf7cb54b49006c8c5249eb48d9aefe0ffcdc24af2944a8611f54a03eb4c24a78506e WHIRLPOOL e891b28c611165501233d604f128bb61f5f2b0273ad6faa099ac12984a9b728521fd0d4afd4b37007864abbad6ee7e9f1eca0b17788e70aa47c99e22f7d6ae42
+EBUILD ytnef-1.9.2.ebuild 477 SHA256 c965bad246a2668e6474b07e6c1ae71051078e1b0c78e3658db97b8d38a416a2 SHA512 dbc6de560ad4c04be6fe1e194ff149c79331afec43c28787bf49404cacf5130039c73665f0a14774681be63bc1dc7f0371d89253f84a460c5a49ccb7d7d14372 WHIRLPOOL 290135c8d3aa20d4b27f650604edb9957b43b2af0f4381c04bf3c0aef6efadde19ea9b5e6fac3e217d4e7cd6ac03db08b259802bc5bd3b2f7c90b126f64e04c7
+MISC metadata.xml 338 SHA256 75b9063c18cc1738519c0f408570b1ba972d06502d50c2947da1d55018fb3a96 SHA512 5239663e2ba3a103c1e331b53393658e47d29b2fa4daec1bdea8ff727c39196e6c44a62db613893b4ab7266878c75c0bda21bab9ca25d26fd796ffc44af5703e WHIRLPOOL 356fcbd4959015ab54991e791de5ac2f43e0bdb90b416610ce9fdc54d5e180bd47c86f089060243bcc26058807d62035622ce709c465e514fcdf1aeb3ba14059
diff --git a/net-mail/ytnef/metadata.xml b/net-mail/ytnef/metadata.xml
new file mode 100644
index 000000000000..2c11b238d560
--- /dev/null
+++ b/net-mail/ytnef/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Yeraze/ytnef</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/ytnef/ytnef-1.9.2.ebuild b/net-mail/ytnef/ytnef-1.9.2.ebuild
new file mode 100644
index 000000000000..c4d520f82c03
--- /dev/null
+++ b/net-mail/ytnef/ytnef-1.9.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Yeraze's TNEF Stream Reader - for winmail.dat files"
+HOMEPAGE="https://github.com/Yeraze/ytnef"
+SRC_URI="https://github.com/Yeraze/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="sys-devel/libtool"
+
+src_prepare() {
+ default
+ eautoreconf
+}