summaryrefslogtreecommitdiff
path: root/mail-mta
diff options
context:
space:
mode:
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/Manifest.gzbin2381 -> 2385 bytes
-rw-r--r--mail-mta/courier/Manifest12
-rw-r--r--mail-mta/courier/courier-1.0.13-r1.ebuild312
-rw-r--r--mail-mta/courier/courier-1.0.14-r1.ebuild312
-rw-r--r--mail-mta/courier/courier-1.0.17-r1.ebuild312
-rw-r--r--mail-mta/courier/courier-1.0.5-r1.ebuild317
-rw-r--r--mail-mta/courier/courier-1.1.8.ebuild (renamed from mail-mta/courier/courier-1.1.2-r1.ebuild)9
-rw-r--r--mail-mta/nullmailer/Manifest2
-rw-r--r--mail-mta/nullmailer/nullmailer-2.2-r2.ebuild4
-rw-r--r--mail-mta/postfix/Manifest8
-rw-r--r--mail-mta/postfix/postfix-3.6.4.ebuild290
-rw-r--r--mail-mta/postfix/postfix-3.7.0_rc2.ebuild294
-rw-r--r--mail-mta/postfix/postfix-3.8_pre20220129.ebuild (renamed from mail-mta/postfix/postfix-3.7_pre20220103.ebuild)2
-rw-r--r--mail-mta/ssmtp/Manifest2
-rw-r--r--mail-mta/ssmtp/ssmtp-2.64-r4.ebuild4
15 files changed, 604 insertions, 1276 deletions
diff --git a/mail-mta/Manifest.gz b/mail-mta/Manifest.gz
index d8d04de9791d..c0e245751fd4 100644
--- a/mail-mta/Manifest.gz
+++ b/mail-mta/Manifest.gz
Binary files differ
diff --git a/mail-mta/courier/Manifest b/mail-mta/courier/Manifest
index 9c8238eb22af..a6ec3c654fb5 100644
--- a/mail-mta/courier/Manifest
+++ b/mail-mta/courier/Manifest
@@ -2,16 +2,8 @@ AUX apache-sqwebmail.inc 347 BLAKE2B e77a680065e064c300d01ec21db524f3a440623b685
AUX courier-init-r4 4965 BLAKE2B 09f29543599abfb6dd5df058f832e979bde471be3f9d293d975fdfc28787e8622ddab797c9d51fa89207fbc1a1ee23fb82471617366bf1467d1e7f2d7d3f2bcc SHA512 ca5e12bfa4fe2166cd2c1ef8c68e3cda957fd33011971237f3f76ec9d4ec1503eb22d78ec08ed42671d8858790ea7761c272a4896c680a51691c094696fee5f9
AUX norewrite.patch 488 BLAKE2B 663b52ff5936d5c8aa24ce2a226cd803f09a972a2f358b7f81d1711319b4fee2d7a9c4a8b498e8550b27d796939f6ba042790211592e55072bbff6b7f7172ea3 SHA512 5c2329f497951220bb1276058fe7fe2e0eba710fcad65c9ff1143827fec7c8d9745703fbebf624fecf740fb767401eeba9f0e91b09cd891622d01899578326db
AUX password.dist 247 BLAKE2B 1803a6663c32ccc74c4dfb1d591a01d4416f9de9c4bf35c9a7ca277c2007b8c29a8899f4285c78eeb8592766457eef0caf377a344adee7a61be15bbf8b80c7de SHA512 f488b0ab1a909c9b878b9f3f3147641a9ed6d8d2ad44c67cd641934b800b18a62de2a7f5f51fdbecfbbcdd7c39c753734984cc0836c905a3b708858e1b91093d
-DIST courier-1.0.13.tar.bz2 7533779 BLAKE2B 38db2127df3f9d0371ee01563663ebabefdfb0e03bad01f6bdc421d2371191a27cfda00cb7927af2d4f8f3cec4f9e7756c786ae53cf60a23c1067d8620a105d7 SHA512 f2cf42791b6422151b7c155ae1533c0587abe4d13c498a96a678c8bafd8dd103631896cbf6c4ef53e288a81355ac625ee65eb3fec695d0d6d96bbfd6d3dd5d7b
-DIST courier-1.0.14.tar.bz2 7541652 BLAKE2B 5ddaabcfc49d5681b884311187eae04e492e273040dde6af83ab7ac4af117010be61c916cd909a686477c84997ca64cc435c1415f431c42c220c026d581e17da SHA512 7d66368745f3afdef0e1f4bd8078617203d7b846c96d499575daa07644ed5f800ff76e9c145f22010a677a5b754e4d4f300d95bc3f7d3a60a54271f284f80b5c
-DIST courier-1.0.17.tar.bz2 7644893 BLAKE2B c31a5f9b27119b0affc7fe3b66da8d35534f519c8ade77b5e59e0b08f92f143b54d519ef0f726b1e68f900e8f330811befb7f2d626de041ebee53be25e089bbe SHA512 588415d1062581ba7fef64eb884c129e4802d90f6e6bf583e249c6e83e62ec90dbc7ccc0e6e9ce4697c00a4c66b10b84bfc6121854fa7abacd613010f34936d6
-DIST courier-1.0.5.tar.bz2 7465054 BLAKE2B 55e9ba2a85889e7210652475149f4d3e687fd63a27b44a5a16c888b2f60bb18c4156e3344792585fed2ee3d81770e79c55ce5791842c255b8701bad5d2f8af4e SHA512 99a8e98633da99abd1f6f4e24328d4655526d51dc9fc03ffcb9c1e0cce0e608dedb2ac9511829af4487ff5af4618500d6fbbee26568f2a05e3c9d3cf3b48b2a5
-DIST courier-1.1.2.tar.bz2 7652292 BLAKE2B 3d5ded14e3972532abd86bdd9d2a144dc907d6e0d1300dcc5395fcc36984bc619453e612c4c2b504fd06cdbea44ce9cd70227e5b122445704df3ba852cdc5594 SHA512 e0267acae90e792a8813b189296a599c4e27337bd5952d311cc99b068b628d4c0c6e0ae4c6ccb03fd6ada4d0a9cb362c59a7a21833177301a830fcb4c437abfd
DIST courier-1.1.5.tar.bz2 7654159 BLAKE2B 7ad09b4b3c8ec201ea275851aec4efb34861a2881c765228b58063d26f17580fbe8ffe4e882d43b74ed048c3bf711e0eb08cb45eb1ba25ab2073a8c411a6cd4f SHA512 6b7040a73b09a4fc0ad4d93c576d7d7026aa743e5bbfe3ae14d2474dd9cffdb3419eceb14000cc0beeae40886796d9973e9f8611a7ea925cf2e0ab928904038a
-EBUILD courier-1.0.13-r1.ebuild 9228 BLAKE2B a617084d65ab98825648f83980fc9945a83f64e750640fb260ca73389d03df8c8f1a105f6b3666b07771fed22bb633af2a1aa073c1a4dbf881ec0221e9677f72 SHA512 854803815d64b702c1b38c8a8408830fe9fa1c2b90856d1b51b9790f19199d3ad49b9605bb07264b17370a5bbc2726719af923237c7c2034da661cd93b7a056f
-EBUILD courier-1.0.14-r1.ebuild 9222 BLAKE2B d2fcf292acfeb50718219b224b950a0e7780400b19eb89e3d7dffbc4226dd11cc7896cf42bed08945b0b1896317dfc0417fa2214577af8dbd02044d4435ce9aa SHA512 0f18bfbea962ca2a88b9f155c561b9e8948d4970ff661fba874a7ad1445b5d900bdf7da8ada324255bbcb5090746b95a08fd4a15e4edcd3c47d023a83d0c73bf
-EBUILD courier-1.0.17-r1.ebuild 9230 BLAKE2B 703d33dff91f0a0d296eaee8e8698978d39c605fa954987665cdb09d8eaf567b65c7b01d0878d02f14cb32b1a166395aee9283346b5545f79279274a769eec47 SHA512 c39bf3f6c47797eaa768a3e7deeee84306021e277913f906f9ddc3273b8fcf9dd6ec57cf7c93a3b1e3ce74e9c45a9bf7dd8411f160e4866255050e0ced2301e0
-EBUILD courier-1.0.5-r1.ebuild 9447 BLAKE2B 53ba4507d5f9e664cdf1b3fb0ab6628ff0dd7726d4c59fc623d400457ec7b3a7c6ee554ebe33a9f6f0d1e06cb06be16324c3fc2fa488e9a886fec05e752d22a8 SHA512 057d8141801296e5fcad4798167683eac9e9c79cb9ea217f34063bdc538536bf43b94c5170f0c735f399c101bf487d1cbcc0510a635ee34e63d29e684518d419
-EBUILD courier-1.1.2-r1.ebuild 9237 BLAKE2B 0fe69e31e88fe46342544dee1af0b9d67bad261429907076a21e88b896a25b54c6fe9762dda4af25b88575de4686bed3db324eae0726d8ced84163e63547d042 SHA512 a3e955183c1084173aa2d3b2202d7ca91204bda65cbfec5078936e86decbad274df4824e78cfb2ba1ac7207acdd2f3699b7395987ef4a21e82cf187c2af77324
+DIST courier-1.1.8.tar.bz2 7655220 BLAKE2B 189c87e416fe8d232e1fab8be47ff8258a54de2a6eccf1b02bd2839c6925018ee5b0ff3172ba791076c979d5c15a9dbcac1e7f515b0683066f3ff55369ea91a9 SHA512 9a0d96a20a75794fba57df11305326eb990091bd503763cd091ad29a4b34d9c1576d40c2e2d6eb81f3705e2d4b0a265c174df6e307a60fbbc1dc26110d931133
EBUILD courier-1.1.5-r1.ebuild 9231 BLAKE2B d5a6bc8aeac399d82955a02fd47195bb59f67da071ed9c310cbcb339bfb9d25ba08c65e573f6bed37e759b3588699725739b66451e12fede34b79223ec81b1f6 SHA512 e07df08b2ad30bf7a786050cf4bd3a1d996e09d1bbbf1e45c79789ac3bf3c4e15935dc92c36374f53634c459f4956d6cc4937c47bd553d607d0628feb2c0696a
+EBUILD courier-1.1.8.ebuild 9238 BLAKE2B 20125f895e47cbd04e69eb8607236aa6df62239522cceb48a196fc9fadc8c2ee28fccc16dc87194872f717f6066280a185cbec94b92da82eb0417acadee5c2f3 SHA512 7eeded65e2bcfafa5eb3e7a80da35a75357f9eaa7cb2326e7b5ad56b0118af8e0c7cae2a6db1a6e02a2213543ee945c916922655b2f7a6dafac41cd14d418544
MISC metadata.xml 756 BLAKE2B e3d128790b1620d9005c9a14cef1c452488fc8e465b235791cc196f431cb2ea8348aba342b0867282878d0c73392694be0db0686dc048d9345b286c3bccf1cab SHA512 c3fcd1ba4b22f91b1acf49faeee41562a7963b51d37e1593156086b79a1eb4172a12e7226b71a9aa55b5a4ef7d734351752451a2300375d061ae20481778b273
diff --git a/mail-mta/courier/courier-1.0.13-r1.ebuild b/mail-mta/courier/courier-1.0.13-r1.ebuild
deleted file mode 100644
index 703b73416dbe..000000000000
--- a/mail-mta/courier/courier-1.0.13-r1.ebuild
+++ /dev/null
@@ -1,312 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic multilib
-
-DESCRIPTION="An MTA designed specifically for maildirs"
-HOMEPAGE="https://www.courier-mta.org/"
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \
- fam web webmail gnutls"
-
-DEPEND="
- >=net-libs/courier-authlib-0.70.0
- >=net-libs/courier-unicode-2.1:=
- net-dns/libidn:=
- gnutls? ( net-libs/gnutls:= )
- !gnutls? (
- dev-libs/openssl:0=
- )
- >=sys-libs/gdbm-1.8.0:=
- dev-libs/libpcre
- app-misc/mime-types
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 )
- pam? ( sys-libs/pam )
- mysql? ( dev-db/mysql-connector-c )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( dev-db/postgresql:= )
- spell? ( app-text/aspell )
- fam? ( virtual/fam )
- !mail-filter/maildrop
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp[mta]
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail
- !mail-mta/ssmtp[mta]
- !mail-mta/opensmtpd
- !net-mail/dot-forward
- !sys-apps/ucspi-tcp
- "
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- sys-process/procps"
-
-# get rid of old style virtual/imapd - bug 350792
-# all blockers really needed?
-RDEPEND="${RDEPEND}
- !net-mail/bincimap
- !net-mail/courier-imap
- !net-mail/cyrus-imapd
- !net-mail/uw-imap"
-
-PDEPEND="pam? ( net-mail/mailbase )
- crypt? ( >=app-crypt/gnupg-1.0.4 )"
-
-src_prepare() {
- use norewrite && eapply "${FILESDIR}/norewrite.patch"
- default
-}
-
-src_configure() {
- filter-flags '-fomit-frame-pointer'
-
- local myconf
- myconf=""
-
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
-
- econf ${myconf} \
- $(use_with fam) \
- $(use_with ipv6) \
- $(use_with spell ispell) \
- $(use_with ldap ldapaliasd) \
- $(use_enable ldap maildroldap) \
- $(use_with gnutls) \
- --with-notice=unicode \
- --enable-mimetypes=/etc/mime.types \
- --prefix=/usr \
- --disable-root-check \
- --mandir=/usr/share/man \
- --sysconfdir=/etc/courier \
- --datadir=/usr/share/courier \
- --sharedstatedir=/var/lib/courier/com \
- --localstatedir=/var/lib/courier \
- --with-piddir=/var/run/courier \
- --with-authdaemonvar=/var/lib/courier/authdaemon \
- --with-mailuser=mail \
- --with-mailgroup=mail \
- --with-paranoid-smtpext \
- --with-db=gdbm \
- --disable-autorenamesent \
- --cache-file="${S}/configuring.cache" \
- --host="${CHOST}" debug=true || die "./configure"
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
-}
-
-src_compile() {
- default
-}
-
-etc_courier() {
- # Import existing /etc/courier/file if it exists.
- # Add option only if it was not already set or even commented out
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
- grep -q "${word}" "${D}/etc/courier/${file}" || \
- echo "${2}" >> "${D}/etc/courier/${file}"
-}
-
-etc_courier_chg() {
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
- [ -z "${section}" ] && section="${2}"
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
-}
-
-src_install() {
- local f
- diropts -o mail -g mail
- keepdir /var/lib/courier/tmp
- keepdir /var/lib/courier/msgs
- make install DESTDIR="${D}" || die "install"
- make install-configure || die "install-configure"
-
- # init script takes care of this
- rm -rf "${D}/var/run"
-
- # Get rid of files we dont want
- if ! use webmail ; then
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \
- "${D}/usr/share/courier/sqwebmail/" \
- "${D}/usr/sbin/webmaild" \
- "${D}/usr/sbin/webgpg" \
- "${D}/etc/courier/webmail.authpam" \
- "${D}/var/lib/courier/webmail-logincache" \
- "${D}"/etc/courier/sqwebmaild*
- fi
-
- if ! use web ; then
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \
- "${D}/etc/courier/webadmin"
- fi
-
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep"
- done
-
- newinitd "${FILESDIR}/courier-init-r4" "courier"
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
-
- cd "${D}/etc/courier"
- if use webmail ; then
- insinto /etc/courier
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
- fi
-
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
- if use ldap ; then
- [ -e ldapaliasrc ] && ( chown root:mail ldapaliasrc ; chmod 640 ldapaliasrc )
- else
- rm -f ldapaliasrc
- fi
-
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \
- > "${D}/etc/courier/sizelimit"
- etc_courier maildroprc ""
- etc_courier esmtproutes ""
- etc_courier backuprelay ""
- etc_courier locallowercase ""
- etc_courier bofh "opt BOFHBADMIME=accept"
- etc_courier bofh "opt BOFHSPFTRUSTME=1"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none"
- etc_courier bofh "opt BOFHSPFFROM=all"
- etc_courier bofh "opt BOFHSPFMAILFROM=all"
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail"
- etc_courier esmtpd "BOFHBADMIME=accept"
- etc_courier esmtpd-ssl "BOFHBADMIME=accept"
- etc_courier esmtpd-msa "BOFHBADMIME=accept"
-
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256"
-
- # Fix for a sandbox violation on subsequential merges
- # - ticho@gentoo.org, 2005-07-10
- dosym ../share/courier/pop3d /usr/sbin/courier-pop3d
- dosym ../share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl
- dosym ../share/courier/imapd /usr/sbin/courier-imapd
- dosym ../share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl
-
- cd "${S}"
- cp imap/README README.imap
- use nls && cp unicode/README README.unicode
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt
- dodoc libs/tcpd/README.couriertls
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html"
-
- if use webmail ; then
- insinto /usr/$(get_libdir)/courier/courier
- insopts -m 755 -o mail -g mail
- doins "${S}/courier/webmaild"
- fi
-
- if use web ; then
- insinto /etc/courier/webadmin
- insopts -m 400 -o mail -g mail
- doins "${FILESDIR}/password.dist"
- fi
-
- # avoid name collisions in /usr/sbin, make webadmin match
- cd "${D}/usr/sbin"
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
- if use web ; then
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
- || ewarn "failed to fix webadmin"
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
- || ewarn "failed to fix webadmin"
- fi
-
- # users should be able to send mail. Could be restricted with suictl.
- chmod u+s "${D}/usr/bin/sendmail"
-
- dosym ../bin/sendmail /usr/sbin/sendmail
-}
-
-src_test() {
- if [ `whoami` != 'root' ]; then
- emake -j1 check
- else
- einfo "make check skipped, can't run as root."
- einfo "You can enable it with FEATURES=\"userpriv\""
- fi
-}
-
-pkg_postinst() {
- use fam && elog "fam daemon is needed for courier-imapd" \
- || ewarn "courier was built without fam support"
-}
-
-pkg_config() {
- mailhost="$(hostname)"
- export mailhost
-
- domainname="$(domainname)"
- if [ "x$domainname" = "x(none)" ] ; then
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
- fi
- export domainname
-
- if [ "${ROOT}" = "/" ] ; then
- file="${ROOT}/etc/courier/locals"
- if [ ! -f "${file}" ] ; then
- echo "localhost" > "${file}";
- echo "${domainname}" >> "${file}";
- fi
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
- if [ ! -f "${file}" ] ; then
- echo "${domainname}" > "${file}"
- /usr/sbin/makeacceptmailfor
- fi
-
- file="${ROOT}/etc/courier/smtpaccess/${domainname}"
- if [ ! -f "${file}" ]
- then
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest
- do
- i=1
- net=""
- TIFS="${IFS}"
- IFS="."
- for o in "${netmask}"
- do
- if [ "${o}" == "255" ]
- then
- [ "_${net}" == "_" ] || net="${net}."
- t="$(echo "${network}" | cut -d " " -f ${i})"
- net="${net}${t}"
- fi
- i="$((${i} + 1))"
- done
- IFS="${TIFS}"
- echo "doing configuration - relay control for the network ${net} !"
- echo "${net} allow,RELAYCLIENT" >> ${file}
- done
- /usr/sbin/makesmtpaccess
- fi
- fi
-
- echo "creating cert for esmtpd-ssl:"
- /usr/sbin/mkesmtpdcert
- echo "creating cert for imapd-ssl:"
- /usr/sbin/mkpop3dcert
- echo "creating cert for pop3d-ssl:"
- /usr/sbin/mkimapdcert
-}
diff --git a/mail-mta/courier/courier-1.0.14-r1.ebuild b/mail-mta/courier/courier-1.0.14-r1.ebuild
deleted file mode 100644
index da8ad168359a..000000000000
--- a/mail-mta/courier/courier-1.0.14-r1.ebuild
+++ /dev/null
@@ -1,312 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic multilib
-
-DESCRIPTION="An MTA designed specifically for maildirs"
-HOMEPAGE="https://www.courier-mta.org/"
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 ~s390 sparc x86"
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \
- fam web webmail gnutls"
-
-DEPEND="
- >=net-libs/courier-authlib-0.70.0
- >=net-libs/courier-unicode-2.1:=
- net-dns/libidn:=
- gnutls? ( net-libs/gnutls:= )
- !gnutls? (
- dev-libs/openssl:0=
- )
- >=sys-libs/gdbm-1.8.0:=
- dev-libs/libpcre
- app-misc/mime-types
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 )
- pam? ( sys-libs/pam )
- mysql? ( dev-db/mysql-connector-c )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( dev-db/postgresql:= )
- spell? ( app-text/aspell )
- fam? ( virtual/fam )
- !mail-filter/maildrop
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp[mta]
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail
- !mail-mta/ssmtp[mta]
- !mail-mta/opensmtpd
- !net-mail/dot-forward
- !sys-apps/ucspi-tcp
- "
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- sys-process/procps"
-
-# get rid of old style virtual/imapd - bug 350792
-# all blockers really needed?
-RDEPEND="${RDEPEND}
- !net-mail/bincimap
- !net-mail/courier-imap
- !net-mail/cyrus-imapd
- !net-mail/uw-imap"
-
-PDEPEND="pam? ( net-mail/mailbase )
- crypt? ( >=app-crypt/gnupg-1.0.4 )"
-
-src_prepare() {
- use norewrite && eapply "${FILESDIR}/norewrite.patch"
- default
-}
-
-src_configure() {
- filter-flags '-fomit-frame-pointer'
-
- local myconf
- myconf=""
-
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
-
- econf ${myconf} \
- $(use_with fam) \
- $(use_with ipv6) \
- $(use_with spell ispell) \
- $(use_with ldap ldapaliasd) \
- $(use_enable ldap maildroldap) \
- $(use_with gnutls) \
- --with-notice=unicode \
- --enable-mimetypes=/etc/mime.types \
- --prefix=/usr \
- --disable-root-check \
- --mandir=/usr/share/man \
- --sysconfdir=/etc/courier \
- --datadir=/usr/share/courier \
- --sharedstatedir=/var/lib/courier/com \
- --localstatedir=/var/lib/courier \
- --with-piddir=/var/run/courier \
- --with-authdaemonvar=/var/lib/courier/authdaemon \
- --with-mailuser=mail \
- --with-mailgroup=mail \
- --with-paranoid-smtpext \
- --with-db=gdbm \
- --disable-autorenamesent \
- --cache-file="${S}/configuring.cache" \
- --host="${CHOST}" debug=true || die "./configure"
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
-}
-
-src_compile() {
- default
-}
-
-etc_courier() {
- # Import existing /etc/courier/file if it exists.
- # Add option only if it was not already set or even commented out
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
- grep -q "${word}" "${D}/etc/courier/${file}" || \
- echo "${2}" >> "${D}/etc/courier/${file}"
-}
-
-etc_courier_chg() {
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
- [ -z "${section}" ] && section="${2}"
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
-}
-
-src_install() {
- local f
- diropts -o mail -g mail
- keepdir /var/lib/courier/tmp
- keepdir /var/lib/courier/msgs
- make install DESTDIR="${D}" || die "install"
- make install-configure || die "install-configure"
-
- # init script takes care of this
- rm -rf "${D}/var/run"
-
- # Get rid of files we dont want
- if ! use webmail ; then
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \
- "${D}/usr/share/courier/sqwebmail/" \
- "${D}/usr/sbin/webmaild" \
- "${D}/usr/sbin/webgpg" \
- "${D}/etc/courier/webmail.authpam" \
- "${D}/var/lib/courier/webmail-logincache" \
- "${D}"/etc/courier/sqwebmaild*
- fi
-
- if ! use web ; then
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \
- "${D}/etc/courier/webadmin"
- fi
-
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep"
- done
-
- newinitd "${FILESDIR}/courier-init-r4" "courier"
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
-
- cd "${D}/etc/courier"
- if use webmail ; then
- insinto /etc/courier
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
- fi
-
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
- if use ldap ; then
- [ -e ldapaliasrc ] && ( chown root:mail ldapaliasrc ; chmod 640 ldapaliasrc )
- else
- rm -f ldapaliasrc
- fi
-
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \
- > "${D}/etc/courier/sizelimit"
- etc_courier maildroprc ""
- etc_courier esmtproutes ""
- etc_courier backuprelay ""
- etc_courier locallowercase ""
- etc_courier bofh "opt BOFHBADMIME=accept"
- etc_courier bofh "opt BOFHSPFTRUSTME=1"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none"
- etc_courier bofh "opt BOFHSPFFROM=all"
- etc_courier bofh "opt BOFHSPFMAILFROM=all"
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail"
- etc_courier esmtpd "BOFHBADMIME=accept"
- etc_courier esmtpd-ssl "BOFHBADMIME=accept"
- etc_courier esmtpd-msa "BOFHBADMIME=accept"
-
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256"
-
- # Fix for a sandbox violation on subsequential merges
- # - ticho@gentoo.org, 2005-07-10
- dosym ../share/courier/pop3d /usr/sbin/courier-pop3d
- dosym ../share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl
- dosym ../share/courier/imapd /usr/sbin/courier-imapd
- dosym ../share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl
-
- cd "${S}"
- cp imap/README README.imap
- use nls && cp unicode/README README.unicode
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt
- dodoc libs/tcpd/README.couriertls
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html"
-
- if use webmail ; then
- insinto /usr/$(get_libdir)/courier/courier
- insopts -m 755 -o mail -g mail
- doins "${S}/courier/webmaild"
- fi
-
- if use web ; then
- insinto /etc/courier/webadmin
- insopts -m 400 -o mail -g mail
- doins "${FILESDIR}/password.dist"
- fi
-
- # avoid name collisions in /usr/sbin, make webadmin match
- cd "${D}/usr/sbin"
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
- if use web ; then
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
- || ewarn "failed to fix webadmin"
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
- || ewarn "failed to fix webadmin"
- fi
-
- # users should be able to send mail. Could be restricted with suictl.
- chmod u+s "${D}/usr/bin/sendmail"
-
- dosym ../bin/sendmail /usr/sbin/sendmail
-}
-
-src_test() {
- if [ `whoami` != 'root' ]; then
- emake -j1 check
- else
- einfo "make check skipped, can't run as root."
- einfo "You can enable it with FEATURES=\"userpriv\""
- fi
-}
-
-pkg_postinst() {
- use fam && elog "fam daemon is needed for courier-imapd" \
- || ewarn "courier was built without fam support"
-}
-
-pkg_config() {
- mailhost="$(hostname)"
- export mailhost
-
- domainname="$(domainname)"
- if [ "x$domainname" = "x(none)" ] ; then
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
- fi
- export domainname
-
- if [ "${ROOT}" = "/" ] ; then
- file="${ROOT}/etc/courier/locals"
- if [ ! -f "${file}" ] ; then
- echo "localhost" > "${file}";
- echo "${domainname}" >> "${file}";
- fi
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
- if [ ! -f "${file}" ] ; then
- echo "${domainname}" > "${file}"
- /usr/sbin/makeacceptmailfor
- fi
-
- file="${ROOT}/etc/courier/smtpaccess/${domainname}"
- if [ ! -f "${file}" ]
- then
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest
- do
- i=1
- net=""
- TIFS="${IFS}"
- IFS="."
- for o in "${netmask}"
- do
- if [ "${o}" == "255" ]
- then
- [ "_${net}" == "_" ] || net="${net}."
- t="$(echo "${network}" | cut -d " " -f ${i})"
- net="${net}${t}"
- fi
- i="$((${i} + 1))"
- done
- IFS="${TIFS}"
- echo "doing configuration - relay control for the network ${net} !"
- echo "${net} allow,RELAYCLIENT" >> ${file}
- done
- /usr/sbin/makesmtpaccess
- fi
- fi
-
- echo "creating cert for esmtpd-ssl:"
- /usr/sbin/mkesmtpdcert
- echo "creating cert for imapd-ssl:"
- /usr/sbin/mkpop3dcert
- echo "creating cert for pop3d-ssl:"
- /usr/sbin/mkimapdcert
-}
diff --git a/mail-mta/courier/courier-1.0.17-r1.ebuild b/mail-mta/courier/courier-1.0.17-r1.ebuild
deleted file mode 100644
index 60d4849c3086..000000000000
--- a/mail-mta/courier/courier-1.0.17-r1.ebuild
+++ /dev/null
@@ -1,312 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic multilib
-
-DESCRIPTION="An MTA designed specifically for maildirs"
-HOMEPAGE="https://www.courier-mta.org/"
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \
- fam web webmail gnutls"
-
-DEPEND="
- >=net-libs/courier-authlib-0.71.1
- >=net-libs/courier-unicode-2.1.2:=
- net-dns/libidn:=
- gnutls? ( net-libs/gnutls:= )
- !gnutls? (
- dev-libs/openssl:0=
- )
- >=sys-libs/gdbm-1.8.0:=
- dev-libs/libpcre
- app-misc/mime-types
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 )
- pam? ( sys-libs/pam )
- mysql? ( dev-db/mysql-connector-c )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( dev-db/postgresql:= )
- spell? ( app-text/aspell )
- fam? ( virtual/fam )
- !mail-filter/maildrop
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp[mta]
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail
- !mail-mta/ssmtp[mta]
- !mail-mta/opensmtpd
- !net-mail/dot-forward
- !sys-apps/ucspi-tcp
- "
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- sys-process/procps"
-
-# get rid of old style virtual/imapd - bug 350792
-# all blockers really needed?
-RDEPEND="${RDEPEND}
- !net-mail/bincimap
- !net-mail/courier-imap
- !net-mail/cyrus-imapd
- !net-mail/uw-imap"
-
-PDEPEND="pam? ( net-mail/mailbase )
- crypt? ( >=app-crypt/gnupg-1.0.4 )"
-
-src_prepare() {
- use norewrite && eapply "${FILESDIR}/norewrite.patch"
- default
-}
-
-src_configure() {
- filter-flags '-fomit-frame-pointer'
-
- local myconf
- myconf=""
-
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
-
- econf ${myconf} \
- $(use_with fam) \
- $(use_with ipv6) \
- $(use_with spell ispell) \
- $(use_with ldap ldapaliasd) \
- $(use_enable ldap maildroldap) \
- $(use_with gnutls) \
- --with-notice=unicode \
- --enable-mimetypes=/etc/mime.types \
- --prefix=/usr \
- --disable-root-check \
- --mandir=/usr/share/man \
- --sysconfdir=/etc/courier \
- --datadir=/usr/share/courier \
- --sharedstatedir=/var/lib/courier/com \
- --localstatedir=/var/lib/courier \
- --with-piddir=/var/run/courier \
- --with-authdaemonvar=/var/lib/courier/authdaemon \
- --with-mailuser=mail \
- --with-mailgroup=mail \
- --with-paranoid-smtpext \
- --with-db=gdbm \
- --disable-autorenamesent \
- --cache-file="${S}/configuring.cache" \
- --host="${CHOST}" debug=true || die "./configure"
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
-}
-
-src_compile() {
- default
-}
-
-etc_courier() {
- # Import existing /etc/courier/file if it exists.
- # Add option only if it was not already set or even commented out
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
- grep -q "${word}" "${D}/etc/courier/${file}" || \
- echo "${2}" >> "${D}/etc/courier/${file}"
-}
-
-etc_courier_chg() {
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
- [ -z "${section}" ] && section="${2}"
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
-}
-
-src_install() {
- local f
- diropts -o mail -g mail
- keepdir /var/lib/courier/tmp
- keepdir /var/lib/courier/msgs
- make install DESTDIR="${D}" || die "install"
- make install-configure || die "install-configure"
-
- # init script takes care of this
- rm -rf "${D}/var/run"
-
- # Get rid of files we dont want
- if ! use webmail ; then
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \
- "${D}/usr/share/courier/sqwebmail/" \
- "${D}/usr/sbin/webmaild" \
- "${D}/usr/sbin/webgpg" \
- "${D}/etc/courier/webmail.authpam" \
- "${D}/var/lib/courier/webmail-logincache" \
- "${D}"/etc/courier/sqwebmaild*
- fi
-
- if ! use web ; then
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \
- "${D}/etc/courier/webadmin"
- fi
-
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep"
- done
-
- newinitd "${FILESDIR}/courier-init-r4" "courier"
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
-
- cd "${D}/etc/courier"
- if use webmail ; then
- insinto /etc/courier
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
- fi
-
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
- if use ldap ; then
- [ -e ldapaliasrc ] && ( chown root:mail ldapaliasrc ; chmod 640 ldapaliasrc )
- else
- rm -f ldapaliasrc
- fi
-
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \
- > "${D}/etc/courier/sizelimit"
- etc_courier maildroprc ""
- etc_courier esmtproutes ""
- etc_courier backuprelay ""
- etc_courier locallowercase ""
- etc_courier bofh "opt BOFHBADMIME=accept"
- etc_courier bofh "opt BOFHSPFTRUSTME=1"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none"
- etc_courier bofh "opt BOFHSPFFROM=all"
- etc_courier bofh "opt BOFHSPFMAILFROM=all"
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail"
- etc_courier esmtpd "BOFHBADMIME=accept"
- etc_courier esmtpd-ssl "BOFHBADMIME=accept"
- etc_courier esmtpd-msa "BOFHBADMIME=accept"
-
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256"
-
- # Fix for a sandbox violation on subsequential merges
- # - ticho@gentoo.org, 2005-07-10
- dosym ../share/courier/pop3d /usr/sbin/courier-pop3d
- dosym ../share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl
- dosym ../share/courier/imapd /usr/sbin/courier-imapd
- dosym ../share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl
-
- cd "${S}"
- cp imap/README README.imap
- use nls && cp unicode/README README.unicode
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt
- dodoc libs/tcpd/README.couriertls
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html"
-
- if use webmail ; then
- insinto /usr/$(get_libdir)/courier/courier
- insopts -m 755 -o mail -g mail
- doins "${S}/courier/webmaild"
- fi
-
- if use web ; then
- insinto /etc/courier/webadmin
- insopts -m 400 -o mail -g mail
- doins "${FILESDIR}/password.dist"
- fi
-
- # avoid name collisions in /usr/sbin, make webadmin match
- cd "${D}/usr/sbin"
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
- if use web ; then
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
- || ewarn "failed to fix webadmin"
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
- || ewarn "failed to fix webadmin"
- fi
-
- # users should be able to send mail. Could be restricted with suictl.
- chmod u+s "${D}/usr/bin/sendmail"
-
- dosym ../bin/sendmail /usr/sbin/sendmail
-}
-
-src_test() {
- if [ `whoami` != 'root' ]; then
- emake -j1 check
- else
- einfo "make check skipped, can't run as root."
- einfo "You can enable it with FEATURES=\"userpriv\""
- fi
-}
-
-pkg_postinst() {
- use fam && elog "fam daemon is needed for courier-imapd" \
- || ewarn "courier was built without fam support"
-}
-
-pkg_config() {
- mailhost="$(hostname)"
- export mailhost
-
- domainname="$(domainname)"
- if [ "x$domainname" = "x(none)" ] ; then
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
- fi
- export domainname
-
- if [ "${ROOT}" = "/" ] ; then
- file="${ROOT}/etc/courier/locals"
- if [ ! -f "${file}" ] ; then
- echo "localhost" > "${file}";
- echo "${domainname}" >> "${file}";
- fi
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
- if [ ! -f "${file}" ] ; then
- echo "${domainname}" > "${file}"
- /usr/sbin/makeacceptmailfor
- fi
-
- file="${ROOT}/etc/courier/smtpaccess/${domainname}"
- if [ ! -f "${file}" ]
- then
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest
- do
- i=1
- net=""
- TIFS="${IFS}"
- IFS="."
- for o in "${netmask}"
- do
- if [ "${o}" == "255" ]
- then
- [ "_${net}" == "_" ] || net="${net}."
- t="$(echo "${network}" | cut -d " " -f ${i})"
- net="${net}${t}"
- fi
- i="$((${i} + 1))"
- done
- IFS="${TIFS}"
- echo "doing configuration - relay control for the network ${net} !"
- echo "${net} allow,RELAYCLIENT" >> ${file}
- done
- /usr/sbin/makesmtpaccess
- fi
- fi
-
- echo "creating cert for esmtpd-ssl:"
- /usr/sbin/mkesmtpdcert
- echo "creating cert for imapd-ssl:"
- /usr/sbin/mkpop3dcert
- echo "creating cert for pop3d-ssl:"
- /usr/sbin/mkimapdcert
-}
diff --git a/mail-mta/courier/courier-1.0.5-r1.ebuild b/mail-mta/courier/courier-1.0.5-r1.ebuild
deleted file mode 100644
index 4165ee960928..000000000000
--- a/mail-mta/courier/courier-1.0.5-r1.ebuild
+++ /dev/null
@@ -1,317 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic multilib
-
-DESCRIPTION="An MTA designed specifically for maildirs"
-HOMEPAGE="http://www.courier-mta.org/"
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 ~s390 sparc x86"
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \
- fam web webmail gnutls"
-
-DEPEND="
- >=net-libs/courier-authlib-0.69.0-r1
- >=net-libs/courier-unicode-2.1:=
- net-dns/libidn:=
- gnutls? ( net-libs/gnutls:= )
- !gnutls? (
- dev-libs/openssl:0=
- )
- >=sys-libs/gdbm-1.8.0:=
- dev-libs/libpcre
- app-misc/mime-types
- fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 )
- pam? ( sys-libs/pam )
- mysql? ( dev-db/mysql-connector-c )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( dev-db/postgresql:= )
- spell? ( app-text/aspell )
- fam? ( virtual/fam )
- !mail-filter/maildrop
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp[mta]
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail
- !mail-mta/ssmtp[mta]
- !mail-mta/opensmtpd
- !net-mail/dot-forward
- !sys-apps/ucspi-tcp
- "
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- sys-process/procps"
-
-# get rid of old style virtual/imapd - bug 350792
-# all blockers really needed?
-RDEPEND="${RDEPEND}
- !net-mail/bincimap
- !net-mail/courier-imap
- !net-mail/cyrus-imapd
- !net-mail/uw-imap"
-
-PDEPEND="pam? ( net-mail/mailbase )
- crypt? ( >=app-crypt/gnupg-1.0.4 )"
-
-src_prepare() {
- use norewrite && eapply "${FILESDIR}/norewrite.patch"
- default
-}
-
-src_configure() {
- filter-flags '-fomit-frame-pointer'
-
- local myconf
- myconf=""
-
- use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
-
- econf ${myconf} \
- $(use_with fam) \
- $(use_with ipv6) \
- $(use_with spell ispell) \
- $(use_with ldap ldapaliasd) \
- $(use_enable ldap maildroldap) \
- $(use_with gnutls) \
- --with-notice=unicode \
- --enable-mimetypes=/etc/mime.types \
- --prefix=/usr \
- --disable-root-check \
- --mandir=/usr/share/man \
- --sysconfdir=/etc/courier \
- --datadir=/usr/share/courier \
- --sharedstatedir=/var/lib/courier/com \
- --localstatedir=/var/lib/courier \
- --with-piddir=/var/run/courier \
- --with-authdaemonvar=/var/lib/courier/authdaemon \
- --with-mailuser=mail \
- --with-mailgroup=mail \
- --with-paranoid-smtpext \
- --with-db=gdbm \
- --disable-autorenamesent \
- --cache-file="${S}/configuring.cache" \
- --host="${CHOST}" debug=true || die "./configure"
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
-}
-
-src_compile() {
- default
-}
-
-etc_courier() {
- # Import existing /etc/courier/file if it exists.
- # Add option only if it was not already set or even commented out
- file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
- [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
- cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
- grep -q "${word}" "${D}/etc/courier/${file}" || \
- echo "${2}" >> "${D}/etc/courier/${file}"
-}
-
-etc_courier_chg() {
- file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
- [ -z "${section}" ] && section="${2}"
- grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
- sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
-}
-
-src_install() {
- local f
- diropts -o mail -g mail
- keepdir /var/lib/courier/tmp
- keepdir /var/lib/courier/msgs
- make install DESTDIR="${D}" || die "install"
- make install-configure || die "install-configure"
-
- # init script takes care of this
- rm -rf "${D}/var/run"
-
- # Get rid of files we dont want
- if ! use webmail ; then
- rm -rf "${D}/usr/$(get_libdir)/courier/courier/webmail" \
- "${D}/usr/$(get_libdir)/courier/courier/sqwebmaild" \
- "${D}/usr/share/courier/sqwebmail/" \
- "${D}/usr/sbin/webmaild" \
- "${D}/usr/sbin/webgpg" \
- "${D}/etc/courier/webmail.authpam" \
- "${D}/var/lib/courier/webmail-logincache" \
- "${D}"/etc/courier/sqwebmaild*
- fi
-
- if ! use web ; then
- rm -rf "${D}/usr/share/courier/courierwebadmin/" \
- "${D}/etc/courier/webadmin"
- fi
-
- for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
- keepdir "$dir2keep" || die "failed running keepdir: $dir2keep"
- done
-
- newinitd "${FILESDIR}/courier-init-r4" "courier"
- use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
-
- cd "${D}/etc/courier"
- if use webmail ; then
- insinto /etc/courier
- newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
- fi
-
- for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
- if use ldap ; then
- [ -e ldapaliasrc ] && ( chown root:mail ldapaliasrc ; chmod 640 ldapaliasrc )
- else
- rm -f ldapaliasrc
- fi
-
- ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \
- > "${D}/etc/courier/sizelimit"
- etc_courier maildroprc ""
- etc_courier esmtproutes ""
- etc_courier backuprelay ""
- etc_courier locallowercase ""
- etc_courier bofh "opt BOFHBADMIME=accept"
- etc_courier bofh "opt BOFHSPFTRUSTME=1"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail"
- etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none"
- etc_courier bofh "opt BOFHSPFFROM=all"
- etc_courier bofh "opt BOFHSPFMAILFROM=all"
- etc_courier bofh "#opt BOFHSPFHARDERROR=fail"
- etc_courier esmtpd "BOFHBADMIME=accept"
- etc_courier esmtpd-ssl "BOFHBADMIME=accept"
- etc_courier esmtpd-msa "BOFHBADMIME=accept"
-
- use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
- use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256"
-
- # Fix for a sandbox violation on subsequential merges
- # - ticho@gentoo.org, 2005-07-10
- dosym ../share/courier/pop3d /usr/sbin/courier-pop3d
- dosym ../share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl
- dosym ../share/courier/imapd /usr/sbin/courier-imapd
- dosym ../share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl
-
- cd "${S}"
- cp imap/README README.imap
- use nls && cp unicode/README README.unicode
- dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt
- dodoc libs/tcpd/README.couriertls
- mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${PF}/html"
-
- if use webmail ; then
- insinto /usr/$(get_libdir)/courier/courier
- insopts -m 755 -o mail -g mail
- doins "${S}/courier/webmaild"
- fi
-
- if use web ; then
- insinto /etc/courier/webadmin
- insopts -m 400 -o mail -g mail
- doins "${FILESDIR}/password.dist"
- fi
-
- # avoid name collisions in /usr/sbin, make webadmin match
- cd "${D}/usr/sbin"
- for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
- if use web ; then
- sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \
- -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
- || ewarn "failed to fix webadmin"
- sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \
- -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \
- "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
- || ewarn "failed to fix webadmin"
- fi
-
- # users should be able to send mail. Could be restricted with suictl.
- chmod u+s "${D}/usr/bin/sendmail"
-
- dosym ../bin/sendmail /usr/sbin/sendmail
-}
-
-src_test() {
- if [ `whoami` != 'root' ]; then
- emake -j1 check
- else
- einfo "make check skipped, can't run as root."
- einfo "You can enable it with FEATURES=\"userpriv\""
- fi
-}
-
-pkg_postinst() {
- use fam && elog "fam daemon is needed for courier-imapd" \
- || ewarn "courier was built without fam support"
-
- ewarn "If you are updating from pre-1.0 courier versions to"
- ewarn "1.x versions you may need to update your maildir's"
- ewarn "to the new Unicode format, see also:"
- ewarn "https://www.courier-mta.org/maildirmake.html"
-}
-
-pkg_config() {
- mailhost="$(hostname)"
- export mailhost
-
- domainname="$(domainname)"
- if [ "x$domainname" = "x(none)" ] ; then
- domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
- fi
- export domainname
-
- if [ "${ROOT}" = "/" ] ; then
- file="${ROOT}/etc/courier/locals"
- if [ ! -f "${file}" ] ; then
- echo "localhost" > "${file}";
- echo "${domainname}" >> "${file}";
- fi
- file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
- if [ ! -f "${file}" ] ; then
- echo "${domainname}" > "${file}"
- /usr/sbin/makeacceptmailfor
- fi
-
- file="${ROOT}/etc/courier/smtpaccess/${domainname}"
- if [ ! -f "${file}" ]
- then
- netstat -nr | grep "^[1-9]" | while read network gateway netmask rest
- do
- i=1
- net=""
- TIFS="${IFS}"
- IFS="."
- for o in "${netmask}"
- do
- if [ "${o}" == "255" ]
- then
- [ "_${net}" == "_" ] || net="${net}."
- t="$(echo "${network}" | cut -d " " -f ${i})"
- net="${net}${t}"
- fi
- i="$((${i} + 1))"
- done
- IFS="${TIFS}"
- echo "doing configuration - relay control for the network ${net} !"
- echo "${net} allow,RELAYCLIENT" >> ${file}
- done
- /usr/sbin/makesmtpaccess
- fi
- fi
-
- echo "creating cert for esmtpd-ssl:"
- /usr/sbin/mkesmtpdcert
- echo "creating cert for imapd-ssl:"
- /usr/sbin/mkpop3dcert
- echo "creating cert for pop3d-ssl:"
- /usr/sbin/mkimapdcert
-}
diff --git a/mail-mta/courier/courier-1.1.2-r1.ebuild b/mail-mta/courier/courier-1.1.8.ebuild
index e8148ace0707..507a0b4b8027 100644
--- a/mail-mta/courier/courier-1.1.2-r1.ebuild
+++ b/mail-mta/courier/courier-1.1.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -16,7 +16,7 @@ IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \
fam web webmail gnutls"
DEPEND="
- >=net-libs/courier-authlib-0.71.2
+ >=net-libs/courier-authlib-0.71.3
>=net-libs/courier-unicode-2.2.3:=
net-dns/libidn:=
gnutls? ( net-libs/gnutls:= )
@@ -102,7 +102,6 @@ src_configure() {
--disable-autorenamesent \
--cache-file="${S}/configuring.cache" \
--host="${CHOST}" debug=true || die "./configure"
- sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
}
src_compile() {
@@ -132,7 +131,7 @@ src_install() {
keepdir /var/lib/courier/tmp
keepdir /var/lib/courier/msgs
make install DESTDIR="${D}" || die "install"
- make install-configure || die "install-configure"
+ make install-configure DESTDIR="${D}" || die "install-configure"
# init script takes care of this
rm -rf "${D}/var/run"
@@ -242,6 +241,8 @@ src_install() {
src_test() {
if [ `whoami` != 'root' ]; then
+ # Disable valgrind checks
+ echo '#!/bin/sh' > libs/imap/testsuitevalgrind
emake -j1 check
else
einfo "make check skipped, can't run as root."
diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest
index d984bb3833a4..7f6a27dd8094 100644
--- a/mail-mta/nullmailer/Manifest
+++ b/mail-mta/nullmailer/Manifest
@@ -5,5 +5,5 @@ AUX nullmailer-2.2-disable-smtp-auth-tests.patch 2383 BLAKE2B 07f2fc7517df280fac
AUX nullmailer-2.2-fix-test-racecondition.patch 890 BLAKE2B 7d12af8a9b6071f11e70c6aedbe0471f042c2c2e611eedf768071715b7f42a94b2b41e814a87dd87777810cbb823d20138d40f6aa3aba93ebaec89ebb6d9e2f3 SHA512 10873e538dbc89e8899047e732515d30108b25fd0ff6bb2fc695f5790a94ac32629f41c470a2fec951357169fead36ee4512f543ad0e02c52f09799334b815c7
AUX remotes.sample-2.0 920 BLAKE2B 26e777624086267e543354f130d3abc9591d832afbd80b8efd1fd2ce2391ed16641877077d90cef7d491a844e94fec3cba0a45dd452aa7f29151dd5873871200 SHA512 21694c7cceb3bdd743e30e2241b5e3293a3ad0fcdc4345d200f2e81c26b72b8a53c6cc3912a4e5f1de6411658a2144803746b44b59d48024cb3de33d72238354
DIST nullmailer-2.2.tar.gz 257740 BLAKE2B 18821caa1a377a899e3fedc84530d7c672f345cafb627da05e6c7bcd7d2708d54fc4ff4b761a6a23b2ddbabe73514473a5ec2abf3182dce2f5d3d4fbe3618fed SHA512 21b29d59f3c386c13ce4541ae11dc5cd69f842085479d7fc9a69a540abc608ce5c1825f06bd3566536b392931f7eeb1b2d35addd816849e6f431877bb18c8268
-EBUILD nullmailer-2.2-r2.ebuild 4286 BLAKE2B cf611cb6d863235cce976cece7f89b06a6f0b97e104387d0355e0f506892bd4f5b7fc4bd8efc40f7fcb7a57d60b624f579401a9834ac4e9cb84c0aca0fdfad48 SHA512 361b2aa95cdb159094f3e3ed8cdae3a60b9283c9ee8048cf7e548dc465c2fef04ead6a183641690a089b03a0fd07a6d87b3127ffb712095809625a1d7cf7050b
+EBUILD nullmailer-2.2-r2.ebuild 4292 BLAKE2B 02717ee09b5d9cb6930aa29bd6df33b84a1f8258ff0df67155bea9db30eef0490cc0c25741a5e4f9dce6abe5f20988df49e7f5aa7cca3920935f40c09d2e0920 SHA512 1e4891812700309e2f6e55f84c3ef695de8452155b47dd4b263bd9e13ab632e6dfad38c8ab5e1f1d2501eaad9c06d60c8a0b4ec3e22b4cfaa80528d0c1d1421a
MISC metadata.xml 343 BLAKE2B 875614e5e584c0c08adda33673e9606fa5bd02261cce775e9e01ef537926fd9a078af23418f917add1b7ecaf2ecfd09f28b0f37e2421228bd80a1005ea677afd SHA512 bbd2a53c352c2197b75ee2286af771c2ff56ebd9a7ae9927e0edca9e1a3ba6e530ca3d3cf888746b500d4adfb36524aa045a9073746392b7ec075ad252836e20
diff --git a/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild b/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild
index 0abff5963ff0..b1e6c0e9952f 100644
--- a/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild
+++ b/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -11,7 +11,7 @@ SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 arm arm64 ppc ~ppc64 ~riscv x86 ~x64-cygwin"
+KEYWORDS="amd64 arm arm64 ~hppa ppc ~ppc64 ~riscv x86 ~x64-cygwin"
IUSE="ssl test"
RESTRICT="!test? ( test )"
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest
index 777380a3ea4b..a1c3e4b13a9d 100644
--- a/mail-mta/postfix/Manifest
+++ b/mail-mta/postfix/Manifest
@@ -4,7 +4,11 @@ AUX postfix.service 662 BLAKE2B dcf9ceb71ad483b580d126fcb5ac68889cdeb898df3333d3
AUX smtp.pass 29 BLAKE2B 589915bd2856fa64e22caa12fca54ef342eb07606de38d3879c13ac395413c84de6c3b733c83cc0625a4433167efcc7d504b2f87fa26c05b2facde9c3d103021 SHA512 a8a940099a77ea0547004daf5392a6efc0cd643f10072803d65e37763012464ad25b1b925ae9e32bffb3c3e8a5d4b2d3bb5619a174d58fdc4ea5d4090db0d365
AUX smtp.sasl 42 BLAKE2B 67e9108101779b6027fa1e5cc7c9256a606d440e15bb037a0da186e6b4983ab26e88ede2f0604737c78144c03e182f66005062f1d49e10443d1ddb9757461d1f SHA512 a48e2bd173c4443dd2c389f6973a541dbcba4223b52b42b409a68d934a7fc82a98d4027267befcd5db6ec628cce6a9dffdf044e6fbd774b6e748f07f4106db47
DIST postfix-3.6.3.tar.gz 4750833 BLAKE2B 2a68e0f18227e09c0ce855901503fa83a58805f036f57eff9003102f5933a241e624e5f3f7a7af4f3d89784d95bc0be6ac1d17f30712f61491808ed6a90ce2d3 SHA512 7179aaeeaf27838b867d9a07f9a889d7cd6b7f5053e123caef4dff2820d4df6d5be167effedde6c857b4468966b8449c631e56405e1ac2d589716fb4e3f15e3b
-DIST postfix-3.7-20220103.tar.gz 4812964 BLAKE2B 40f883decaedf46428600f46fc934c0bb4d7a44a87db292e92cef71d13a69ba856bf289261e940022e9f439253868f024923c127870e0b47a00ef0381f21e8e6 SHA512 eef92f2414f41865bc684d492cb6be3b7cd445d13fd16c5e924544535b44233a08aff80768b13264bed46e8e7090a46b29e6e2652e4a446397531eb88308e866
+DIST postfix-3.6.4.tar.gz 4751433 BLAKE2B 2b410413e18cc2792bab7b75bcb8bcf36191c6abca8f2fea0ce54053f7a0be681352542ea8a3e26752a60ddc026bbc6ce84c926cc721811b43f3debc07b557cf SHA512 f5813801377a5887d27720cc7f85a6a68f8ca82fc7a9e852b27c8967996b3d64f651cc16e2b021d55316a074b4778e19155bb60c8f0885d4aaf72766cab7c4cd
+DIST postfix-3.7.0-RC2.tar.gz 4822561 BLAKE2B 9b05954f9b371423f7d372f1f23a2843eadb602f621c2fd588e762022bd6495d0dc3a1426f6b0e61d0fcb3d168d4468c8eb2332fdf8eeda553331181ddeeedb9 SHA512 226d9eb3face90dfb578968a1f9cf47314063f325358629c517a6d7516511fa674db9fe1c42eb2bab7124ce42cf21dccbb19ce328ce6a36342dc6eab82fbf431
+DIST postfix-3.8-20220129.tar.gz 4820046 BLAKE2B 10e1b9c8c8d2144061493401471580c2abdb6d551893e63b2e277666b7d6b9b2fb9bd83a1f874b6ee55084c2c83844760706abac66518e2864fc6880be3b6961 SHA512 5fa6427c84db4b9f15ea198da054e0d4a73bf098915b676df1d96aff47eb376c5a3f4ba1f9d23622488e4cb9abe90f885ce262f4d78925aac82b4d24a885b4a5
EBUILD postfix-3.6.3.ebuild 7966 BLAKE2B f9e3ea4c3979b034a6fb6412b30576d8dc843d03fbaa7dfe940fdce74e52cb4806bc52166e161ef357b8f61c0f03d5042fd10b8ad7b857733d163f15e9e69ef4 SHA512 7126c58d6e642752d3c8c2c70f189f7967d0859f39b0290077b0f0c4ffee9178bac3e3535bddbb2104ae7da1504c0dc1cdd54105717406e9e03bc4869c54cae8
-EBUILD postfix-3.7_pre20220103.ebuild 8080 BLAKE2B 6858bc013b9d48330178447416a4d4b871f42e863ea29e84b0e4422cb2738613ee4c1187bf4d69177298a2f1236c31c5716702cf8beb304bc4ca1a5db744adf3 SHA512 8682e6db06922c2367bcb813d04d475ff3e378d0471965c5cacbb4b8d29cc5c0268c3f8f6a5241f34b78116a67f9fca6fc1f2c6ef33b0b70b4bd478f45653efd
+EBUILD postfix-3.6.4.ebuild 7972 BLAKE2B 468fe0e9427efec7c1143721bf93ae851143f87ff8067604c0d19a9c504a9b493a35a605a749e55e16a78e4241d4a0225ff19b94f43a2c744f9a7ea458f90bc6 SHA512 b24cd791c9221099940ebab8709978326afae8a29597f764db2714c8a97ad7b2d48e37314250635549c53838c32a2be874ebba5750256197ac3511e622846ce0
+EBUILD postfix-3.7.0_rc2.ebuild 8063 BLAKE2B 75e5ebbc6ddcff256dc8dcf49c589c8eb17d632c2c71d5148b942afeebb6a86a58bad498d8147a131e2029a759b0929b7f8f66e51d2fde6fa9967b5ace6056da SHA512 71e021597fdcb2a4a549ebe6b2acc1cb578da7c5c1e04235204928fa514a3a970416d6ab9701c9ef02e61da602bff91d10956d748f33582a8c7bace6540c776c
+EBUILD postfix-3.8_pre20220129.ebuild 8066 BLAKE2B 612224bead57f3343ce9f95136a955adf58fdc014a8a3a30a8d89471cde7511f0fb9349ec13eb967c26d5b49c80183dd3fd1bdd18ceb77f3e85c6bad9b24304f SHA512 0b48087bdb54b3c03c5d6a4508fe8743287864f807c6aa545721b8a58bdf467d34f909f56c70c65d96992bbe40d767de45b3e3d552182f7ac6ef3196fdd0835e
MISC metadata.xml 867 BLAKE2B 1839d35c91007bb07e1a722b6b4751e9f7754e00109859efe5850df16486bafbaeb019326d006438471678553aca9474462fa32eaba445362113ced6927bf4ab SHA512 ff898bdce2b60bc52a0d326f8f8221bd474cc4fa31def2ccc5526ba59ad396b0b26f22cc98ca4e1181e3c38e5476615e53bde2db1e643ae5b9209ac581ecc1fd
diff --git a/mail-mta/postfix/postfix-3.6.4.ebuild b/mail-mta/postfix/postfix-3.6.4.ebuild
new file mode 100644
index 000000000000..16ec4506ca6e
--- /dev/null
+++ b/mail-mta/postfix/postfix-3.6.4.ebuild
@@ -0,0 +1,290 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit pam systemd toolchain-funcs
+
+MY_PV="${PV/_rc/-RC}"
+MY_SRC="${PN}-${MY_PV}"
+MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
+RC_VER="2.7"
+
+DESCRIPTION="A fast and secure drop-in replacement for sendmail"
+HOMEPAGE="http://www.postfix.org/"
+SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
+
+LICENSE="|| ( IBM EPL-2.0 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
+
+DEPEND="
+ acct-group/postfix
+ acct-group/postdrop
+ acct-user/postfix
+ >=dev-libs/libpcre-3.4
+ dev-lang/perl
+ berkdb? ( >=sys-libs/db-3.2:* )
+ cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
+ eai? ( dev-libs/icu:= )
+ ldap? ( net-nds/openldap )
+ ldap-bind? ( net-nds/openldap[sasl] )
+ lmdb? ( >=dev-db/lmdb-0.9.11:= )
+ mysql? ( dev-db/mysql-connector-c:0= )
+ nis? ( net-libs/libnsl:= )
+ pam? ( sys-libs/pam )
+ postgres? ( dev-db/postgresql:* )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( >=dev-libs/openssl-1.1.1:0= )
+ "
+
+RDEPEND="${DEPEND}
+ memcached? ( net-misc/memcached )
+ net-mail/mailbase
+ !mail-mta/courier
+ !mail-mta/esmtp
+ !mail-mta/exim
+ !mail-mta/msmtp[mta]
+ !mail-mta/netqmail
+ !mail-mta/nullmailer
+ !mail-mta/sendmail
+ !mail-mta/opensmtpd
+ !mail-mta/ssmtp[mta]
+ selinux? ( sec-policy/selinux-postfix )"
+
+REQUIRED_USE="ldap-bind? ( ldap sasl )"
+
+S="${WORKDIR}/${MY_SRC}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-glibc-2.34.patch"
+)
+
+src_prepare() {
+ default
+ sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
+ src/util/sys_defs.h || die "sed failed"
+ # change default paths to better comply with portage standard paths
+ sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
+}
+
+src_configure() {
+ for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
+ do
+ local AUXLIBS_${name}=""
+ done
+
+ # Make sure LDFLAGS get passed down to the executables.
+ local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
+ AUXLIBS_PCRE="$(pcre-config --libs)"
+
+ use pam && mylibs="${mylibs} -lpam"
+
+ if use ldap; then
+ mycc="${mycc} -DHAS_LDAP"
+ AUXLIBS_LDAP="-lldap -llber"
+ fi
+
+ if use mysql; then
+ mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
+ AUXLIBS_MYSQL="$(mysql_config --libs)"
+ fi
+
+ if use postgres; then
+ mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
+ AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
+ fi
+
+ if use sqlite; then
+ mycc="${mycc} -DHAS_SQLITE"
+ AUXLIBS_SQLITE="-lsqlite3 -lpthread"
+ fi
+
+ if use ssl; then
+ mycc="${mycc} -DUSE_TLS"
+ mylibs="${mylibs} -lssl -lcrypto"
+ fi
+
+ if use lmdb; then
+ mycc="${mycc} -DHAS_LMDB"
+ AUXLIBS_LMDB="-llmdb -lpthread"
+ fi
+
+ if ! use eai; then
+ mycc="${mycc} -DNO_EAI"
+ fi
+
+ # broken. and "in other words, not supported" by upstream.
+ # Use inet_protocols setting in main.cf
+ #if ! use ipv6; then
+ # mycc="${mycc} -DNO_IPV6"
+ #fi
+
+ if use sasl; then
+ if use dovecot-sasl; then
+ # Set dovecot as default.
+ mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
+ fi
+ if use ldap-bind; then
+ mycc="${mycc} -DUSE_LDAP_SASL"
+ fi
+ mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
+ mylibs="${mylibs} -lsasl2"
+ elif use dovecot-sasl; then
+ mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
+ fi
+
+ if ! use nis; then
+ mycc="${mycc} -DNO_NIS"
+ fi
+
+ if ! use berkdb; then
+ mycc="${mycc} -DNO_DB"
+ if use cdb; then
+ # change default hash format from Berkeley DB to cdb
+ mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
+ fi
+ fi
+
+ if use cdb; then
+ mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
+ # Tinycdb is preferred.
+ if has_version dev-db/tinycdb ; then
+ einfo "Building with dev-db/tinycdb"
+ AUXLIBS_CDB="-lcdb"
+ else
+ einfo "Building with dev-db/cdb"
+ CDB_PATH="/usr/$(get_libdir)"
+ for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
+ AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
+ done
+ fi
+ fi
+
+ sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
+ sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
+
+ emake makefiles shared=yes dynamicmaps=no pie=yes \
+ shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
+ DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
+ AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
+ AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
+ AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
+ AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
+}
+
+src_install() {
+ LD_LIBRARY_PATH="${S}/lib" \
+ /bin/sh postfix-install \
+ -non-interactive \
+ install_root="${D}" \
+ config_directory="/etc/postfix" \
+ manpage_directory="/usr/share/man" \
+ command_directory="/usr/sbin" \
+ mailq_path="/usr/bin/mailq" \
+ newaliases_path="/usr/bin/newaliases" \
+ sendmail_path="/usr/sbin/sendmail" \
+ || die "postfix-install failed"
+
+ # Fix spool removal on upgrade
+ rm -Rf "${D}"/var
+ keepdir /var/spool/postfix
+
+ # Install rmail for UUCP, closes bug #19127
+ dobin auxiliary/rmail/rmail
+
+ # Provide another link for legacy FSH
+ dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
+
+ # Install qshape, posttls-finger and collate and tlstype
+ dobin auxiliary/qshape/qshape.pl
+ doman man/man1/qshape.1
+ dobin bin/posttls-finger
+ doman man/man1/posttls-finger.1
+ dobin auxiliary/collate/collate.pl
+ newdoc auxiliary/collate/README README.collate
+ dobin auxiliary/collate/tlstype.pl
+ dodoc auxiliary/collate/README.tlstype
+
+ # Performance tuning tools and their manuals
+ dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
+ doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
+
+ # Set proper permissions on required files/directories
+ keepdir /var/lib/postfix
+ fowners -R postfix:postfix /var/lib/postfix
+ fperms 0750 /var/lib/postfix
+ fowners root:postdrop /usr/sbin/post{drop,queue}
+ fperms 02755 /usr/sbin/post{drop,queue}
+
+ keepdir /etc/postfix
+ keepdir /etc/postfix/postfix-files.d
+ if use mbox; then
+ mypostconf="mail_spool_directory=/var/spool/mail"
+ else
+ mypostconf="home_mailbox=.maildir/"
+ fi
+ LD_LIBRARY_PATH="${S}/lib" \
+ "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
+ -e ${mypostconf} || die "postconf failed"
+
+ insinto /etc/postfix
+ newins "${FILESDIR}"/smtp.pass saslpass
+ fperms 600 /etc/postfix/saslpass
+
+ newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
+ # do not start mysql/postgres unnecessarily - bug #359913
+ use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
+ use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
+
+ dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
+ mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
+ # postfix set-permissions expects uncompressed man files
+ docompress -x /usr/share/man
+
+ if use pam; then
+ pamd_mimic_system smtp auth account
+ fi
+
+ if use sasl; then
+ insinto /etc/sasl2
+ newins "${FILESDIR}"/smtp.sasl smtpd.conf
+ fi
+
+ # header files
+ insinto /usr/include/postfix
+ doins include/*.h
+
+ if has_version mail-mta/postfix; then
+ # let the sysadmin decide when to change the compatibility_level
+ sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
+ fi
+
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}
+
+pkg_postinst() {
+ if [[ ! -e /etc/mail/aliases.db ]] ; then
+ ewarn
+ ewarn "You must edit /etc/mail/aliases to suit your needs"
+ ewarn "and then run /usr/bin/newaliases. Postfix will not"
+ ewarn "work correctly without it."
+ ewarn
+ fi
+
+ # check and fix file permissions
+ "${EROOT}"/usr/sbin/postfix set-permissions
+
+ # configure tls
+ if use ssl ; then
+ if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
+ elog "To configure client side TLS settings:"
+ elog "${EROOT}"/usr/sbin/postfix tls enable-client
+ fi
+ if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
+ elog "To configure server side TLS settings:"
+ elog "${EROOT}"/usr/sbin/postfix tls enable-server
+ fi
+ fi
+}
diff --git a/mail-mta/postfix/postfix-3.7.0_rc2.ebuild b/mail-mta/postfix/postfix-3.7.0_rc2.ebuild
new file mode 100644
index 000000000000..19f6b3f39750
--- /dev/null
+++ b/mail-mta/postfix/postfix-3.7.0_rc2.ebuild
@@ -0,0 +1,294 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit pam systemd toolchain-funcs
+
+MY_PV="${PV/_rc/-RC}"
+MY_SRC="${PN}-${MY_PV}"
+MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
+RC_VER="2.7"
+
+DESCRIPTION="A fast and secure drop-in replacement for sendmail"
+HOMEPAGE="http://www.postfix.org/"
+SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
+
+LICENSE="|| ( IBM EPL-2.0 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mysql nis pam postgres sasl selinux sqlite ssl"
+
+DEPEND="
+ acct-group/postfix
+ acct-group/postdrop
+ acct-user/postfix
+ || ( dev-libs/libpcre2:0 dev-libs/libpcre )
+ dev-lang/perl
+ berkdb? ( >=sys-libs/db-3.2:* )
+ cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
+ eai? ( dev-libs/icu:= )
+ ldap? ( net-nds/openldap )
+ ldap-bind? ( net-nds/openldap[sasl] )
+ lmdb? ( >=dev-db/lmdb-0.9.11:= )
+ mysql? ( dev-db/mysql-connector-c:0= )
+ nis? ( net-libs/libnsl:= )
+ pam? ( sys-libs/pam )
+ postgres? ( dev-db/postgresql:* )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( >=dev-libs/openssl-1.1.1:0= )
+ "
+
+RDEPEND="${DEPEND}
+ memcached? ( net-misc/memcached )
+ net-mail/mailbase
+ !mail-mta/courier
+ !mail-mta/esmtp
+ !mail-mta/exim
+ !mail-mta/msmtp[mta]
+ !mail-mta/netqmail
+ !mail-mta/nullmailer
+ !mail-mta/sendmail
+ !mail-mta/opensmtpd
+ !mail-mta/ssmtp[mta]
+ selinux? ( sec-policy/selinux-postfix )"
+
+REQUIRED_USE="ldap-bind? ( ldap sasl )"
+
+S="${WORKDIR}/${MY_SRC}"
+
+src_prepare() {
+ default
+ sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
+ src/util/sys_defs.h || die "sed failed"
+ # change default paths to better comply with portage standard paths
+ sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
+}
+
+src_configure() {
+ for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
+ do
+ local AUXLIBS_${name}=""
+ done
+
+ # Make sure LDFLAGS get passed down to the executables.
+ local mycc="" mylibs="${LDFLAGS} -ldl"
+
+ # libpcre is EOL. prefer libpcre2
+ if has_version dev-libs/libpcre2; then
+ mycc="-DHAS_PCRE=2"
+ AUXLIBS_PCRE="$(pcre2-config --libs8)"
+ else
+ mycc="-DHAS_PCRE=1"
+ AUXLIBS_PCRE="$(pcre-config --libs)"
+ fi
+
+ use pam && mylibs="${mylibs} -lpam"
+
+ if use ldap; then
+ mycc="${mycc} -DHAS_LDAP"
+ AUXLIBS_LDAP="-lldap -llber"
+ fi
+
+ if use mysql; then
+ mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
+ AUXLIBS_MYSQL="$(mysql_config --libs)"
+ fi
+
+ if use postgres; then
+ mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
+ AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
+ fi
+
+ if use sqlite; then
+ mycc="${mycc} -DHAS_SQLITE"
+ AUXLIBS_SQLITE="-lsqlite3 -lpthread"
+ fi
+
+ if use ssl; then
+ mycc="${mycc} -DUSE_TLS"
+ mylibs="${mylibs} -lssl -lcrypto"
+ fi
+
+ if use lmdb; then
+ mycc="${mycc} -DHAS_LMDB"
+ AUXLIBS_LMDB="-llmdb -lpthread"
+ fi
+
+ if ! use eai; then
+ mycc="${mycc} -DNO_EAI"
+ fi
+
+ # broken. and "in other words, not supported" by upstream.
+ # Use inet_protocols setting in main.cf
+ #if ! use ipv6; then
+ # mycc="${mycc} -DNO_IPV6"
+ #fi
+
+ if use sasl; then
+ if use dovecot-sasl; then
+ # Set dovecot as default.
+ mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
+ fi
+ if use ldap-bind; then
+ mycc="${mycc} -DUSE_LDAP_SASL"
+ fi
+ mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
+ mylibs="${mylibs} -lsasl2"
+ elif use dovecot-sasl; then
+ mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
+ fi
+
+ if ! use nis; then
+ mycc="${mycc} -DNO_NIS"
+ fi
+
+ if ! use berkdb; then
+ mycc="${mycc} -DNO_DB"
+ # change default database type
+ if use cdb; then
+ mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
+ elif use lmdb; then
+ mycc="${mycc} -DDEF_DB_TYPE=\\\"lmdb\\\""
+ fi
+ fi
+
+ if use cdb; then
+ mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
+ # Tinycdb is preferred.
+ if has_version dev-db/tinycdb ; then
+ AUXLIBS_CDB="-lcdb"
+ else
+ CDB_PATH="/usr/$(get_libdir)"
+ for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
+ AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
+ done
+ fi
+ fi
+
+ sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
+ sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
+
+ emake makefiles shared=yes dynamicmaps=no pie=yes \
+ shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
+ DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
+ AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
+ AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
+ AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
+ AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
+}
+
+src_install() {
+ LD_LIBRARY_PATH="${S}/lib" \
+ /bin/sh postfix-install \
+ -non-interactive \
+ install_root="${D}" \
+ config_directory="/etc/postfix" \
+ manpage_directory="/usr/share/man" \
+ command_directory="/usr/sbin" \
+ mailq_path="/usr/bin/mailq" \
+ newaliases_path="/usr/bin/newaliases" \
+ sendmail_path="/usr/sbin/sendmail" \
+ || die "postfix-install failed"
+
+ # Fix spool removal on upgrade
+ rm -Rf "${D}"/var
+ keepdir /var/spool/postfix
+
+ # Install rmail for UUCP, closes bug #19127
+ dobin auxiliary/rmail/rmail
+
+ # Provide another link for legacy FSH
+ dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
+
+ # Install qshape, posttls-finger, collate and tlstype
+ dobin auxiliary/qshape/qshape.pl
+ doman man/man1/qshape.1
+ dobin bin/posttls-finger
+ doman man/man1/posttls-finger.1
+ dobin auxiliary/collate/collate.pl
+ newdoc auxiliary/collate/README README.collate
+ dobin auxiliary/collate/tlstype.pl
+ dodoc auxiliary/collate/README.tlstype
+
+ # Performance tuning tools and their manuals
+ dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
+ doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
+
+ # Set proper permissions on required files/directories
+ keepdir /var/lib/postfix
+ fowners -R postfix:postfix /var/lib/postfix
+ fperms 0750 /var/lib/postfix
+ fowners root:postdrop /usr/sbin/post{drop,queue,log}
+ fperms 02755 /usr/sbin/post{drop,queue,log}
+
+ keepdir /etc/postfix
+ keepdir /etc/postfix/postfix-files.d
+ if use mbox; then
+ mypostconf="mail_spool_directory=/var/spool/mail"
+ else
+ mypostconf="home_mailbox=.maildir/"
+ fi
+ LD_LIBRARY_PATH="${S}/lib" \
+ "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
+ -e ${mypostconf} || die "postconf failed"
+
+ insinto /etc/postfix
+ newins "${FILESDIR}"/smtp.pass saslpass
+ fperms 600 /etc/postfix/saslpass
+
+ newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
+ # do not start mysql/postgres unnecessarily - bug #359913
+ use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
+ use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
+
+ dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
+ dodoc -r README_FILES/ examples/
+ # postfix set-permissions expects uncompressed man files
+ docompress -x /usr/share/man
+
+ if use pam; then
+ pamd_mimic_system smtp auth account
+ fi
+
+ if use sasl; then
+ insinto /etc/sasl2
+ newins "${FILESDIR}"/smtp.sasl smtpd.conf
+ fi
+
+ # header files
+ insinto /usr/include/postfix
+ doins include/*.h
+
+ if has_version mail-mta/postfix; then
+ # let the sysadmin decide when to change the compatibility_level
+ sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
+ fi
+
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}
+
+pkg_postinst() {
+ if [[ ! -e /etc/mail/aliases.db ]] ; then
+ ewarn
+ ewarn "You must edit /etc/mail/aliases to suit your needs"
+ ewarn "and then run /usr/bin/newaliases. Postfix will not"
+ ewarn "work correctly without it."
+ ewarn
+ fi
+
+ # check and fix file permissions
+ "${EROOT}"/usr/sbin/postfix set-permissions
+
+ # configure tls
+ if use ssl ; then
+ if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
+ elog "To configure client side TLS settings:"
+ elog "${EROOT}"/usr/sbin/postfix tls enable-client
+ fi
+ if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
+ elog "To configure server side TLS settings:"
+ elog "${EROOT}"/usr/sbin/postfix tls enable-server
+ fi
+ fi
+}
diff --git a/mail-mta/postfix/postfix-3.7_pre20220103.ebuild b/mail-mta/postfix/postfix-3.8_pre20220129.ebuild
index 74c8b68785eb..27dc0dccf2ae 100644
--- a/mail-mta/postfix/postfix-3.7_pre20220103.ebuild
+++ b/mail-mta/postfix/postfix-3.8_pre20220129.ebuild
@@ -243,7 +243,7 @@ src_install() {
use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
- mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
+ dodoc -r README_FILES/ examples/
# postfix set-permissions expects uncompressed man files
docompress -x /usr/share/man
diff --git a/mail-mta/ssmtp/Manifest b/mail-mta/ssmtp/Manifest
index b961f37348b0..7802a127d7c1 100644
--- a/mail-mta/ssmtp/Manifest
+++ b/mail-mta/ssmtp/Manifest
@@ -1,4 +1,4 @@
DIST ssmtp-2.64-patches-4.tar.xz 6928 BLAKE2B 6f1d9a823273298abc58025c94cb288e1e296031580f63ed489a9d2559cd8846761e78c6fdfc1a385e645f990bc739ce3cf3ad0d1c1a3006dd3bd60e4a38c4f4 SHA512 6fa57c0bc5ad363e21bf69fb60f1cbb87ad1ead393a53ab5bd25b709303c321a29ed37ce7fe95b94dae748703bba3b0631fc2a95e40957c5241b5d9f42bc0c4a
DIST ssmtp_2.64.orig.tar.bz2 52501 BLAKE2B be158f8d969f98e1a7105bf4b741da960efa2a1c4a941426d6b6ec0677df13a2272fc71a93d2c44fe65c7d0a30e9acc4ec8259ed298b746c8d9ceefd64f95336 SHA512 911752e744420adf58552b9cf3a6e558d8b39103e5ad33a9ed4429b9a3a2091f7674aac11fe9bbd66747a61cdabe6bd638b80efcaadc86b057c12e2e235cca72
-EBUILD ssmtp-2.64-r4.ebuild 3544 BLAKE2B d6ed897d1434460c858a1d3035592d3a408f2f7a3e377c213b86676102885286a61774c2fda6f30515621eb7df384058e0c67a3445a52071b972b0eb4a91aed2 SHA512 64b1db8169ea706d57f92dd11593a40ba0d79d038b2dd0646659bda529c46bd0f8de37633abbf023fe2967abd6ec7e3d1a137e88ed14e0bf488ac0ab56c5fefa
+EBUILD ssmtp-2.64-r4.ebuild 3538 BLAKE2B 55dd507a28705730cf40bbd028531be6a164e69956d9cb3874792c3023cb66e28f56e938c1da1bfaf9a5aac2af22c400b6c56a139e1024f50e6d284385d50821 SHA512 791631ba3e6a09f65cc007500b642cb5271363505415e82dbc7761054249c3ddefcaa8e6ded577bfec883583927e6f383addab67e4e721618c05dbd4c747d400
MISC metadata.xml 260 BLAKE2B f96b11c227920f879747b300fc6477b855b8e8be2124d6ef0e92dc736dc26c4dc76e771566ffeeda9040796048e87a56982650dbbdec58b16bb585a251222f53 SHA512 9048e40f4fe34b95b6e528d34d2911f4dbd772d055d29bf1b8ecf6b7a4e0862e2f8f2cada011be9be7eb0e691d57380ec063023016856d4faae009e741991054
diff --git a/mail-mta/ssmtp/ssmtp-2.64-r4.ebuild b/mail-mta/ssmtp/ssmtp-2.64-r4.ebuild
index 9b99e81e7bf3..5380b270863c 100644
--- a/mail-mta/ssmtp/ssmtp-2.64-r4.ebuild
+++ b/mail-mta/ssmtp/ssmtp-2.64-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -17,7 +17,7 @@ SRC_URI="
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="ipv6 +ssl gnutls +mta"
DEPEND="