diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:35:26 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:35:26 -0500 |
| commit | f716a9fe6455d39eef01e718aae68dae61c19704 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /mail-mta | |
| parent | 3f9cf298e89cd5037b982abba06091224ee76daf (diff) | |
| download | baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.gz baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.xz baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.zip | |
Adding metadata
Diffstat (limited to 'mail-mta')
116 files changed, 0 insertions, 9362 deletions
diff --git a/mail-mta/courier/Manifest b/mail-mta/courier/Manifest deleted file mode 100644 index 553f29b7a442..000000000000 --- a/mail-mta/courier/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST courier-1.4.1.tar.bz2 7904154 BLAKE2B 029a4ee48955069fdb9de2e189c7e354ac742143d3f177d0533fb361aad9a17f276616c160db2b625a5efe5dfaa304f0fb204045dc95529dfbca97e163c1018e SHA512 0b2d7cbad97d3328beb75e424725f638c2344e29acc7e1a37d56919e53a090790533057e43fa3a8638d9432b0ea0f7f6dfa89bf62a05136cac4e65c0584b17a6 -DIST courier-1.5.1.tar.bz2 8470196 BLAKE2B d7cea5a6dd8075e94c7cfc6d50a7f4e8b8b46941d8013812ae5fc0ee0f820b636aa2e14f55481dc47cfc67fa7a9bdd9100315f23eaa102afcbcaedf0bbbde95d SHA512 7b3ee3e0882e66f5cf26ec2286fe7cd34f1d0ef5db8ad70b199473fec7d11d784a7164724b715da7f554039487153ffe07ac88c33afa505995c5266a04b8cc97 -DIST courier-1.6.0.tar.bz2 8448418 BLAKE2B 5324e7ffbc33cc5b3b015440c0a56cb9c758b642a347b462b1e02768cfd6a48c9ef2d5c219c8dac7272f86355c91fd5b57520268d7cf968092787d6c6934ccc8 SHA512 3f6fe7de8091bdc504c78fb10fa605f0492065827bc42ce364036d169fb03b9f31dabb7262bd5f91b1538f1489d344995e88d9eaac4a241731f9507009eaec0d diff --git a/mail-mta/courier/courier-1.4.1.ebuild b/mail-mta/courier/courier-1.4.1.ebuild deleted file mode 100644 index 243c8ffd1a55..000000000000 --- a/mail-mta/courier/courier-1.4.1.ebuild +++ /dev/null @@ -1,313 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -HOMEPAGE="https://www.courier-mta.org/" -SRC_URI="https://downloads.sourceforge.net/courier/${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \ - fam web webmail gnutls split-usr" - -DEPEND=" - >=net-libs/courier-authlib-0.72.4 - >=net-libs/courier-unicode-2.3.2:= - net-dns/libidn2:= - gnutls? ( net-libs/gnutls:= ) - !gnutls? ( - dev-libs/openssl:0= - ) - >=sys-libs/gdbm-1.8.0:= - dev-libs/libpcre2 - app-misc/mime-types - dev-lang/perl:= - 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/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/ssmtp[mta] - !mail-mta/opensmtpd - !net-mail/dot-forward - !sys-apps/ucspi-tcp - " - -RDEPEND="${DEPEND} - sys-process/procps" - -# get rid of old style virtual/imapd - bug 350792 -# all blockers really needed? -RDEPEND="${RDEPEND} - !net-mail/courier-imap - !net-mail/cyrus-imapd" - -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" -} - -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 - local 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() { - local 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 DESTDIR="${D}" || 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" - - if use split-usr; then - dosym ../bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - if [ `whoami` != 'root' ]; then - # Disable valgrind checks - echo '#!/bin/sh' > libs/imap/testsuitevalgrind - echo '#!/bin/sh' > libs/maildir/testsuitevalgrind - sed -i -e 's:VALGRIND=:exit 0 #VALGRIND=:g' libs/maildrop/Makefile* - 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 [[ -z "${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.5.1.ebuild b/mail-mta/courier/courier-1.5.1.ebuild deleted file mode 100644 index cf9b6a1055ff..000000000000 --- a/mail-mta/courier/courier-1.5.1.ebuild +++ /dev/null @@ -1,313 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -HOMEPAGE="https://www.courier-mta.org/" -SRC_URI="https://downloads.sourceforge.net/courier/${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \ - fam web webmail gnutls split-usr test" -RESTRICT="!test? ( test )" - -DEPEND=" - >=net-libs/courier-authlib-0.72.5 - >=net-libs/courier-unicode-2.4.0:= - net-dns/libidn2:= - gnutls? ( net-libs/gnutls:= ) - !gnutls? ( - dev-libs/openssl:0= - ) - >=sys-libs/gdbm-1.8.0:= - dev-libs/libpcre2 - app-misc/mime-types - dev-lang/perl:= - 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/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/ssmtp[mta] - !mail-mta/opensmtpd - !net-mail/dot-forward - !sys-apps/ucspi-tcp - test? ( dev-debug/valgrind ) - " - -RDEPEND="${DEPEND} - sys-process/procps" - -# get rid of old style virtual/imapd - bug 350792 -# all blockers really needed? -RDEPEND="${RDEPEND} - !net-mail/courier-imap - !net-mail/cyrus-imapd" - -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" -} - -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 - local 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() { - local 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 DESTDIR="${D}" || 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" - - if use split-usr; then - dosym ../bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - if [ `whoami` = 'root' ]; then - einfo "make check skipped, can't run as root." - einfo "You can enable it with FEATURES=\"userpriv\"" - elif [ $(locale -a|grep '^en_US.iso88591$\|^en_US.utf8$'|wc -l) -le 2 ]; then - einfo "make check skipped, tests need en_US.iso88591 and en_US.utf8 locales." - else - emake -j1 check - 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 [[ -z "${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.6.0.ebuild b/mail-mta/courier/courier-1.6.0.ebuild deleted file mode 100644 index 07e20b7ea53f..000000000000 --- a/mail-mta/courier/courier-1.6.0.ebuild +++ /dev/null @@ -1,313 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -HOMEPAGE="https://www.courier-mta.org/" -SRC_URI="https://downloads.sourceforge.net/courier/${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite \ - fam web webmail gnutls split-usr test" -RESTRICT="!test? ( test )" - -DEPEND=" - >=net-libs/courier-authlib-0.72.7 - >=net-libs/courier-unicode-2.5.0:= - net-dns/libidn2:= - gnutls? ( net-libs/gnutls:= ) - !gnutls? ( - dev-libs/openssl:0= - ) - >=sys-libs/gdbm-1.8.0:= - dev-libs/libpcre2 - app-misc/mime-types - dev-lang/perl:= - 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/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/ssmtp[mta] - !mail-mta/opensmtpd - !net-mail/dot-forward - !sys-apps/ucspi-tcp - test? ( dev-debug/valgrind ) - " - -RDEPEND="${DEPEND} - sys-process/procps" - -# get rid of old style virtual/imapd - bug 350792 -# all blockers really needed? -RDEPEND="${RDEPEND} - !net-mail/courier-imap - !net-mail/cyrus-imapd" - -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" -} - -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 - local 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() { - local 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 DESTDIR="${D}" || 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" - - if use split-usr; then - dosym ../bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - if [ `whoami` = 'root' ]; then - einfo "make check skipped, can't run as root." - einfo "You can enable it with FEATURES=\"userpriv\"" - elif [ $(locale -a|grep '^en_US.iso88591$\|^en_US.utf8$'|wc -l) -le 2 ]; then - einfo "make check skipped, tests need en_US.iso88591 and en_US.utf8 locales." - else - emake -j1 check - 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 [[ -z "${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/files/apache-sqwebmail.inc b/mail-mta/courier/files/apache-sqwebmail.inc deleted file mode 100644 index c88f803c5d1b..000000000000 --- a/mail-mta/courier/files/apache-sqwebmail.inc +++ /dev/null @@ -1,14 +0,0 @@ -Alias /webmail/ /usr/share/courier/sqwebmail/images/ -<Directory /usr/share/courier/sqwebmail/> - Order Allow,Deny - AllowOverride All - Allow from all -</Directory> - -ScriptAlias /courier/ /usr/lib/courier/courier/webmail/ -<Directory /usr/lib/courier/courier/webmail/> - AllowOverride All - Options ExecCGI - Order allow,deny - Allow from all -</Directory> diff --git a/mail-mta/courier/files/courier-init-r4 b/mail-mta/courier/files/courier-init-r4 deleted file mode 100644 index 28dbd7936744..000000000000 --- a/mail-mta/courier/files/courier-init-r4 +++ /dev/null @@ -1,189 +0,0 @@ -#!/sbin/openrc-run -# Portions Copyright 2003 Gentoo Linux -# -# script originally from Courier distfile original name = courier.sysvinit -# adapted for Gentoo by Brian Jackson -# -# TODO -# should we update all the .dat/.pem files when the source/config files are -# newer than the .dat/.pem files? - -prefix="/usr" -exec_prefix="/usr/bin" -sysconfdir="/etc/courier" -sbindir="/usr/sbin" -libexecdir="/usr/lib/courier" -datadir="/usr/share/courier" - -depend() { - need net - [ -d /etc/courier/authlib ] && need courier-authlib - grep -q "^IMAPDSTART=.*[Yy].*" /etc/courier/imapd && use famd - grep -q "^IMAPDSSLSTART=.*[Yy].*" /etc/courier/imapd-ssl && use famd -} - -checkconfig() { - checkpath -q -d -o mail:mail -m 0755 /var/run/courier - - [ -f ${sysconfdir}/pop3d-ssl ] && . ${sysconfdir}/pop3d-ssl - - # If we do not have a certificate, make one up. - [ ! -f "${datadir}/pop3d.pem" ] && \ - ebegin " generating-POP3-SSL-certificate..." && "${sbindir}/mkpop3dcert" - - [ -f ${sysconfdir}/imapd-ssl ] && . ${sysconfdir}/imapd-ssl - - # If we do not have a certificate, make one up. - [ ! -f ${datadir}/imapd.pem ] && \ - ebegin " generating-IMAP-SSL-certificate..." && "${sbindir}/mkimapdcert" - - [ -f ${sysconfdir}/esmtpd-ssl ] && . ${sysconfdir}/esmtpd-ssl - - # If we do not have a certificate, make one up. - [ ! -f ${datadir}/esmtpd.pem ] && \ - ebegin " generating-ESMTP-SSL-certificate..." && "${sbindir}/mkesmtpdcert" - - # First time after install create aliases.dat and smtpaccess.dat - - [ -f ${sysconfdir}/aliases.dat ] || ${sbindir}/makealiases - - [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess - - [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess-msa -} - -start() { - # Start daemons. - ebegin "Starting Courier mail server:" - - checkconfig || return 1 - - ebegin " Starting courierfilterd" - ${sbindir}/courierfilter start - - [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \ - ${libexecdir}/authlib/authdaemond start && ebegin " Starting authdaemond" - - [ -x ${sbindir}/webmaild ] && \ - ${sbindir}/webmaild start && ebegin " Starting webmaild" - - [ -x ${sbindir}/courierldapaliasd ] && \ - ${sbindir}/courierldapaliasd start && ebegin " Starting courierldapaliasd" - - ebegin " Starting courierd" - ${sbindir}/courier start - - savepath="$PATH" - # start esmtpd if so written - [ -f ${sysconfdir}/esmtpd ] && source ${sysconfdir}/esmtpd - PATH="$savepath" - case x$ESMTPDSTART in - x[yY]*) - ebegin " Starting esmtpd" - ${sbindir}/esmtpd start - ;; - esac - - # start esmtpd-msa if so written - [ -f ${sysconfdir}/esmtpd-msa ] && source ${sysconfdir}/esmtpd-msa - PATH="$savepath" - case x$ESMTPDSTART in - x[yY]*) - ebegin " Starting esmtpd-msa" - ${sbindir}/esmtpd-msa start - ;; - esac - - # start esmtpd-ssl if so written - [ -f ${sysconfdir}/esmtpd-ssl ] && source ${sysconfdir}/esmtpd-ssl - PATH="$savepath" - case x$ESMTPDSSLSTART in - x[yY]*) - ebegin " Starting esmtpd-ssl" - ${sbindir}/esmtpd-ssl start - ;; - esac - - # start pop3d if so written - [ -f ${sysconfdir}/pop3d ] && source ${sysconfdir}/pop3d - PATH="$savepath" - case x$POP3DSTART in - x[yY]*) - ebegin " courier-pop3d" - ${sbindir}/courier-pop3d start - ;; - esac - - # start pop3d-ssl if so written - [ -f ${sysconfdir}/pop3d-ssl ] && source ${sysconfdir}/pop3d-ssl - PATH="$savepath" - case x$POP3DSSLSTART in - x[yY]*) - ebegin " courier-pop3d-ssl" - ${sbindir}/courier-pop3d-ssl start - ;; - esac - - [ -f ${sysconfdir}/imapd ] && source ${sysconfdir}/imapd - PATH="$savepath" - case x$IMAPDSTART in - x[yY]*) - ebegin " courier-imapd" - ${sbindir}/courier-imapd start - ;; - esac - - [ -f ${sysconfdir}/imapd-ssl ] && source ${sysconfdir}/imapd-ssl - PATH="$savepath" - case x$IMAPDSSLSTART in - x[yY]*) - ebegin " courier-imapd-ssl" - ${sbindir}/courier-imapd-ssl start - ;; - esac - - eend $? -} - -stop() { - ebegin "Stopping Courier mail server:" - - ebegin " Stopping courier-esmtpd" - ${sbindir}/esmtpd stop - - ebegin " Stopping courier-esmtpd-msa" - ${sbindir}/esmtpd-msa stop - - ebegin " Stopping courier-esmtpd-ssl" - ${sbindir}/esmtpd-ssl stop - - [ -x ${sbindir}/courier-pop3d ] && \ - ebegin " Stopping courier-pop3d" && ${sbindir}/courier-pop3d stop - - [ -x ${sbindir}/courier-pop3d-ssl ] && \ - ebegin " Stopping courier-pop3d-ssl" && ${sbindir}/courier-pop3d-ssl stop - - [ -x ${sbindir}/courier-imapd ] && \ - ebegin " Stopping courier-imapd" && ${sbindir}/courier-imapd stop - - - [ -x ${sbindir}/courier-imapd-ssl ] && \ - ebegin " Stopping courier-imapd-ssl" && ${sbindir}/courier-imapd-ssl stop - - ebegin " Stopping courierd" - ${sbindir}/courier stop - - [ -x ${sbindir}/courierldapaliasd ] && \ - ( ${sbindir}/courierldapaliasd stop ; ebegin " Stopping courierldapaliasd" ) - - [ -x ${sbindir}/webmaild ] && \ - ( ${sbindir}/webmaild stop ; ebegin " Stopping webmaild" ) - - [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \ - ( ${libexecdir}/authlib/authdaemond stop ; ebegin " Stopping authdaemond" ) - - ${sbindir}/courierfilter stop - ebegin " Stopping courierfilterd" - - eend $? -} diff --git a/mail-mta/courier/files/norewrite.patch b/mail-mta/courier/files/norewrite.patch deleted file mode 100644 index 9fd4224348cf..000000000000 --- a/mail-mta/courier/files/norewrite.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/courier/module.esmtp/esmtp.c 2004-02-03 01:08:15.679486558 -0700 -+++ b/courier/module.esmtp/esmtp.c 2004-02-03 01:07:41.262697092 -0700 -@@ -255,6 +255,10 @@ const char *me; - struct rfc822t *tp; - struct rfc822token at; - -+#if 1 -+ (*func)(info); -+ return; -+#else - if (info->ptr == 0) - { - (*func)(info); -@@ -289,6 +293,7 @@ struct rfc822token at; - (*func)(info); - *r=0; - rfc822t_free(tp); -+#endif - } - - static void rw_esmtp(struct rw_info *info, void (*func)(struct rw_info *)) diff --git a/mail-mta/courier/files/password.dist b/mail-mta/courier/files/password.dist deleted file mode 100644 index 5220e4ee0eb3..000000000000 --- a/mail-mta/courier/files/password.dist +++ /dev/null @@ -1,6 +0,0 @@ -# 1. Open /etc/courier/webadmin/password for editing -# 2. There should be one word in this file. The webadmin password -# 3. chown mail:mail password -# 4. chmod 400 password -# -# Thanks to Fernando Tobler on bug #10574 for the concise instructions diff --git a/mail-mta/courier/metadata.xml b/mail-mta/courier/metadata.xml deleted file mode 100644 index 678bc6a477cc..000000000000 --- a/mail-mta/courier/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>hanno@gentoo.org</email> - </maintainer> - <longdescription> - Complete email package consisting of pop, imap, smtp, and fax - server and secure version of the above also. - </longdescription> - <use> - <flag name="fax">Enables fax support in the courier mail server</flag> - <flag name="norewrite">Prevents courier mail server from mangling - virtual user addresses when sending</flag> - <flag name="web">Enable the web interface</flag> - <flag name="webmail">Enable the webmail interface</flag> - </use> - <upstream> - <remote-id type="sourceforge">courier</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-mta/exim/Manifest b/mail-mta/exim/Manifest deleted file mode 100644 index f2d459440135..000000000000 --- a/mail-mta/exim/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -DIST exim-4.98.2.tar.xz 1929020 BLAKE2B 7e8b11de364735a0d3d1d1d269ec0a8030530daca141163fb5a57c6f2a93dbd6298cbb0fc422d9e9f4ca363e675923fe952ba52080767a6f9c21ace9d01821ab SHA512 aaa4cfc8aee90818c6d1c2fd0cf64b82668d1a343f462f678b38b2b79e10a467240f2e81786eec7705eec3598d23686a74437c50b68502f29ff67788393c812a -DIST exim-4.99.3.tar.xz 1961292 BLAKE2B c0d4e70fea7e4b3e35c3a693ff6c2ac19cc059f114f3db75e606136bf5582ba813c2b1785104d57cac273474661beeb9c0b3ab13cc60a485fe478ddeb169ba0b SHA512 7c4109f499497e2432b71ad3f3f1cac358e63b1b693a352047e6990619d7fd619d3a966ba585482c58e0b23b3fa4f385d15720c455fda29633411e35db1d2e7f -DIST exim-4.99.4.tar.xz 1961412 BLAKE2B 316bd641a66f056a7d76f9c8b277a8727d854687d7251957ca4f2f2cf1ad7c92f0a25ddbed15e45009bd6c4d1ca9e8714262e508e4a577eb6eed74c6c9e06018 SHA512 30fa01a301f8f4fe0c069f3da9e5247f0e22b19f64119cb8cccaf10aada8280ce02061a4671d110ad29b08af9e23ba3c3e8c7483874c7b1c992d90b51681ca9a -DIST exim-pdf-4.98.2.tar.xz 2139176 BLAKE2B 7ac5a0e4107ce3928417bcc39fef6ad6ab817ad415290dc2be913f5df56ee24ee89b26ed7be07b10580b14690b89548ef9c14ed98ddaa57133ec4d6940e2014d SHA512 ca33c47911e44f1d3918180389259e9f2e7256a2186130667dfbe71d244eb3d8df5d56136fe48b564cc756c776678780d444afc99f3163e2852f9e067739fd34 -DIST exim-pdf-4.99.3.tar.xz 2184440 BLAKE2B b15842daa3ed3a302a9a0e513680a3af5c57773ee69b5bd2cb689e599c1cee05601ea959f1961f6d30635516eac4392a6007a2ed04cc5223e1a1c2433f63e1aa SHA512 642a5e9f97d56d9485ab8c7d3c61a3cf153e7475a00c08bda4db9581a330f7edcd49210ed70eb0e7b7094910fcfeb7f1e3fd2474a982530be27148f0ff67fb21 -DIST exim-pdf-4.99.4.tar.xz 2186640 BLAKE2B f9f7ae0a414202924d84e3581559dbc86118313338129dc0c7016fc626c84d0279a40c10496a7c18b6e8c2e14b96b3dd66e3c3aa183a63c432e506536c4b39cb SHA512 07436bb596464155d135c1f5bcc6e25f4fa9c9a34cb6fe40150044af44c1f06de14792776575681c562aa86dd9c625a9c19e8ef7cd1ba81f70663db7a9d08720 -DIST system_filter.exim.gz 3075 BLAKE2B d05e872b5cef377d29126cda03fc0a74c8777b2119b76ff43da6e8de808035eb9bfcb034a85d81824f135d484e864bfc0629fc1af2c228a7277d5ee7cf9cde79 SHA512 cb358d3ce2499a0bb5920d962a06f2af8486e55ec90c8c928bd8e3aefb279aa57f5f960d5adfcef68bd94110b405eaa144e9629cfe6014a529c79c544600bbf3 diff --git a/mail-mta/exim/exim-4.98.2-r1.ebuild b/mail-mta/exim/exim-4.98.2-r1.ebuild deleted file mode 100644 index fb27cb15314f..000000000000 --- a/mail-mta/exim/exim-4.98.2-r1.ebuild +++ /dev/null @@ -1,620 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit db-use flag-o-matic toolchain-funcs pam systemd - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -HOMEPAGE="https://www.exim.org/" - -SDIR=$( - [[ ${PV} == *_rc* ]] && echo /test - [[ ${PV} == *.*.*.* ]] && echo /fixes -) -COMM_URI="https://downloads.exim.org/exim4${SDIR}" - -SRC_URI="${COMM_URI}/${P//_rc/-RC}.tar.xz - mirror://gentoo/system_filter.exim.gz - doc? ( ${COMM_URI}/${PN}-pdf-${PV//_rc/-RC}.tar.xz )" -S=${WORKDIR}/${P//_rc/-RC} - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ppc ppc64 ~sparc x86" - -IUSE="arc berkdb +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl -dsn gdbm gnutls idn ipv6 ldap lmtp maildir mbx -mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux -socks5 spf sqlite srs +ssl syslog tdb tcpd +tpda" -REQUIRED_USE=" - arc? ( dkim spf ) - dane? ( ssl !gnutls ) - !dane? ( ssl? ( gnutls ) ) - dmarc? ( dkim spf ) - dkim? ( ssl !gnutls ) - gnutls? ( ssl ) - pkcs11? ( ssl ) - || ( berkdb gdbm tdb sqlite ) -" -# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked -# for x86 and amd64 only (probably due to unbound dep) -# Exim supports it but we cannot express the dep USE=dane when -# USE=gnutls is in effect only in package.use.mask, the only option we -# have left is to a) ignore the dependency (but that results in bug -# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are -# incorrect, but b) is the only "correct" view from dep-pointofview. -# Bug #925108 showed that DANE is basically non-optional with OpenSSL, -# so we make -dane mandatory to use gnutls. Bleh. -# We cannot express a required use for berkdb/gdbm/tdb correctly because -# berkdb and gdbm are both enabled in base profile - -COMMON_DEPEND=">=sys-apps/sed-4.0.5 - dev-libs/libpcre2:= - tdb? ( sys-libs/tdb:= ) - !tdb? ( berkdb? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) ) - !tdb? ( !berkdb? ( sys-libs/gdbm:= ) ) - idn? ( net-dns/libidn:= net-dns/libidn2:= ) - perl? ( dev-lang/perl:= ) - pam? ( sys-libs/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( - gnutls? ( - net-libs/gnutls:0=[pkcs11?] - dev-libs/libtasn1 - ) - !gnutls? ( - dev-libs/openssl:0= - ) - ) - ldap? ( >=net-nds/openldap-2.0.7:= ) - elibc_glibc? ( - net-libs/libnsl:= - nis? ( - net-libs/libtirpc:= - >=net-libs/libnsl-1:= - ) - ) - mysql? ( dev-db/mysql-connector-c:= ) - postgres? ( dev-db/postgresql:= ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 ) - redis? ( dev-libs/hiredis:= ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - dmarc? ( mail-filter/opendmarc:= ) - sqlite? ( dev-db/sqlite:= ) - radius? ( net-dialup/freeradius-client ) - virtual/libcrypt:= - virtual/libiconv - " -BDEPEND="virtual/pkgconfig" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !mail-mta/ssmtp[mta] - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - selinux? ( sec-policy/selinux-exim ) - " - -src_prepare() { - # Legacy patches which need a respin for -p1 - eapply -p0 "${FILESDIR}"/exim-4.14-tail.patch - eapply -p0 "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 - eapply "${FILESDIR}"/exim-4.97-as-needed-ldflags.patch # 352265, 391279 - eapply -p0 "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 - eapply "${FILESDIR}"/exim-4.69-r1.27021.patch - eapply "${FILESDIR}"/exim-4.97-localscan_dlopen.patch - eapply "${FILESDIR}"/exim-4.97-no-exim_id_update.patch - eapply "${FILESDIR}"/exim-4.98-tidydb-crash.patch # upstream #3144 - - # oddity, they disable berkdb as hack, and then throw an error when - # berkdb isn't enabled - sed -i \ - -e 's/_DB_/_DONTMESS_/' \ - -e 's/define DB void/define DONTMESS void/' \ - src/auths/call_radius.c || die - - if use maildir ; then - eapply "${FILESDIR}"/exim-4.94-maildir.patch - else - eapply -p0 "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606 - fi - - eapply_user - - # user Exim believes it should be - MAILUSER=mail - MAILGROUP=mail - if use prefix && [[ ${EUID} != 0 ]] ; then - MAILUSER=$(id -un) - MAILGROUP=$(id -gn) - fi -} - -src_configure() { - # general config and paths - - local aliases="${EPREFIX}/etc/mail/aliases" - sed -i \ - -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${aliases}'" \ - src/configure.default || die - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/' Makefile || die - - if use elibc_musl; then - sed -i -e 's/^LIBS = -lnsl/LIBS =/g' OS/Makefile-Linux || die - append-cflags -DNO_EXECINFO - fi - - local conffile="${EPREFIX}/etc/exim/exim.conf" - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s;EXIM_USER=;EXIM_USER=ref:${MAILUSER};" \ - -e "s:CONFIGURE_FILE=.*$:CONFIGURE_FILE=${conffile}:" \ - -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:^LOOKUP_DBM = yes:# LOOKUP_DBM = yes:" \ - src/EDITME > Local/Makefile || die - - # work on Local/Makefile from now on - cd Local - - cat >> Makefile <<- EOC - INFO_DIRECTORY=${EPREFIX}/usr/share/info - PID_FILE_PATH=${EPREFIX}/run/exim.pid - SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim - HAVE_ICONV=yes - WITH_CONTENT_SCAN=yes - EOC - - # configure db implementation, Exim always needs one for its hints - # database, we prefer sqlite, tdb and gdbm, since bdb is kind of - # getting less and less support - sed -i \ - -e 's:^USE_DB=yes:# USE_DB=yes:' \ - -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' \ - -e 's:^USE_TDB=yes:# USE_TDB=yes:' \ - -e 's:^USE_SQLITE=yes:# USE_SQLITE=yes:' \ - Makefile || die - if use sqlite ; then - cat >> Makefile <<- EOC - USE_SQLITE=yes - DBMLIB = -lsqlite3 - EOC - elif use tdb ; then - cat >> Makefile <<- EOC - USE_TDB=yes - DBMLIB = -ltdb - EOC - elif use gdbm ; then - cat >> Makefile <<- EOC - USE_GDBM=yes - DBMLIB = -lgdbm - EOC - else # must be berkdb via required_use - # use the "native" interfaces to the DBM and CDB libraries, support - # passwd and directory lookups by default - local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2" - cat >> Makefile <<- EOC - USE_DB=yes - LOOKUP_DBM = yes - # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h - CFLAGS += -I$(db_includedir ${DB_VERS}) - DBMLIB = -l$(db_libname ${DB_VERS}) - EOC - fi - - # if we use libiconv, now is the time to tell so - if use !elibc_glibc && use !elibc_musl ; then - cat >> Makefile <<- EOC - EXTRALIBS_EXIM=-liconv - EOC - fi - - # support for IPv6 - if use ipv6; then - cat >> Makefile <<- EOC - HAVE_IPV6=YES - EOC - fi - - # support i18n/IDNA - if use idn; then - cat >> Makefile <<- EOC - SUPPORT_I18N=yes - SUPPORT_I18N_2008=yes - EXTRALIBS_EXIM += -lidn -lidn2 - EOC - fi - - # - # mail storage formats - # - - # mailstore is Exim's traditional storage format - cat >> Makefile <<- EOC - SUPPORT_MAILSTORE=yes - EOC - - # mbox - if use mbx; then - cat >> Makefile <<- EOC - SUPPORT_MBX=yes - EOC - fi - - # maildir - if use maildir; then - cat >> Makefile <<- EOC - SUPPORT_MAILDIR=yes - EOC - fi - - # - # lookup methods - # - - # support passwd and directory lookups by default - cat >> Makefile <<- EOC - LOOKUP_CDB=yes - LOOKUP_PASSWD=yes - LOOKUP_DSEARCH=yes - EOC - - if ! use dnsdb; then - # DNSDB lookup is enabled by default - sed -i -e 's:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:' Makefile || die - fi - - if use ldap; then - cat >> Makefile <<- EOC - LOOKUP_LDAP=yes - LDAP_LIB_TYPE=OPENLDAP2 - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/ldap - LOOKUP_LIBS += -lldap -llber - EOC - fi - - if use mysql; then - cat >> Makefile <<- EOC - LOOKUP_MYSQL=yes - LOOKUP_INCLUDE += $(mysql_config --include) - LOOKUP_LIBS += $(mysql_config --libs) - EOC - fi - - if use nis; then - cat >> Makefile <<- EOC - LOOKUP_NIS=yes - LOOKUP_NISPLUS=yes - EOC - if use elibc_glibc ; then - cat >> Makefile <<- EOC - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/tirpc - LOOKUP_LIBS += -lnsl - EOC - fi - fi - - if use postgres; then - cat >> Makefile <<- EOC - LOOKUP_PGSQL=yes - LOOKUP_INCLUDE += -I$(pg_config --includedir) - LOOKUP_LIBS += -L$(pg_config --libdir) -lpq - EOC - fi - - if use sqlite; then - cat >> Makefile <<- EOC - LOOKUP_SQLITE=yes - LOOKUP_SQLITE_PC=sqlite3 - EOC - fi - - if use redis; then - cat >> Makefile <<- EOC - LOOKUP_REDIS=yes - LOOKUP_LIBS += -lhiredis - EOC - fi - - # - # features - # - - # DomainKeys Identified Mail, RFC4871 - if ! use dkim; then - # DKIM is enabled by default - cat >> Makefile <<- EOC - DISABLE_DKIM=yes - EOC - fi - - # Per-Recipient-Data-Response - if ! use prdr; then - # PRDR is enabled by default - cat >> Makefile <<- EOC - DISABLE_PRDR=yes - EOC - fi - - # Transport post-delivery actions - if use !tpda && use !dane; then - # EVENT is enabled by default - cat >> Makefile <<- EOC - DISABLE_EVENT=yes - EOC - fi - - # log to syslog - if use syslog; then - local eximlog="${EPREFIX}/var/log/exim/exim_%s.log" - sed -i \ - -e "s:LOG_FILE_PATH=${eximlog}:LOG_FILE_PATH=syslog:" \ - Makefile || die - cat >> Makefile <<- EOC - LOG_FILE_PATH=syslog - EOC - else - cat >> Makefile <<- EOC - LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log - EOC - fi - - # starttls support (ssl) - if use ssl; then - if use gnutls; then - echo "USE_GNUTLS=yes" >> Makefile - echo "USE_GNUTLS_PC=gnutls $(use dane && echo gnutls-dane)" \ - >> Makefile - use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile - else - echo "USE_OPENSSL=yes" >> Makefile - echo "USE_OPENSSL_PC=openssl" >> Makefile - fi - else - echo "DISABLE_TLS=yes" >> Makefile - fi - - # TCP wrappers - if use tcpd; then - cat >> Makefile <<- EOC - USE_TCP_WRAPPERS=yes - EXTRALIBS_EXIM += -lwrap - EOC - fi - - # Light Mail Transport Protocol - if use lmtp; then - cat >> Makefile <<- EOC - TRANSPORT_LMTP=yes - EOC - fi - - # embedded Perl - if use perl; then - cat >> Makefile <<- EOC - EXIM_PERL=perl.o - EOC - fi - - # dlfunc - if use dlfunc; then - cat >> Makefile <<- EOC - EXPAND_DLFUNC=yes - HAVE_LOCAL_SCAN=yes - DLOPEN_LOCAL_SCAN=yes - EOC - fi - - # Proxy Protocol - if use proxy; then - cat >> Makefile <<- EOC - SUPPORT_PROXY=yes - EOC - fi - - # SOCKS5 (outbound) proxy support - if use socks5; then - cat >> Makefile <<- EOC - SUPPORT_SOCKS=yes - EOC - fi - - # DANE - if use !dane; then - # DANE is enabled by default - sed -i -e 's:^SUPPORT_DANE=yes:# SUPPORT_DANE=yes:' Makefile || die - fi - - # DMARC - if use dmarc; then - cat >> Makefile <<- EOC - SUPPORT_DMARC=yes - EXTRALIBS_EXIM += -lopendmarc - EOC - fi - - # Sender Policy Framework - if use spf; then - cat >> Makefile <<- EOC - SUPPORT_SPF=yes - EXTRALIBS_EXIM += -lspf2 - EOC - fi - - # - # experimental features - # - - # Authenticated Receive Chain - if use arc; then - echo "EXPERIMENTAL_ARC=yes">> Makefile - fi - - # Distributed Checksum Clearinghouse - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Makefile - fi - - # Sender Rewriting Scheme - if use srs; then - # this one is the default/supported variant since 4.95, and the - # only variant available since 4.96 - cat >> Makefile <<- EOC - SUPPORT_SRS=yes - EOC - fi - - # Delivery Sender Notifications extra information in fail message - if use dsn; then - cat >> Makefile <<- EOC - EXPERIMENTAL_DSN_INFO=yes - EOC - fi - - # - # authentication (SMTP AUTH) - # - - # standard bits - cat >> Makefile <<- EOC - AUTH_SPA=yes - AUTH_CRAM_MD5=yes - AUTH_PLAINTEXT=yes - EOC - - # Cyrus SASL - if use sasl; then - cat >> Makefile <<- EOC - CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux - AUTH_CYRUS_SASL=yes - AUTH_LIBS += -lsasl2 - EOC - fi - - # Dovecot - if use dovecot-sasl; then - cat >> Makefile <<- EOC - AUTH_DOVECOT=yes - EOC - fi - - # Pluggable Authentication Modules - if use pam; then - cat >> Makefile <<- EOC - SUPPORT_PAM=yes - AUTH_LIBS += -lpam - EOC - fi - - # Radius - if use radius; then - cat >> Makefile <<- EOC - RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf - RADIUS_LIB_TYPE=RADIUSCLIENTNEW - AUTH_LIBS += -lfreeradius-client - EOC - fi -} - -src_compile() { - emake CC="$(tc-getCC)" HOSTCC="$(tc-getBUILD_CC)" \ - AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' -} - -src_install() { - cd "${S}"/build-exim-gentoo || die - dosbin exim - fperms 4755 /usr/sbin/exim - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym ../sbin/exim /usr/bin/mailq - dosym ../sbin/exim /usr/bin/newaliases - dosym ../sbin/sendmail /usr/lib/sendmail - - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - convert4r3 convert4r4 exipick - do - dosbin $i - done - - dodoc -r "${S}"/doc/. - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default exim.conf.dist - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - if use pam; then - pamd_mimic system-auth exim auth account - fi - - # headers, #436406 - if use dlfunc ; then - # fixup includes so they actually can be found when including - sed -i \ - -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \ - local_scan.h || die - insinto /usr/include/exim - doins {config,local_scan}.h ../src/{mytypes,store}.h - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc10 exim - newconfd "${FILESDIR}"/exim.confd exim - - systemd_dounit \ - "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket} - systemd_newunit \ - "${FILESDIR}"/exim_at.service 'exim@.service' - systemd_newunit \ - "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service' - - diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP} - keepdir /var/log/${PN} -} - -pkg_postinst() { - if [[ ! -f ${EROOT}/etc/exim/exim.conf ]] ; then - einfo "${EROOT}/etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}/etc/exim/auth_conf.sub contains the configuration sub" - einfo "for using smtp auth." - einfo "Please create ${EROOT}/etc/exim/exim.conf from" - einfo " ${EROOT}/etc/exim/exim.conf.dist." - fi - if use berkdb && ( use gdbm || use tdb ) ; then - ewarn "USE=berkdb is ignored because USE=gdbm or USE=tdb is enabled!" - fi - if use dmarc ; then - einfo "DMARC support requires ${EROOT}/etc/exim/opendmarc.tlds" - einfo "you can populate this file with the contents downloaded from" - einfo " https://publicsuffix.org/list/public_suffix_list.dat" - fi - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo " http://article.gmane.org/gmane.mail.exim.devel/3579" - fi - use dsn && einfo "extra information in fail DSN message is experimental" - einfo - elog "Support for eximon via USE=X was dropped in this ebuild." - elog "The eximon code no longer compiles using recent compilers." -} diff --git a/mail-mta/exim/exim-4.99.3.ebuild b/mail-mta/exim/exim-4.99.3.ebuild deleted file mode 100644 index fd92d0c73673..000000000000 --- a/mail-mta/exim/exim-4.99.3.ebuild +++ /dev/null @@ -1,610 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit db-use flag-o-matic toolchain-funcs pam systemd - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -HOMEPAGE="https://www.exim.org/" - -SDIR=$( - [[ ${PV} == *_rc* ]] && echo /test - [[ ${PV} == *.*.*.* ]] && echo /fixes -) -COMM_URI="https://downloads.exim.org/exim4${SDIR}" - -SRC_URI="${COMM_URI}/${P//_rc/-RC}.tar.xz - mirror://gentoo/system_filter.exim.gz - doc? ( ${COMM_URI}/${PN}-pdf-${PV//_rc/-RC}.tar.xz )" -S=${WORKDIR}/${P//_rc/-RC} - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ppc ppc64 ~sparc x86" - -IUSE="arc berkdb +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl - dsn gdbm gnutls gsasl idn ipv6 ldap lmtp maildir mbx - mysql nis pam perl pkcs11 postgres +prdr proxy redis sasl - selinux socks5 spf sqlite srs +ssl syslog +tdb tcpd +tpda" -REQUIRED_USE=" - arc? ( dkim spf ) - dane? ( ssl !gnutls ) - !dane? ( ssl? ( gnutls ) ) - dmarc? ( dkim spf ) - dkim? ( ssl !gnutls ) - gnutls? ( ssl ) - pkcs11? ( ssl ) - || ( berkdb gdbm tdb sqlite ) -" -# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked -# for x86 and amd64 only (probably due to unbound dep) -# Exim supports it but we cannot express the dep USE=dane when -# USE=gnutls is in effect only in package.use.mask, the only option we -# have left is to a) ignore the dependency (but that results in bug -# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are -# incorrect, but b) is the only "correct" view from dep-pointofview. -# Bug #925108 showed that DANE is basically non-optional with OpenSSL, -# so we make -dane mandatory to use gnutls. Bleh. -# We cannot express a required use for berkdb/gdbm/tdb correctly because -# berkdb and gdbm are both enabled in base profile - -COMMON_DEPEND=">=sys-apps/sed-4.0.5 - dev-libs/libpcre2:= - tdb? ( sys-libs/tdb:= ) - !tdb? ( berkdb? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) ) - !tdb? ( !berkdb? ( sys-libs/gdbm:= ) ) - idn? ( net-dns/libidn:= net-dns/libidn2:= ) - perl? ( dev-lang/perl:= ) - pam? ( sys-libs/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( - gnutls? ( - net-libs/gnutls:0=[pkcs11?] - dev-libs/libtasn1 - ) - !gnutls? ( - dev-libs/openssl:0= - ) - ) - ldap? ( >=net-nds/openldap-2.0.7:= ) - elibc_glibc? ( - net-libs/libnsl:= - nis? ( - net-libs/libtirpc:= - >=net-libs/libnsl-1:= - ) - ) - mysql? ( dev-db/mysql-connector-c:= ) - postgres? ( dev-db/postgresql:= ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 ) - gsasl? ( net-misc/gsasl ) - redis? ( dev-libs/hiredis:= ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - dmarc? ( mail-filter/opendmarc:= ) - sqlite? ( dev-db/sqlite:= ) - virtual/libcrypt:= - virtual/libiconv - " -BDEPEND="virtual/pkgconfig" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !mail-mta/ssmtp[mta] - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - selinux? ( sec-policy/selinux-exim ) - " - -src_prepare() { - # Legacy patches which need a respin for -p1 - eapply -p0 "${FILESDIR}"/exim-4.14-tail.patch - eapply "${FILESDIR}"/exim-4.99.3-as-needed-ldflags.patch # 352265, 391279 - eapply -p0 "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 - eapply "${FILESDIR}"/exim-4.69-r1.27021.patch - eapply "${FILESDIR}"/exim-4.97-localscan_dlopen.patch - eapply "${FILESDIR}"/exim-4.97-no-exim_id_update.patch - - if use maildir ; then - eapply "${FILESDIR}"/exim-4.94-maildir.patch - else - eapply -p0 "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606 - fi - - eapply_user - - # user Exim believes it should be - MAILUSER=mail - MAILGROUP=mail - if use prefix && [[ ${EUID} != 0 ]] ; then - MAILUSER=$(id -un) - MAILGROUP=$(id -gn) - fi -} - -src_configure() { - # general config and paths - - local aliases="${EPREFIX}/etc/mail/aliases" - sed -i \ - -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${aliases}'" \ - src/configure.default || die - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/' Makefile || die - - if use elibc_musl; then - sed -i -e 's/^LIBS = -lnsl/LIBS =/g' OS/Makefile-Linux || die - append-cflags -DNO_EXECINFO - fi - - local conffile="${EPREFIX}/etc/exim/exim.conf" - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s;EXIM_USER=;EXIM_USER=ref:${MAILUSER};" \ - -e "s:CONFIGURE_FILE=.*$:CONFIGURE_FILE=${conffile}:" \ - -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:^LOOKUP_DBM = yes:# LOOKUP_DBM = yes:" \ - src/EDITME > Local/Makefile || die - - # work on Local/Makefile from now on - cd Local - - cat >> Makefile <<- EOC - INFO_DIRECTORY=${EPREFIX}/usr/share/info - PID_FILE_PATH=${EPREFIX}/run/exim.pid - SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim - HAVE_ICONV=yes - WITH_CONTENT_SCAN=yes - EOC - - # configure db implementation, Exim always needs one for its hints - # database, we prefer sqlite, tdb and gdbm, since bdb is kind of - # getting less and less support - sed -i \ - -e 's:^USE_DB=yes:# USE_DB=yes:' \ - -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' \ - -e 's:^USE_TDB=yes:# USE_TDB=yes:' \ - -e 's:^USE_SQLITE=yes:# USE_SQLITE=yes:' \ - Makefile || die - if use sqlite ; then - cat >> Makefile <<- EOC - USE_SQLITE=yes - DBMLIB = -lsqlite3 - EOC - elif use tdb ; then - cat >> Makefile <<- EOC - USE_TDB=yes - DBMLIB = -ltdb - EOC - elif use gdbm ; then - cat >> Makefile <<- EOC - USE_GDBM=yes - DBMLIB = -lgdbm - EOC - else # must be berkdb via required_use - # use the "native" interfaces to the DBM and CDB libraries, support - # passwd and directory lookups by default - local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2" - cat >> Makefile <<- EOC - USE_DB=yes - LOOKUP_DBM = yes - # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h - CFLAGS += -I$(db_includedir ${DB_VERS}) - DBMLIB = -l$(db_libname ${DB_VERS}) - EOC - fi - - # if we use libiconv, now is the time to tell so - if use !elibc_glibc && use !elibc_musl ; then - cat >> Makefile <<- EOC - EXTRALIBS_EXIM=-liconv - EOC - fi - - # support for IPv6 - if use ipv6; then - cat >> Makefile <<- EOC - HAVE_IPV6=YES - EOC - fi - - # support i18n/IDNA - if use idn; then - cat >> Makefile <<- EOC - SUPPORT_I18N=yes - SUPPORT_I18N_2008=yes - EXTRALIBS_EXIM += -lidn -lidn2 - EOC - fi - - # - # mail storage formats - # - - # mailstore is Exim's traditional storage format - cat >> Makefile <<- EOC - SUPPORT_MAILSTORE=yes - EOC - - # mbox - if use mbx; then - cat >> Makefile <<- EOC - SUPPORT_MBX=yes - EOC - fi - - # maildir - if use maildir; then - cat >> Makefile <<- EOC - SUPPORT_MAILDIR=yes - EOC - fi - - # - # lookup methods - # - - # support passwd and directory lookups by default - cat >> Makefile <<- EOC - LOOKUP_CDB=yes - LOOKUP_PASSWD=yes - LOOKUP_DSEARCH=yes - EOC - - if ! use dnsdb; then - # DNSDB lookup is enabled by default - sed -i -e 's:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:' Makefile || die - fi - - if use ldap; then - cat >> Makefile <<- EOC - LOOKUP_LDAP=yes - LDAP_LIB_TYPE=OPENLDAP2 - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/ldap - LOOKUP_LIBS += -lldap -llber - EOC - fi - - if use mysql; then - cat >> Makefile <<- EOC - LOOKUP_MYSQL=yes - LOOKUP_INCLUDE += $(mysql_config --include) - LOOKUP_LIBS += $(mysql_config --libs) - EOC - fi - - if use nis; then - cat >> Makefile <<- EOC - LOOKUP_NIS=yes - LOOKUP_NISPLUS=yes - EOC - if use elibc_glibc ; then - cat >> Makefile <<- EOC - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/tirpc - LOOKUP_LIBS += -lnsl - EOC - fi - fi - - if use postgres; then - cat >> Makefile <<- EOC - LOOKUP_PGSQL=yes - LOOKUP_INCLUDE += -I$(pg_config --includedir) - LOOKUP_LIBS += -L$(pg_config --libdir) -lpq - EOC - fi - - if use sqlite; then - cat >> Makefile <<- EOC - LOOKUP_SQLITE=yes - LOOKUP_SQLITE_PC=sqlite3 - EOC - fi - - if use redis; then - cat >> Makefile <<- EOC - LOOKUP_REDIS=yes - LOOKUP_LIBS += -lhiredis - EOC - fi - - # - # features - # - - # DomainKeys Identified Mail, RFC4871 - if ! use dkim; then - # DKIM is enabled by default - cat >> Makefile <<- EOC - DISABLE_DKIM=yes - EOC - fi - - # Per-Recipient-Data-Response - if ! use prdr; then - # PRDR is enabled by default - cat >> Makefile <<- EOC - DISABLE_PRDR=yes - EOC - fi - - # Transport post-delivery actions - if use !tpda && use !dane; then - # EVENT is enabled by default - cat >> Makefile <<- EOC - DISABLE_EVENT=yes - EOC - fi - - # log to syslog - if use syslog; then - local eximlog="${EPREFIX}/var/log/exim/exim_%s.log" - sed -i \ - -e "s:LOG_FILE_PATH=${eximlog}:LOG_FILE_PATH=syslog:" \ - Makefile || die - cat >> Makefile <<- EOC - LOG_FILE_PATH=syslog - EOC - else - cat >> Makefile <<- EOC - LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log - EOC - fi - - # starttls support (ssl) - if use ssl; then - if use gnutls; then - echo "USE_GNUTLS=yes" >> Makefile - echo "USE_GNUTLS_PC=gnutls $(use dane && echo gnutls-dane)" \ - >> Makefile - use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile - else - echo "USE_OPENSSL=yes" >> Makefile - echo "USE_OPENSSL_PC=openssl" >> Makefile - fi - else - echo "DISABLE_TLS=yes" >> Makefile - fi - - # TCP wrappers - if use tcpd; then - cat >> Makefile <<- EOC - USE_TCP_WRAPPERS=yes - EXTRALIBS_EXIM += -lwrap - EOC - fi - - # Light Mail Transport Protocol - if use lmtp; then - cat >> Makefile <<- EOC - TRANSPORT_LMTP=yes - EOC - fi - - # embedded Perl - if use perl; then - cat >> Makefile <<- EOC - EXIM_PERL=perl.o - EOC - fi - - # dlfunc - if use dlfunc; then - cat >> Makefile <<- EOC - EXPAND_DLFUNC=yes - HAVE_LOCAL_SCAN=yes - DLOPEN_LOCAL_SCAN=yes - EOC - fi - - # Proxy Protocol - if use proxy; then - cat >> Makefile <<- EOC - SUPPORT_PROXY=yes - EOC - fi - - # SOCKS5 (outbound) proxy support - if use socks5; then - cat >> Makefile <<- EOC - SUPPORT_SOCKS=yes - EOC - fi - - # DANE - if use !dane; then - # DANE is enabled by default - sed -i -e 's:^SUPPORT_DANE=yes:# SUPPORT_DANE=yes:' Makefile || die - fi - - # DMARC - if use dmarc; then - cat >> Makefile <<- EOC - SUPPORT_DMARC=yes - EXTRALIBS_EXIM += -lopendmarc - EOC - fi - - # Sender Policy Framework - if use spf; then - cat >> Makefile <<- EOC - SUPPORT_SPF=yes - EXTRALIBS_EXIM += -lspf2 - EOC - fi - - # - # experimental features - # - - # Authenticated Receive Chain - if use arc; then - echo "EXPERIMENTAL_ARC=yes">> Makefile - fi - - # Distributed Checksum Clearinghouse - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Makefile - fi - - # Sender Rewriting Scheme - if use srs; then - # this one is the default/supported variant since 4.95, and the - # only variant available since 4.96 - cat >> Makefile <<- EOC - SUPPORT_SRS=yes - EOC - fi - - # Delivery Sender Notifications extra information in fail message - if use dsn; then - cat >> Makefile <<- EOC - EXPERIMENTAL_DSN_INFO=yes - EOC - fi - - # - # authentication (SMTP AUTH) - # - - # standard bits - cat >> Makefile <<- EOC - AUTH_SPA=yes - AUTH_CRAM_MD5=yes - AUTH_PLAINTEXT=yes - EOC - - # Cyrus SASL - if use sasl; then - cat >> Makefile <<- EOC - CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux - AUTH_CYRUS_SASL=yes - AUTH_LIBS += -lsasl2 - EOC - fi - - # Dovecot - if use dovecot-sasl; then - cat >> Makefile <<- EOC - AUTH_DOVECOT=yes - EOC - fi - - # GNU SASL - if use gsasl; then - cat >> Makefile <<- EOC - AUTH_GSASL=yes - AUTH_GSASL_PC=libgsasl - EOC - fi - - # Pluggable Authentication Modules - if use pam; then - cat >> Makefile <<- EOC - SUPPORT_PAM=yes - AUTH_LIBS += -lpam - EOC - fi -} - -src_compile() { - emake CC="$(tc-getCC)" HOSTCC="$(tc-getBUILD_CC)" \ - AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' -} - -src_install() { - cd "${S}"/build-exim-gentoo || die - dosbin exim - fperms 4755 /usr/sbin/exim - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym ../sbin/exim /usr/bin/mailq - dosym ../sbin/exim /usr/bin/newaliases - dosym ../sbin/sendmail /usr/lib/sendmail - - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - exipick - do - dosbin $i - done - - dodoc -r "${S}"/doc/. - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default exim.conf.dist - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - if use pam; then - pamd_mimic system-auth exim auth account - fi - - # headers, #436406 - if use dlfunc ; then - # fixup includes so they actually can be found when including - sed -i \ - -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \ - local_scan.h || die - insinto /usr/include/exim - doins {config,local_scan}.h ../src/{mytypes,store}.h - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc10 exim - newconfd "${FILESDIR}"/exim.confd exim - - systemd_dounit \ - "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket} - systemd_newunit \ - "${FILESDIR}"/exim_at.service 'exim@.service' - systemd_newunit \ - "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service' - - diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP} - keepdir /var/log/${PN} -} - -pkg_postinst() { - if [[ ! -f ${EROOT}/etc/exim/exim.conf ]] ; then - einfo "${EROOT}/etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}/etc/exim/auth_conf.sub contains the configuration sub" - einfo "for using smtp auth." - einfo "Please create ${EROOT}/etc/exim/exim.conf from" - einfo " ${EROOT}/etc/exim/exim.conf.dist." - fi - if use berkdb && ( use gdbm || use tdb ) ; then - ewarn "USE=berkdb is ignored because USE=gdbm or USE=tdb is enabled!" - fi - if use dmarc ; then - einfo "DMARC support requires ${EROOT}/etc/exim/opendmarc.tlds" - einfo "you can populate this file with the contents downloaded from" - einfo " https://publicsuffix.org/list/public_suffix_list.dat" - fi - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo " http://article.gmane.org/gmane.mail.exim.devel/3579" - fi - use dsn && einfo "extra information in fail DSN message is experimental" - einfo - elog "Support for eximon via USE=X was dropped in this ebuild." - elog "The eximon code no longer compiles using recent compilers." -} diff --git a/mail-mta/exim/exim-4.99.4-r1.ebuild b/mail-mta/exim/exim-4.99.4-r1.ebuild deleted file mode 100644 index b7afac14bcfc..000000000000 --- a/mail-mta/exim/exim-4.99.4-r1.ebuild +++ /dev/null @@ -1,617 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit db-use flag-o-matic toolchain-funcs pam systemd - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -HOMEPAGE="https://www.exim.org/" - -SDIR=$( - [[ ${PV} == *_rc* ]] && echo /test - [[ ${PV} == *.*.*.* ]] && echo /fixes -) -COMM_URI="https://downloads.exim.org/exim4${SDIR}" - -SRC_URI="${COMM_URI}/${P//_rc/-RC}.tar.xz - mirror://gentoo/system_filter.exim.gz - doc? ( ${COMM_URI}/${PN}-pdf-${PV//_rc/-RC}.tar.xz )" -S=${WORKDIR}/${P//_rc/-RC} - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" - -IUSE="arc berkdb +dane dcc +dkim dlfunc dmarc dmarc-native +dmarc-opendmarc - +dnsdb doc dovecot-sasl dsn gdbm gnutls gsasl idn ldap lmtp maildir mbx - mysql nis pam perl pkcs11 postgres +prdr proxy redis sasl selinux socks5 spf - sqlite srs +ssl syslog +tdb tcpd +tpda" -REQUIRED_USE=" - arc? ( dkim spf ) - dane? ( ssl !gnutls ) - !dane? ( ssl? ( gnutls ) ) - dmarc? ( dkim spf ^^ ( dmarc-native dmarc-opendmarc ) ) - dkim? ( ssl !gnutls ) - gnutls? ( ssl ) - pkcs11? ( ssl ) - || ( berkdb gdbm tdb sqlite ) -" -# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked -# for x86 and amd64 only (probably due to unbound dep) -# Exim supports it but we cannot express the dep USE=dane when -# USE=gnutls is in effect only in package.use.mask, the only option we -# have left is to a) ignore the dependency (but that results in bug -# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are -# incorrect, but b) is the only "correct" view from dep-pointofview. -# Bug #925108 showed that DANE is basically non-optional with OpenSSL, -# so we make -dane mandatory to use gnutls. Bleh. -# We cannot express a required use for berkdb/gdbm/tdb correctly because -# berkdb and gdbm are both enabled in base profile - -COMMON_DEPEND=">=sys-apps/sed-4.0.5 - dev-libs/libpcre2:= - tdb? ( sys-libs/tdb:= ) - !tdb? ( berkdb? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) ) - !tdb? ( !berkdb? ( sys-libs/gdbm:= ) ) - idn? ( net-dns/libidn:= net-dns/libidn2:= ) - perl? ( dev-lang/perl:= ) - pam? ( sys-libs/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( - gnutls? ( - net-libs/gnutls:0=[pkcs11?] - dev-libs/libtasn1 - ) - !gnutls? ( - dev-libs/openssl:0= - ) - ) - ldap? ( >=net-nds/openldap-2.0.7:= ) - elibc_glibc? ( - net-libs/libnsl:= - nis? ( - net-libs/libtirpc:= - >=net-libs/libnsl-1:= - ) - ) - mysql? ( dev-db/mysql-connector-c:= ) - postgres? ( dev-db/postgresql:= ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 ) - gsasl? ( net-misc/gsasl ) - redis? ( dev-libs/hiredis:= ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - dmarc? ( - dmarc-opendmarc? ( mail-filter/opendmarc:= ) - ) - sqlite? ( dev-db/sqlite:= ) - virtual/libcrypt:= - virtual/libiconv - " -BDEPEND="virtual/pkgconfig" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !mail-mta/ssmtp[mta] - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - selinux? ( sec-policy/selinux-exim ) - " - -src_prepare() { - # Legacy patches which need a respin for -p1 - eapply -p0 "${FILESDIR}"/exim-4.14-tail.patch - eapply "${FILESDIR}"/exim-4.99.3-as-needed-ldflags.patch # 352265, 391279 - eapply -p0 "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 - eapply "${FILESDIR}"/exim-4.69-r1.27021.patch - eapply "${FILESDIR}"/exim-4.97-localscan_dlopen.patch - eapply "${FILESDIR}"/exim-4.97-no-exim_id_update.patch - - if use maildir ; then - eapply "${FILESDIR}"/exim-4.94-maildir.patch - else - eapply -p0 "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606 - fi - - eapply_user - - # user Exim believes it should be - MAILUSER=mail - MAILGROUP=mail - if use prefix && [[ ${EUID} != 0 ]] ; then - MAILUSER=$(id -un) - MAILGROUP=$(id -gn) - fi -} - -src_configure() { - # general config and paths - - local aliases="${EPREFIX}/etc/mail/aliases" - sed -i \ - -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${aliases}'" \ - src/configure.default || die - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/' Makefile || die - - if use elibc_musl; then - sed -i -e 's/^LIBS = -lnsl/LIBS =/g' OS/Makefile-Linux || die - append-cflags -DNO_EXECINFO - fi - - local conffile="${EPREFIX}/etc/exim/exim.conf" - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s;EXIM_USER=;EXIM_USER=ref:${MAILUSER};" \ - -e "s:CONFIGURE_FILE=.*$:CONFIGURE_FILE=${conffile}:" \ - -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:^LOOKUP_DBM = yes:# LOOKUP_DBM = yes:" \ - src/EDITME > Local/Makefile || die - - # work on Local/Makefile from now on - cd Local - - cat >> Makefile <<- EOC - INFO_DIRECTORY=${EPREFIX}/usr/share/info - PID_FILE_PATH=${EPREFIX}/run/exim.pid - SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim - HAVE_ICONV=yes - WITH_CONTENT_SCAN=yes - HAVE_IPV6=YES - EOC - - # configure db implementation, Exim always needs one for its hints - # database, we prefer sqlite, tdb and gdbm, since bdb is kind of - # getting less and less support - sed -i \ - -e 's:^USE_DB=yes:# USE_DB=yes:' \ - -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' \ - -e 's:^USE_TDB=yes:# USE_TDB=yes:' \ - -e 's:^USE_SQLITE=yes:# USE_SQLITE=yes:' \ - Makefile || die - if use sqlite ; then - cat >> Makefile <<- EOC - USE_SQLITE=yes - DBMLIB = -lsqlite3 - EOC - elif use tdb ; then - cat >> Makefile <<- EOC - USE_TDB=yes - DBMLIB = -ltdb - EOC - elif use gdbm ; then - cat >> Makefile <<- EOC - USE_GDBM=yes - DBMLIB = -lgdbm - EOC - else # must be berkdb via required_use - # use the "native" interfaces to the DBM and CDB libraries, support - # passwd and directory lookups by default - local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2" - cat >> Makefile <<- EOC - USE_DB=yes - LOOKUP_DBM = yes - # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h - CFLAGS += -I$(db_includedir ${DB_VERS}) - DBMLIB = -l$(db_libname ${DB_VERS}) - EOC - fi - - # if we use libiconv, now is the time to tell so - if use !elibc_glibc && use !elibc_musl ; then - cat >> Makefile <<- EOC - EXTRALIBS_EXIM=-liconv - EOC - fi - - # support i18n/IDNA - if use idn; then - cat >> Makefile <<- EOC - SUPPORT_I18N=yes - SUPPORT_I18N_2008=yes - EXTRALIBS_EXIM += -lidn -lidn2 - EOC - fi - - # - # mail storage formats - # - - # mailstore is Exim's traditional storage format - cat >> Makefile <<- EOC - SUPPORT_MAILSTORE=yes - EOC - - # mbox - if use mbx; then - cat >> Makefile <<- EOC - SUPPORT_MBX=yes - EOC - fi - - # maildir - if use maildir; then - cat >> Makefile <<- EOC - SUPPORT_MAILDIR=yes - EOC - fi - - # - # lookup methods - # - - # support passwd and directory lookups by default - cat >> Makefile <<- EOC - LOOKUP_CDB=yes - LOOKUP_PASSWD=yes - LOOKUP_DSEARCH=yes - EOC - - if ! use dnsdb; then - # DNSDB lookup is enabled by default - sed -i -e 's:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:' Makefile || die - fi - - if use ldap; then - cat >> Makefile <<- EOC - LOOKUP_LDAP=yes - LDAP_LIB_TYPE=OPENLDAP2 - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/ldap - LOOKUP_LIBS += -lldap -llber - EOC - fi - - if use mysql; then - cat >> Makefile <<- EOC - LOOKUP_MYSQL=yes - LOOKUP_INCLUDE += $(mysql_config --include) - LOOKUP_LIBS += $(mysql_config --libs) - EOC - fi - - if use nis; then - cat >> Makefile <<- EOC - LOOKUP_NIS=yes - LOOKUP_NISPLUS=yes - EOC - if use elibc_glibc ; then - cat >> Makefile <<- EOC - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/tirpc - LOOKUP_LIBS += -lnsl - EOC - fi - fi - - if use postgres; then - cat >> Makefile <<- EOC - LOOKUP_PGSQL=yes - LOOKUP_INCLUDE += -I$(pg_config --includedir) - LOOKUP_LIBS += -L$(pg_config --libdir) -lpq - EOC - fi - - if use sqlite; then - cat >> Makefile <<- EOC - LOOKUP_SQLITE=yes - LOOKUP_SQLITE_PC=sqlite3 - EOC - fi - - if use redis; then - cat >> Makefile <<- EOC - LOOKUP_REDIS=yes - LOOKUP_LIBS += -lhiredis - EOC - fi - - # - # features - # - - # DomainKeys Identified Mail, RFC4871 - if ! use dkim; then - # DKIM is enabled by default - cat >> Makefile <<- EOC - DISABLE_DKIM=yes - EOC - fi - - # Per-Recipient-Data-Response - if ! use prdr; then - # PRDR is enabled by default - cat >> Makefile <<- EOC - DISABLE_PRDR=yes - EOC - fi - - # Transport post-delivery actions - if use !tpda && use !dane; then - # EVENT is enabled by default - cat >> Makefile <<- EOC - DISABLE_EVENT=yes - EOC - fi - - # log to syslog - if use syslog; then - local eximlog="${EPREFIX}/var/log/exim/exim_%s.log" - sed -i \ - -e "s:LOG_FILE_PATH=${eximlog}:LOG_FILE_PATH=syslog:" \ - Makefile || die - cat >> Makefile <<- EOC - LOG_FILE_PATH=syslog - EOC - else - cat >> Makefile <<- EOC - LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log - EOC - fi - - # starttls support (ssl) - if use ssl; then - if use gnutls; then - echo "USE_GNUTLS=yes" >> Makefile - echo "USE_GNUTLS_PC=gnutls $(use dane && echo gnutls-dane)" \ - >> Makefile - use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile - else - echo "USE_OPENSSL=yes" >> Makefile - echo "USE_OPENSSL_PC=openssl" >> Makefile - fi - else - echo "DISABLE_TLS=yes" >> Makefile - fi - - # TCP wrappers - if use tcpd; then - cat >> Makefile <<- EOC - USE_TCP_WRAPPERS=yes - EXTRALIBS_EXIM += -lwrap - EOC - fi - - # Light Mail Transport Protocol - if use lmtp; then - cat >> Makefile <<- EOC - TRANSPORT_LMTP=yes - EOC - fi - - # embedded Perl - if use perl; then - cat >> Makefile <<- EOC - EXIM_PERL=perl.o - EOC - fi - - # dlfunc - if use dlfunc; then - cat >> Makefile <<- EOC - EXPAND_DLFUNC=yes - HAVE_LOCAL_SCAN=yes - DLOPEN_LOCAL_SCAN=yes - EOC - fi - - # Proxy Protocol - if use proxy; then - cat >> Makefile <<- EOC - SUPPORT_PROXY=yes - EOC - fi - - # SOCKS5 (outbound) proxy support - if use socks5; then - cat >> Makefile <<- EOC - SUPPORT_SOCKS=yes - EOC - fi - - # DANE - if use !dane; then - # DANE is enabled by default - sed -i -e 's:^SUPPORT_DANE=yes:# SUPPORT_DANE=yes:' Makefile || die - fi - - # DMARC - if use dmarc; then - if use dmarc-opendmarc; then - cat >> Makefile <<- EOC - SUPPORT_DMARC=yes - EXTRALIBS_EXIM += -lopendmarc - EOC - elif use dmarc-native; then - cat >> MAKEFILE <<- EOC - # Disable opendmarc based support. - SUPPORT_DMARC=no - # Enable experimental - EXPERIMENTAL_DMARC_NATIVE=yes - EOC - else - die "Unable to correctly detemine selected DMARC implementation." - fi - fi - - # Sender Policy Framework - if use spf; then - cat >> Makefile <<- EOC - SUPPORT_SPF=yes - EXTRALIBS_EXIM += -lspf2 - EOC - fi - - # - # experimental features - # - - # Authenticated Receive Chain - if use arc; then - echo "EXPERIMENTAL_ARC=yes">> Makefile - fi - - # Distributed Checksum Clearinghouse - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Makefile - fi - - # Sender Rewriting Scheme - if use srs; then - # this one is the default/supported variant since 4.95, and the - # only variant available since 4.96 - cat >> Makefile <<- EOC - SUPPORT_SRS=yes - EOC - fi - - # Delivery Sender Notifications extra information in fail message - if use dsn; then - cat >> Makefile <<- EOC - EXPERIMENTAL_DSN_INFO=yes - EOC - fi - - # - # authentication (SMTP AUTH) - # - - # standard bits - cat >> Makefile <<- EOC - AUTH_SPA=yes - AUTH_CRAM_MD5=yes - AUTH_PLAINTEXT=yes - EOC - - # Cyrus SASL - if use sasl; then - cat >> Makefile <<- EOC - CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux - AUTH_CYRUS_SASL=yes - AUTH_LIBS += -lsasl2 - EOC - fi - - # Dovecot - if use dovecot-sasl; then - cat >> Makefile <<- EOC - AUTH_DOVECOT=yes - EOC - fi - - # GNU SASL - if use gsasl; then - cat >> Makefile <<- EOC - AUTH_GSASL=yes - AUTH_GSASL_PC=libgsasl - EOC - fi - - # Pluggable Authentication Modules - if use pam; then - cat >> Makefile <<- EOC - SUPPORT_PAM=yes - AUTH_LIBS += -lpam - EOC - fi -} - -src_compile() { - emake CC="$(tc-getCC)" HOSTCC="$(tc-getBUILD_CC)" \ - AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' -} - -src_install() { - cd "${S}"/build-exim-gentoo || die - dosbin exim - fperms 4755 /usr/sbin/exim - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym ../sbin/exim /usr/bin/mailq - dosym ../sbin/exim /usr/bin/newaliases - dosym ../sbin/sendmail /usr/lib/sendmail - - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - exipick - do - dosbin $i - done - - dodoc -r "${S}"/doc/. - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default exim.conf.dist - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - if use pam; then - pamd_mimic system-auth exim auth account - fi - - # headers, #436406 - if use dlfunc ; then - # fixup includes so they actually can be found when including - sed -i \ - -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \ - local_scan.h || die - insinto /usr/include/exim - doins {config,local_scan}.h ../src/{mytypes,store}.h - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc10 exim - newconfd "${FILESDIR}"/exim.confd exim - - systemd_dounit \ - "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket} - systemd_newunit \ - "${FILESDIR}"/exim_at.service 'exim@.service' - systemd_newunit \ - "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service' - - diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP} - keepdir /var/log/${PN} -} - -pkg_postinst() { - if [[ ! -f ${EROOT}/etc/exim/exim.conf ]] ; then - einfo "${EROOT}/etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}/etc/exim/auth_conf.sub contains the configuration sub" - einfo "for using smtp auth." - einfo "Please create ${EROOT}/etc/exim/exim.conf from" - einfo " ${EROOT}/etc/exim/exim.conf.dist." - fi - if use berkdb && ( use gdbm || use tdb ) ; then - ewarn "USE=berkdb is ignored because USE=gdbm or USE=tdb is enabled!" - fi - if use dmarc ; then - einfo "DMARC support requires ${EROOT}/etc/exim/opendmarc.tlds" - einfo "you can populate this file with the contents downloaded from" - einfo " https://publicsuffix.org/list/public_suffix_list.dat" - fi - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo " http://article.gmane.org/gmane.mail.exim.devel/3579" - fi - use dsn && einfo "extra information in fail DSN message is experimental" - einfo - elog "Support for eximon via USE=X was dropped in this ebuild." - elog "The eximon code no longer compiles using recent compilers." -} diff --git a/mail-mta/exim/exim-4.99.4.ebuild b/mail-mta/exim/exim-4.99.4.ebuild deleted file mode 100644 index 3086717e0e0f..000000000000 --- a/mail-mta/exim/exim-4.99.4.ebuild +++ /dev/null @@ -1,610 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit db-use flag-o-matic toolchain-funcs pam systemd - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -HOMEPAGE="https://www.exim.org/" - -SDIR=$( - [[ ${PV} == *_rc* ]] && echo /test - [[ ${PV} == *.*.*.* ]] && echo /fixes -) -COMM_URI="https://downloads.exim.org/exim4${SDIR}" - -SRC_URI="${COMM_URI}/${P//_rc/-RC}.tar.xz - mirror://gentoo/system_filter.exim.gz - doc? ( ${COMM_URI}/${PN}-pdf-${PV//_rc/-RC}.tar.xz )" -S=${WORKDIR}/${P//_rc/-RC} - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" - -IUSE="arc berkdb +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl - dsn gdbm gnutls gsasl idn ipv6 ldap lmtp maildir mbx - mysql nis pam perl pkcs11 postgres +prdr proxy redis sasl - selinux socks5 spf sqlite srs +ssl syslog +tdb tcpd +tpda" -REQUIRED_USE=" - arc? ( dkim spf ) - dane? ( ssl !gnutls ) - !dane? ( ssl? ( gnutls ) ) - dmarc? ( dkim spf ) - dkim? ( ssl !gnutls ) - gnutls? ( ssl ) - pkcs11? ( ssl ) - || ( berkdb gdbm tdb sqlite ) -" -# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked -# for x86 and amd64 only (probably due to unbound dep) -# Exim supports it but we cannot express the dep USE=dane when -# USE=gnutls is in effect only in package.use.mask, the only option we -# have left is to a) ignore the dependency (but that results in bug -# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are -# incorrect, but b) is the only "correct" view from dep-pointofview. -# Bug #925108 showed that DANE is basically non-optional with OpenSSL, -# so we make -dane mandatory to use gnutls. Bleh. -# We cannot express a required use for berkdb/gdbm/tdb correctly because -# berkdb and gdbm are both enabled in base profile - -COMMON_DEPEND=">=sys-apps/sed-4.0.5 - dev-libs/libpcre2:= - tdb? ( sys-libs/tdb:= ) - !tdb? ( berkdb? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) ) - !tdb? ( !berkdb? ( sys-libs/gdbm:= ) ) - idn? ( net-dns/libidn:= net-dns/libidn2:= ) - perl? ( dev-lang/perl:= ) - pam? ( sys-libs/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( - gnutls? ( - net-libs/gnutls:0=[pkcs11?] - dev-libs/libtasn1 - ) - !gnutls? ( - dev-libs/openssl:0= - ) - ) - ldap? ( >=net-nds/openldap-2.0.7:= ) - elibc_glibc? ( - net-libs/libnsl:= - nis? ( - net-libs/libtirpc:= - >=net-libs/libnsl-1:= - ) - ) - mysql? ( dev-db/mysql-connector-c:= ) - postgres? ( dev-db/postgresql:= ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 ) - gsasl? ( net-misc/gsasl ) - redis? ( dev-libs/hiredis:= ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - dmarc? ( mail-filter/opendmarc:= ) - sqlite? ( dev-db/sqlite:= ) - virtual/libcrypt:= - virtual/libiconv - " -BDEPEND="virtual/pkgconfig" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !mail-mta/ssmtp[mta] - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - selinux? ( sec-policy/selinux-exim ) - " - -src_prepare() { - # Legacy patches which need a respin for -p1 - eapply -p0 "${FILESDIR}"/exim-4.14-tail.patch - eapply "${FILESDIR}"/exim-4.99.3-as-needed-ldflags.patch # 352265, 391279 - eapply -p0 "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 - eapply "${FILESDIR}"/exim-4.69-r1.27021.patch - eapply "${FILESDIR}"/exim-4.97-localscan_dlopen.patch - eapply "${FILESDIR}"/exim-4.97-no-exim_id_update.patch - - if use maildir ; then - eapply "${FILESDIR}"/exim-4.94-maildir.patch - else - eapply -p0 "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606 - fi - - eapply_user - - # user Exim believes it should be - MAILUSER=mail - MAILGROUP=mail - if use prefix && [[ ${EUID} != 0 ]] ; then - MAILUSER=$(id -un) - MAILGROUP=$(id -gn) - fi -} - -src_configure() { - # general config and paths - - local aliases="${EPREFIX}/etc/mail/aliases" - sed -i \ - -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${aliases}'" \ - src/configure.default || die - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/' Makefile || die - - if use elibc_musl; then - sed -i -e 's/^LIBS = -lnsl/LIBS =/g' OS/Makefile-Linux || die - append-cflags -DNO_EXECINFO - fi - - local conffile="${EPREFIX}/etc/exim/exim.conf" - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s;EXIM_USER=;EXIM_USER=ref:${MAILUSER};" \ - -e "s:CONFIGURE_FILE=.*$:CONFIGURE_FILE=${conffile}:" \ - -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:^LOOKUP_DBM = yes:# LOOKUP_DBM = yes:" \ - src/EDITME > Local/Makefile || die - - # work on Local/Makefile from now on - cd Local - - cat >> Makefile <<- EOC - INFO_DIRECTORY=${EPREFIX}/usr/share/info - PID_FILE_PATH=${EPREFIX}/run/exim.pid - SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim - HAVE_ICONV=yes - WITH_CONTENT_SCAN=yes - EOC - - # configure db implementation, Exim always needs one for its hints - # database, we prefer sqlite, tdb and gdbm, since bdb is kind of - # getting less and less support - sed -i \ - -e 's:^USE_DB=yes:# USE_DB=yes:' \ - -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' \ - -e 's:^USE_TDB=yes:# USE_TDB=yes:' \ - -e 's:^USE_SQLITE=yes:# USE_SQLITE=yes:' \ - Makefile || die - if use sqlite ; then - cat >> Makefile <<- EOC - USE_SQLITE=yes - DBMLIB = -lsqlite3 - EOC - elif use tdb ; then - cat >> Makefile <<- EOC - USE_TDB=yes - DBMLIB = -ltdb - EOC - elif use gdbm ; then - cat >> Makefile <<- EOC - USE_GDBM=yes - DBMLIB = -lgdbm - EOC - else # must be berkdb via required_use - # use the "native" interfaces to the DBM and CDB libraries, support - # passwd and directory lookups by default - local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2" - cat >> Makefile <<- EOC - USE_DB=yes - LOOKUP_DBM = yes - # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h - CFLAGS += -I$(db_includedir ${DB_VERS}) - DBMLIB = -l$(db_libname ${DB_VERS}) - EOC - fi - - # if we use libiconv, now is the time to tell so - if use !elibc_glibc && use !elibc_musl ; then - cat >> Makefile <<- EOC - EXTRALIBS_EXIM=-liconv - EOC - fi - - # support for IPv6 - if use ipv6; then - cat >> Makefile <<- EOC - HAVE_IPV6=YES - EOC - fi - - # support i18n/IDNA - if use idn; then - cat >> Makefile <<- EOC - SUPPORT_I18N=yes - SUPPORT_I18N_2008=yes - EXTRALIBS_EXIM += -lidn -lidn2 - EOC - fi - - # - # mail storage formats - # - - # mailstore is Exim's traditional storage format - cat >> Makefile <<- EOC - SUPPORT_MAILSTORE=yes - EOC - - # mbox - if use mbx; then - cat >> Makefile <<- EOC - SUPPORT_MBX=yes - EOC - fi - - # maildir - if use maildir; then - cat >> Makefile <<- EOC - SUPPORT_MAILDIR=yes - EOC - fi - - # - # lookup methods - # - - # support passwd and directory lookups by default - cat >> Makefile <<- EOC - LOOKUP_CDB=yes - LOOKUP_PASSWD=yes - LOOKUP_DSEARCH=yes - EOC - - if ! use dnsdb; then - # DNSDB lookup is enabled by default - sed -i -e 's:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:' Makefile || die - fi - - if use ldap; then - cat >> Makefile <<- EOC - LOOKUP_LDAP=yes - LDAP_LIB_TYPE=OPENLDAP2 - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/ldap - LOOKUP_LIBS += -lldap -llber - EOC - fi - - if use mysql; then - cat >> Makefile <<- EOC - LOOKUP_MYSQL=yes - LOOKUP_INCLUDE += $(mysql_config --include) - LOOKUP_LIBS += $(mysql_config --libs) - EOC - fi - - if use nis; then - cat >> Makefile <<- EOC - LOOKUP_NIS=yes - LOOKUP_NISPLUS=yes - EOC - if use elibc_glibc ; then - cat >> Makefile <<- EOC - LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/tirpc - LOOKUP_LIBS += -lnsl - EOC - fi - fi - - if use postgres; then - cat >> Makefile <<- EOC - LOOKUP_PGSQL=yes - LOOKUP_INCLUDE += -I$(pg_config --includedir) - LOOKUP_LIBS += -L$(pg_config --libdir) -lpq - EOC - fi - - if use sqlite; then - cat >> Makefile <<- EOC - LOOKUP_SQLITE=yes - LOOKUP_SQLITE_PC=sqlite3 - EOC - fi - - if use redis; then - cat >> Makefile <<- EOC - LOOKUP_REDIS=yes - LOOKUP_LIBS += -lhiredis - EOC - fi - - # - # features - # - - # DomainKeys Identified Mail, RFC4871 - if ! use dkim; then - # DKIM is enabled by default - cat >> Makefile <<- EOC - DISABLE_DKIM=yes - EOC - fi - - # Per-Recipient-Data-Response - if ! use prdr; then - # PRDR is enabled by default - cat >> Makefile <<- EOC - DISABLE_PRDR=yes - EOC - fi - - # Transport post-delivery actions - if use !tpda && use !dane; then - # EVENT is enabled by default - cat >> Makefile <<- EOC - DISABLE_EVENT=yes - EOC - fi - - # log to syslog - if use syslog; then - local eximlog="${EPREFIX}/var/log/exim/exim_%s.log" - sed -i \ - -e "s:LOG_FILE_PATH=${eximlog}:LOG_FILE_PATH=syslog:" \ - Makefile || die - cat >> Makefile <<- EOC - LOG_FILE_PATH=syslog - EOC - else - cat >> Makefile <<- EOC - LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log - EOC - fi - - # starttls support (ssl) - if use ssl; then - if use gnutls; then - echo "USE_GNUTLS=yes" >> Makefile - echo "USE_GNUTLS_PC=gnutls $(use dane && echo gnutls-dane)" \ - >> Makefile - use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile - else - echo "USE_OPENSSL=yes" >> Makefile - echo "USE_OPENSSL_PC=openssl" >> Makefile - fi - else - echo "DISABLE_TLS=yes" >> Makefile - fi - - # TCP wrappers - if use tcpd; then - cat >> Makefile <<- EOC - USE_TCP_WRAPPERS=yes - EXTRALIBS_EXIM += -lwrap - EOC - fi - - # Light Mail Transport Protocol - if use lmtp; then - cat >> Makefile <<- EOC - TRANSPORT_LMTP=yes - EOC - fi - - # embedded Perl - if use perl; then - cat >> Makefile <<- EOC - EXIM_PERL=perl.o - EOC - fi - - # dlfunc - if use dlfunc; then - cat >> Makefile <<- EOC - EXPAND_DLFUNC=yes - HAVE_LOCAL_SCAN=yes - DLOPEN_LOCAL_SCAN=yes - EOC - fi - - # Proxy Protocol - if use proxy; then - cat >> Makefile <<- EOC - SUPPORT_PROXY=yes - EOC - fi - - # SOCKS5 (outbound) proxy support - if use socks5; then - cat >> Makefile <<- EOC - SUPPORT_SOCKS=yes - EOC - fi - - # DANE - if use !dane; then - # DANE is enabled by default - sed -i -e 's:^SUPPORT_DANE=yes:# SUPPORT_DANE=yes:' Makefile || die - fi - - # DMARC - if use dmarc; then - cat >> Makefile <<- EOC - SUPPORT_DMARC=yes - EXTRALIBS_EXIM += -lopendmarc - EOC - fi - - # Sender Policy Framework - if use spf; then - cat >> Makefile <<- EOC - SUPPORT_SPF=yes - EXTRALIBS_EXIM += -lspf2 - EOC - fi - - # - # experimental features - # - - # Authenticated Receive Chain - if use arc; then - echo "EXPERIMENTAL_ARC=yes">> Makefile - fi - - # Distributed Checksum Clearinghouse - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Makefile - fi - - # Sender Rewriting Scheme - if use srs; then - # this one is the default/supported variant since 4.95, and the - # only variant available since 4.96 - cat >> Makefile <<- EOC - SUPPORT_SRS=yes - EOC - fi - - # Delivery Sender Notifications extra information in fail message - if use dsn; then - cat >> Makefile <<- EOC - EXPERIMENTAL_DSN_INFO=yes - EOC - fi - - # - # authentication (SMTP AUTH) - # - - # standard bits - cat >> Makefile <<- EOC - AUTH_SPA=yes - AUTH_CRAM_MD5=yes - AUTH_PLAINTEXT=yes - EOC - - # Cyrus SASL - if use sasl; then - cat >> Makefile <<- EOC - CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux - AUTH_CYRUS_SASL=yes - AUTH_LIBS += -lsasl2 - EOC - fi - - # Dovecot - if use dovecot-sasl; then - cat >> Makefile <<- EOC - AUTH_DOVECOT=yes - EOC - fi - - # GNU SASL - if use gsasl; then - cat >> Makefile <<- EOC - AUTH_GSASL=yes - AUTH_GSASL_PC=libgsasl - EOC - fi - - # Pluggable Authentication Modules - if use pam; then - cat >> Makefile <<- EOC - SUPPORT_PAM=yes - AUTH_LIBS += -lpam - EOC - fi -} - -src_compile() { - emake CC="$(tc-getCC)" HOSTCC="$(tc-getBUILD_CC)" \ - AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' -} - -src_install() { - cd "${S}"/build-exim-gentoo || die - dosbin exim - fperms 4755 /usr/sbin/exim - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym ../sbin/exim /usr/bin/mailq - dosym ../sbin/exim /usr/bin/newaliases - dosym ../sbin/sendmail /usr/lib/sendmail - - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - exipick - do - dosbin $i - done - - dodoc -r "${S}"/doc/. - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default exim.conf.dist - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - if use pam; then - pamd_mimic system-auth exim auth account - fi - - # headers, #436406 - if use dlfunc ; then - # fixup includes so they actually can be found when including - sed -i \ - -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \ - local_scan.h || die - insinto /usr/include/exim - doins {config,local_scan}.h ../src/{mytypes,store}.h - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc10 exim - newconfd "${FILESDIR}"/exim.confd exim - - systemd_dounit \ - "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket} - systemd_newunit \ - "${FILESDIR}"/exim_at.service 'exim@.service' - systemd_newunit \ - "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service' - - diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP} - keepdir /var/log/${PN} -} - -pkg_postinst() { - if [[ ! -f ${EROOT}/etc/exim/exim.conf ]] ; then - einfo "${EROOT}/etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}/etc/exim/auth_conf.sub contains the configuration sub" - einfo "for using smtp auth." - einfo "Please create ${EROOT}/etc/exim/exim.conf from" - einfo " ${EROOT}/etc/exim/exim.conf.dist." - fi - if use berkdb && ( use gdbm || use tdb ) ; then - ewarn "USE=berkdb is ignored because USE=gdbm or USE=tdb is enabled!" - fi - if use dmarc ; then - einfo "DMARC support requires ${EROOT}/etc/exim/opendmarc.tlds" - einfo "you can populate this file with the contents downloaded from" - einfo " https://publicsuffix.org/list/public_suffix_list.dat" - fi - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo " http://article.gmane.org/gmane.mail.exim.devel/3579" - fi - use dsn && einfo "extra information in fail DSN message is experimental" - einfo - elog "Support for eximon via USE=X was dropped in this ebuild." - elog "The eximon code no longer compiles using recent compilers." -} diff --git a/mail-mta/exim/files/auth_conf.sub b/mail-mta/exim/files/auth_conf.sub deleted file mode 100644 index ff8c03dd5dec..000000000000 --- a/mail-mta/exim/files/auth_conf.sub +++ /dev/null @@ -1,39 +0,0 @@ -###################################################################### -# AUTHENTICATION CONFIGURATION # -###################################################################### -# Using PAM directly from Exim on Gentoo is non-ideal from security -# perspective, see: -# https://bugs.gentoo.org/964377 -# Suggestion is to use Dovecot's SASL -# https://doc.dovecot.org/2.4.1/howto/sasl/exim.html#exim-and-dovecot-sasl -# or Cyrus SASL's saslauthd -# https://exim-users.exim.narkive.com/joAt25zW/authentication-using-saslauthd-cyrus-sasl - -# You will want to setup at least 2 directives for AUTH support that are -# only announced on secure connections (e.g. after STARTTLS) so the -# client never attempts to send the plain password over an unencrypted -# connection. -# The "plain" directive works for nearly everything except windows MUA's. -# The "login" directive will allow you to authenticate your Outlook 2000 and -# outlook express clients. - -# below an example of how to use Cyrus SASL in Exim's authenticators. -#plain: -# driver = cyrus_sasl -# public_name = PLAIN -# server_set_id = $auth1 -# server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}} -# -#login: -# driver = cyrus_sasl -# public_name = LOGIN -# server_set_id = $auth1 -# server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}} -# -# to tell cyrus_sasl to connect to the saslauth deamon, you need a file -# /etc/sasl2/exim.conf containing: -#pwcheck_method: saslauthd -# -# and make sure you configure /etc/conf.d/saslauthd properly, e.g. use -# "-a shadow" for the simplest support, or when using pam that the -# appropriate /etc/pam.d/saslauthd is setup. diff --git a/mail-mta/exim/files/exim-4.14-tail.patch b/mail-mta/exim/files/exim-4.14-tail.patch deleted file mode 100644 index 481dca9b80d4..000000000000 --- a/mail-mta/exim/files/exim-4.14-tail.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- scripts/Configure-config.h.orig 2003-07-17 18:01:19.000000000 -0400 -+++ scripts/Configure-config.h 2003-07-17 18:01:25.000000000 -0400 -@@ -41,7 +41,7 @@ - - # Double-check that config.h is complete. - --if [ "`tail -1 config.h`" != "/* End of config.h */" ] ; then -+if [ "`tail -n 1 config.h`" != "/* End of config.h */" ] ; then - echo "*** config.h appears to be incomplete" - echo "*** unexpected failure in buildconfig program" - exit 1 diff --git a/mail-mta/exim/files/exim-4.69-r1.27021.patch b/mail-mta/exim/files/exim-4.69-r1.27021.patch deleted file mode 100644 index 804e16d6acde..000000000000 --- a/mail-mta/exim/files/exim-4.69-r1.27021.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff -urN exim-4.69.orig/src/configure.default exim-4.69/src/configure.default ---- exim-4.69.orig/src/configure.default 2008-05-05 10:17:44.000000000 +0100 -+++ exim-4.69/src/configure.default 2008-05-05 10:18:26.000000000 +0100 -@@ -592,6 +592,22 @@ - pipe_transport = address_pipe - reply_transport = address_reply - -+# This router runs procmail if users have a .procmailrc file -+procmail: -+ check_local_user -+ driver = accept -+ transport = procmail_pipe -+ require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail -+ no_verify -+ -+# This router runs maildrop if users have a .mailfilter file -+maildrop: -+ check_local_user -+ driver = accept -+ transport = maildrop_pipe -+ require_files = ${local_part}:+${home}:+${home}/.mailfilter:+/usr/bin/maildrop -+ no_verify -+ - - # This router matches local user mailboxes. If the router fails, the error - # message is "Unknown user". -@@ -676,6 +692,21 @@ - address_reply: - driver = autoreply - -+# This transport is used for procmail -+procmail_pipe: -+ driver = pipe -+ command = "/usr/bin/procmail -d ${local_part}" -+ return_path_add -+ delivery_date_add -+ envelope_to_add -+ -+# This transport is used for courier-maildrop filtering (Maildir filter system) -+maildrop_pipe: -+ driver = pipe -+ command = "/usr/bin/maildrop -d ${local_part}" -+ return_path_add -+ delivery_date_add -+ envelope_to_add - - - ###################################################################### diff --git a/mail-mta/exim/files/exim-4.74-radius-db-ENV-clash.patch b/mail-mta/exim/files/exim-4.74-radius-db-ENV-clash.patch deleted file mode 100644 index 247668ef3da3..000000000000 --- a/mail-mta/exim/files/exim-4.74-radius-db-ENV-clash.patch +++ /dev/null @@ -1,22 +0,0 @@ -Nasty workaround for -http://bugs.gentoo.org/show_bug.cgi?id=287426 - ---- src/auths/call_radius.c -+++ src/auths/call_radius.c -@@ -10,6 +10,16 @@ - /* This file was originally supplied by Ian Kirk. The libradius support came - from Alex Kiernan. */ - -+/* ugly hack to work around redefinition of ENV by radiusclient.h and -+ * db.h: define _DB_H_ so the db.h include thinks it's already included, -+ * we can get away with it like this, since this file doesn't use any db -+ * functions. */ -+#ifndef _DB_H_ -+#define _DB_H_ 1 -+#define _DB_EXT_PROT_IN_ 1 -+#define DB void -+#endif -+ - #include "../exim.h" - - /* This module contains functions that call the Radius authentication diff --git a/mail-mta/exim/files/exim-4.76-crosscompile.patch b/mail-mta/exim/files/exim-4.76-crosscompile.patch deleted file mode 100644 index cf47adee6265..000000000000 --- a/mail-mta/exim/files/exim-4.76-crosscompile.patch +++ /dev/null @@ -1,15 +0,0 @@ -https://bugs.gentoo.org/show_bug.cgi?id=266591 - ---- OS/Makefile-Base -+++ OS/Makefile-Base -@@ -114,8 +114,8 @@ - - # Targets for special-purpose configuration header builders - buildconfig: buildconfig.c -- @echo "$(CC) buildconfig.c" -- $(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS) -+ @echo "$(HOSTCC) buildconfig.c" -+ $(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS) - - - # Target for the exicyclog utility script diff --git a/mail-mta/exim/files/exim-4.80-spool-mail-group.patch b/mail-mta/exim/files/exim-4.80-spool-mail-group.patch deleted file mode 100644 index 6f88d8533e8b..000000000000 --- a/mail-mta/exim/files/exim-4.80-spool-mail-group.patch +++ /dev/null @@ -1,27 +0,0 @@ -Change default such that we run on a stock Gentoo system. Bug #438606 - ---- src/configure.default -+++ src/configure.default -@@ -674,8 +674,9 @@ - # BSD mailbox format. By default it will be run under the uid and gid of the - # local user, and requires the sticky bit to be set on the /var/mail directory. - # Some systems use the alternative approach of running mail deliveries under a --# particular group instead of using the sticky bit. The commented options below --# show how this can be done. -+# particular group instead of using the sticky bit. This is also the -+# default case on Gentoo, therefore group and mode are set below. -+# Comment them out, to get the default behaviour. - - local_delivery: - driver = appendfile -@@ -683,8 +684,8 @@ - delivery_date_add - envelope_to_add - return_path_add --# group = mail --# mode = 0660 -+ group = mail -+ mode = 0660 - - - # This transport is used for handling pipe deliveries generated by alias or diff --git a/mail-mta/exim/files/exim-4.94-maildir.patch b/mail-mta/exim/files/exim-4.94-maildir.patch deleted file mode 100644 index a1a728158ac7..000000000000 --- a/mail-mta/exim/files/exim-4.94-maildir.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/src/configure.default -+++ b/src/configure.default -@@ -873,7 +873,9 @@ - - local_delivery: - driver = appendfile -- file = /var/mail/$local_part_data -+# file = /var/mail/$local_part_data -+ directory = /home/$local_part_data/.maildir -+ maildir_format - delivery_date_add - envelope_to_add - return_path_add diff --git a/mail-mta/exim/files/exim-4.97-as-needed-ldflags.patch b/mail-mta/exim/files/exim-4.97-as-needed-ldflags.patch deleted file mode 100644 index 616f05484525..000000000000 --- a/mail-mta/exim/files/exim-4.97-as-needed-ldflags.patch +++ /dev/null @@ -1,145 +0,0 @@ -https://bugs.gentoo.org/show_bug.cgi?id=352265 - -Make sure LDFLAGS comes first, such that all libraries are considered, -and not discarded when --as-needed is in effect. - -https://bugs.gentoo.org/show_bug.cgi?id=391279 - -Use LDFLAGS for all targets, not just the exim binary, such that ---as-needed works as well. - - ---- a/OS/Makefile-Base -+++ b/OS/Makefile-Base -@@ -552,12 +552,12 @@ - buildrouters buildtransports \ - $(OBJ_EXIM) version.o - @echo "$(LNCC) -o exim" -- $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \ -+ $(FE)$(PURIFY) $(LNCC) -o exim $(LDFLAGS) $(OBJ_EXIM) version.o \ - routers/routers.a transports/transports.a lookups/lookups.a \ - auths/auths.a pdkim/pdkim.a \ - $(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \ - $(EXTRALIBS_EXIM) $(DBMLIB) $(LOOKUP_LIBS) $(AUTH_LIBS) \ -- $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LDFLAGS) -+ $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim; \ - $(STRIP_COMMAND) exim; \ -@@ -573,8 +573,8 @@ - - exim_dumpdb: $(OBJ_DUMPDB) - @echo "$(LNCC) -o exim_dumpdb" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LFLAGS) $(OBJ_DUMPDB) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LDFLAGS) $(OBJ_DUMPDB) \ -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_dumpdb; \ - $(STRIP_COMMAND) exim_dumpdb; \ -@@ -588,8 +588,8 @@ - - exim_fixdb: $(OBJ_FIXDB) - @echo "$(LNCC) -o exim_fixdb" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LFLAGS) $(OBJ_FIXDB) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LDFLAGS) $(OBJ_FIXDB) \ -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_fixdb; \ - $(STRIP_COMMAND) exim_fixdb; \ -@@ -603,8 +603,8 @@ - - exim_tidydb: $(OBJ_TIDYDB) - @echo "$(LNCC) -o exim_tidydb" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LFLAGS) $(OBJ_TIDYDB) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LDFLAGS) $(OBJ_TIDYDB) \ -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_tidydb; \ - $(STRIP_COMMAND) exim_tidydb; \ -@@ -616,8 +616,8 @@ - - exim_dbmbuild: exim_dbmbuild.o - @echo "$(LNCC) -o exim_dbmbuild" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LFLAGS) exim_dbmbuild.o \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LDFLAGS) exim_dbmbuild.o \ -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_dbmbuild; \ - $(STRIP_COMMAND) exim_dbmbuild; \ -@@ -631,8 +631,8 @@ - @echo "$(CC) exim_lock.c" - $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) exim_lock.c - @echo "$(LNCC) -o exim_lock" -- $(FE)$(LNCC) -o exim_lock $(LFLAGS) exim_lock.o \ -- $(LIBS) $(EXTRALIBS) -+ $(FE)$(LNCC) -o exim_lock $(LDFLAGS) exim_lock.o \ -+ $(LIBS) $(EXTRALIBS) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_lock; \ - $(STRIP_COMMAND) exim_lock; \ -@@ -669,9 +669,9 @@ - $(FE)$(CC) -o em_version.o -c \ - $(CFLAGS) $(XINCLUDE) -I. ../exim_monitor/em_version.c - @echo "$(LNCC) -o eximon.bin" -- $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LFLAGS) $(XLFLAGS) \ -+ $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LDFLAGS) $(XLFLAGS) \ - $(OBJ_MONBIN) -lXaw -lXmu -lXt -lXext -lX11 $(PCRE_LIBS) \ -- $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc -+ $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) eximon.bin; \ - $(STRIP_COMMAND) eximon.bin; \ -@@ -1018,9 +1018,9 @@ - string.o tod.o version.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE dbfn.c - $(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY store.c -- $(LNCC) -o test_dbfn $(LFLAGS) dbfn.o \ -+ $(LNCC) -o test_dbfn $(LDFLAGS) dbfn.o \ - dummies.o sa-globals.o sa-os.o store.o string.o \ -- tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LDFLAGS) -+ tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LFLAGS) - rm -f dbfn.o store.o - - test_host: config.h child.c host.c dns.c dummies.c sa-globals.o os.o \ -@@ -1029,29 +1029,29 @@ - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST host.c - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dns.c - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dummies.c -- $(LNCC) -o test_host $(LFLAGS) \ -+ $(LNCC) -o test_host $(LDFLAGS) \ - host.o host_address.o child.o dns.o dummies.o sa-globals.o os.o store.o string.o \ -- tod.o tree.o $(LIBS) $(LIBRESOLV) -+ tod.o tree.o $(LIBS) $(LIBRESOLV) $(LFLAGS) - rm -f child.o dummies.o host.o dns.o - - test_os: os.h os.c dummies.o sa-globals.o store.o string.o tod.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE os.c -- $(LNCC) -o test_os $(LFLAGS) os.o dummies.o \ -- sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LDFLAGS) -+ $(LNCC) -o test_os $(LDFLAGS) os.o dummies.o \ -+ sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LFLAGS) - rm -f os.o - - test_parse: config.h parse.c dummies.o sa-globals.o \ - store.o string.o tod.o version.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE parse.c -- $(LNCC) -o test_parse $(LFLAGS) parse.o \ -+ $(LNCC) -o test_parse $(LDFLAGS) parse.o \ - dummies.o sa-globals.o store.o string.o tod.o version.o \ -- utf8.o $(LDFLAGS) -+ utf8.o $(LFLAGS) - rm -f parse.o - - test_string: config.h string.c dummies.o sa-globals.o store.o tod.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE string.c -- $(LNCC) -o test_string $(LFLAGS) -DSTAND_ALONE string.o \ -- dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LDFLAGS) -+ $(LNCC) -o test_string $(LDFLAGS) -DSTAND_ALONE string.o \ -+ dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LFLAGS) - rm -f string.o - - # End diff --git a/mail-mta/exim/files/exim-4.97-localscan_dlopen.patch b/mail-mta/exim/files/exim-4.97-localscan_dlopen.patch deleted file mode 100644 index 46c2e897f748..000000000000 --- a/mail-mta/exim/files/exim-4.97-localscan_dlopen.patch +++ /dev/null @@ -1,209 +0,0 @@ ---- a/src/config.h.defaults -+++ b/src/config.h.defaults -@@ -33,6 +33,8 @@ - - #define AUTH_VARS 4 - -+#define DLOPEN_LOCAL_SCAN -+ - #define BIN_DIRECTORY - - #define CONFIGURE_FILE ---- a/src/EDITME -+++ b/src/EDITME -@@ -904,6 +904,24 @@ - - - #------------------------------------------------------------------------------ -+# On systems which support dynamic loading of shared libraries, Exim can -+# load a local_scan function specified in its config file instead of having -+# to be recompiled with the desired local_scan function. For a full -+# description of the API to this function, see the Exim specification. -+ -+#DLOPEN_LOCAL_SCAN=yes -+ -+# If you set DLOPEN_LOCAL_SCAN, then you need to include -rdynamic in the -+# linker flags. Without it, the loaded .so won't be able to access any -+# functions from exim. -+ -+LFLAGS = -rdynamic -+ifeq ($(OSTYPE),Linux) -+LFLAGS += -ldl -+endif -+ -+ -+#------------------------------------------------------------------------------ - # The default distribution of Exim contains only the plain text form of the - # documentation. Other forms are available separately. If you want to install - # the documentation in "info" format, first fetch the Texinfo documentation ---- a/src/globals.c -+++ b/src/globals.c -@@ -43,6 +43,10 @@ - - uschar *no_aliases = NULL; - -+#ifdef DLOPEN_LOCAL_SCAN -+uschar *local_scan_path = NULL; -+#endif -+ - - /* For comments on these variables, see globals.h. I'm too idle to - duplicate them here... */ ---- a/src/globals.h -+++ b/src/globals.h -@@ -173,6 +173,9 @@ - extern int (*receive_feof)(void); - extern int (*receive_ferror)(void); - -+#ifdef DLOPEN_LOCAL_SCAN -+extern uschar *local_scan_path; /* Path to local_scan() library */ -+#endif - - /* For clearing, saving, restoring address expansion variables. We have to have - the size of this vector set explicitly, because it is referenced from more than ---- a/src/local_scan.c -+++ b/src/local_scan.c -@@ -56,10 +56,130 @@ - is used in the rejection message. - */ - -+#ifdef DLOPEN_LOCAL_SCAN -+# include <stdlib.h> -+# include <dlfcn.h> -+static int (*local_scan_fn)(int fd, uschar **return_text) = NULL; -+static int load_local_scan_library(void); -+extern uschar *local_scan_path; /* Path to local_scan() library */ -+#endif -+ - int - local_scan(int fd, uschar **return_text) - { --return LOCAL_SCAN_ACCEPT; -+#ifdef DLOPEN_LOCAL_SCAN -+/* local_scan_path is defined AND not the empty string */ -+if (local_scan_path && *local_scan_path) -+ { -+ if (!local_scan_fn) -+ { -+ if (!load_local_scan_library()) -+ { -+ char *base_msg , *error_msg , *final_msg ; -+ int final_length = -1 ; -+ -+ base_msg=US"Local configuration error - local_scan() library failure\n"; -+ error_msg = dlerror() ; -+ -+ final_length = strlen(base_msg) + strlen(error_msg) + 1 ; -+ final_msg = (char*)malloc( final_length*sizeof(char) ) ; -+ *final_msg = '\0' ; -+ -+ strcat( final_msg , base_msg ) ; -+ strcat( final_msg , error_msg ) ; -+ -+ *return_text = final_msg ; -+ return LOCAL_SCAN_TEMPREJECT; -+ } -+ } -+ return local_scan_fn(fd, return_text); -+ } -+else -+#endif -+ return LOCAL_SCAN_ACCEPT; -+} -+ -+#ifdef DLOPEN_LOCAL_SCAN -+ -+static int load_local_scan_library(void) -+{ -+/* No point in keeping local_scan_lib since we'll never dlclose() anyway */ -+void *local_scan_lib = NULL; -+int (*local_scan_version_fn)(void); -+int vers_maj; -+int vers_min; -+ -+local_scan_lib = dlopen(local_scan_path, RTLD_NOW); -+if (!local_scan_lib) -+ { -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library open failed - " -+ "message temporarily rejected"); -+ return FALSE; -+ } -+ -+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_major"); -+if (!local_scan_version_fn) -+ { -+ dlclose(local_scan_lib); -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain " -+ "local_scan_version_major() function - message temporarily rejected"); -+ return FALSE; -+ } -+ -+/* The major number is increased when the ABI is changed in a non -+ backward compatible way. */ -+vers_maj = local_scan_version_fn(); -+ -+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_minor"); -+if (!local_scan_version_fn) -+ { -+ dlclose(local_scan_lib); -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain " -+ "local_scan_version_minor() function - message temporarily rejected"); -+ return FALSE; -+ } -+ -+/* The minor number is increased each time a new feature is added (in a -+ way that doesn't break backward compatibility) -- Marc */ -+vers_min = local_scan_version_fn(); -+ -+ -+if (vers_maj != LOCAL_SCAN_ABI_VERSION_MAJOR) -+ { -+ dlclose(local_scan_lib); -+ local_scan_lib = NULL; -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible major" -+ "version number, you need to recompile your module for this version" -+ "of exim (The module was compiled for version %d.%d and this exim provides" -+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR, -+ LOCAL_SCAN_ABI_VERSION_MINOR); -+ return FALSE; -+ } -+else if (vers_min > LOCAL_SCAN_ABI_VERSION_MINOR) -+ { -+ dlclose(local_scan_lib); -+ local_scan_lib = NULL; -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible minor" -+ "version number, you need to recompile your module for this version" -+ "of exim (The module was compiled for version %d.%d and this exim provides" -+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR, -+ LOCAL_SCAN_ABI_VERSION_MINOR); -+ return FALSE; -+ } -+ -+local_scan_fn = dlsym(local_scan_lib, "local_scan"); -+if (!local_scan_fn) -+ { -+ dlclose(local_scan_lib); -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain " -+ "local_scan() function - message temporarily rejected"); -+ return FALSE; -+ } -+ -+return TRUE; - } - -+#endif /* DLOPEN_LOCAL_SCAN */ -+ -+ - /* End of local_scan.c */ ---- a/src/readconf.c -+++ b/src/readconf.c -@@ -216,6 +216,9 @@ - { "local_from_prefix", opt_stringptr, {&local_from_prefix} }, - { "local_from_suffix", opt_stringptr, {&local_from_suffix} }, - { "local_interfaces", opt_stringptr, {&local_interfaces} }, -+#ifdef DLOPEN_LOCAL_SCAN -+ { "local_scan_path", opt_stringptr, {&local_scan_path} }, -+#endif - #ifdef HAVE_LOCAL_SCAN - { "local_scan_timeout", opt_time, {&local_scan_timeout} }, - #endif diff --git a/mail-mta/exim/files/exim-4.97-no-exim_id_update.patch b/mail-mta/exim/files/exim-4.97-no-exim_id_update.patch deleted file mode 100644 index 26cd64971449..000000000000 --- a/mail-mta/exim/files/exim-4.97-no-exim_id_update.patch +++ /dev/null @@ -1,13 +0,0 @@ -This utility needs File::FcntlLock which Gentoo doesn't package - ---- a/OS/Makefile-Base -+++ b/OS/Makefile-Base -@@ -253,7 +253,7 @@ - transport-filter.pl convert4r3 convert4r4 \ - exim_checkaccess \ - exim_dbmbuild exim_dumpdb exim_fixdb exim_tidydb \ -- exim_lock exim_msgdate exim_id_update -+ exim_lock exim_msgdate - - - # Targets for special-purpose configuration header builders diff --git a/mail-mta/exim/files/exim-4.98-tidydb-crash.patch b/mail-mta/exim/files/exim-4.98-tidydb-crash.patch deleted file mode 100644 index 2786fa96e96b..000000000000 --- a/mail-mta/exim/files/exim-4.98-tidydb-crash.patch +++ /dev/null @@ -1,16 +0,0 @@ -https://code.exim.org/exim/exim/issues/3144 - ---- a/src/hintsdb.h -+++ b/src/hintsdb.h -@@ -596,7 +596,11 @@ - /* EXIM_DBDELETE_CURSOR - terminate scanning operation. */ - static inline void - exim_dbdelete_cursor(EXIM_CURSOR * cursor) -+# ifdef COMPILE_UTILITY -+{ free(cursor); } -+# else - { store_free(cursor); } -+# endif - - /* EXIM_DBCLOSE */ - static inline void diff --git a/mail-mta/exim/files/exim-4.99.3-as-needed-ldflags.patch b/mail-mta/exim/files/exim-4.99.3-as-needed-ldflags.patch deleted file mode 100644 index cb5425c4f315..000000000000 --- a/mail-mta/exim/files/exim-4.99.3-as-needed-ldflags.patch +++ /dev/null @@ -1,147 +0,0 @@ -https://bugs.gentoo.org/show_bug.cgi?id=352265 - -Make sure LDFLAGS comes first, such that all libraries are considered, -and not discarded when --as-needed is in effect. - -https://bugs.gentoo.org/show_bug.cgi?id=391279 - -Use LDFLAGS for all targets, not just the exim binary, such that ---as-needed works as well. - -diff -aur exim-4.99.3.orig/OS/Makefile-Base exim-4.99.3/OS/Makefile-Base ---- exim-4.99.3.orig/OS/Makefile-Base 2026-05-07 20:41:19.000000000 +0200 -+++ exim-4.99.3/OS/Makefile-Base 2026-05-14 11:36:19.438130891 +0200 -@@ -573,12 +573,12 @@ - buildrouters buildtransports buildmisc \ - $(OBJ_EXIM) version.o - @echo "$(LNCC) -o exim" -- $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \ -+ $(FE)$(PURIFY) $(LNCC) -o exim $(LDFLAGS) $(OBJ_EXIM) version.o \ - routers/routers.a transports/transports.a lookups/lookups.a \ - auths/auths.a miscmods/miscmods.a \ - $(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \ - $(EXTRALIBS_EXIM) $(DBMLIB) $(LOOKUP_LIBS) $(AUTH_LIBS) \ -- $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LDFLAGS) -+ $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim; \ - $(STRIP_COMMAND) exim; \ -@@ -594,8 +594,8 @@ - - exim_dumpdb: $(OBJ_DUMPDB) - @echo "$(LNCC) -o exim_dumpdb" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LFLAGS) $(OBJ_DUMPDB) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LDFLAGS) $(OBJ_DUMPDB) \ -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_dumpdb; \ - $(STRIP_COMMAND) exim_dumpdb; \ -@@ -609,8 +609,8 @@ - - exim_fixdb: $(OBJ_FIXDB) - @echo "$(LNCC) -o exim_fixdb" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LFLAGS) $(OBJ_FIXDB) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LDFLAGS) $(OBJ_FIXDB) \ -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_fixdb; \ - $(STRIP_COMMAND) exim_fixdb; \ -@@ -624,9 +624,9 @@ - - exim_tidydb: $(OBJ_TIDYDB) - @echo "$(LNCC) -o exim_tidydb" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LFLAGS) \ -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LDFLAGS) \ - $(OBJ_TIDYDB) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_tidydb; \ - $(STRIP_COMMAND) exim_tidydb; \ -@@ -640,9 +640,9 @@ - - exim_dbmbuild: $(OBJ_DBMBUILD) - @echo "$(LNCC) -o exim_dbmbuild" -- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LFLAGS) \ -+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LDFLAGS) \ - $(OBJ_DBMBUILD) \ -- $(LIBS) $(EXTRALIBS) $(DBMLIB) -+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_dbmbuild; \ - $(STRIP_COMMAND) exim_dbmbuild; \ -@@ -656,8 +656,8 @@ - @echo "$(CC) exim_lock.c" - $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) exim_lock.c - @echo "$(LNCC) -o exim_lock" -- $(FE)$(LNCC) -o exim_lock $(LFLAGS) exim_lock.o \ -- $(LIBS) $(EXTRALIBS) -+ $(FE)$(LNCC) -o exim_lock $(LDFLAGS) exim_lock.o \ -+ $(LIBS) $(EXTRALIBS) $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) exim_lock; \ - $(STRIP_COMMAND) exim_lock; \ -@@ -695,9 +695,9 @@ - $(FE)$(CC) -o em_version.o -c \ - $(CFLAGS) $(XINCLUDE) -I. ../exim_monitor/em_version.c - @echo "$(LNCC) -o eximon.bin" -- $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LFLAGS) $(XLFLAGS) \ -+ $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LDFLAGS) $(XLFLAGS) \ - $(OBJ_MONBIN) -lXaw -lXmu -lXt -lXext -lX11 $(PCRE_LIBS) \ -- $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc -+ $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc $(LFLAGS) - @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ - echo $(STRIP_COMMAND) eximon.bin; \ - $(STRIP_COMMAND) eximon.bin; \ -@@ -1137,9 +1137,9 @@ - string.o tod.o version.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE dbfn.c - $(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY store.c -- $(LNCC) -o test_dbfn $(LFLAGS) dbfn.o \ -+ $(LNCC) -o test_dbfn $(LDFLAGS) dbfn.o \ - dummies.o sa-globals.o sa-os.o store.o string.o \ -- tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LDFLAGS) -+ tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LFLAGS) - rm -f dbfn.o store.o - - test_host: config.h child.c host.c dns.c dummies.c sa-globals.o os.o \ -@@ -1148,29 +1148,29 @@ - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST host.c - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dns.c - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dummies.c -- $(LNCC) -o test_host $(LFLAGS) \ -+ $(LNCC) -o test_host $(LDFLAGS) \ - host.o host_address.o child.o dns.o dummies.o sa-globals.o os.o store.o string.o \ -- tod.o tree.o $(LIBS) $(LIBRESOLV) -+ tod.o tree.o $(LIBS) $(LIBRESOLV) $(LFLAGS) - rm -f child.o dummies.o host.o dns.o - - test_os: os.h os.c dummies.o sa-globals.o store.o string.o tod.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE os.c -- $(LNCC) -o test_os $(LFLAGS) os.o dummies.o \ -- sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LDFLAGS) -+ $(LNCC) -o test_os $(LDFLAGS) os.o dummies.o \ -+ sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LFLAGS) - rm -f os.o - - test_parse: config.h parse.c dummies.o sa-globals.o \ - store.o string.o tod.o version.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE parse.c -- $(LNCC) -o test_parse $(LFLAGS) parse.o \ -+ $(LNCC) -o test_parse $(LDFLAGS) parse.o \ - dummies.o sa-globals.o store.o string.o tod.o version.o \ -- utf8.o $(LDFLAGS) -+ utf8.o $(LFLAGS) - rm -f parse.o - - test_string: config.h string.c dummies.o sa-globals.o store.o tod.o utf8.o - $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE string.c -- $(LNCC) -o test_string $(LFLAGS) -DSTAND_ALONE string.o \ -- dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LDFLAGS) -+ $(LNCC) -o test_string $(LDFLAGS) -DSTAND_ALONE string.o \ -+ dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LFLAGS) - rm -f string.o - - # End diff --git a/mail-mta/exim/files/exim-submission.socket b/mail-mta/exim/files/exim-submission.socket deleted file mode 100644 index b9593e2ef7b2..000000000000 --- a/mail-mta/exim/files/exim-submission.socket +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Exim Mail Transfer Agent (message submission) -Conflicts=exim.service - -[Socket] -ListenStream=587 -Accept=yes - -[Install] -WantedBy=sockets.target diff --git a/mail-mta/exim/files/exim-submission_at.service b/mail-mta/exim/files/exim-submission_at.service deleted file mode 100644 index 4f90cd83dc8d..000000000000 --- a/mail-mta/exim/files/exim-submission_at.service +++ /dev/null @@ -1,11 +0,0 @@ -# It doesn't make sense for this to be separate from exim@.service -# However, I couldn't think of a way to have two .socket files point -# to it ([Socket] Service= is rejected if Accept=yes is set). - -[Unit] -Description=Exim Mail Daemon per-connection server (message submission) - -[Service] -ExecStart=-/usr/bin/exim -bs -StandardInput=socket -StandardError=syslog diff --git a/mail-mta/exim/files/exim.confd b/mail-mta/exim/files/exim.confd deleted file mode 100644 index 1534d9dfaf08..000000000000 --- a/mail-mta/exim/files/exim.confd +++ /dev/null @@ -1,5 +0,0 @@ -# Command-line options for running exim -EXIM_OPTS="-bd -q15m" - -# Additional flags passed to exim_tidydb upon start (e.g. -t 7d) -TIDY_OPTS="" diff --git a/mail-mta/exim/files/exim.logrotate b/mail-mta/exim/files/exim.logrotate deleted file mode 100644 index f54f8c479af9..000000000000 --- a/mail-mta/exim/files/exim.logrotate +++ /dev/null @@ -1,9 +0,0 @@ -/var/log/exim/exim*.log { - daily - missingok - rotate 28 - compress - delaycompress - notifempty - create 640 mail mail -} diff --git a/mail-mta/exim/files/exim.rc10 b/mail-mta/exim/files/exim.rc10 deleted file mode 100644 index c44dba16ce2d..000000000000 --- a/mail-mta/exim/files/exim.rc10 +++ /dev/null @@ -1,47 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -extra_started_commands="reload" - -depend() { - need logger - use antivirus net - provide mta -} - -tidy_dbs() { - local spooldir=$(/usr/sbin/exim -C /etc/exim/${SVCNAME}.conf -bP -n spool_directory) - local db - local ret=0 - ebegin "Tidying hints databases in ${spooldir}/db" - for db in "${spooldir}"/db/* ; do - case "${db}" in - *".lockfile"|*"*") continue ;; - esac - /usr/sbin/exim_tidydb ${TIDY_OPTS} "${spooldir}" ${db##*/} > /dev/null - : $((ret += $?)) - done - eend ${ret} -} - -start() { - # if you use multiple instances, make sure you set spool_directory - # in the configfile - tidy_dbs - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec /usr/sbin/exim --pidfile /run/${SVCNAME}.pid -- -C /etc/exim/${SVCNAME}.conf ${EXIM_OPTS:--bd -q15m} - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid --name exim - eend $? -} - -reload() { - ebegin "Reloading ${SVCNAME}" - start-stop-daemon --signal HUP --pidfile /run/${SVCNAME}.pid --name exim - eend $? -} diff --git a/mail-mta/exim/files/exim.service b/mail-mta/exim/files/exim.service deleted file mode 100644 index c8a61cdc4a4a..000000000000 --- a/mail-mta/exim/files/exim.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Exim Mail Transport Agent -After=network.target - -[Service] -Environment=QUEUE=15m -ExecStart=/usr/sbin/exim -bdf -q${QUEUE} -ExecReload=/bin/kill -HUP $MAINPID -PrivateTmp=true - -[Install] -WantedBy=multi-user.target diff --git a/mail-mta/exim/files/exim.socket b/mail-mta/exim/files/exim.socket deleted file mode 100644 index 36d28684f18a..000000000000 --- a/mail-mta/exim/files/exim.socket +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Exim Mail Transfer Agent -Conflicts=exim.service - -[Socket] -ListenStream=25 -Accept=yes - -[Install] -WantedBy=sockets.target diff --git a/mail-mta/exim/files/exim_at.service b/mail-mta/exim/files/exim_at.service deleted file mode 100644 index 19c07a51b063..000000000000 --- a/mail-mta/exim/files/exim_at.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Exim Mail Daemon per-connection server - -[Service] -ExecStart=-/usr/bin/exim -bs -StandardInput=socket -StandardError=syslog diff --git a/mail-mta/exim/metadata.xml b/mail-mta/exim/metadata.xml deleted file mode 100644 index a8bdc5fe29d2..000000000000 --- a/mail-mta/exim/metadata.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>grobian@gentoo.org</email> - </maintainer> - <maintainer type="person"> - <email>jkroon@gentoo.org</email> - </maintainer> - <longdescription> - Exim is a message transfer agent (MTA) developed at the University of - Cambridge for use on Unix systems connected to the Internet. It is - freely available under the terms of the GNU General Public Licence. In - style it is similar to Smail 3, but its facilities are more general. - There is a great deal of flexibility in the way mail can be routed, and - there are extensive facilities for checking incoming mail. Exim can be - installed in place of sendmail, although the configuration of exim is - quite different to that of sendmail. - </longdescription> - <use> - <flag name="arc">Adds support for Authenticated Receive Chain - (ARC)</flag> - <flag name="dcc">Adds support for Distributed Checksum Clearinghouse - (DCC)</flag> - <flag name="dane">Adds support for DNS-based Authentication of Named Entities</flag> - <flag name="dkim">Adds support for DomainKeys Identified Mail - (DKIM)</flag> - <flag name="dnsdb">Adds support for a DNS search for a record whose - domain name is the supplied query</flag> - <flag name="dovecot-sasl">Adds support for Dovecot's - authentication</flag> - <flag name="dlfunc">Install local_scan.h header to compile separate - dlfunc libraries</flag> - <flag name="dmarc">Adds support for DMARC</flag> - <flag name="dmarc-native">Use *EXPERIMENTAL* Native DMARC implementation (Only effective with USE=dmarc).</flag> - <flag name="dmarc-opendmarc">Use established opendmarc based DMARC implementation (Only effective with USE=dmarc).</flag> - <flag name="dsn">Adds support for Delivery Status Notifications - (DSN)</flag> - <flag name="gsasl">Adds support for GNU SASL authentiction</flag> - <flag name="lmtp">Adds support for lmtp</flag> - <flag name="mbx">Adds support for UW's mbx format</flag> - <flag name="spf">Adds support for Sender Policy Framework</flag> - <flag name="srs">Adds support for Sender Rewriting Scheme</flag> - <flag name="proxy">Add support for being behind a proxy, such as HAProxy</flag> - <flag name="pkcs11">Require pkcs11 support in <pkg>net-libs/gnutls</pkg> with USE=gnutls</flag> - <flag name="redis">Adds support for querying <pkg>dev-db/redis</pkg></flag> - <flag name="prdr">Adds support for Per-Recipient Data Response</flag> - <flag name="tdb">Use <pkg>sys-libs/tdb</pkg> for internal database - storage (such as hints database)</flag> - <flag name="tpda">Adds support for Transport Post-Delivery Actions</flag> - </use> - <upstream> - <bugs-to>https://code.exim.org/</bugs-to> - </upstream> -</pkgmetadata> diff --git a/mail-mta/metadata.xml b/mail-mta/metadata.xml deleted file mode 100644 index 69f6b62549a7..000000000000 --- a/mail-mta/metadata.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE catmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<catmetadata> - <longdescription lang="en"> - The mail-mta category contains mail transport agent packages. - </longdescription> - <longdescription lang="de"> - Die Kategorie mail-mta enthält Mail Transport Agents wie z.B. Sendmail und Postfix. - </longdescription> - <longdescription lang="es"> - La categoría mail-mta contiene los paquetes de los agentes de transporte de correo electrónico. - </longdescription> - <longdescription lang="ja"> - mail-mtaカテゴリーにはメール・トランスポート・エージェントのパッケージが含まれています。 - </longdescription> - <longdescription lang="nl"> - De mail-mta categorie bevat Mail Transport Agents, zoals sendmail & postfix. - </longdescription> - <longdescription lang="sk"> - Kategória mail-mta obsahuje serverové balíky pre prenos elektronickej pošty (MTA). - </longdescription> - <longdescription lang="vi"> - Nhóm mail-mta chứa các mail server (Mail Transport Agent). - </longdescription> - <longdescription lang="it"> - La categoria mail-mta contiene pacchetti di server per la posta elettronica (Mail Transport Agent). - </longdescription> - <longdescription lang="pt"> - A categoria mail-mta contém pacotes de servidor dos agentes de transporte de correio eletrônico (Mail Transport Agent). - </longdescription> - <longdescription lang="pl"> - Kategoria mail-mta zawiera serwery przekazywania poczty. - </longdescription> -</catmetadata> diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest deleted file mode 100644 index 79362fb3f2b8..000000000000 --- a/mail-mta/msmtp/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST msmtp-1.8.30.tar.xz 453036 BLAKE2B 49a40133362fb58412dd1eec3d22e3b5ed747f9857d99dd598331f813db4071730b56663ec75dcde692cb347720d8344ac6c816d110844ca41d34386cc679ed9 SHA512 c1bc456851e058a3d7dee2a948a0aeb2de675969ca8cc35111aacabc7aab8784419804b648d2ec1bc4293dcd7971476583f347e436679ab5ad4ab1b9320e40c7 -DIST msmtp-1.8.31.tar.xz 455820 BLAKE2B 9712cd521812e6ac28dd5a066bc69a34ef747703a6a3063cd0e2fb836b339a2c00d768b97624da5d5e62d84adc0e298a82eb133386a2720651c9cc56ca23af89 SHA512 a180039391da1f8c801a3694ef3db5a3e7d650340f234a956400fb5d88fc799bd9e4603c9cc643b0ec5b39e4287152b02191ceb2603cb3bb52a9897fd5e4f112 -DIST msmtp-1.8.32.tar.xz 456960 BLAKE2B 7884f810dfa54b946a775b57609bf2885b4552106fd15b40a7a583d52ef2a4b6fb226e8b45785de6a2da87c7f7f8562ecb11af4c465b34633f8a0cc6941c9d60 SHA512 d72d937187496a36a69809f051f98de34fe0ca6e0b65b64c80f283c98de5a5b66f3b444a6af2f995d8f54db878678baffecfc42ccb7ba51b3450690913932776 -DIST msmtp-1.8.32.tar.xz.sig 310 BLAKE2B ac03bdbae59eb1073f68d08182eacad0419bb3481b550d5b17b8dfc5572a6fd6bc02d9a13485fef8fa5caa8cc96351672ead4d511b7817e33acabd294e525ad9 SHA512 e5d47c0207f3b1eb02f880ae073021f2fcbc80d150958619b4279b56679f82f642df8ae8dc0abd747679d449338555db3e70c80bfbb4fe32f2578fa57abe7633 diff --git a/mail-mta/msmtp/files/msmtp-1.8.31-fix-disable-nls.patch b/mail-mta/msmtp/files/msmtp-1.8.31-fix-disable-nls.patch deleted file mode 100644 index c52c42af9d0d..000000000000 --- a/mail-mta/msmtp/files/msmtp-1.8.31-fix-disable-nls.patch +++ /dev/null @@ -1,30 +0,0 @@ -Subject: [PATCH] Fix header encoding when building with --disable-nls. - -With disabled NLS, msmtp now assumes that UTF-8 is the current codeset, -which is a better guess than ASCII, which is what nl_langinfo() returns. - -This fixes github issue #203. ---- -URL: https://github.com/marlam/msmtp/commit/c6baa5b39e811ea4459a35ae0de88163f65bf8a2 ---- - src/tools.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/tools.c b/src/tools.c -index b65b4c5..9d78fc8 100644 ---- a/src/tools.c -+++ b/src/tools.c -@@ -1012,7 +1012,13 @@ char *encode_for_header(const char *s) - size_t b64_s_len = BASE64_LENGTH(s_len); - char* encoding = - #ifdef HAVE_LANGINFO_H -+ /* With disabled NLS, nl_langinfo() always seems to return -+ * ANSI_X3.4-1968 (i.e. ASCII). We want to assume UTF-8 instead. */ -+# ifdef ENABLE_NLS - nl_langinfo(CODESET); -+# else -+ "UTF-8"; -+# endif - #else - # ifdef W32_NATIVE - w32_langinfo_codeset(); diff --git a/mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch b/mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch deleted file mode 100644 index a7c5cf17f1d1..000000000000 --- a/mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch +++ /dev/null @@ -1,56 +0,0 @@ -https://github.com/marlam/msmtp/pull/200 -https://bugs.gentoo.org/948087 - -From fce1dfefd7af8175708deabc3e55f8682d181d22 Mon Sep 17 00:00:00 2001 -From: Gabi Falk <gabifalk@gmx.com> -Date: Wed, 13 Aug 2025 09:00:00 +0000 -Subject: [PATCH] tests: skip msmtpd-dependent tests if msmtpd is not built - -Link: https://bugs.gentoo.org/948087 ---- - tests/test-auth-plain.sh | 8 +++++++- - tests/test-header-handling.sh | 8 +++++++- - 2 files changed, 14 insertions(+), 2 deletions(-) - -diff --git a/tests/test-auth-plain.sh b/tests/test-auth-plain.sh -index 27d406e..a670dcd 100755 ---- a/tests/test-auth-plain.sh -+++ b/tests/test-auth-plain.sh -@@ -2,9 +2,15 @@ - - set -e - -+msmtpd=../src/msmtpd -+if [ ! -x $msmtpd ]; then -+ echo 'msmtpd is not built' -+ exit 77 -+fi -+ - # Start an msmtpd with PLAIN authentication - echo "Starting msmtpd" --../src/msmtpd --interface=::1 --port=12345 --auth='testuser,echo testpassword' \ -+$msmtpd --interface=::1 --port=12345 --auth='testuser,echo testpassword' \ - --command='cat > out-auth-plain-mail.txt; echo > out-auth-plain-rcpt.txt' & - MSMTPD_PID=$! - trap "kill $MSMTPD_PID" EXIT -diff --git a/tests/test-header-handling.sh b/tests/test-header-handling.sh -index e58cde4..9109bd3 100755 ---- a/tests/test-header-handling.sh -+++ b/tests/test-header-handling.sh -@@ -2,9 +2,15 @@ - - set -e - -+msmtpd=../src/msmtpd -+if [ ! -x $msmtpd ]; then -+ echo 'msmtpd is not built' -+ exit 77 -+fi -+ - # Start an msmtpd that dumps the mail and the recipient lists so we can check them - echo "Starting msmtpd" --../src/msmtpd --interface=::1 --port=12346 \ -+$msmtpd --interface=::1 --port=12346 \ - --command='cat > out-header-handling-mail.txt; echo > out-header-handling-rcpt.txt' & - MSMTPD_PID=$! - trap "kill $MSMTPD_PID" EXIT diff --git a/mail-mta/msmtp/files/msmtpd.confd b/mail-mta/msmtp/files/msmtpd.confd deleted file mode 100644 index a42aa5323ca3..000000000000 --- a/mail-mta/msmtp/files/msmtpd.confd +++ /dev/null @@ -1,16 +0,0 @@ -# The user msmtpd should be run as. Default is "msmtpd". -#MSMTPD_USER="joe" - - -# Uncomment one of the following arguments for msmtpd or write your own -# argument list. - -# Start single SMTP session on stdin/stdout -#MSMTPD_ARGS="--inetd" - -# Listen on a specific IP and a specific port. -# Default IP is 127.0.0.1 and default port is 25. -#MSMTPD_ARGS="--interface=192.168.100.1 --port=25000" - -# Pipe mails to a specific command instead of msmtp. Please read msmtpd man page. -#MSMTPD_ARGS="--command='/usr/bin/msmtp -f %F'" diff --git a/mail-mta/msmtp/files/msmtpd.init b/mail-mta/msmtp/files/msmtpd.init deleted file mode 100644 index 29f799099fea..000000000000 --- a/mail-mta/msmtp/files/msmtpd.init +++ /dev/null @@ -1,10 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Local mta daemon that pipes mails (by default) to msmtp" -pidfile="/var/run/msmtpd.pid" -command="/usr/bin/msmtpd" -command_user="${MSMTPD_USER:-msmtpd}" -command_args="${MSMTPD_ARGS}" -command_background="true" diff --git a/mail-mta/msmtp/metadata.xml b/mail-mta/msmtp/metadata.xml deleted file mode 100644 index 13f74adcbda3..000000000000 --- a/mail-mta/msmtp/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>leohdz172@proton.me</email> - <name>Leonardo Hernández Hernández</name> - </maintainer> - <maintainer type="person" proxied="proxy"> - <email>dlan@gentoo.org</email> - <name>Yixun Lan</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <use> - <flag name="daemon">Build/install msmtpd MTA daemon</flag> - <flag name="mta">Enable this to install as system-wide MTA</flag> - </use> - <upstream> - <remote-id type="github">marlam/msmtp</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-mta/msmtp/msmtp-1.8.30.ebuild b/mail-mta/msmtp/msmtp-1.8.30.ebuild deleted file mode 100644 index 95487db08d57..000000000000 --- a/mail-mta/msmtp/msmtp-1.8.30.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2004-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit fcaps - -DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt" -HOMEPAGE="https://marlam.de/msmtp/" -SRC_URI="https://marlam.de/msmtp/releases/${P}.tar.xz" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ppc ppc64 ~riscv ~sparc x86" -IUSE="daemon doc keyring +gnutls idn +mta nls sasl ssl" - -# fcaps.eclass unconditionally defines "filecaps" USE flag which we need for -# USE="daemon" in order to set the caps we need. -REQUIRED_USE="daemon? ( filecaps )" - -# Upstream discourages usage of openssl. See also -# https://marlam.de/msmtp/news/openssl-discouraged/ -DEPEND=" - idn? ( net-dns/libidn2:= ) - nls? ( virtual/libintl ) - keyring? ( app-crypt/libsecret ) - sasl? ( >=net-misc/gsasl-2.1[client] ) - ssl? ( - gnutls? ( net-libs/gnutls[idn?] ) - !gnutls? ( dev-libs/libretls:= ) - ) -" - -RDEPEND="${DEPEND} - net-mail/mailbase - daemon? ( - acct-group/msmtpd - acct-user/msmtpd - ) - mta? ( - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !>=mail-mta/ssmtp-2.64-r2[mta] - ) -" - -BDEPEND=" - doc? ( virtual/texi2dvi ) - nls? ( sys-devel/gettext ) - virtual/pkgconfig -" - -DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*" - -PATCHES=( "${FILESDIR}/${PN}-fix-tests-without-msmtpd.patch" ) - -src_prepare() { - # Use default Gentoo location for mail aliases - sed 's:/etc/aliases:/etc/mail/aliases:' \ - -i scripts/find_alias/find_alias_for_msmtp.sh || die - - default -} - -src_configure() { - local myeconfargs=( - --disable-gai-idn - $(use_enable nls) - $(use_with daemon msmtpd) - $(use_with keyring libsecret) - $(use_with idn libidn) - $(use_with sasl libgsasl) - $(use_with ssl tls $(usex gnutls gnutls libtls)) - ) - econf "${myeconfargs[@]}" -} - -src_compile() { - default - - if use doc; then - emake -C doc html pdf - fi -} - -src_install() { - default - - if use daemon ; then - fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd - newinitd "${FILESDIR}"/msmtpd.init msmtpd - newconfd "${FILESDIR}"/msmtpd.confd msmtpd - fi - - if use doc ; then - dodoc doc/msmtp.{html,pdf} - fi - - if use mta ; then - dosym ../bin/msmtp /usr/sbin/sendmail - dosym ../bin/msmtp /usr/$(get_libdir)/sendmail - fi - - for i in syntax ftdetect ftplugin; do - insinto /usr/share/vim/vimfiles/$i - doins scripts/vim/$i/msmtp.vim - done - - insinto /etc - newins doc/msmtprc-system.example msmtprc - - src_install_contrib find_alias find_alias_for_msmtp.sh - src_install_contrib msmtpqueue "*.sh" "README ChangeLog" - src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq - src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]]; then - einfo "Please edit ${EROOT}/etc/msmtprc before first use." - einfo "In addition, per user configuration files can be placed" - einfo "as '~/.msmtprc'. See the msmtprc-user.example file under" - einfo "/usr/share/doc/${PF}/ for an example." - fi -} - -src_install_contrib() { - subdir="$1" - bins="$2" - docs="$3" - local dir=/usr/share/${PN}/${subdir} - insinto ${dir} - exeinto ${dir} - for i in ${bins} ; do - doexe scripts/${subdir}/${i} - done - for i in ${docs} ; do - newdoc scripts/${subdir}/${i} ${subdir}.${i} - done -} diff --git a/mail-mta/msmtp/msmtp-1.8.31-r1.ebuild b/mail-mta/msmtp/msmtp-1.8.31-r1.ebuild deleted file mode 100644 index 6faaf9f43a00..000000000000 --- a/mail-mta/msmtp/msmtp-1.8.31-r1.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2004-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit fcaps - -DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt" -HOMEPAGE="https://marlam.de/msmtp/" -SRC_URI="https://marlam.de/msmtp/releases/${P}.tar.xz" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="daemon doc keyring +gnutls idn +mta nls sasl ssl" - -# fcaps.eclass unconditionally defines "filecaps" USE flag which we need for -# USE="daemon" in order to set the caps we need. -REQUIRED_USE="daemon? ( filecaps )" - -# Upstream discourages usage of openssl. See also -# https://marlam.de/msmtp/news/openssl-discouraged/ -DEPEND=" - idn? ( net-dns/libidn2:= ) - nls? ( virtual/libintl ) - keyring? ( app-crypt/libsecret ) - sasl? ( >=net-misc/gsasl-2.1[client] ) - ssl? ( - gnutls? ( net-libs/gnutls[idn?] ) - !gnutls? ( dev-libs/libretls:= ) - ) -" - -RDEPEND="${DEPEND} - net-mail/mailbase - daemon? ( - acct-group/msmtpd - acct-user/msmtpd - ) - mta? ( - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !>=mail-mta/ssmtp-2.64-r2[mta] - ) -" - -BDEPEND=" - doc? ( virtual/texi2dvi ) - nls? ( sys-devel/gettext ) - virtual/pkgconfig -" - -DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*" - -PATCHES=( "${FILESDIR}/${P}-fix-disable-nls.patch" ) - -src_prepare() { - # Use default Gentoo location for mail aliases - sed 's:/etc/aliases:/etc/mail/aliases:' \ - -i scripts/find_alias/find_alias_for_msmtp.sh || die - - default -} - -src_configure() { - local myeconfargs=( - --disable-gai-idn - $(use_enable nls) - $(use_with daemon msmtpd) - $(use_with keyring libsecret) - $(use_with idn libidn) - $(use_with sasl libgsasl) - $(use_with ssl tls $(usex gnutls gnutls libtls)) - ) - econf "${myeconfargs[@]}" -} - -src_compile() { - default - - if use doc; then - emake -C doc html pdf - fi -} - -src_install() { - default - - if use daemon ; then - fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd - newinitd "${FILESDIR}"/msmtpd.init msmtpd - newconfd "${FILESDIR}"/msmtpd.confd msmtpd - fi - - if use doc ; then - dodoc doc/msmtp.{html,pdf} - fi - - if use mta ; then - dosym ../bin/msmtp /usr/sbin/sendmail - dosym ../bin/msmtp /usr/$(get_libdir)/sendmail - fi - - for i in syntax ftdetect ftplugin; do - insinto /usr/share/vim/vimfiles/$i - doins scripts/vim/$i/msmtp.vim - done - - insinto /etc - newins doc/msmtprc-system.example msmtprc - - src_install_contrib find_alias find_alias_for_msmtp.sh - src_install_contrib msmtpqueue "*.sh" "README ChangeLog" - src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq - src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]]; then - einfo "Please edit ${EROOT}/etc/msmtprc before first use." - einfo "In addition, per user configuration files can be placed" - einfo "as '~/.msmtprc'. See the msmtprc-user.example file under" - einfo "/usr/share/doc/${PF}/ for an example." - fi -} - -src_install_contrib() { - subdir="$1" - bins="$2" - docs="$3" - local dir=/usr/share/${PN}/${subdir} - insinto ${dir} - exeinto ${dir} - for i in ${bins} ; do - doexe scripts/${subdir}/${i} - done - for i in ${docs} ; do - newdoc scripts/${subdir}/${i} ${subdir}.${i} - done -} diff --git a/mail-mta/msmtp/msmtp-1.8.32.ebuild b/mail-mta/msmtp/msmtp-1.8.32.ebuild deleted file mode 100644 index 5c784ffd33fc..000000000000 --- a/mail-mta/msmtp/msmtp-1.8.32.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 2004-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/martinlambers.asc -inherit fcaps verify-sig - -DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt" -HOMEPAGE="https://marlam.de/msmtp/" -SRC_URI=" - https://marlam.de/msmtp/releases/${P}.tar.xz - verify-sig? ( https://marlam.de/msmtp/releases/${P}.tar.xz.sig ) -" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ppc ppc64 ~riscv ~sparc x86" -IUSE="daemon doc keyring +gnutls idn +mta nls sasl ssl" - -# fcaps.eclass unconditionally defines "filecaps" USE flag which we need for -# USE="daemon" in order to set the caps we need. -REQUIRED_USE="daemon? ( filecaps )" - -# Upstream discourages usage of openssl. See also -# https://marlam.de/msmtp/news/openssl-discouraged/ -DEPEND=" - idn? ( net-dns/libidn2:= ) - nls? ( virtual/libintl ) - keyring? ( app-crypt/libsecret ) - sasl? ( >=net-misc/gsasl-2.1[client] ) - ssl? ( - gnutls? ( net-libs/gnutls[idn?] ) - !gnutls? ( dev-libs/libretls:= ) - ) -" - -RDEPEND="${DEPEND} - net-mail/mailbase - daemon? ( - acct-group/msmtpd - acct-user/msmtpd - ) - mta? ( - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/sendmail - !mail-mta/opensmtpd - !>=mail-mta/ssmtp-2.64-r2[mta] - ) -" - -BDEPEND=" - doc? ( virtual/texi2dvi ) - nls? ( sys-devel/gettext ) - verify-sig? ( sec-keys/openpgp-keys-martinlambers ) - virtual/pkgconfig -" - -DOCS="AUTHORS ChangeLog NEWS README THANKS doc/msmtprc*" - -src_prepare() { - # Use default Gentoo location for mail aliases - sed 's:/etc/aliases:/etc/mail/aliases:' \ - -i scripts/find_alias/find_alias_for_msmtp.sh || die - - default -} - -src_configure() { - local myeconfargs=( - --disable-gai-idn - $(use_enable nls) - $(use_with daemon msmtpd) - $(use_with keyring libsecret) - $(use_with idn libidn) - $(use_with sasl libgsasl) - $(use_with ssl tls $(usex gnutls gnutls libtls)) - ) - econf "${myeconfargs[@]}" -} - -src_compile() { - default - - if use doc; then - emake -C doc html pdf - fi -} - -src_install() { - default - - if use daemon ; then - fcaps CAP_NET_BIND_SERVICE usr/bin/msmtpd - newinitd "${FILESDIR}"/msmtpd.init msmtpd - newconfd "${FILESDIR}"/msmtpd.confd msmtpd - fi - - if use doc ; then - dodoc doc/msmtp.{html,pdf} - fi - - if use mta ; then - dosym ../bin/msmtp /usr/sbin/sendmail - dosym ../bin/msmtp /usr/$(get_libdir)/sendmail - fi - - for i in syntax ftdetect ftplugin; do - insinto /usr/share/vim/vimfiles/$i - doins scripts/vim/$i/msmtp.vim - done - - insinto /etc - newins doc/msmtprc-system.example msmtprc - - src_install_contrib find_alias find_alias_for_msmtp.sh - src_install_contrib msmtpqueue "*.sh" "README ChangeLog" - src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq - src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]]; then - einfo "Please edit ${EROOT}/etc/msmtprc before first use." - einfo "In addition, per user configuration files can be placed" - einfo "as '~/.msmtprc'. See the msmtprc-user.example file under" - einfo "/usr/share/doc/${PF}/ for an example." - fi -} - -src_install_contrib() { - subdir="$1" - bins="$2" - docs="$3" - local dir=/usr/share/${PN}/${subdir} - insinto ${dir} - exeinto ${dir} - for i in ${bins} ; do - doexe scripts/${subdir}/${i} - done - for i in ${docs} ; do - newdoc scripts/${subdir}/${i} ${subdir}.${i} - done -} diff --git a/mail-mta/notqmail/Manifest b/mail-mta/notqmail/Manifest deleted file mode 100644 index 6c000d335a7a..000000000000 --- a/mail-mta/notqmail/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -DIST genqmail-20200817.tar.bz2 10071 BLAKE2B dfeb8aa094c0db1b672e5e7a39f3866e02c088e366d5814832870140c1422d7c5fc0cf655614641ec45b5e819d3c4f8b910252d39231f7ae0394a81fd3309245 SHA512 665ac06bfb127e8c905dda888834520046fc327d21db2aa15da575f434ceff7e811f4206f7cde3c87815aab86f93b7b3e374547809eb02dd0ea0af419da121a8 -DIST notqmail-1.08-auth.patch 71183 BLAKE2B c980475ef7a2ad6e05d71f494293579e5082b63606fd0bbbd51fff5d067912b1548b4033f36de8030d60b195a684ff0845afe022d316ad835b1ad0b360cafbd6 SHA512 697b8b2a26a10c0029918193046dd2758bb3e84af97fb2e99f29bfb23efb0a9e0ee6ecca0431369e348d1414ef70bc5c446420b4f019ba427d16d0f07f23f6e3 -DIST notqmail-1.08-big-todo.patch 7179 BLAKE2B f7582d0193096f17316feb15e65c2b841545e274309351fc2921120ec3a4fb35b1998fbd8b8ca573c7dbd690ab7197f4b4f9105671f7d299687bf339b747deb2 SHA512 8444c8b4558410682d46e4954973721a1fb5e90585c9a3a4d7603448faf68cc0d07d2b5d51977ce72d35551b5c43b03014638251b542e48fe9cbef327cacc7c6 -DIST notqmail-1.08-spp.patch 14304 BLAKE2B 61cb1cf48e0af93d4928906fa115fe71df888d676d38bf4e2c23106900d7f66964a915f90cb0cc3b36130a9a9a2050f209471fdc9c03bb16a82cae2e35b94278 SHA512 b0671b6a370f4eda0721a655a140f24b0585ab752f46260f90aa3afbcf86d5ba2970985c7f88af95402c8e4e7c9e2fe54a75b9cf7a598f8fb1901dccc4960c8a -DIST notqmail-1.08-tls_auth-20200107.patch 50123 BLAKE2B 94bbab86bd089c6ac032bfabc300eb89b367c239ae7a60256c417a2abfa583984e6273eae6df22d44b98dcefce4904f6db9625ff2a57f4b30a8fff8c629d374b SHA512 bdccdf98024f811802504872b8e3f3ac3010c1f218a0ec79bb12e635c35bfa15471c2b7e499c14e6bec9b5d3e48f1e584e26ba2ca01f1ce73a347a338de2a304 -DIST notqmail-1.08-tls-spp.patch 64223 BLAKE2B d2337017dacd41d975a9ebd4650cce58425c3c6e1ebfaaaf29a222a532cfd246fec16f52997e85eb921ad376235eb69a8580ba8df493bf760f3d8237311411c0 SHA512 012cdc62c2361737fb984e750a28bd06f357aefd9fa8d909e2e380e65fc5ae3a2cbef3f592eb60455ad858385dbf8e8b50a2f6358a9ffa3f885aa76250a336a0 -DIST notqmail-1.08.tar.xz 179500 BLAKE2B 6c774037b257849aea65e7761a6f6c9918079faa490c0ed027d73a8b32de5d5907a54a59162b9b68479229c4b92a23fe28cd2f334123cfe674a94502b90a3635 SHA512 c18d09e28c2e580522eea144e5344e814811108b12f3272b4cf10ad58d9d3d8e666616dcfea2f369e226b68db4fe8cf67cbae994b242d36e9e07c289a0539394 -DIST notqmail-1.08.tar.xz.sig 195 BLAKE2B 0edf3758d24c22e69139a57804b5b39da6c5868c178af511ff5105cd45bf105f5bb903d94093d400c54126e359a259f32d8c8b25c2fb87233efd74fdb05593c1 SHA512 2d5e68d1f3d7330b8b58f54235ec22a94adc0811e23f4863fac806c7a3e0110e6388920c3089c68fa3bb438398d64ea6e37240d002225b1cab20460797487604 -DIST qmail-103.patch 2104 BLAKE2B 23721b3331c719f3b6deca8b2603bf824b66068d3901a84dda9edbe33b506d0c2b6e711364e2426d9e393453a54485f0286d4668f99cf6b9acabf10a5dc59b0a SHA512 b81062bb0b0023f474c0b6af40601926e1c04ad395de480d114809e48a8060c06d99bdbdeb6f44d9e24ae1acedabb094b979193d305371aed958f18fc6eee354 diff --git a/mail-mta/notqmail/metadata.xml b/mail-mta/notqmail/metadata.xml deleted file mode 100644 index dd95c000ec99..000000000000 --- a/mail-mta/notqmail/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>eike@sf-mail.de</email> - <name>Rolf Eike Beer</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <use> - <flag name="gencertdaily">Generate SSL certificates daily instead of - hourly</flag> - <flag name="highvolume">Prepare notqmail for high volume servers</flag> - <flag name="pop3">Include POP3 server</flag> - </use> - <upstream> - <remote-id type="github">notqmail/notqmail</remote-id> - <remote-id type="sourceforge">qmail-spp</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-mta/notqmail/notqmail-1.08-r6.ebuild b/mail-mta/notqmail/notqmail-1.08-r6.ebuild deleted file mode 100644 index bd21f300fe88..000000000000 --- a/mail-mta/notqmail/notqmail-1.08-r6.ebuild +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -GENQMAIL_PV=20200817 -QMAIL_SPP_PV=0.42 - -QMAIL_TLS_PV=20200107 -QMAIL_TLS_F=notqmail-1.08-tls_auth-${QMAIL_TLS_PV}.patch - -QMAIL_BIGTODO_F=notqmail-1.08-big-todo.patch - -QMAIL_LARGE_DNS="qmail-103.patch" - -inherit qmail systemd - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/notqmail/notqmail.git" - inherit git-r3 -else - inherit verify-sig - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" - SRC_URI=" - https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz - verify-sig? ( - https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz.sig - ) - " -fi - -DESCRIPTION="Collaborative open-source successor to qmail" -HOMEPAGE=" - https://notqmail.org - https://cr.yp.to/qmail.html - http://qmail.org -" -SRC_URI="${SRC_URI} - https://github.com/DerDakon/genqmail/releases/download/genqmail-${GENQMAIL_PV}/${GENQMAIL_F} - https://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} - !vanilla? ( - highvolume? ( - https://github.com/notqmail/notqmail/commit/3a22b45974ddd1230da0dfa21f886c3401bee020.patch -> ${QMAIL_BIGTODO_F} - ) - qmail-spp? ( - ssl? ( - https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch -> ${PN}-1.08-auth.patch - https://github.com/notqmail/notqmail/commit/d950cc34491afe90432cafcaeda61d1c1a9508e9.patch -> ${PN}-1.08-tls-spp.patch - ) - !ssl? ( - https://github.com/notqmail/notqmail/commit/b36d52a0dd7315a969f2a9a7455717466e45be23.patch -> ${PN}-1.08-spp.patch - ) - ) - ssl? ( - https://github.com/notqmail/notqmail/commit/0dc6a3aa9cb3440fe589ca5384ea27d683f05625.patch -> ${QMAIL_TLS_F} - ) - !ssl? ( - https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch -> ${PN}-1.08-auth.patch - ) - ) -" - -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/notqmail.asc - -LICENSE="public-domain" -SLOT="0" -IUSE="gencertdaily highvolume pop3 qmail-spp selinux ssl test vanilla" -REQUIRED_USE="vanilla? ( !ssl !qmail-spp !highvolume !gencertdaily ) gencertdaily? ( ssl )" -RESTRICT="!test? ( test )" - -if [[ ${PV} != 9999 ]] ; then - BDEPEND="verify-sig? ( sec-keys/openpgp-keys-notqmail )" -fi -DEPEND=" - net-dns/libidn2 - net-mail/queue-repair - sys-apps/gentoo-functions - ssl? ( >=dev-libs/openssl-1.1:0= ) - test? ( dev-libs/check ) -" -RDEPEND="${DEPEND} - acct-group/nofiles - acct-group/qmail - acct-user/alias - acct-user/qmaild - acct-user/qmaill - acct-user/qmailp - acct-user/qmailq - acct-user/qmailr - acct-user/qmails - sys-apps/ucspi-tcp - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/msmtp[mta] - !mail-mta/nullmailer - !mail-mta/opensmtpd - !mail-mta/postfix - !mail-mta/qmail-ldap - !mail-mta/netqmail - !mail-mta/sendmail - !mail-mta/ssmtp[mta] - selinux? ( sec-policy/selinux-qmail ) -" -PDEPEND=" - virtual/daemontools -" - -src_unpack() { - genqmail_src_unpack - - [[ ${PV} == "9999" ]] && git-r3_src_unpack - if [[ ${PV} != "9999" ]]; then - default - if use verify-sig; then - verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig} - fi - fi -} - -PATCHES=( - "${DISTDIR}/${QMAIL_LARGE_DNS}" -) - -src_prepare() { - if ! use vanilla; then - if use qmail-spp; then - PATCHES+=( "${DISTDIR}/${P}-auth.patch" ) - elif use ssl; then - PATCHES+=( "${DISTDIR}/${QMAIL_TLS_F}" ) - else - PATCHES+=( "${DISTDIR}/${P}-auth.patch" ) - fi - use highvolume && PATCHES+=( "${DISTDIR}/${QMAIL_BIGTODO_F}" ) - - if use qmail-spp; then - if use ssl; then - PATCHES+=( "${DISTDIR}/${PN}-1.08-tls-spp.patch" ) - else - PATCHES+=( "${DISTDIR}/${PN}-1.08-spp.patch" ) - fi - fi - fi - - default - - qmail_src_postunpack - - einfo "Enabled CRAM_MD5 support" - - ht_fix_file Makefile* -} - -src_compile() { - qmail_src_compile NROFF=true - emake qmail-send.service - use qmail-spp && qmail_spp_src_compile -} - -src_install() { - qmail_src_install - systemd_dounit "${S}"/qmail-send.service -} - -src_test() { - emake test -} - -pkg_postinst() { - qmail_queue_setup - qmail_rootmail_fixup - qmail_tcprules_build - - qmail_config_notice - qmail_supervise_config_notice - elog - elog "If you are looking for documentation, check those links:" - elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" - elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" - elog "http://www.lifewithqmail.com/" - elog " -- Life with qmail" - elog -} - -pkg_config() { - # avoid some weird locale problems - export LC_ALL=C - - qmail_config_fast - qmail_tcprules_config - qmail_tcprules_build - - use ssl && qmail_ssl_generate -} diff --git a/mail-mta/notqmail/notqmail-9999.ebuild b/mail-mta/notqmail/notqmail-9999.ebuild deleted file mode 100644 index 9afa162aebb3..000000000000 --- a/mail-mta/notqmail/notqmail-9999.ebuild +++ /dev/null @@ -1,187 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -GENQMAIL_PV=20200817 -QMAIL_SPP_PV=0.42 - -QMAIL_TLS_PV=20200107 -QMAIL_TLS_F=notqmail-1.08-tls_auth-${QMAIL_TLS_PV}.patch - -QMAIL_BIGTODO_F=notqmail-1.08-big-todo.patch - -inherit qmail systemd - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/notqmail/notqmail.git" - inherit git-r3 -else - inherit verify-sig - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" - SRC_URI=" - https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz - verify-sig? ( - https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz.sig - ) - " -fi - -DESCRIPTION="Collaborative open-source successor to qmail" -HOMEPAGE=" - https://notqmail.org - https://cr.yp.to/qmail.html - http://qmail.org -" -SRC_URI="${SRC_URI} - https://github.com/DerDakon/genqmail/releases/download/genqmail-${GENQMAIL_PV}/${GENQMAIL_F} - !vanilla? ( - highvolume? ( - https://github.com/notqmail/notqmail/commit/3a22b45974ddd1230da0dfa21f886c3401bee020.patch -> ${QMAIL_BIGTODO_F} - ) - qmail-spp? ( - ssl? ( - https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch -> ${PN}-1.08-auth.patch - https://github.com/notqmail/notqmail/commit/d950cc34491afe90432cafcaeda61d1c1a9508e9.patch -> ${PN}-1.08-tls-spp.patch - ) - !ssl? ( - https://github.com/notqmail/notqmail/commit/b36d52a0dd7315a969f2a9a7455717466e45be23.patch -> ${PN}-1.08-spp.patch - ) - ) - ssl? ( - https://github.com/notqmail/notqmail/commit/0dc6a3aa9cb3440fe589ca5384ea27d683f05625.patch -> ${QMAIL_TLS_F} - ) - !ssl? ( - https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch -> ${PN}-1.08-auth.patch - ) - ) -" - -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/notqmail.asc - -LICENSE="public-domain" -SLOT="0" -IUSE="gencertdaily highvolume pop3 qmail-spp selinux ssl test vanilla" -REQUIRED_USE="vanilla? ( !ssl !qmail-spp !highvolume !gencertdaily ) gencertdaily? ( ssl )" -RESTRICT="!test? ( test )" - -if [[ ${PV} != 9999 ]] ; then - BDEPEND="verify-sig? ( sec-keys/openpgp-keys-notqmail )" -fi -DEPEND=" - net-dns/libidn2 - net-mail/queue-repair - sys-apps/gentoo-functions - ssl? ( >=dev-libs/openssl-1.1:0= ) - test? ( dev-libs/check ) -" -RDEPEND="${DEPEND} - acct-group/nofiles - acct-group/qmail - acct-user/alias - acct-user/qmaild - acct-user/qmaill - acct-user/qmailp - acct-user/qmailq - acct-user/qmailr - acct-user/qmails - sys-apps/ucspi-tcp - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/msmtp[mta] - !mail-mta/nullmailer - !mail-mta/opensmtpd - !mail-mta/postfix - !mail-mta/qmail-ldap - !mail-mta/netqmail - !mail-mta/sendmail - !mail-mta/ssmtp[mta] - selinux? ( sec-policy/selinux-qmail ) -" -PDEPEND=" - virtual/daemontools -" - -src_unpack() { - genqmail_src_unpack - - [[ ${PV} == "9999" ]] && git-r3_src_unpack - if [[ ${PV} != "9999" ]]; then - default - if use verify-sig; then - verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig} - fi - fi -} - -src_prepare() { - if ! use vanilla; then - if use qmail-spp; then - PATCHES+=( "${DISTDIR}/${P}-auth.patch" ) - elif use ssl; then - PATCHES+=( "${DISTDIR}/${QMAIL_TLS_F}" ) - else - PATCHES+=( "${DISTDIR}/${P}-auth.patch" ) - fi - use highvolume && PATCHES+=( "${DISTDIR}/${QMAIL_BIGTODO_F}" ) - - if use qmail-spp; then - if use ssl; then - PATCHES+=( "${DISTDIR}/${PN}-1.08-tls-spp.patch" ) - else - PATCHES+=( "${DISTDIR}/${PN}-1.08-spp.patch" ) - fi - fi - fi - - default - - qmail_src_postunpack - - einfo "Enabled CRAM_MD5 support" - - ht_fix_file Makefile* -} - -src_compile() { - qmail_src_compile NROFF=true - emake qmail-send.service - use qmail-spp && qmail_spp_src_compile -} - -src_install() { - qmail_src_install - systemd_dounit "${S}"/qmail-send.service -} - -src_test() { - emake test -} - -pkg_postinst() { - qmail_queue_setup - qmail_rootmail_fixup - qmail_tcprules_build - - qmail_config_notice - qmail_supervise_config_notice - elog - elog "If you are looking for documentation, check those links:" - elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" - elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" - elog "http://www.lifewithqmail.com/" - elog " -- Life with qmail" - elog -} - -pkg_config() { - # avoid some weird locale problems - export LC_ALL=C - - qmail_config_fast - qmail_tcprules_config - qmail_tcprules_build - - use ssl && qmail_ssl_generate -} diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest deleted file mode 100644 index 9d9ce9de6b2a..000000000000 --- a/mail-mta/nullmailer/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST nullmailer-2.2.tar.gz 257740 BLAKE2B 18821caa1a377a899e3fedc84530d7c672f345cafb627da05e6c7bcd7d2708d54fc4ff4b761a6a23b2ddbabe73514473a5ec2abf3182dce2f5d3d4fbe3618fed SHA512 21b29d59f3c386c13ce4541ae11dc5cd69f842085479d7fc9a69a540abc608ce5c1825f06bd3566536b392931f7eeb1b2d35addd816849e6f431877bb18c8268 diff --git a/mail-mta/nullmailer/files/init.d-nullmailer-r6 b/mail-mta/nullmailer/files/init.d-nullmailer-r6 deleted file mode 100644 index 2c24f7e0e228..000000000000 --- a/mail-mta/nullmailer/files/init.d-nullmailer-r6 +++ /dev/null @@ -1,51 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -command="/usr/sbin/nullmailer-send" - -start_stop_daemon_args="--chdir /var/spool/nullmailer --user nullmail:nullmail" -start_stop_daemon_args="${start_stop_daemon_args} --stdout /var/log/nullmailer/nullmailer.log" -start_stop_daemon_args="${start_stop_daemon_args} --stderr /var/log/nullmailer/nullmailer.log" - -required_dirs="/var/spool/nullmailer /var/log/nullmailer" -pidfile="/run/nullmailer.pid" -command_background="true" - -depend() { - use net logger -} - -checkconfig() { - local error=0 - local f=/etc/nullmailer/me - if [ ! -s ${f} ]; then - eerror "${f} does not exist" - error=1 - fi - f=/etc/nullmailer/defaultdomain - if [ ! -s ${f} ]; then - eerror "${f} does not exist" - error=1 - fi - if [ ${error} -eq 1 ]; then - einfo "You need to run 'emerge --config nullmailer'!" - fi - if [ -e /service/nullmailer ]; then - eerror "Nullmailer is already running under svscan!" - error=2 - fi - if [ ${error} -ne 0 ]; then - return 1 - else - return 0 - fi -} - -start_pre() { - checkconfig -} - -stop_pre() { - checkconfig # to avoid init.d stopping svscan instance -} diff --git a/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch b/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch deleted file mode 100644 index ac2eb23a338a..000000000000 --- a/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch +++ /dev/null @@ -1,36 +0,0 @@ -From f63dcd3d7ec69a7150f305ba81380988e0a1e38d Mon Sep 17 00:00:00 2001 -From: Denis Pronin <dannftk@yandex.ru> -Date: Tue, 25 Feb 2020 10:06:41 +0300 -Subject: [PATCH] fixed compilation with c++11 standard - -Signed-off-by: Denis Pronin <dannftk@yandex.ru> ---- - src/inject.cc | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/inject.cc b/src/inject.cc -index 0a555b2..189a70a 100644 ---- a/src/inject.cc -+++ b/src/inject.cc -@@ -148,9 +148,10 @@ static bool header_add_to = false; - - struct header_field - { -+ typedef unsigned length_t; - // member information - const char* name; -- unsigned length; -+ length_t length; - bool is_address; - bool is_recipient; - bool is_sender; -@@ -204,7 +205,8 @@ struct header_field - - #define F false - #define T true --#define X(N,IA,IR,IS,IRS,R) { #N ":",strlen(#N ":"),\ -+#define X(N,IA,IR,IS,IRS,R) { #N ":", \ -+ static_cast<header_field::length_t>(strlen(#N ":")),\ - IA,IR,IS,IRS,R,false, false } - static header_field header_fields[] = { - // Sender address fields, in order of priority diff --git a/mail-mta/nullmailer/files/nullmailer-2.2-disable-dns-using-test.patch b/mail-mta/nullmailer/files/nullmailer-2.2-disable-dns-using-test.patch deleted file mode 100644 index 0c5939ab004f..000000000000 --- a/mail-mta/nullmailer/files/nullmailer-2.2-disable-dns-using-test.patch +++ /dev/null @@ -1,26 +0,0 @@ -https://sources.debian.org/data/main/n/nullmailer/1:2.2-3/debian/patches/0006-Disable-DNS-using-test.patch - -From: David Bremner <david@tethera.net> -Date: Wed, 31 Oct 2018 09:18:53 -0300 -Subject: Disable DNS using test. - -This is probably against policy, and causes build failures in pbuilder ---- - test/tests/protocols | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/test/tests/protocols b/test/tests/protocols -index 52209d7..8f67b0a 100644 ---- a/test/tests/protocols -+++ b/test/tests/protocols -@@ -28,8 +28,8 @@ do - - stop server - -- echo "Testing host not found error with $p." -- error 2 protocol $p --host=this.host.can.not.exist 3<$testmail -+# echo "Testing host not found error with $p." -+# error 2 protocol $p --host=this.host.can.not.exist 3<$testmail - - echo "Testing connection refused error with $p." - error 7 protocol $p -p $port --host=localhost 3<$testmail diff --git a/mail-mta/nullmailer/files/nullmailer-2.2-disable-smtp-auth-tests.patch b/mail-mta/nullmailer/files/nullmailer-2.2-disable-smtp-auth-tests.patch deleted file mode 100644 index f66a4841f4fb..000000000000 --- a/mail-mta/nullmailer/files/nullmailer-2.2-disable-smtp-auth-tests.patch +++ /dev/null @@ -1,57 +0,0 @@ -https://sources.debian.org/data/main/n/nullmailer/1:2.2-3/debian/patches/0007-disable-all-smtp-auth-tests.patch - -From: David Bremner <david@tethera.net> -Date: Tue, 25 Dec 2018 08:18:35 +0900 -Subject: disable all smtp-auth tests - -These seem racy in ways that I haven't been able to completely nail down ---- - test/tests/smtp-auth | 32 ++++++++++++++++---------------- - 1 file changed, 16 insertions(+), 16 deletions(-) - -diff --git a/test/tests/smtp-auth b/test/tests/smtp-auth -index 52e12d0..2dc736f 100644 ---- a/test/tests/smtp-auth -+++ b/test/tests/smtp-auth -@@ -1,25 +1,25 @@ - . functions - export HELOHOST=f.q.d.n - --make-testmail -+# make-testmail - --start server "tcpserver -1 ::0 0 sh $srcdir/test/authtest-smtp.sh $tmpdir/smtp-result" --catch-port server -+# start server "tcpserver -1 ::0 0 sh $srcdir/test/authtest-smtp.sh $tmpdir/smtp-result" -+# catch-port server - --echo 'Testing auth success with smtp' --echo '250 OK' > $tmpdir/smtp-result --protocol smtp --host=localhost --port=$port --user=example --pass=example 3<$testmail -+# echo 'Testing auth success with smtp' -+# echo '250 OK' > $tmpdir/smtp-result -+# protocol smtp --host=localhost --port=$port --user=example --pass=example 3<$testmail - --echo 'Testing auth login success with smtp' --echo $'350 Go ahead\n250 AUTH' > $tmpdir/smtp-result --protocol smtp --host=localhost --port=$port --user=example --pass=example --auth-login 3<$testmail -+# echo 'Testing auth login success with smtp' -+# echo $'350 Go ahead\n250 AUTH' > $tmpdir/smtp-result -+# protocol smtp --host=localhost --port=$port --user=example --pass=example --auth-login 3<$testmail - --echo 'Testing auth temporary failure with smtp' --echo '450 No' > $tmpdir/smtp-result --error 16 protocol smtp --host=localhost --port $port --user=example --pass=example 3<$testmail -+# echo 'Testing auth temporary failure with smtp' -+# echo '450 No' > $tmpdir/smtp-result -+# error 16 protocol smtp --host=localhost --port $port --user=example --pass=example 3<$testmail - --echo 'Testing auth permanent failure with smtp' --echo '550 No' > $tmpdir/smtp-result --error 20 protocol smtp --host=localhost --port $port --user=example --pass=example 3<$testmail -+# echo 'Testing auth permanent failure with smtp' -+# echo '550 No' > $tmpdir/smtp-result -+# error 20 protocol smtp --host=localhost --port $port --user=example --pass=example 3<$testmail - --stop server -+# stop server diff --git a/mail-mta/nullmailer/files/nullmailer-2.2-fix-test-racecondition.patch b/mail-mta/nullmailer/files/nullmailer-2.2-fix-test-racecondition.patch deleted file mode 100644 index 8f721d8d8ccf..000000000000 --- a/mail-mta/nullmailer/files/nullmailer-2.2-fix-test-racecondition.patch +++ /dev/null @@ -1,29 +0,0 @@ -https://sources.debian.org/data/main/n/nullmailer/1:2.2-3/debian/patches/0001-Remove-race-conditions-from-tests.patch - -From: Felix Lechner <felix.lechner@lease-up.com> -Date: Sat, 2 Sep 2017 09:57:43 -0300 -Subject: Remove race conditions from tests - -Testing the qmqp protocol fails because the testing server cannot -acquire the lock. This is solved by waiting for the previous -server to exit gracefully and clear the lock. Similarly, wait -before removing temporary directories. - -Forwarded: no -Last-Update: 2017-10-07 ---- - test/tests/protocols | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/test/tests/protocols b/test/tests/protocols -index 0309d12..52209d7 100644 ---- a/test/tests/protocols -+++ b/test/tests/protocols -@@ -54,6 +54,7 @@ do - echo "Testing protocol failure with $p." - error 11 protocol $p -p $port --host=localhost 3<$testmail - stop server -+ wait - done - - stop server diff --git a/mail-mta/nullmailer/files/remotes.sample-2.0 b/mail-mta/nullmailer/files/remotes.sample-2.0 deleted file mode 100644 index 59535d691034..000000000000 --- a/mail-mta/nullmailer/files/remotes.sample-2.0 +++ /dev/null @@ -1,30 +0,0 @@ -# Format is: HOST PROTOCOL [OPTIONS] -# HOST = IP or DNS -# PROTOCOL = smtp | qmtp -# OPTIONS = [port=NUMBER] [user] [pass] [starttls | ssl [insecure] ] -# -# Examples: -# A standard SMTP server: -# somesendmailserver.domain.com smtp -# -# A qmail server with QMQP setup: -# someqmailserver.domain.com qmqp -# -# A nonstandard SMTP server setup: -# someotherserver.domain.com smtp port=2525 -# -# SMTP server supporting AUTH PLAIN -# mailserver smtp user=<user> pass=<pass> -# -# SMTP server supporting AUTH LOGIN -# mailserver smtp user=<user> pass=<pass> auth-login -# -# SMTP server with smtps (legacy - use starttls instead) -# mailserver smtp user=<user> pass=<pass> port=465 ssl -# -# SMTP server on submission port with starttls -# mailserver smtp user=<user> pass=<pass> port=587 starttls -# -# SMTP server on submission port with starttls and self-signed certificate -# mailserver smtp user=<user> pass=<pass> port=587 starttls insecure - diff --git a/mail-mta/nullmailer/metadata.xml b/mail-mta/nullmailer/metadata.xml deleted file mode 100644 index a3778abff424..000000000000 --- a/mail-mta/nullmailer/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://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="github">bruceg/nullmailer</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild b/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild deleted file mode 100644 index a176407718a9..000000000000 --- a/mail-mta/nullmailer/nullmailer-2.2-r2.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic systemd toolchain-funcs - -DESCRIPTION="Simple relay-only local mail transport agent" -HOMEPAGE="http://untroubled.org/nullmailer/ https://github.com/bruceg/nullmailer" -SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ~ppc64 ~riscv x86" -IUSE="ssl test" -RESTRICT="!test? ( test )" - -BDEPEND=" - acct-group/nullmail - acct-user/nullmail -" - -DEPEND=" - ssl? ( net-libs/gnutls:0= ) - test? ( sys-apps/ucspi-tcp[ipv6] sys-process/daemontools ) -" -RDEPEND=" - ${BDEPEND} - virtual/logger - sys-apps/shadow - ssl? ( net-libs/gnutls:0= ) - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/mini-qmail - !mail-mta/msmtp[mta(+)] - !mail-mta/netqmail - !mail-mta/opensmtpd[mta(+)] - !mail-mta/postfix - !mail-mta/qmail-ldap - !mail-mta/sendmail - !mail-mta/ssmtp[mta(+)] -" - -PATCHES=( - "${FILESDIR}/${P}-fix-test-racecondition.patch" - "${FILESDIR}/${P}-disable-dns-using-test.patch" - "${FILESDIR}/${P}-disable-smtp-auth-tests.patch" - "${FILESDIR}/${P}-c++11.patch" -) - -src_prepare() { - default - sed -i.orig \ - -e '/\$(localstatedir)\/trigger/d' \ - "${S}"/Makefile.am || die - sed \ - -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \ - -i configure.ac || die - sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die - sed \ - -e "s#/usr/local#/usr#" \ - -e 's:/usr/etc/:/etc/:g' \ - -i doc/nullmailer-send.8 || die - eautoreconf -} - -src_configure() { - # -Werror=odr - # https://bugs.gentoo.org/859529 - # https://github.com/bruceg/nullmailer/issues/94 - filter-lto - - # https://github.com/bruceg/nullmailer/pull/31/commits - append-lfs-flags #471102 - econf \ - --localstatedir="${EPREFIX}"/var \ - $(use_enable ssl tls) -} - -src_compile() { - tc-export AR RANLIB - default -} - -src_install() { - default - - # A small bit of sample config - insinto /etc/nullmailer - newins "${FILESDIR}"/remotes.sample-2.0 remotes - - # This contains passwords, so should be secure - fperms 0640 /etc/nullmailer/remotes - fowners root:nullmail /etc/nullmailer/remotes - - # daemontools stuff - dodir /var/spool/nullmailer/service{,/log} - - insinto /var/spool/nullmailer/service - newins scripts/nullmailer.run run - fperms 700 /var/spool/nullmailer/service/run - - insinto /var/spool/nullmailer/service/log - newins scripts/nullmailer-log.run run - fperms 700 /var/spool/nullmailer/service/log/run - - # usability - dosym ../sbin/sendmail usr/$(get_libdir)/sendmail - - # permissions stuff - keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue,failed} - fperms 770 /var/log/nullmailer - fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq - fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq - - newinitd "${FILESDIR}"/init.d-nullmailer-r6 nullmailer - systemd_dounit scripts/${PN}.service -} - -pkg_postinst() { - if [[ ! -e ${EROOT}/var/spool/nullmailer/trigger ]]; then - mkfifo --mode=0660 "${EROOT}/var/spool/nullmailer/trigger" || die - fi - chown nullmail:nullmail \ - "${EROOT}"/var/log/nullmailer \ - "${EROOT}"/var/spool/nullmailer/{tmp,queue,failed,trigger} || die - chmod 770 \ - "${EROOT}"/var/log/nullmailer \ - "${EROOT}"/var/spool/nullmailer/{tmp,queue,failed} || die - chmod 660 "${EROOT}"/var/spool/nullmailer/trigger || die - - # This contains passwords, so should be secure - chmod 0640 "${EROOT}"/etc/nullmailer/remotes || die - chown root:nullmail "${EROOT}"/etc/nullmailer/remotes || die - - if [[ -z ${REPLACING_VERSIONS} ]]; then - elog "To create an initial setup, please do:" - elog "emerge --config =${CATEGORY}/${PF}" - fi -} - -pkg_postrm() { - if [[ -e ${EROOT}/var/spool/nullmailer/trigger ]]; then - rm "${EROOT}/var/spool/nullmailer/trigger" || die - fi -} - -pkg_config() { - if [[ ! -s ${EROOT}/etc/nullmailer/me ]]; then - einfo "Setting /etc/nullmailer/me" - hostname --fqdn > "${EROOT}/etc/nullmailer/me" - if [[ ! -s ${EROOT}/etc/nullmailer/me ]]; then - eerror "Got no output from 'hostname --fqdn'" - fi - fi - if [[ ! -s ${EROOT}/etc/nullmailer/defaultdomain ]]; then - einfo "Setting /etc/nullmailer/defaultdomain" - hostname --domain > "${EROOT}/etc/nullmailer/defaultdomain" - if [[ ! -s ${EROOT}/etc/nullmailer/me ]]; then - eerror "Got no output from 'hostname --domain'" - fi - fi - if ! grep -q '^[ \t]*[^# \t]' "${EROOT}/etc/nullmailer/remotes"; then - ewarn "Remember to tweak ${EROOT}/etc/nullmailer/remotes yourself!" - fi -} diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest deleted file mode 100644 index d5c4bf8526d2..000000000000 --- a/mail-mta/opensmtpd/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST opensmtpd-7.8.0p0.tar.gz 744995 BLAKE2B 39b8122ef064142130603dd1712ee5cf9bbf6173d821c48dee81a9e8287085305b77ae8c0bd46a10f1226ed556c2a5e528849ee9461ef901dfb614f2e5d0f88b SHA512 ef4233909497c604c5c3de18c5ff50ee1e04f417d6ef0e6def3ebef214acee3a63306b27f5c7eab00992e24f3a7f2b2f2748fee2e535b3b291e194f1b8bd8652 -DIST opensmtpd-7.8.0p1.tar.gz 745487 BLAKE2B c263b5203e0a9e299900ba4d6d8c7ad036afb1e05d6b0e4c060a1bbfdfb398349d4bd3af3b0b865506e6d0a35edd149ef0f33a69847e26909e50a3d7a6b3ca64 SHA512 5364036cc0503436ed0836ccd8b5a756e1aec3625b142f15fc3a029dba47e05e6c9fe94e40d6d475a1bfb1b0ca1ee39ba21a4c9d8a98eb5d97b335f5e1389a3a diff --git a/mail-mta/opensmtpd/files/smtpd.initd b/mail-mta/opensmtpd/files/smtpd.initd deleted file mode 100644 index cf205a8ea737..000000000000 --- a/mail-mta/opensmtpd/files/smtpd.initd +++ /dev/null @@ -1,11 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -command="smtpd" -pidfile="/run/smtpd.pid" -description="SMTP daemon from OpenBSD" - -depend() { - need net -} diff --git a/mail-mta/opensmtpd/files/smtpd.pam b/mail-mta/opensmtpd/files/smtpd.pam deleted file mode 100644 index a85aeae1e8b3..000000000000 --- a/mail-mta/opensmtpd/files/smtpd.pam +++ /dev/null @@ -1,4 +0,0 @@ -auth required pam_nologin.so -auth include system-auth -account include system-auth -session include system-auth diff --git a/mail-mta/opensmtpd/files/smtpd.service b/mail-mta/opensmtpd/files/smtpd.service deleted file mode 100644 index fd2a65010604..000000000000 --- a/mail-mta/opensmtpd/files/smtpd.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=OpenSMTPD -After=network.target - -[Service] -Type=forking -ExecStart=/usr/sbin/smtpd - -[Install] -WantedBy=multi-user.target diff --git a/mail-mta/opensmtpd/files/smtpd.socket b/mail-mta/opensmtpd/files/smtpd.socket deleted file mode 100644 index fb42f8557323..000000000000 --- a/mail-mta/opensmtpd/files/smtpd.socket +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=OpenSMTPD Socket - -[Socket] -ListenStream=/var/run/smtpd.sock - -[Install] -WantedBy=sockets.target diff --git a/mail-mta/opensmtpd/metadata.xml b/mail-mta/opensmtpd/metadata.xml deleted file mode 100644 index 682c59c42459..000000000000 --- a/mail-mta/opensmtpd/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="person"> - <email>zx2c4@gentoo.org</email> - <name>Jason A. Donenfeld</name> - </maintainer> - <longdescription lang="en"> -OpenSMTPD is an implementation of the server-side SMTP protocol as defined by RFC 5321, with some additional standard extensions. It allows ordinary machines to exchange e-mails with other systems speaking the SMTP protocol. -</longdescription> - <upstream> - <remote-id type="cpe">cpe:/a:opensmtpd:opensmtpd</remote-id> - </upstream> - <use> - <flag name="mta">Enable this to install as system-wide MTA</flag> - </use> - <origin>ports</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/mail-mta/opensmtpd/opensmtpd-7.8.0_p0.ebuild b/mail-mta/opensmtpd/opensmtpd-7.8.0_p0.ebuild deleted file mode 100644 index 8ea7bff1b7f3..000000000000 --- a/mail-mta/opensmtpd/opensmtpd-7.8.0_p0.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 2023-2025 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit pam systemd - -DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" -HOMEPAGE="https://www.opensmtpd.org" -SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" - -LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" -IUSE=" pam +mta berkdb" - -DEPEND=" - acct-user/smtpd - acct-user/smtpq - >=dev-libs/openssl-1.1:0= - - elibc_musl? ( sys-libs/fts-standalone ) - sys-libs/zlib - pam? ( sys-libs/pam ) - berkdb? ( sys-libs/db:= ) - dev-libs/libevent - app-misc/ca-certificates - net-mail/mailbase - net-libs/libasr - !mail-mta/courier - !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] -" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${P/_} - -src_configure() { - econf \ - --sysconfdir=/etc/smtpd \ - --with-path-mbox=/var/spool/mail \ - --with-path-empty=/var/empty \ - --with-path-socket=/run \ - --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ - --with-user-smtpd=smtpd \ - --with-user-queue=smtpq \ - --with-group-queue=smtpq \ - $(use_with pam auth-pam) \ - $(use_with berkdb table-db) -} - -src_install() { - default - newinitd "${FILESDIR}"/smtpd.initd smtpd - systemd_dounit "${FILESDIR}"/smtpd.{service,socket} - use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd - dosym smtpctl /usr/sbin/makemap - dosym smtpctl /usr/sbin/newaliases - if use mta ; then - dodir /usr/sbin - dosym smtpctl /usr/sbin/sendmail - dosym ../sbin/smtpctl /usr/bin/sendmail - mkdir -p "${ED}"/usr/$(get_libdir) || die - ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die - fi -} diff --git a/mail-mta/opensmtpd/opensmtpd-7.8.0_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-7.8.0_p1.ebuild deleted file mode 100644 index 01811764daaa..000000000000 --- a/mail-mta/opensmtpd/opensmtpd-7.8.0_p1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 2023-2026 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit pam systemd - -DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" -HOMEPAGE="https://www.opensmtpd.org" -SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" - -LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" -IUSE=" pam +mta berkdb" - -DEPEND=" - acct-user/smtpd - acct-user/smtpq - >=dev-libs/openssl-1.1:0= - - elibc_musl? ( sys-libs/fts-standalone ) - sys-libs/zlib - pam? ( sys-libs/pam ) - berkdb? ( sys-libs/db:= ) - dev-libs/libevent - app-misc/ca-certificates - net-mail/mailbase - net-libs/libasr - !mail-mta/courier - !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] -" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${P/_} - -src_configure() { - econf \ - --sysconfdir=/etc/smtpd \ - --with-path-mbox=/var/spool/mail \ - --with-path-empty=/var/empty \ - --with-path-socket=/run \ - --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ - --with-user-smtpd=smtpd \ - --with-user-queue=smtpq \ - --with-group-queue=smtpq \ - $(use_with pam auth-pam) \ - $(use_with berkdb table-db) -} - -src_install() { - default - newinitd "${FILESDIR}"/smtpd.initd smtpd - systemd_dounit "${FILESDIR}"/smtpd.{service,socket} - use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd - dosym smtpctl /usr/sbin/makemap - dosym smtpctl /usr/sbin/newaliases - if use mta ; then - dodir /usr/sbin - dosym smtpctl /usr/sbin/sendmail - dosym ../sbin/smtpctl /usr/bin/sendmail - mkdir -p "${ED}"/usr/$(get_libdir) || die - ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die - fi -} diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest deleted file mode 100644 index d9a78df48826..000000000000 --- a/mail-mta/postfix/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST postfix-3.10.8.tar.gz 5040857 BLAKE2B db3bad6842f2067e62e681bc3a1ed6766f95a587220167889778c05e7fb37180ffb2b368a00267543913dca30306afc8dac9dc3242796e902a74c0a87f6997fb SHA512 a34e9f84ec96c47765a417801a303bea32ca42bb16c6ae665c771f1a37c8369f6d140999f1015c8c28aa18dad86e918e0a072ea67dea644d271b1ed3beaf61ea -DIST postfix-3.11.0.tar.gz 5279929 BLAKE2B 1b9b68ab201dfbe9e0dc06a1cdb2712c5ab28d0ab73e98b1cfaef07a3c9b02fc4552577c1fe739aafd2e53bda4dccb81973b954b0cb89acd3c7ce5d923b7d7b4 SHA512 aa377e3cb889aec166c73e90b3c7d3fbc1db48a558b13948d76b2a7aaccaee202dad7252e973d503800d97a4e6da9091ca792d037528f90521d04729594b23cc -DIST postfix-3.11.1.tar.gz 5280696 BLAKE2B 38f5579b9252c6b91f1ea5af170fef3f1348dccdb41aaf0ab1c33eaaca2789d0b757bb03ef4b0e5ade1f69d7b195cbac4a714a0e5f0d2c8768d62db8adce23fc SHA512 065aee35d462a7121ef870f1af5b3d7efedd08e18f18c5d04d7c731b3b051ab8f70499cbdcea6cb559fbfb2115ff39509fa145abf6e99dade232ac4943d178d1 -DIST postfix-3.5.25.tar.gz 4660537 BLAKE2B b4738785f142a67c3a12fadd0d90067dd5c8bdc5e13fbe9295cd23e7519e2eb28769f0ad79318a8255f9adfa6524edbd340b806bc752ed0b9c013500c2ed0e6c SHA512 25d654fb49429d9c361579e20ca1762ec66e7b71a53b4dbf6057a61f4afee9052ce2f43a55e0349fb4e716b28406fbde69f592855117d28153aecf74434ded0b diff --git a/mail-mta/postfix/files/makedefs.patch b/mail-mta/postfix/files/makedefs.patch deleted file mode 100644 index dcb9811f3e63..000000000000 --- a/mail-mta/postfix/files/makedefs.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN postfix-3.7.3.orig/makedefs postfix-3.7.3/makedefs ---- postfix-3.7.3.orig/makedefs 2022-10-08 22:46:54.898431414 +0200 -+++ postfix-3.7.3/makedefs 2022-10-08 22:47:28.181433811 +0200 -@@ -627,7 +627,7 @@ - : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"} - : ${PLUGIN_LD="${CC-gcc} -shared"} - ;; -- Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR -+ Linux.[3456].*) SYSTYPE=LINUX$RELEASE_MAJOR - case "$CCARGS" in - *-DNO_DB*) ;; - *-DHAS_DB*) ;; diff --git a/mail-mta/postfix/files/postfix-glibc-2.34.patch b/mail-mta/postfix/files/postfix-glibc-2.34.patch deleted file mode 100644 index 0da3ddf5ecdb..000000000000 --- a/mail-mta/postfix/files/postfix-glibc-2.34.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/src/util/sys_defs.h 2020-05-21 16:34:23.000000000 +0300 -+++ b/src/util/sys_defs.h 2021-08-07 19:14:20.000000000 +0300 -@@ -827,6 +827,9 @@ - #define HAVE_POSIX_GETPW_R - #endif - #endif -+#if HAVE_GLIBC_API_VERSION_SUPPORT(2, 34) -+#define HAS_CLOSEFROM -+#endif - - #endif - diff --git a/mail-mta/postfix/files/postfix-libressl-certkey.patch b/mail-mta/postfix/files/postfix-libressl-certkey.patch deleted file mode 100644 index b6ab8aeb7901..000000000000 --- a/mail-mta/postfix/files/postfix-libressl-certkey.patch +++ /dev/null @@ -1,13 +0,0 @@ -see https://bugs.gentoo.org/678874 - ---- a/src/tls/tls_certkey.c.orig 2019-03-07 23:57:10 UTC -+++ b/src/tls/tls_certkey.c -@@ -144,7 +144,7 @@ static void init_pem_load_state(pem_load - - /* use_chain - load cert, key and chain into ctx or ssl */ - --#if OPENSSL_VERSION_NUMBER >= 0x1010100fUL -+#if OPENSSL_VERSION_NUMBER >= 0x1010100fUL && !defined(LIBRESSL_VERSION_NUMBER) - static int use_chain(pem_load_state_t *st) - { - int ret; diff --git a/mail-mta/postfix/files/postfix-libressl-server.patch b/mail-mta/postfix/files/postfix-libressl-server.patch deleted file mode 100644 index 8573bb80bb59..000000000000 --- a/mail-mta/postfix/files/postfix-libressl-server.patch +++ /dev/null @@ -1,14 +0,0 @@ -see https://bugs.gentoo.org/678874 - ---- a/src/tls/tls_server.c.orig 2018-12-26 19:21:49 UTC -+++ b/src/tls/tls_server.c -@@ -518,7 +518,9 @@ TLS_APPL_STATE *tls_server_init(const TL - * ticket decryption callback already (since 2.11) asks OpenSSL to - * avoid issuing new tickets when the presented ticket is re-usable. - */ -+#ifndef LIBRESSL_VERSION_NUMBER - SSL_CTX_set_num_tickets(server_ctx, 1); -+#endif - } - #endif - if (!ticketable) diff --git a/mail-mta/postfix/files/postfix.rc6.2.7 b/mail-mta/postfix/files/postfix.rc6.2.7 deleted file mode 100644 index 5d429a597cce..000000000000 --- a/mail-mta/postfix/files/postfix.rc6.2.7 +++ /dev/null @@ -1,85 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -extra_started_commands="reload abort flush" - -description_reload="Re-read configuration files. Running processes terminate at their earliest convenience." -description_abort="Stop the Postfix mail system abruptly. Running processes are signaled to stop immediately." -description_flush="Force delivery: attempt to deliver every message in the deferred mail queue." - -# Please read http://www.postfix.org/MULTI_INSTANCE_README.html for multi instance support -CONF_DIR="/etc/postfix" -CONF_OPT="${SVCNAME##*.}" -if [ -n ${CONF_OPT} -a ${SVCNAME} != "postfix" ]; then - CONF_DIR="${CONF_DIR}.${CONF_OPT}" -fi -if [ "${CONF_DIR}" = "/etc/postfix" ]; then - CONF_PARAM="" - CONF_MESSAGE="" -else - CONF_PARAM="-c ${CONF_DIR}" - CONF_MESSAGE="(${CONF_DIR})" -fi - -depend() { - use logger dns ypbind amavisd antivirus postfix_greylist net saslauthd - if [ "${SVCNAME}" = "postfix" ]; then - provide mta - fi -} - -start() { - if [ ! -z "${CONF_PARAM}" ]; then - einfo "Please consider updating your config for postmulti support." - fi - ebegin "Starting postfix ${CONF_MESSAGE}" - if [ ! -d ${CONF_DIR} ]; then - eend 1 "${CONF_DIR} does not exist" - return 1 - fi - /usr/sbin/postfix ${CONF_PARAM} start >/dev/null 2>&1 - eend $? -} - -stop() { - ebegin "Stopping postfix ${CONF_MESSAGE}" - /usr/sbin/postfix ${CONF_PARAM} stop >/dev/null 2>&1 - eend -} - -status() { - local _retval - einfon "" - /usr/sbin/postfix ${CONF_PARAM} status - _retval=$? - if [ x${_retval} = 'x0' ]; then - mark_service_started "${SVCNAME}" - eend 0 - else - mark_service_stopped "${SVCNAME}" - eend 3 - fi -} - -reload() { - ebegin "Reloading postfix ${CONF_MESSAGE}" - /usr/sbin/postfix ${CONF_PARAM} reload >/dev/null 2>&1 - eend $? -} - -abort() { - ebegin "Aborting postfix ${CONF_MESSAGE}" - - if service_started "${SVCNAME}"; then - mark_service_stopped "${SVCNAME}" - fi - /usr/sbin/postfix ${CONF_PARAM} abort >/dev/null 2>&1 - eend $? -} - -flush() { - ebegin "Flushing postfix ${CONF_MESSAGE}" - /usr/sbin/postfix ${CONF_PARAM} flush >/dev/null 2>&1 - eend $? -} diff --git a/mail-mta/postfix/files/postfix.service b/mail-mta/postfix/files/postfix.service deleted file mode 100644 index db585b3e29db..000000000000 --- a/mail-mta/postfix/files/postfix.service +++ /dev/null @@ -1,26 +0,0 @@ -[Unit] -Description=Postfix Mail Transport Agent -After=network.target - -[Service] -Type=forking -ExecStartPre=-/usr/bin/newaliases -ExecStart=/usr/sbin/postfix start -ExecStop=/usr/sbin/postfix stop -ExecReload=/usr/sbin/postfix reload -# Hardening -PrivateTmp=yes -PrivateDevices=yes -ProtectSystem=full -ReadWritePaths=-/etc/mail/aliases.db -CapabilityBoundingSet=~ CAP_NET_ADMIN CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_MODULE -MemoryDenyWriteExecute=true -ProtectKernelModules=true -ProtectKernelTunables=true -ProtectControlGroups=true -RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX -RestrictNamespaces=true -RestrictRealtime=true - -[Install] -WantedBy=multi-user.target diff --git a/mail-mta/postfix/files/smtp.pass b/mail-mta/postfix/files/smtp.pass deleted file mode 100644 index f9b5120d64e8..000000000000 --- a/mail-mta/postfix/files/smtp.pass +++ /dev/null @@ -1,2 +0,0 @@ -# -# remotehost user:password diff --git a/mail-mta/postfix/files/smtp.sasl b/mail-mta/postfix/files/smtp.sasl deleted file mode 100644 index 82f29457bc01..000000000000 --- a/mail-mta/postfix/files/smtp.sasl +++ /dev/null @@ -1,2 +0,0 @@ -pwcheck_method:saslauthd -mech_list: PLAIN diff --git a/mail-mta/postfix/files/src_tls_tls_certkey_c.patch b/mail-mta/postfix/files/src_tls_tls_certkey_c.patch deleted file mode 100644 index 21ef1223ebc2..000000000000 --- a/mail-mta/postfix/files/src_tls_tls_certkey_c.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: src/tls/tls_certkey.c ---- src/tls/tls_certkey.c.orig -+++ src/tls/tls_certkey.c -@@ -149,7 +149,7 @@ static void init_pem_load_state(pem_load_state_t *st, - - /* use_chain - load cert, key and chain into ctx or ssl */ - --#if OPENSSL_VERSION_NUMBER >= 0x1010100fUL -+#if OPENSSL_VERSION_NUMBER >= 0x1010100fUL && !defined(LIBRESSL_VERSION_NUMBER) - static int use_chain(pem_load_state_t *st) - { - int ret; diff --git a/mail-mta/postfix/files/src_tls_tls_misc_c.patch b/mail-mta/postfix/files/src_tls_tls_misc_c.patch deleted file mode 100644 index b1028c5d739c..000000000000 --- a/mail-mta/postfix/files/src_tls_tls_misc_c.patch +++ /dev/null @@ -1,45 +0,0 @@ -Index: src/tls/tls_misc.c ---- src/tls/tls_misc.c.orig -+++ src/tls/tls_misc.c -@@ -657,7 +657,7 @@ void tls_param_init(void) - - int tls_library_init(void) - { -- OPENSSL_INIT_SETTINGS *init_settings; -+ // OPENSSL_INIT_SETTINGS *init_settings; - char *conf_name = *var_tls_cnf_name ? var_tls_cnf_name : 0; - char *conf_file = 0; - unsigned long init_opts = 0; -@@ -681,6 +681,7 @@ int tls_library_init(void) - msg_info("tls_library_init: using backwards-compatible defaults"); - return (init_res = TLS_LIB_INIT_OK); - } -+#if 0 - if ((init_settings = OPENSSL_INIT_new()) == 0) { - msg_warn("error allocating OpenSSL init settings, " - "disabling TLS support"); -@@ -763,6 +764,8 @@ int tls_library_init(void) - TLS_LIB_INIT_RETURN(TLS_LIB_INIT_ERR); - } - TLS_LIB_INIT_RETURN(TLS_LIB_INIT_OK); -+#endif -+ return init_res = TLS_LIB_INIT_OK; - } - - /* tls_pre_jail_init - Load TLS related pre-jail tables */ -@@ -1644,6 +1647,7 @@ int tls_validate_digest(const char *dgst) - * Improves interoperability with clients and servers that prematurely - * deploy SHA-2 certificates. Also facilitates DANE and TA support. - */ -+#ifndef LIBRESSL_VERSION_NUMBER - #if defined(LN_sha256) && defined(NID_sha256) && !defined(OPENSSL_NO_SHA256) - if (!tls_digest_byname(LN_sha224, NULL)) - EVP_add_digest(EVP_sha224()); -@@ -1655,6 +1659,7 @@ int tls_validate_digest(const char *dgst) - EVP_add_digest(EVP_sha384()); - if (!tls_digest_byname(LN_sha512, NULL)) - EVP_add_digest(EVP_sha512()); -+#endif - #endif - - /* diff --git a/mail-mta/postfix/files/src_tls_tls_server_c.patch b/mail-mta/postfix/files/src_tls_tls_server_c.patch deleted file mode 100644 index 7db3472cf46e..000000000000 --- a/mail-mta/postfix/files/src_tls_tls_server_c.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: src/tls/tls_server.c ---- src/tls/tls_server.c.orig -+++ src/tls/tls_server.c -@@ -541,7 +541,9 @@ TLS_APPL_STATE *tls_server_init(const TLS_SERVER_INIT_ - * ticket decryption callback already (since 2.11) asks OpenSSL to - * avoid issuing new tickets when the presented ticket is re-usable. - */ -+#ifndef LIBRESSL_VERSION_NUMBER - SSL_CTX_set_num_tickets(server_ctx, 1); -+#endif - } - #endif - if (!ticketable) diff --git a/mail-mta/postfix/files/sys_defs_h.patch b/mail-mta/postfix/files/sys_defs_h.patch deleted file mode 100644 index 411277bdfc9b..000000000000 --- a/mail-mta/postfix/files/sys_defs_h.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN postfix-3.7.3.orig/src/util/sys_defs.h postfix-3.7.3/src/util/sys_defs.h ---- postfix-3.7.3.orig/src/util/sys_defs.h 2022-10-08 23:04:26.876507181 +0200 -+++ postfix-3.7.3/src/util/sys_defs.h 2022-10-08 23:05:13.566510543 +0200 -@@ -751,7 +751,7 @@ - /* - * LINUX. - */ --#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) -+#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) || defined(LINUX6) - #define SUPPORTED - #define UINT32_TYPE unsigned int - #define UINT16_TYPE unsigned short diff --git a/mail-mta/postfix/metadata.xml b/mail-mta/postfix/metadata.xml deleted file mode 100644 index 5d906995c35e..000000000000 --- a/mail-mta/postfix/metadata.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="person"> - <email>eras@gentoo.org</email> - <name>
			Eray Aslan
		</name> - </maintainer> - <maintainer type="person"> - <email>williamh@gentoo.org</email> - <name>
			William Hubbs
		</name> - </maintainer> - <upstream> - <remote-id type="cpe">cpe:/a:postfix:postfix</remote-id> - </upstream> - <use> - <flag name="dovecot-sasl">Enable <pkg>net-mail/dovecot</pkg> protocol version 1 (server only) SASL implementation</flag> - <flag name="eai">Add support for SMTPUTF8</flag> - <flag name="ldap-bind">Add support for binding to LDAP backend using <pkg>dev-libs/cyrus-sasl</pkg></flag> - <flag name="memcached">Add support for using <pkg>net-misc/memcached</pkg> for lookup tables</flag> - <flag name="lmdb">Add support for using <pkg>dev-db/lmdb</pkg> for lookup tables</flag> - </use> - <origin>ports</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/mail-mta/postfix/postfix-3.10.8.ebuild b/mail-mta/postfix/postfix-3.10.8.ebuild deleted file mode 100644 index 7dc56163dc23..000000000000 --- a/mail-mta/postfix/postfix-3.10.8.ebuild +++ /dev/null @@ -1,320 +0,0 @@ -# Copyright 2023-2026 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 -inherit flag-o-matic pam systemd toolchain-funcs - -MY_PV="${PV/_pre/-}" -MY_SRC="${PN}-${MY_PV}" -MY_URI="http://ftp.porcupine.org/mirrors/postfix-release/official" -RC_VER="2.7" - -DESCRIPTION="A fast and secure drop-in replacement for sendmail" -HOMEPAGE="https://www.postfix.org/" -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" -S="${WORKDIR}/${MY_SRC}" - -LICENSE="|| ( IBM EPL-2.0 )" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" - -IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mongodb mariadb nis pam postgres sasl selinux sqlite ssl tlsrpt" - -DEPEND=" - acct-group/postfix - acct-group/postdrop - acct-user/postfix - dev-libs/libpcre2:0 - 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:= ) - mongodb? ( >=dev-libs/mongo-c-driver-1.23.0 >=dev-libs/libbson-1.23.0 ) - mariadb? ( dev-db/mariadb-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= ) - tlsrpt? ( net-libs/libtlsrpt ) - " - -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 )" - -# require at least one db implementation for newalias (and postmap) -# command to function properly -REQUIRED_USE=" - || ( berkdb cdb lmdb ) - ldap-bind? ( ldap sasl ) - tlsrpt? ( ssl ) - " - -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() { - # bug #915670 - unset LD_LIBRARY_PATH - - # https://marc.info/?l=postfix-users&m=173542420611213&w=2 (bug #945733) - append-cflags -std=gnu17 - - for name in CDB LDAP LMDB MONGODB MYSQL PCRE PGSQL SDBM SQLITE TLSRPT - do - local AUXLIBS_${name}="" - done - - # Make sure LDFLAGS get passed down to the executables. - local mycc="" mylibs="${LDFLAGS} -ldl" - - # libpcre is EOL. prefer libpcre2 - mycc=" -DHAS_PCRE=2" - AUXLIBS_PCRE="$(pcre2-config --libs8)" - - use pam && mylibs="${mylibs} -lpam" - - if use ssl; then - mycc="${mycc} -DUSE_TLS" - mylibs="${mylibs} -lssl -lcrypto" - fi - - if ! use eai; then - mycc="${mycc} -DNO_EAI" - fi - - if use ldap; then - mycc="${mycc} -DHAS_LDAP" - AUXLIBS_LDAP="-lldap -llber" - fi - - if use lmdb; then - mycc="${mycc} -DHAS_LMDB" - AUXLIBS_LMDB="-llmdb -lpthread" - fi - - if use mongodb; then - mycc="${mycc} -DHAS_MONGODB $(pkg-config --cflags libmongoc-1.0)" - AUXLIBS_MONGODB="-lmongoc-1.0 -lbson-1.0" - fi - - if use mariadb; then - mycc="${mycc} -DHAS_MYSQL $(mariadb-config --include)" - AUXLIBS_MYSQL="$(mariadb-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 tlsrpt; then - mycc="${mycc} -DUSE_TLSRPT" - AUXLIBS_TLSRPT="-ltlsrpt" - 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 lmdb; then - mycc="${mycc} -DDEF_DB_TYPE=\\\"lmdb\\\"" - elif use cdb; then - 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 - 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_TLSRPT}" \ - AUXLIBS_CDB="${AUXLIBS_CDB}" \ - AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ - AUXLIBS_LMDB="${AUXLIBS_LMDB}" \ - AUXLIBS_MONGODB="${AUXLIBS_MONGODB}" \ - AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ - AUXLIBS_PCRE="${AUXLIBS_PCRE}" \ - AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ - AUXLIBS_SDBM="${AUXLIBS_SDBM}" \ - 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/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 maridb/postgres unnecessarily - bug #359913 - use mariadb || 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 - - systemd_dounit "${FILESDIR}/${PN}.service" -} - -pkg_postinst() { - # warn if no aliases database - # do not assume berkdb - if [[ ! -e /etc/mail/aliases.db \ - && ! -e /etc/mail/aliases.cdb \ - && ! -e /etc/mail/aliases.lmdb ]] ; 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 - # run newaliases anyway. otherwise, we might break when switching - # default database implementation - from berkdb to cdb for example - "${EROOT}"/usr/bin/newaliases - - # check and fix file permissions - "${EROOT}"/usr/sbin/postfix set-permissions - - # hint for configuring tls - if use ssl ; then - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then - elog "To configure client side TLS settings, please run:" - 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, please run:" - elog "${EROOT}"/usr/sbin/postfix tls enable-server - fi - fi -} diff --git a/mail-mta/postfix/postfix-3.11.0.ebuild b/mail-mta/postfix/postfix-3.11.0.ebuild deleted file mode 100644 index 7dc56163dc23..000000000000 --- a/mail-mta/postfix/postfix-3.11.0.ebuild +++ /dev/null @@ -1,320 +0,0 @@ -# Copyright 2023-2026 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 -inherit flag-o-matic pam systemd toolchain-funcs - -MY_PV="${PV/_pre/-}" -MY_SRC="${PN}-${MY_PV}" -MY_URI="http://ftp.porcupine.org/mirrors/postfix-release/official" -RC_VER="2.7" - -DESCRIPTION="A fast and secure drop-in replacement for sendmail" -HOMEPAGE="https://www.postfix.org/" -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" -S="${WORKDIR}/${MY_SRC}" - -LICENSE="|| ( IBM EPL-2.0 )" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" - -IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mongodb mariadb nis pam postgres sasl selinux sqlite ssl tlsrpt" - -DEPEND=" - acct-group/postfix - acct-group/postdrop - acct-user/postfix - dev-libs/libpcre2:0 - 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:= ) - mongodb? ( >=dev-libs/mongo-c-driver-1.23.0 >=dev-libs/libbson-1.23.0 ) - mariadb? ( dev-db/mariadb-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= ) - tlsrpt? ( net-libs/libtlsrpt ) - " - -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 )" - -# require at least one db implementation for newalias (and postmap) -# command to function properly -REQUIRED_USE=" - || ( berkdb cdb lmdb ) - ldap-bind? ( ldap sasl ) - tlsrpt? ( ssl ) - " - -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() { - # bug #915670 - unset LD_LIBRARY_PATH - - # https://marc.info/?l=postfix-users&m=173542420611213&w=2 (bug #945733) - append-cflags -std=gnu17 - - for name in CDB LDAP LMDB MONGODB MYSQL PCRE PGSQL SDBM SQLITE TLSRPT - do - local AUXLIBS_${name}="" - done - - # Make sure LDFLAGS get passed down to the executables. - local mycc="" mylibs="${LDFLAGS} -ldl" - - # libpcre is EOL. prefer libpcre2 - mycc=" -DHAS_PCRE=2" - AUXLIBS_PCRE="$(pcre2-config --libs8)" - - use pam && mylibs="${mylibs} -lpam" - - if use ssl; then - mycc="${mycc} -DUSE_TLS" - mylibs="${mylibs} -lssl -lcrypto" - fi - - if ! use eai; then - mycc="${mycc} -DNO_EAI" - fi - - if use ldap; then - mycc="${mycc} -DHAS_LDAP" - AUXLIBS_LDAP="-lldap -llber" - fi - - if use lmdb; then - mycc="${mycc} -DHAS_LMDB" - AUXLIBS_LMDB="-llmdb -lpthread" - fi - - if use mongodb; then - mycc="${mycc} -DHAS_MONGODB $(pkg-config --cflags libmongoc-1.0)" - AUXLIBS_MONGODB="-lmongoc-1.0 -lbson-1.0" - fi - - if use mariadb; then - mycc="${mycc} -DHAS_MYSQL $(mariadb-config --include)" - AUXLIBS_MYSQL="$(mariadb-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 tlsrpt; then - mycc="${mycc} -DUSE_TLSRPT" - AUXLIBS_TLSRPT="-ltlsrpt" - 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 lmdb; then - mycc="${mycc} -DDEF_DB_TYPE=\\\"lmdb\\\"" - elif use cdb; then - 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 - 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_TLSRPT}" \ - AUXLIBS_CDB="${AUXLIBS_CDB}" \ - AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ - AUXLIBS_LMDB="${AUXLIBS_LMDB}" \ - AUXLIBS_MONGODB="${AUXLIBS_MONGODB}" \ - AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ - AUXLIBS_PCRE="${AUXLIBS_PCRE}" \ - AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ - AUXLIBS_SDBM="${AUXLIBS_SDBM}" \ - 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/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 maridb/postgres unnecessarily - bug #359913 - use mariadb || 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 - - systemd_dounit "${FILESDIR}/${PN}.service" -} - -pkg_postinst() { - # warn if no aliases database - # do not assume berkdb - if [[ ! -e /etc/mail/aliases.db \ - && ! -e /etc/mail/aliases.cdb \ - && ! -e /etc/mail/aliases.lmdb ]] ; 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 - # run newaliases anyway. otherwise, we might break when switching - # default database implementation - from berkdb to cdb for example - "${EROOT}"/usr/bin/newaliases - - # check and fix file permissions - "${EROOT}"/usr/sbin/postfix set-permissions - - # hint for configuring tls - if use ssl ; then - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then - elog "To configure client side TLS settings, please run:" - 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, please run:" - elog "${EROOT}"/usr/sbin/postfix tls enable-server - fi - fi -} diff --git a/mail-mta/postfix/postfix-3.11.1.ebuild b/mail-mta/postfix/postfix-3.11.1.ebuild deleted file mode 100644 index 7dc56163dc23..000000000000 --- a/mail-mta/postfix/postfix-3.11.1.ebuild +++ /dev/null @@ -1,320 +0,0 @@ -# Copyright 2023-2026 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 -inherit flag-o-matic pam systemd toolchain-funcs - -MY_PV="${PV/_pre/-}" -MY_SRC="${PN}-${MY_PV}" -MY_URI="http://ftp.porcupine.org/mirrors/postfix-release/official" -RC_VER="2.7" - -DESCRIPTION="A fast and secure drop-in replacement for sendmail" -HOMEPAGE="https://www.postfix.org/" -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" -S="${WORKDIR}/${MY_SRC}" - -LICENSE="|| ( IBM EPL-2.0 )" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" - -IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mongodb mariadb nis pam postgres sasl selinux sqlite ssl tlsrpt" - -DEPEND=" - acct-group/postfix - acct-group/postdrop - acct-user/postfix - dev-libs/libpcre2:0 - 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:= ) - mongodb? ( >=dev-libs/mongo-c-driver-1.23.0 >=dev-libs/libbson-1.23.0 ) - mariadb? ( dev-db/mariadb-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= ) - tlsrpt? ( net-libs/libtlsrpt ) - " - -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 )" - -# require at least one db implementation for newalias (and postmap) -# command to function properly -REQUIRED_USE=" - || ( berkdb cdb lmdb ) - ldap-bind? ( ldap sasl ) - tlsrpt? ( ssl ) - " - -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() { - # bug #915670 - unset LD_LIBRARY_PATH - - # https://marc.info/?l=postfix-users&m=173542420611213&w=2 (bug #945733) - append-cflags -std=gnu17 - - for name in CDB LDAP LMDB MONGODB MYSQL PCRE PGSQL SDBM SQLITE TLSRPT - do - local AUXLIBS_${name}="" - done - - # Make sure LDFLAGS get passed down to the executables. - local mycc="" mylibs="${LDFLAGS} -ldl" - - # libpcre is EOL. prefer libpcre2 - mycc=" -DHAS_PCRE=2" - AUXLIBS_PCRE="$(pcre2-config --libs8)" - - use pam && mylibs="${mylibs} -lpam" - - if use ssl; then - mycc="${mycc} -DUSE_TLS" - mylibs="${mylibs} -lssl -lcrypto" - fi - - if ! use eai; then - mycc="${mycc} -DNO_EAI" - fi - - if use ldap; then - mycc="${mycc} -DHAS_LDAP" - AUXLIBS_LDAP="-lldap -llber" - fi - - if use lmdb; then - mycc="${mycc} -DHAS_LMDB" - AUXLIBS_LMDB="-llmdb -lpthread" - fi - - if use mongodb; then - mycc="${mycc} -DHAS_MONGODB $(pkg-config --cflags libmongoc-1.0)" - AUXLIBS_MONGODB="-lmongoc-1.0 -lbson-1.0" - fi - - if use mariadb; then - mycc="${mycc} -DHAS_MYSQL $(mariadb-config --include)" - AUXLIBS_MYSQL="$(mariadb-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 tlsrpt; then - mycc="${mycc} -DUSE_TLSRPT" - AUXLIBS_TLSRPT="-ltlsrpt" - 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 lmdb; then - mycc="${mycc} -DDEF_DB_TYPE=\\\"lmdb\\\"" - elif use cdb; then - 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 - 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_TLSRPT}" \ - AUXLIBS_CDB="${AUXLIBS_CDB}" \ - AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ - AUXLIBS_LMDB="${AUXLIBS_LMDB}" \ - AUXLIBS_MONGODB="${AUXLIBS_MONGODB}" \ - AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ - AUXLIBS_PCRE="${AUXLIBS_PCRE}" \ - AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ - AUXLIBS_SDBM="${AUXLIBS_SDBM}" \ - 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/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 maridb/postgres unnecessarily - bug #359913 - use mariadb || 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 - - systemd_dounit "${FILESDIR}/${PN}.service" -} - -pkg_postinst() { - # warn if no aliases database - # do not assume berkdb - if [[ ! -e /etc/mail/aliases.db \ - && ! -e /etc/mail/aliases.cdb \ - && ! -e /etc/mail/aliases.lmdb ]] ; 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 - # run newaliases anyway. otherwise, we might break when switching - # default database implementation - from berkdb to cdb for example - "${EROOT}"/usr/bin/newaliases - - # check and fix file permissions - "${EROOT}"/usr/sbin/postfix set-permissions - - # hint for configuring tls - if use ssl ; then - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then - elog "To configure client side TLS settings, please run:" - 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, please run:" - elog "${EROOT}"/usr/sbin/postfix tls enable-server - fi - fi -} diff --git a/mail-mta/postfix/postfix-3.5.25.ebuild b/mail-mta/postfix/postfix-3.5.25.ebuild deleted file mode 100644 index 1b552a65cf8a..000000000000 --- a/mail-mta/postfix/postfix-3.5.25.ebuild +++ /dev/null @@ -1,317 +0,0 @@ -# Copyright 2021-2025 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit flag-o-matic 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 hardened ldap ldap-bind lmdb memcached mbox mariadb 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 ) - mariadb? ( dev-db/mariadb-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:0= - - ) -" - -RDEPEND="${DEPEND} - memcached? ( net-misc/memcached ) - net-mail/mailbase - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/mini-qmail - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/qmail-ldap - !mail-mta/sendmail - !mail-mta/opensmtpd - !mail-mta/ssmtp[mta] - !net-mail/fastforward - 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 mariadb; then - mycc="${mycc} -DHAS_MYSQL $(mariadb-config --include)" - AUXLIBS_MYSQL="$(mariadb-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 - - # Robin H. Johnson <robbat2@gentoo.org> 17/Nov/2006 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" - filter-lfs-flags - - # Workaround for bug #76512 - if use hardened; then - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os - fi - - # Remove annoying C++ comment style warnings - bug #378099 - append-flags -Wno-comment -std=gnu17 - - 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 - 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 - - # 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 mariadb/postgres unnecessarily - bug #359913 - use mariadb || 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 - - pamd_mimic_system smtp auth account - - 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_preinst() { - if has_version '<mail-mta/postfix-3.4'; then - elog - elog "Postfix-3.4 introduces a new master.cf service 'postlog'" - elog "with type 'unix-dgram' that is used by the new postlogd(8) daemon." - elog "Before backing out to an older Postfix version, edit the master.cf" - elog "file and remove the postlog entry." - elog - fi -} - -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/proton-mail-bridge/Manifest b/mail-mta/proton-mail-bridge/Manifest deleted file mode 100644 index 93d6ce00badf..000000000000 --- a/mail-mta/proton-mail-bridge/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST proton-mail-bridge-3.21.2-vendor.tar.xz 7587112 BLAKE2B d0a22339c821be7e04f55d537aba1bd0711ab7d82f5f43a5d1a18cf989b031785b0007c755e2606d599b9402895fa2a5719285efea305603da2d487e414c5cc2 SHA512 2abd1b6ec92b670c5d7dcb622f9a193dcc76b36d4971e779ffd1976607a59b66ed8e36e593f1ebd46f3e73882b1d4d9027b7a496b63c14f66c645bbe84b10820 -DIST proton-mail-bridge-3.21.2.tar.gz 5451784 BLAKE2B 9d3dd997d9432ff8a46fde41bc0047ecffb2b8ad420575ae93e6030865bb8869b1d691750a851e9cfa80dbc439b8693eec05d275dc302722aa875a27763a3a22 SHA512 5809aeaf00d25b97832e62932b1acc8f5d3fc6adc356b87203b3ea74e44869e815bf67fbc3f92c8b9f0cd22969ffb6e669093113b71b1da9fcf21474b9e0e1c8 diff --git a/mail-mta/proton-mail-bridge/files/proton-mail-bridge-3.15.1-gui_gentoo.patch b/mail-mta/proton-mail-bridge/files/proton-mail-bridge-3.15.1-gui_gentoo.patch deleted file mode 100644 index 8c2b4d1d8c4d..000000000000 --- a/mail-mta/proton-mail-bridge/files/proton-mail-bridge-3.15.1-gui_gentoo.patch +++ /dev/null @@ -1,77 +0,0 @@ -diff --git a/internal/frontend/bridge-gui/BridgeSetup.cmake b/internal/frontend/bridge-gui/BridgeSetup.cmake -index 7c6c634..6959892 100644 ---- a/internal/frontend/bridge-gui/BridgeSetup.cmake -+++ b/internal/frontend/bridge-gui/BridgeSetup.cmake -@@ -44,7 +44,7 @@ if (NOT DEFINED BRIDGE_APP_VERSION) - endif() - endif() - -- -+if(0) - #**************************************************************************************************************************************************** - # vcpkg, toolchain, and architecture - #**************************************************************************************************************************************************** -@@ -87,4 +87,5 @@ if (WIN32) - set(VCPKG_TARGET_TRIPLET x64-windows) - endif() - --set(CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "toolchain") -\ No newline at end of file -+set(CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "toolchain") -+endif() -diff --git a/internal/frontend/bridge-gui/bridge-gui/CMakeLists.txt b/internal/frontend/bridge-gui/bridge-gui/CMakeLists.txt -index 93a9f49..ffe3a52 100644 ---- a/internal/frontend/bridge-gui/bridge-gui/CMakeLists.txt -+++ b/internal/frontend/bridge-gui/bridge-gui/CMakeLists.txt -@@ -167,12 +167,9 @@ set_target_properties(bridge-gui PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE) - --install(TARGETS bridge-gui -- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" -- BUNDLE DESTINATION "${CMAKE_INSTALL_PREFIX}" -- LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}" -- ) -+install(TARGETS bridge-gui) - -+if(0) - qt_generate_deploy_app_script( - TARGET bridge-gui - FILENAME_VARIABLE deploy_script -@@ -187,3 +184,4 @@ else() - endif() - - include(Deploy${DEPLOY_OS}.cmake) -+endif() -diff --git a/internal/frontend/bridge-gui/bridge-gui/main.cpp b/internal/frontend/bridge-gui/bridge-gui/main.cpp -index 8c21436..c804410 100644 ---- a/internal/frontend/bridge-gui/bridge-gui/main.cpp -+++ b/internal/frontend/bridge-gui/bridge-gui/main.cpp -@@ -51,7 +51,7 @@ QString const exeSuffix; - - QString const bridgeLock = "bridge-v3.lock"; ///< The file name used for the bridge-gui lock file. - QString const bridgeGUILock = "bridge-v3-gui.lock"; ///< The file name used for the bridge-gui lock file. --QString const exeName = "bridge" + exeSuffix; ///< The bridge executable file name.* -+QString const exeName = "proton-mail-bridge" + exeSuffix; ///< The bridge executable file name.* - qint64 constexpr grpcServiceConfigWaitDelayMs = 180000; ///< The wait delay for the gRPC config file in milliseconds. - QString const waitFlag = "--wait"; ///< The wait command-line flag. - QString const orphanInstanceException = "An orphan instance of bridge is already running. Please terminate it and relaunch the application."; -diff --git a/internal/frontend/bridge-gui/bridgepp/CMakeLists.txt b/internal/frontend/bridge-gui/bridgepp/CMakeLists.txt -index f4a0a55..17cab0e 100644 ---- a/internal/frontend/bridge-gui/bridgepp/CMakeLists.txt -+++ b/internal/frontend/bridge-gui/bridgepp/CMakeLists.txt -@@ -164,6 +164,9 @@ target_link_libraries(bridgepp - - target_precompile_headers(bridgepp PRIVATE Pch.h) - -+install(TARGETS bridgepp) -+ -+if(0) - #***************************************************************************************************************************************************** - # GoogleTest - #***************************************************************************************************************************************************** -@@ -205,3 +208,4 @@ target_link_libraries(bridgepp-test - - include(GoogleTest) - gtest_discover_tests(bridgepp-test) -+endif() diff --git a/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r1 b/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r1 deleted file mode 100644 index 8dd8980214af..000000000000 --- a/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r1 +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Proton Mail IMAP/SMTP bridge -Documentation=https://proton.me/mail/bridge/ - -[Service] -ExecStart=/usr/bin/proton-mail-bridge --noninteractive -Restart=on-failure - -# Hardening -ProtectSystem=full -PrivateTmp=true -SystemCallArchitectures=native -MemoryDenyWriteExecute=true -NoNewPrivileges=true - -[Install] -WantedBy=default.target diff --git a/mail-mta/proton-mail-bridge/metadata.xml b/mail-mta/proton-mail-bridge/metadata.xml deleted file mode 100644 index fb51cad988cf..000000000000 --- a/mail-mta/proton-mail-bridge/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <longdescription> - Proton Mail Bridge has been open-source since April 2020. - It functions as a daemon that serves as an interface between Proton - Mail's encrypted email services and standard IMAP/SMTP email clients. - This allows users to integrate Proton Mail with applications like - Thunderbird, Outlook, and Apple Mail. - The Bridge can be compiled with or without its Qt-based graphical - user interface (GUI), offering flexibility for both desktop and - headless environments. - </longdescription> - <upstream> - <bugs-to>https://github.com/ProtonMail/proton-bridge/issues</bugs-to> - <changelog>https://github.com/ProtonMail/proton-bridge/blob/master/Changelog.md</changelog> - <doc>https://github.com/ProtonMail/proton-bridge/wiki</doc> - <remote-id type="github">ProtonMail/proton-bridge</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-mta/proton-mail-bridge/proton-mail-bridge-3.21.2.ebuild b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.21.2.ebuild deleted file mode 100644 index 45e226e2215b..000000000000 --- a/mail-mta/proton-mail-bridge/proton-mail-bridge-3.21.2.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake desktop go-env go-module systemd xdg-utils - -MY_PN="${PN/-mail/}" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Serves Proton Mail to IMAP/SMTP clients" -HOMEPAGE="https://proton.me/mail/bridge https://github.com/ProtonMail/proton-bridge/" -SRC_URI="https://github.com/ProtonMail/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~expeditioneer/distfiles/${CATEGORY}/${PN}/${P}-vendor.tar.xz" -S="${WORKDIR}"/${MY_P} - -LICENSE="GPL-3+ Apache-2.0 BSD BSD-2 ISC LGPL-3+ MIT MPL-2.0 Unlicense" -SLOT="0" -KEYWORDS="~amd64" -IUSE="gui" - -# Quite a few tests require Internet access -PROPERTIES="test_network" -RESTRICT="test" - -RDEPEND=" - app-crypt/libsecret - gui? ( - >=dev-libs/protobuf-21.12:= - dev-libs/re2:= - >=dev-libs/sentry-native-0.6.5-r1 - dev-qt/qtbase:6=[gui,icu,widgets] - dev-qt/qtdeclarative:6=[widgets] - dev-qt/qtsvg:6= - media-libs/mesa - net-libs/grpc:= - ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-3.15.1-gui_gentoo.patch -) - -# $S is there for bug 957684 -DOCS=( "${S}"/{README,Changelog}.md ) - -src_unpack() { - default - - if [[ -d "${WORKDIR}"/vendor ]]; then # if we ship the dependencies - mv "${WORKDIR}"/vendor "${S}"/vendor || die # move them into the tree - fi - - go-env_set_compile_environment -} - -src_prepare() { - xdg_environment_reset - default - if use gui; then - # prepare desktop file - local desktopFilePath="${S}"/dist/${MY_PN}.desktop - sed -i 's/protonmail/proton-mail/g' ${desktopFilePath} || die - sed -i 's/Exec=proton-mail-bridge/Exec=proton-mail-bridge-gui/g' ${desktopFilePath} || die - - # build GUI - local PATCHES=() - BUILD_DIR="${WORKDIR}"/gui_build \ - CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ - cmake_src_prepare - fi -} - -src_configure() { - if use gui; then - local mycmakeargs=( - -DBRIDGE_APP_FULL_NAME="Proton Mail Bridge" - -DBRIDGE_APP_VERSION="${PV}+git" - -DBRIDGE_REPO_ROOT="${S}" - -DBRIDGE_TAG="NOTAG" - -DBRIDGE_VENDOR="Gentoo Linux" - -DCMAKE_DISABLE_PRECOMPILE_HEADERS=OFF - ) - BUILD_DIR="${WORKDIR}"/gui_build \ - CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ - cmake_src_configure - fi -} - -src_compile() { - emake -Onone build-nogui - - if use gui; then - BUILD_DIR="${WORKDIR}"/gui_build \ - CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ - cmake_src_compile - fi -} - -src_test() { - emake -Onone test -} - -src_install() { - exeinto /usr/bin - newexe bridge ${PN} - - if use gui; then - BUILD_DIR="${WORKDIR}"/gui_build \ - CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ - cmake_src_install - mv "${ED}"/usr/bin/bridge-gui "${ED}"/usr/bin/${PN}-gui || die - newicon {"${S}"/dist/bridge,${PN}}.svg - newmenu {dist/${MY_PN},${PN}}.desktop - fi - - systemd_newuserunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service - - einstalldocs -} diff --git a/mail-mta/qpsmtpd/Manifest b/mail-mta/qpsmtpd/Manifest deleted file mode 100644 index 5b703283ad0e..000000000000 --- a/mail-mta/qpsmtpd/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST qpsmtpd-0.95.tar.gz 367400 BLAKE2B bd77d8f203f1adf5ad6671fcd958bd97c5321317b51ceb9b9320cd2bc2fb82687b0d367618ad74905b3c4d44f0e83291d6330abbf4f8d01cd1d29ba7588f2df5 SHA512 4265606ecde68eda92091e2c3c27645baa131db4197f3d135932dc2ad8d76c1fb6c25ce267ab421cab3a4a9902aa682e4be87a1228e41b226705a64e440ffe87 diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.confd b/mail-mta/qpsmtpd/files/qpsmtpd.confd deleted file mode 100644 index 9a82c7100e21..000000000000 --- a/mail-mta/qpsmtpd/files/qpsmtpd.confd +++ /dev/null @@ -1,25 +0,0 @@ -# Config file for /etc/init.d/qpsmtpd -# - -QPSMTPD_CONFIG="/etc/qpsmtpd" -QPSMTPD_NICELEVEL="0" - -# Select QPSMTPD server type -# - async -# Not all plugins work without problems with the async mode. -# - forkserver (default) -# - prefork -# Does not work 100%. Use at your own risk. -QPSMTPD_SERVER_TYPE="forkserver" - -# QPSMTPD options. This can be different depending on -# what QPSMTPD server you run. -# -# Typical forkserver -QPSMTPD_OPTIONS="-l 0.0.0.0 -p 25 -u smtpd" -# -# Typical prefork -# QPSMTPD_OPTIONS="--interface 0.0.0.0 --port 25 --user smtpd" -# -# Typical async -# QPSMTPD_OPTIONS="-l 0.0.0.0 -p 25 -u smtpd" diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.envd b/mail-mta/qpsmtpd/files/qpsmtpd.envd deleted file mode 100644 index 3665116f34ea..000000000000 --- a/mail-mta/qpsmtpd/files/qpsmtpd.envd +++ /dev/null @@ -1,2 +0,0 @@ -QPSMTPD_CONFIG="/etc/qpsmtpd" -CONFIG_PROTECT="/usr/share/qpsmtpd/plugins" diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.initd b/mail-mta/qpsmtpd/files/qpsmtpd.initd deleted file mode 100644 index 8f4b27f85ed4..000000000000 --- a/mail-mta/qpsmtpd/files/qpsmtpd.initd +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/openrc-run - -pidfile=/var/run/qpsmtpd/qpsmtpd.pid - -depend() { - use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd - provide mta -} - -checkconfig() { - if ! [ -d "${QPSMTPD_CONFIG:-/etc/qpsmtpd}" ]; then - eerror "Configuration directory ${QPSMTPD_CONFIG:-/etc/qpsmtpd} does not exist." - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - ebegin "Starting qpsmtpd [${QPSMTPD_SERVER_TYPE}] server" - HOME="/var/spool/qpsmtpd" - local QPSMTPD_SERVER_BIN="" - local myopts="" - export QPSMTPD_CONFIG=${QPSMTPD_CONFIG} - for foo in PERL_UNICODE LANG LC_TIME LC_ALL BASH_ENV ENV CDPATH IFS - do - unset ${foo} - done - case "${QPSMTPD_SERVER_TYPE}" in - prefork) - QPSMTPD_SERVER_BIN="/usr/bin/qpsmtpd-prefork" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:\-\-pid\-file[\t ]\{1,99\}[^ ]*::gI")" - # Option --pid-file is mentioned in the help of the prefork server - # but does not work when specified. - # QPSMTPD_OPTIONS="${QPSMTPD_OPTIONS} --pid-file ${pidfile}" - myopts="${myopts} --make-pidfile --pidfile ${pidfile}" - ;; - async) - QPSMTPD_SERVER_BIN="/usr/sbin/qpsmtpd-async" - myopts="${myopts} --background --make-pidfile --pidfile ${pidfile}" - ;; - forkserver|*) - QPSMTPD_SERVER_BIN="/usr/bin/qpsmtpd-forkserver" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:\-\-pid\-file[\t ]\{1,99\}[^ ]*::gI")" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:[\t ]\{0,99\}\-d[\t ]\{1,99\}|[\t ]\{1,99\}\-d[\t ]\{0,99\}::gI")" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:[\t ]\{0,99\}\-\detach[\t ]\{1,99\}|[\t ]\{1,99\}\-\-detach[\t ]\{0,99\}::gI")" - QPSMTPD_OPTIONS="${QPSMTPD_OPTIONS} --pid-file ${pidfile} --detach" - myopts="${myopts} --pidfile ${pidfile}" - ;; - esac - start-stop-daemon --start --nicelevel ${QPSMTPD_NICELEVEL:-0} \ - --quiet ${myopts} \ - --exec ${QPSMTPD_SERVER_BIN} \ - -- ${QPSMTPD_OPTIONS} - eend $? -} - -stop() { - ebegin "Stopping qpsmtpd [${QPSMTPD_SERVER_TYPE}] server" - start-stop-daemon --stop --quiet --pidfile ${pidfile} - eend $? -} diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.initd-r1 b/mail-mta/qpsmtpd/files/qpsmtpd.initd-r1 deleted file mode 100644 index a0c8f591b598..000000000000 --- a/mail-mta/qpsmtpd/files/qpsmtpd.initd-r1 +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/openrc-run - -pidfile=/run/qpsmtpd/qpsmtpd.pid - -depend() { - use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd - provide mta -} - -checkconfig() { - if ! [ -d "${QPSMTPD_CONFIG:-/etc/qpsmtpd}" ]; then - eerror "Configuration directory ${QPSMTPD_CONFIG:-/etc/qpsmtpd} does not exist." - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - ebegin "Starting qpsmtpd [${QPSMTPD_SERVER_TYPE}] server" - HOME="/var/spool/qpsmtpd" - local QPSMTPD_SERVER_BIN="" - local myopts="" - export QPSMTPD_CONFIG=${QPSMTPD_CONFIG} - for foo in PERL_UNICODE LANG LC_TIME LC_ALL BASH_ENV ENV CDPATH IFS - do - unset ${foo} - done - case "${QPSMTPD_SERVER_TYPE}" in - prefork) - QPSMTPD_SERVER_BIN="/usr/bin/qpsmtpd-prefork" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:\-\-pid\-file[\t ]\{1,99\}[^ ]*::gI")" - # Option --pid-file is mentioned in the help of the prefork server - # but does not work when specified. - # QPSMTPD_OPTIONS="${QPSMTPD_OPTIONS} --pid-file ${pidfile}" - myopts="${myopts} --make-pidfile --pidfile ${pidfile}" - ;; - async) - QPSMTPD_SERVER_BIN="/usr/sbin/qpsmtpd-async" - myopts="${myopts} --background --make-pidfile --pidfile ${pidfile}" - ;; - forkserver|*) - QPSMTPD_SERVER_BIN="/usr/bin/qpsmtpd-forkserver" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:\-\-pid\-file[\t ]\{1,99\}[^ ]*::gI")" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:[\t ]\{0,99\}\-d[\t ]\{1,99\}|[\t ]\{1,99\}\-d[\t ]\{0,99\}::gI")" - QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:[\t ]\{0,99\}\-\detach[\t ]\{1,99\}|[\t ]\{1,99\}\-\-detach[\t ]\{0,99\}::gI")" - QPSMTPD_OPTIONS="${QPSMTPD_OPTIONS} --pid-file ${pidfile} --detach" - myopts="${myopts} --pidfile ${pidfile}" - ;; - esac - start-stop-daemon --start --nicelevel ${QPSMTPD_NICELEVEL:-0} \ - --quiet ${myopts} \ - --exec ${QPSMTPD_SERVER_BIN} \ - -- ${QPSMTPD_OPTIONS} - eend $? -} - -stop() { - ebegin "Stopping qpsmtpd [${QPSMTPD_SERVER_TYPE}] server" - start-stop-daemon --stop --quiet --pidfile ${pidfile} - eend $? -} diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.xinetd b/mail-mta/qpsmtpd/files/qpsmtpd.xinetd deleted file mode 100644 index 71cb21c2b98e..000000000000 --- a/mail-mta/qpsmtpd/files/qpsmtpd.xinetd +++ /dev/null @@ -1,20 +0,0 @@ -# default: off -# description: The telnet server serves telnet sessions; it uses \ -# unencrypted username/password pairs for authentication. - -service smtp -{ - flags = REUSE - socket_type = stream - wait = no - user = smtpd - group = smtpd - groups = yes - log_on_failure += USERID HOST - disable = yes - rlimit_as = 128M - instances = 40 - per_source = 10 - cps = 50 10 - server = /usr/bin/qpsmtpd -} diff --git a/mail-mta/qpsmtpd/metadata.xml b/mail-mta/qpsmtpd/metadata.xml deleted file mode 100644 index 36b1f2735add..000000000000 --- a/mail-mta/qpsmtpd/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <use> - <flag name="postfix">create user with permissions for proper postfix interaction</flag> - </use> - <upstream> - <remote-id type="github">smtpd/qpsmtpd</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild b/mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild deleted file mode 100644 index 334237eed909..000000000000 --- a/mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -[[ ${PV} == *9999 ]] && SCM="git-r3" -inherit perl-module ${SCM} - -DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl" -HOMEPAGE="https://smtpd.github.io/qpsmtpd/" -if [[ ${PV} != *9999 ]]; then - SRC_URI="https://github.com/smtpd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -else - # This is a spotted development fork with many improvements - EGIT_REPO_URI="https://github.com/smtpd/${PN}.git" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="postfix ipv6 syslog" - -RDEPEND=" - acct-group/smtpd - acct-user/smtpd - dev-lang/perl - dev-perl/Danga-Socket - dev-perl/IPC-Shareable - dev-perl/MailTools - dev-perl/Net-DNS - dev-perl/ParaDNS - dev-perl/Socket6 - dev-perl/UNIVERSAL-isa - postfix? ( acct-group/postdrop ) - virtual/inetd - virtual/perl-MIME-Base64 - ipv6? ( dev-perl/IO-Socket-INET6 ) - syslog? ( virtual/perl-Sys-Syslog ) -" - -src_unpack() { - if [[ ${PV} != *9999 ]]; then - unpack ${A} - cd "${S}" - else - git-r3_src_unpack - cd "${S}" - fi -} - -src_install() { - perl-module_src_install - - insinto /etc/xinetd.d - newins "${FILESDIR}"/qpsmtpd.xinetd qpsmtpd - - dodir /usr/share/qpsmtpd - cp -Rf plugins "${ED}"/usr/share/qpsmtpd/ || die - - diropts -m 0755 -o smtpd -g smtpd - keepdir /var/spool/qpsmtpd - - insinto /etc/qpsmtpd - doins config.sample/* - - echo "/usr/share/qpsmtpd/plugins" > "${ED}"/etc/qpsmtpd/plugin_dirs || die - echo "/var/spool/qpsmtpd" > "${ED}"/etc/qpsmtpd/spool_dir || die - if use syslog; then - echo "logging/syslog loglevel LOGINFO priority LOG_NOTICE" > "${ED}"/etc/qpsmtpd/logging - else - diropts -m 0755 -o smtpd -g smtpd - dodir /var/log/qpsmtpd - keepdir /var/log/qpsmtpd - echo "logging/file loglevel LOGINFO /var/log/qpsmtpd/%Y-%m-%d" > "${ED}"/etc/qpsmtpd/logging - fi - - newenvd "${FILESDIR}"/qpsmtpd.envd 99qpsmtpd - - newconfd "${FILESDIR}"/qpsmtpd.confd qpsmtpd - newinitd "${FILESDIR}"/qpsmtpd.initd-r1 qpsmtpd - - dodoc CREDITS Changes README.md README.plugins.md STATUS UPGRADING.md -} diff --git a/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild b/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild deleted file mode 100644 index 334237eed909..000000000000 --- a/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -[[ ${PV} == *9999 ]] && SCM="git-r3" -inherit perl-module ${SCM} - -DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl" -HOMEPAGE="https://smtpd.github.io/qpsmtpd/" -if [[ ${PV} != *9999 ]]; then - SRC_URI="https://github.com/smtpd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -else - # This is a spotted development fork with many improvements - EGIT_REPO_URI="https://github.com/smtpd/${PN}.git" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="postfix ipv6 syslog" - -RDEPEND=" - acct-group/smtpd - acct-user/smtpd - dev-lang/perl - dev-perl/Danga-Socket - dev-perl/IPC-Shareable - dev-perl/MailTools - dev-perl/Net-DNS - dev-perl/ParaDNS - dev-perl/Socket6 - dev-perl/UNIVERSAL-isa - postfix? ( acct-group/postdrop ) - virtual/inetd - virtual/perl-MIME-Base64 - ipv6? ( dev-perl/IO-Socket-INET6 ) - syslog? ( virtual/perl-Sys-Syslog ) -" - -src_unpack() { - if [[ ${PV} != *9999 ]]; then - unpack ${A} - cd "${S}" - else - git-r3_src_unpack - cd "${S}" - fi -} - -src_install() { - perl-module_src_install - - insinto /etc/xinetd.d - newins "${FILESDIR}"/qpsmtpd.xinetd qpsmtpd - - dodir /usr/share/qpsmtpd - cp -Rf plugins "${ED}"/usr/share/qpsmtpd/ || die - - diropts -m 0755 -o smtpd -g smtpd - keepdir /var/spool/qpsmtpd - - insinto /etc/qpsmtpd - doins config.sample/* - - echo "/usr/share/qpsmtpd/plugins" > "${ED}"/etc/qpsmtpd/plugin_dirs || die - echo "/var/spool/qpsmtpd" > "${ED}"/etc/qpsmtpd/spool_dir || die - if use syslog; then - echo "logging/syslog loglevel LOGINFO priority LOG_NOTICE" > "${ED}"/etc/qpsmtpd/logging - else - diropts -m 0755 -o smtpd -g smtpd - dodir /var/log/qpsmtpd - keepdir /var/log/qpsmtpd - echo "logging/file loglevel LOGINFO /var/log/qpsmtpd/%Y-%m-%d" > "${ED}"/etc/qpsmtpd/logging - fi - - newenvd "${FILESDIR}"/qpsmtpd.envd 99qpsmtpd - - newconfd "${FILESDIR}"/qpsmtpd.confd qpsmtpd - newinitd "${FILESDIR}"/qpsmtpd.initd-r1 qpsmtpd - - dodoc CREDITS Changes README.md README.plugins.md STATUS UPGRADING.md -} diff --git a/mail-mta/sendmail/Manifest b/mail-mta/sendmail/Manifest deleted file mode 100644 index 2c24d661f727..000000000000 --- a/mail-mta/sendmail/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST sendmail.8.18.1.tar.gz 2401566 BLAKE2B 3afa36073fd611c7fdb43ef0ab9f02d5fb8ae388e9471bdc7275c6c9dcee0a654f46ddef505b70e978cb1b818b0da375250678e501676d8bace534d59ee40d90 SHA512 9ce713b44439d4de6faa9e3cdfa2226b44b4fbeb352a5f81584c062570e9472da244158287e489aabe258d28fe54ca4964565c7b0adc7e1763d212be42f98061 -DIST sendmail.8.18.2.tar.gz 2372458 BLAKE2B a291006fd498d61b8fe19eb02cdeb92f83cef68b5c3db0c8b6479edb8e4722ed2d2ae03cf39553c0631224a1dfa00754cf4ea32bb7bc762ad8152ccaebe606dc SHA512 55515220ea84db4b56b8154efbf21aeb7161943c92bd63527cfc20169ea566e299cc289f0a6e160dc5637f656bdc451707003750d4b42a7894d40f35f51f6040 diff --git a/mail-mta/sendmail/files/sendmail b/mail-mta/sendmail/files/sendmail deleted file mode 100644 index 0f6d62da6085..000000000000 --- a/mail-mta/sendmail/files/sendmail +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need net - use dns logger antivirus - provide mta -} - -start() { - ebegin "Starting sendmail" - /usr/bin/newaliases > /dev/null 2>&1 - (cd /var/spool/mqueue; rm -f xf*) - /usr/sbin/sendmail ${SENDMAIL_OPTS} > /dev/null 2>&1 - /usr/sbin/sendmail ${CLIENTMQUEUE_OPTS} > /dev/null 2>&1 - eend $? -} - -stop() { - ebegin "Stopping sendmail" - kill ${KILL_OPTS} `head -n 1 /var/run/sendmail.pid` - kill ${KILL_OPTS} `head -n 1 /var/spool/clientmqueue/sm-client.pid` - eend $? -} diff --git a/mail-mta/sendmail/files/sendmail-8.16.1-build-system.patch b/mail-mta/sendmail/files/sendmail-8.16.1-build-system.patch deleted file mode 100644 index c317a4e854fb..000000000000 --- a/mail-mta/sendmail/files/sendmail-8.16.1-build-system.patch +++ /dev/null @@ -1,158 +0,0 @@ -diff -Nru sendmail-8.14.3.orig/cf/cf/Makefile sendmail-8.14.3/cf/cf/Makefile ---- sendmail-8.14.3.orig/cf/cf/Makefile 2005-06-14 04:16:34.000000000 +0200 -+++ sendmail-8.14.3/cf/cf/Makefile 2009-09-20 10:55:50.000000000 +0200 -@@ -80,10 +80,10 @@ - install-cf: install-sendmail-cf install-submit-cf - - install-sendmail-cf: $(CF).cf -- $(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(CF).cf ${DESTDIR}$(MAILDIR)/sendmail.cf -+ $(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(CF).cf "${DESTDIR}$(MAILDIR)/sendmail.cf" - - install-submit-cf: $(SUBMIT).cf -- $(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(SUBMIT).cf ${DESTDIR}$(MAILDIR)/submit.cf -+ $(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(SUBMIT).cf "${DESTDIR}$(MAILDIR)/submit.cf" - - depend: - -diff -Nru sendmail-8.14.6.orig/devtools/M4/UNIX/defines.m4 sendmail-8.14.6/devtools/M4/UNIX/defines.m4 ---- sendmail-8.14.6.orig/devtools/M4/UNIX/defines.m4 2012-01-21 00:07:08.000000000 +0000 -+++ sendmail-8.14.6/devtools/M4/UNIX/defines.m4 2012-12-27 08:13:15.792214375 +0000 -@@ -26,7 +26,7 @@ - CCLINK = ifdef(`confCCLINK', `confCCLINK', `confCC') - # Linker for libraries - LD= ifdef(`confLD', `confLD', `confCC') --LDOPTS= ifdef(`confLDOPTS', `confLDOPTS') ifdef(`confMT', ifdef(`confMTLDOPTS', `confMTLDOPTS', `'), `') -+LDOPTS= ifdef(`confLDOPTS', `confLDOPTS') - LDOPTS_SO= ${LDOPTS} ifdef(`confLDOPTS_SO', `confLDOPTS_SO', `-shared') - - # Shell -@@ -71,7 +71,7 @@ - LIBADD= ifdef(`conf_'bldCURRENT_PRD`_LIBS', `conf_'bldCURRENT_PRD`_LIBS') - - # libraries required on your system --LIBS= ${LIBADD} ifdef(`confLIBS', `confLIBS') ifdef(`conf_'bldCURRENT_PRD`_LIB_POST', `conf_'bldCURRENT_PRD`_LIB_POST') -+LIBS= ${LIBADD} ifdef(`confLIBS', `confLIBS') ifdef(`conf_'bldCURRENT_PRD`_LIB_POST', `conf_'bldCURRENT_PRD`_LIB_POST') ifdef(`confMT', ifdef(`confMTLDOPTS', `confMTLDOPTS', `'), `') - - # location of sendmail binary (usually /usr/sbin or /usr/lib) - BINDIR= ifdef(`confMBINDIR', `confMBINDIR', `/usr/sbin') -diff -Nru sendmail-8.14.3.orig/devtools/M4/UNIX/executable.m4 sendmail-8.14.3/devtools/M4/UNIX/executable.m4 ---- sendmail-8.14.3.orig/devtools/M4/UNIX/executable.m4 2006-10-06 07:44:44.000000000 +0200 -+++ sendmail-8.14.3/devtools/M4/UNIX/executable.m4 2009-09-20 10:50:36.000000000 +0200 -@@ -30,12 +30,12 @@ - - ifdef(`bldNO_INSTALL', , - `install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT ifdef(`bldTARGET_INST_DEP', `bldTARGET_INST_DEP') -- ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${bldINSTALL_DIR`'BINDIR} ]; then confMKDIR -p ${DESTDIR}${bldINSTALL_DIR`'BINDIR}; else :; fi ') -- ${INSTALL} -c -o ${bldBIN_TYPE`'BINOWN} -g ${bldBIN_TYPE`'BINGRP} -m ${bldBIN_TYPE`'BINMODE} bldCURRENT_PRODUCT ${DESTDIR}${bldINSTALL_DIR`'BINDIR} -+ ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${bldINSTALL_DIR`'BINDIR}" ]; then confMKDIR -p "${DESTDIR}${bldINSTALL_DIR`'BINDIR}"; else :; fi ') -+ ${INSTALL} -c -o ${bldBIN_TYPE`'BINOWN} -g ${bldBIN_TYPE`'BINGRP} -m ${bldBIN_TYPE`'BINMODE} bldCURRENT_PRODUCT "${DESTDIR}${bldINSTALL_DIR`'BINDIR}" - ifdef(`bldTARGET_LINKS', `bldMAKE_TARGET_LINKS(${bldINSTALL_DIR`'BINDIR}/bldCURRENT_PRODUCT, ${bldCURRENT_PRODUCT`'TARGET_LINKS})')') - - strip-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT -- ${STRIP} ${STRIPOPTS} ${DESTDIR}${bldINSTALL_DIR`'BINDIR}`'/bldCURRENT_PRODUCT -+ ${STRIP} ${STRIPOPTS} "${DESTDIR}${bldINSTALL_DIR`'BINDIR}`'/bldCURRENT_PRODUCT" - - bldCURRENT_PRODUCT-clean: - rm -f ${OBJS} bldCURRENT_PRODUCT ${MANPAGES} -diff -Nru sendmail-8.14.3.orig/devtools/M4/UNIX/library.m4 sendmail-8.14.3/devtools/M4/UNIX/library.m4 ---- sendmail-8.14.3.orig/devtools/M4/UNIX/library.m4 2006-09-06 00:56:53.000000000 +0200 -+++ sendmail-8.14.3/devtools/M4/UNIX/library.m4 2009-09-20 10:50:36.000000000 +0200 -@@ -27,8 +27,8 @@ - ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)') - - install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.a --ifdef(`bldINSTALLABLE', ` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${bldINSTALL_DIR`'LIBDIR} ]; then confMKDIR -p ${DESTDIR}${bldINSTALL_DIR`'LIBDIR}; else :; fi ') -- ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.a ${DESTDIR}${LIBDIR}') -+ifdef(`bldINSTALLABLE', ` ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${LIBDIR}" ]; then confMKDIR -p "${DESTDIR}${LIBDIR}"; else :; fi ') -+ ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.a "${DESTDIR}${LIBDIR}"') - - bldCURRENT_PRODUCT-clean: - rm -f ${OBJS} bldCURRENT_PRODUCT.a ${MANPAGES} ---- sendmail-8.14.6.orig/devtools/M4/UNIX/manpage.m4 2012-01-21 00:07:08.000000000 +0000 -+++ sendmail-8.14.6/devtools/M4/UNIX/manpage.m4 2012-12-27 08:28:52.617502447 +0000 -@@ -68,11 +68,11 @@ - ifdef(`confNO_MAN_INSTALL', `divert(-1)', `dnl') - define(`bldMAN_INSTALL_CMD', - `ifdef(`confDONT_INSTALL_CATMAN', `dnl', --` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC} ]; then confMKDIR -p ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}; else :; fi ') -- ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).`${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}' `${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}'') -+` ifdef(`confMKDIR', `if [ ! -d "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}" ]; then confMKDIR -p "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}"; else :; fi ') -+ ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).`${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}' "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}''") - ifdef(`confINSTALL_RAWMAN', --` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN} ]; then confMKDIR -p ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}; else :; fi ') -- ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).bldGET_MAN_SOURCE_NUM($1) `${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}'', `dnl')' -+` ifdef(`confMKDIR', `if [ ! -d "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'" ]; then confMKDIR -p "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'"; else :; fi ') -+ ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).bldGET_MAN_SOURCE_NUM($1) "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}''", `dnl')' - )dnl - bldFOREACH(`bldMAN_INSTALL_CMD(', `bldMAN_PAGES') - ifdef(`confNO_MAN_INSTALL', `divert(0)', `dnl') -diff -Nru sendmail-8.14.3.orig/libmilter/Makefile.m4 sendmail-8.14.3/libmilter/Makefile.m4 ---- sendmail-8.14.3.orig/libmilter/Makefile.m4 2008-04-08 07:23:44.000000000 +0200 -+++ sendmail-8.14.3/libmilter/Makefile.m4 2009-09-20 10:50:36.000000000 +0200 -@@ -32,9 +32,9 @@ - MFAPI= ${SRCDIR}/inc`'lude/libmilter/mfapi.h - MFDEF= ${SRCDIR}/inc`'lude/libmilter/mfdef.h - install-mfapi: ${MFAPI} -- if [ ! -d ${DESTDIR}${INCLUDEDIR}/libmilter ]; then mkdir -p ${DESTDIR}${INCLUDEDIR}/libmilter; else :; fi -- ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFAPI} ${DESTDIR}${INCLUDEDIR}/libmilter/mfapi.h -- ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFDEF} ${DESTDIR}${INCLUDEDIR}/libmilter/mfdef.h -+ if [ ! -d "${DESTDIR}${INCLUDEDIR}/libmilter" ]; then mkdir -p "${DESTDIR}${INCLUDEDIR}/libmilter"; else :; fi -+ ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFAPI} "${DESTDIR}${INCLUDEDIR}/libmilter/mfapi.h" -+ ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFDEF} "${DESTDIR}${INCLUDEDIR}/libmilter/mfdef.h" - divert(0) - - bldFINISH -diff -Nru sendmail-8.14.3.orig/mail.local/Makefile.m4 sendmail-8.14.3/mail.local/Makefile.m4 ---- sendmail-8.14.3.orig/mail.local/Makefile.m4 2006-06-28 23:08:02.000000000 +0200 -+++ sendmail-8.14.3/mail.local/Makefile.m4 2009-09-20 10:56:24.000000000 +0200 -@@ -30,7 +30,7 @@ - force-install: install-mail.local ifdef(`confNO_MAN_BUILD',, `install-docs') - - install-mail.local: mail.local -- ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} mail.local ${DESTDIR}${EBINDIR} -+ ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} mail.local "${DESTDIR}${EBINDIR}" - divert - - bldFINISH -diff -Nru sendmail-8.14.3.orig/rmail/Makefile.m4 sendmail-8.14.3/rmail/Makefile.m4 ---- sendmail-8.14.3.orig/rmail/Makefile.m4 2006-06-28 23:08:04.000000000 +0200 -+++ sendmail-8.14.3/rmail/Makefile.m4 2009-09-20 10:55:29.000000000 +0200 -@@ -31,7 +31,7 @@ - force-install: install-rmail ifdef(`confNO_MAN_BUILD',, `install-docs') - - install-rmail: rmail -- ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} rmail ${DESTDIR}${UBINDIR} -+ ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} rmail "${DESTDIR}${UBINDIR}" - divert - - bldFINISH - ---- a/sendmail/Makefile.m4 2020-08-10 23:14:23.209900406 -0400 -+++ b/sendmail/Makefile.m4 2020-08-10 23:23:51.272863753 -0400 -@@ -43,21 +43,21 @@ - statistics: - ${CP} /dev/null statistics - --${DESTDIR}/etc/mail/submit.cf: -+${DESTDIR}/etc/mail/submit.cf: - @echo "Please read INSTALL if anything fails while installing the binary." - @echo "${DESTDIR}/etc/mail/submit.cf will be installed now." - cd ${SRCDIR}/cf/cf && make install-submit-cf - - MSPQ=ifdef(`confMSP_QUEUE_DIR', `confMSP_QUEUE_DIR', `/var/spool/clientmqueue') - --${DESTDIR}${MSPQ}: -+${DESTDIR}${MSPQ}: - @echo "Please read INSTALL if anything fails while installing the binary." - @echo "You must have set up a new user ${MSPQOWN} and a new group ${GBINGRP}" - @echo "as explained in sendmail/SECURITY." -- mkdir -p ${DESTDIR}${MSPQ} -- chown ${MSPQOWN} ${DESTDIR}${MSPQ} -- chgrp ${GBINGRP} ${DESTDIR}${MSPQ} -- chmod 0770 ${DESTDIR}${MSPQ} -+ mkdir -p "${DESTDIR}${MSPQ}" -+ chown ${MSPQOWN} "${DESTDIR}${MSPQ}" -+ chgrp ${GBINGRP} "${DESTDIR}${MSPQ}" -+ chmod 0770 "${DESTDIR}${MSPQ}" - - divert(0) diff --git a/mail-mta/sendmail/files/sendmail-delivered_hdr.patch b/mail-mta/sendmail/files/sendmail-delivered_hdr.patch deleted file mode 100644 index 6837fed1c46d..000000000000 --- a/mail-mta/sendmail/files/sendmail-delivered_hdr.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- sendmail/conf.c.orig 2004-07-14 21:54:23.000000000 +0000 -+++ sendmail/conf.c 2004-12-06 15:22:05.000000000 +0000 -@@ -117,6 +117,7 @@ - { "content-length", H_ACHECK, NULL }, - { "subject", H_ENCODABLE, NULL }, - { "x-authentication-warning", H_FORCE, NULL }, -+ { "delivered-to", H_FORCE, NULL }, - - { NULL, 0, NULL } - }; diff --git a/mail-mta/sendmail/files/sendmail-procmail.mc b/mail-mta/sendmail/files/sendmail-procmail.mc deleted file mode 100644 index af994ae33ad0..000000000000 --- a/mail-mta/sendmail/files/sendmail-procmail.mc +++ /dev/null @@ -1,12 +0,0 @@ -divert(-1) -divert(0)dnl -include(`/usr/share/sendmail-cf/m4/cf.m4')dnl -VERSIONID(`$Id$')dnl -OSTYPE(linux)dnl -DOMAIN(generic)dnl -FEATURE(`smrsh',`/usr/sbin/smrsh')dnl -FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl -FEATURE(`local_procmail')dnl -MAILER(local)dnl -MAILER(smtp)dnl -MAILER(procmail)dnl diff --git a/mail-mta/sendmail/files/sendmail.mc-r1 b/mail-mta/sendmail/files/sendmail.mc-r1 deleted file mode 100644 index dbc09b02bc74..000000000000 --- a/mail-mta/sendmail/files/sendmail.mc-r1 +++ /dev/null @@ -1,11 +0,0 @@ -divert(-1) -divert(0)dnl -include(`/usr/share/sendmail-cf/m4/cf.m4')dnl -VERSIONID(`$Id$')dnl -OSTYPE(linux)dnl -DOMAIN(generic)dnl -FEATURE(`smrsh',`/usr/sbin/smrsh')dnl -FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl -define(`confTRUSTED_USER', `smmsp')dnl -MAILER(local)dnl -MAILER(smtp)dnl diff --git a/mail-mta/sendmail/files/sendmail.service b/mail-mta/sendmail/files/sendmail.service deleted file mode 100644 index 2d268fa1f870..000000000000 --- a/mail-mta/sendmail/files/sendmail.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Sendmail Mail Transport Agent -After=syslog.target network.target -Wants=sm-client.service - -[Service] -Type=forking -PIDFile=/run/sendmail.pid -ExecStartPre=-/usr/bin/newaliases -ExecStartPre=-/bin/rm -f /var/spool/mqueue/xf* -ExecStart=/usr/sbin/sendmail -bd -q30m -L sm-mta - -[Install] -WantedBy=multi-user.target -Also=sm-client.service diff --git a/mail-mta/sendmail/files/site.config.m4 b/mail-mta/sendmail/files/site.config.m4 deleted file mode 100644 index a9e0883a9b00..000000000000 --- a/mail-mta/sendmail/files/site.config.m4 +++ /dev/null @@ -1,16 +0,0 @@ -define(`confCCOPTS', `@@confCCOPTS@@') -define(`confMAPDEF', `@@confMAPDEF@@') -define(`confENVDEF', `@@confENVDEF@@') -define(`confLIBS', `@@confLIBS@@') -define(`confSTDIO_TYPE', `portable') -define(`confLDOPTS', `-Wl,-z,now @@confLDOPTS@@') -define(`confLDOPTS_SO', `-shared') -define(`confCCOPTS_SO', `-fPIC') -define(`confCC', `@@confCC@@') -define(`confMANOWN', `root') -define(`confMANGRP', `root') -define(`confMANMODE', `644') -define(`confMAN1SRC', `1') -define(`confMAN5SRC', `5') -define(`confMAN8SRC', `8') -APPENDDEF(`conf_sendmail_LIBS', `@@conf_sendmail_LIBS@@') diff --git a/mail-mta/sendmail/files/sm-client.service b/mail-mta/sendmail/files/sm-client.service deleted file mode 100644 index 4937c132914d..000000000000 --- a/mail-mta/sendmail/files/sm-client.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Sendmail Mail Transport Client -After=syslog.target network.target sendmail.service -BindTo=sendmail.service - -[Service] -Type=forking -PIDFile=/var/spool/clientmqueue/sm-client.pid -ExecStartPre=/bin/touch /var/spool/clientmqueue/sm-client.pid -ExecStartPre=/bin/chown smmsp:smmsp /var/spool/clientmqueue/sm-client.pid -ExecStart=/usr/sbin/sendmail -Ac -q30m -L sm-cm - -[Install] -WantedBy=multi-user.target diff --git a/mail-mta/sendmail/files/tls.patch b/mail-mta/sendmail/files/tls.patch deleted file mode 100644 index 0c2f5e8a7d47..000000000000 --- a/mail-mta/sendmail/files/tls.patch +++ /dev/null @@ -1,15 +0,0 @@ -$OpenBSD: patch-sendmail_tls_c,v 1.2 2022/01/26 13:01:08 ajacoutot Exp $ - -Unbreak build with opaque DH in LibreSSL 3.5: force use of DH_set0_pqg(). - -Index: sendmail/tls.c ---- sendmail/tls.c.orig -+++ sendmail/tls.c -@@ -43,6 +43,7 @@ SM_RCSID("@(#)$Id: tls.c,v 8.127 2013-11-27 02:51:11 g - # include <openssl/bn.h> - # include <openssl/dsa.h> - # else -+# define MTA_HAVE_DH_set0_pqg 1 - # define X509_STORE_CTX_get0_cert(ctx) (ctx)->cert - # define MTA_RSA_TMP_CB 1 - # define MTA_ASN1_STRING_data ASN1_STRING_data diff --git a/mail-mta/sendmail/metadata.xml b/mail-mta/sendmail/metadata.xml deleted file mode 100644 index 5bd890c47857..000000000000 --- a/mail-mta/sendmail/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <upstream> - <remote-id type="cpe">cpe:/a:sendmail:sendmail</remote-id> - </upstream> - <origin>ports</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/mail-mta/sendmail/sendmail-8.18.1.ebuild b/mail-mta/sendmail/sendmail-8.18.1.ebuild deleted file mode 100644 index 94acfacb7112..000000000000 --- a/mail-mta/sendmail/sendmail-8.18.1.ebuild +++ /dev/null @@ -1,211 +0,0 @@ -# Copyright 2021-2024 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit multilib systemd toolchain-funcs - -DESCRIPTION="Widely-used Mail Transport Agent (MTA)" -HOMEPAGE="https://www.sendmail.org/" -SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz" - -LICENSE="Sendmail GPL-2" # GPL-2 is here for initscript -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="ipv6 ldap mbox nis sasl sockets ssl tcpd" - -BDEPEND="sys-devel/m4" -DEPEND="net-mail/mailbase - sasl? ( >=dev-libs/cyrus-sasl-2.1.10 ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( - dev-libs/openssl:0= - - ) - dev-perl/File-Flock - ldap? ( net-nds/openldap ) - >=sys-libs/db-3.2:= - !net-mail/vacation" -RDEPEND="${DEPEND} - acct-group/smmsp - acct-user/smmsp - >=net-mail/mailbase-0.00 - >=mail-filter/libmilter-1.0.2_p1-r1 - !mail-mta/courier - !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/opensmtpd - !mail-mta/qmail-ldap - !>=mail-mta/ssmtp-2.64-r2[mta]" - -PDEPEND="!mbox? ( mail-filter/procmail )" - -src_prepare() { - eapply "${FILESDIR}"/"${PN}"-8.16.1-build-system.patch - eapply -p0 "${FILESDIR}"/sendmail-delivered_hdr.patch - eapply -p0 "${FILESDIR}"/tls.patch - - local confCC="$(tc-getCC)" - local confCCOPTS="${CFLAGS}" - local confLDOPTS="${LDFLAGS}" - local confMAPDEF="-DMAP_REGEX -DHASFLOCK" - local confENVDEF="-DMAXDAEMONS=64" - local conf_sendmail_LIBS="" - - confENVDEF="${confLIBS} -DHAS_GETHOSTBYNAME2=1" - - use sasl && confLIBS="${confLIBS} -lsasl2" \ - && confENVDEF="${confENVDEF} -DSASL=2" \ - && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \ - && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2" - - use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \ - && confLIBS="${confLIBS} -lwrap" - - # Bug #542370 - lets add support for modern crypto (PFS) - use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \ - && confENVDEF="${confENVDEF} -D_FFR_TLS_1 -D_FFR_TLS_EC" \ - && confLIBS="${confLIBS} -lssl -lcrypto" \ - && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto" - - use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \ - && confLIBS="${confLIBS} -lldap -llber" - - use ipv6 && confENVDEF="${confENVDEF} -DNETINET6" - - use nis && confENVDEF="${confENVDEF} -DNIS" - - use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP" - - sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \ - -e "s/@@confLDOPTS@@/${confLDOPTS}/" \ - -e "s/@@confCC@@/${confCC}/" \ - -e "s/@@confMAPDEF@@/${confMAPDEF}/" \ - -e "s/@@confENVDEF@@/${confENVDEF}/" \ - -e "s/@@confLIBS@@/${confLIBS}/" \ - -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \ - "${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4 || die "sed failed" - - echo "APPENDDEF(\`confLIBDIRS', \`-L${EPREFIX}/usr/$(get_libdir)')" >> devtools/Site/site.config.m4 || die "echo failed" - - eapply_user -} - -src_compile() { - sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "compilation failed in main build script" -} - -src_install() { - local MY_LIBDIR=/usr/$(get_libdir) - local MY_OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`" - - dodir /usr/bin ${MY_LIBDIR} - dodir /usr/share/man/man{1,5,8} /usr/sbin /usr/share/sendmail-cf - dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d - - keepdir /var/spool/{clientmqueue,mqueue} - - for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap - do - make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ - SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ - MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ - LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ - MSPQOWN=root CFOWN=root CFGRP=root \ - install -C "${MY_OBJDIR}/${dir}" \ - || die "install 1 failed" - done - - for dir in rmail mail.local - do - make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ - SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ - MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ - LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ - MSPQOWN=root CFOWN=root CFGRP=root \ - force-install -C "${MY_OBJDIR}/${dir}" \ - || die "install 2 failed" - done - - fowners root:smmsp /usr/sbin/sendmail - fperms 2555 /usr/sbin/sendmail - fowners smmsp:smmsp /var/spool/clientmqueue - fperms 770 /var/spool/clientmqueue - fperms 700 /var/spool/mqueue - dosym ../sbin/makemap /usr/bin/makemap - dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps - - newdoc sendmail/README README.sendmail - newdoc sendmail/SECURITY SECURITY - newdoc sendmail/TUNING TUNING - newdoc smrsh/README README.smrsh - - newdoc cf/README README.cf - newdoc cf/cf/README README.install-cf - - cp -pPR cf/* "${ED}"/usr/share/sendmail-cf || die "copy failed" - - docinto contrib - dodoc contrib/* - - insinto /etc/mail - - if use mbox; then - newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc - else - newins "${FILESDIR}"/sendmail-procmail.mc sendmail.mc - fi - - # See discussion on bug #730890 - m4 "${ED}"/usr/share/sendmail-cf/m4/cf.m4 \ - <(grep -v "${EPREFIX}"/usr/share/sendmail-cf/m4/cf.m4 "${ED}"/etc/mail/sendmail.mc) \ - > "${ED}"/etc/mail/sendmail.cf || die "cf.m4 failed" - - echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \ - > "${ED}"/etc/mail/submit.mc || die "echo failed" - - cat "${ED}"/usr/share/sendmail-cf/cf/submit.mc >> "${ED}"/etc/mail/submit.mc || die "submit.mc cat failed" - - echo "# local-host-names - include all aliases for your machine here" \ - > "${D}"/etc/mail/local-host-names || die "local-host-names echo failed" - - cat <<- EOF > "${ED}"/etc/mail/trusted-users - # trusted-users - users that can send mail as others without a warning - # apache, mailman, majordomo, uucp are good candidates - EOF - - cat <<- EOF > "${ED}"/etc/mail/access - # Check the /usr/share/doc/sendmail/README.cf file for a description - # of the format of this file. (search for access_db in that file) - # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc - # package. - # - - EOF - - cat <<- EOF > "${ED}"/etc/conf.d/sendmail - # Config file for /etc/init.d/sendmail - # add start-up options here - SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode - CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue - KILL_OPTS="" # add -9/-15/your favorite evil SIG level here - - EOF - - if use sasl; then - dodir /etc/sasl2 - cat <<- EOF > "${ED}"/etc/sasl2/Sendmail.conf - pwcheck_method: saslauthd - mech_list: PLAIN LOGIN - - EOF - fi - - doinitd "${FILESDIR}"/sendmail - systemd_dounit "${FILESDIR}"/sendmail.service - systemd_dounit "${FILESDIR}"/sm-client.service -} diff --git a/mail-mta/sendmail/sendmail-8.18.2.ebuild b/mail-mta/sendmail/sendmail-8.18.2.ebuild deleted file mode 100644 index f625c9200a49..000000000000 --- a/mail-mta/sendmail/sendmail-8.18.2.ebuild +++ /dev/null @@ -1,211 +0,0 @@ -# Copyright 2021-2025 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit multilib systemd toolchain-funcs - -DESCRIPTION="Widely-used Mail Transport Agent (MTA)" -HOMEPAGE="https://www.sendmail.org/" -SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz" - -LICENSE="Sendmail GPL-2" # GPL-2 is here for initscript -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="ipv6 ldap mbox nis sasl sockets ssl tcpd" - -BDEPEND="sys-devel/m4" -DEPEND="net-mail/mailbase - sasl? ( >=dev-libs/cyrus-sasl-2.1.10 ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( - dev-libs/openssl:0= - - ) - dev-perl/File-Flock - ldap? ( net-nds/openldap ) - >=sys-libs/db-3.2:= - !net-mail/vacation" -RDEPEND="${DEPEND} - acct-group/smmsp - acct-user/smmsp - >=net-mail/mailbase-0.00 - >=mail-filter/libmilter-1.0.2_p1-r1 - !mail-mta/courier - !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/opensmtpd - !mail-mta/qmail-ldap - !>=mail-mta/ssmtp-2.64-r2[mta]" - -PDEPEND="!mbox? ( mail-filter/procmail )" - -src_prepare() { - eapply "${FILESDIR}"/"${PN}"-8.16.1-build-system.patch - eapply -p0 "${FILESDIR}"/sendmail-delivered_hdr.patch -# eapply -p0 "${FILESDIR}"/tls.patch - - local confCC="$(tc-getCC)" - local confCCOPTS="${CFLAGS}" - local confLDOPTS="${LDFLAGS}" - local confMAPDEF="-DMAP_REGEX -DHASFLOCK" - local confENVDEF="-DMAXDAEMONS=64" - local conf_sendmail_LIBS="" - - confENVDEF="${confLIBS} -DHAS_GETHOSTBYNAME2=1" - - use sasl && confLIBS="${confLIBS} -lsasl2" \ - && confENVDEF="${confENVDEF} -DSASL=2" \ - && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \ - && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2" - - use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \ - && confLIBS="${confLIBS} -lwrap" - - # Bug #542370 - lets add support for modern crypto (PFS) - use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \ - && confENVDEF="${confENVDEF} -D_FFR_TLS_1 -D_FFR_TLS_EC" \ - && confLIBS="${confLIBS} -lssl -lcrypto" \ - && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto" - - use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \ - && confLIBS="${confLIBS} -lldap -llber" - - use ipv6 && confENVDEF="${confENVDEF} -DNETINET6" - - use nis && confENVDEF="${confENVDEF} -DNIS" - - use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP" - - sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \ - -e "s/@@confLDOPTS@@/${confLDOPTS}/" \ - -e "s/@@confCC@@/${confCC}/" \ - -e "s/@@confMAPDEF@@/${confMAPDEF}/" \ - -e "s/@@confENVDEF@@/${confENVDEF}/" \ - -e "s/@@confLIBS@@/${confLIBS}/" \ - -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \ - "${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4 || die "sed failed" - - echo "APPENDDEF(\`confLIBDIRS', \`-L${EPREFIX}/usr/$(get_libdir)')" >> devtools/Site/site.config.m4 || die "echo failed" - - eapply_user -} - -src_compile() { - sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "compilation failed in main build script" -} - -src_install() { - local MY_LIBDIR=/usr/$(get_libdir) - local MY_OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`" - - dodir /usr/bin ${MY_LIBDIR} - dodir /usr/share/man/man{1,5,8} /usr/sbin /usr/share/sendmail-cf - dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d - - keepdir /var/spool/{clientmqueue,mqueue} - - for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap - do - make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ - SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ - MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ - LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ - MSPQOWN=root CFOWN=root CFGRP=root \ - install -C "${MY_OBJDIR}/${dir}" \ - || die "install 1 failed" - done - - for dir in rmail mail.local - do - make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ - SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ - MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ - LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ - MSPQOWN=root CFOWN=root CFGRP=root \ - force-install -C "${MY_OBJDIR}/${dir}" \ - || die "install 2 failed" - done - - fowners root:smmsp /usr/sbin/sendmail - fperms 2555 /usr/sbin/sendmail - fowners smmsp:smmsp /var/spool/clientmqueue - fperms 770 /var/spool/clientmqueue - fperms 700 /var/spool/mqueue - dosym ../sbin/makemap /usr/bin/makemap - dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps - - newdoc sendmail/README README.sendmail - newdoc sendmail/SECURITY SECURITY - newdoc sendmail/TUNING TUNING - newdoc smrsh/README README.smrsh - - newdoc cf/README README.cf - newdoc cf/cf/README README.install-cf - - cp -pPR cf/* "${ED}"/usr/share/sendmail-cf || die "copy failed" - - docinto contrib - dodoc contrib/* - - insinto /etc/mail - - if use mbox; then - newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc - else - newins "${FILESDIR}"/sendmail-procmail.mc sendmail.mc - fi - - # See discussion on bug #730890 - m4 "${ED}"/usr/share/sendmail-cf/m4/cf.m4 \ - <(grep -v "${EPREFIX}"/usr/share/sendmail-cf/m4/cf.m4 "${ED}"/etc/mail/sendmail.mc) \ - > "${ED}"/etc/mail/sendmail.cf || die "cf.m4 failed" - - echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \ - > "${ED}"/etc/mail/submit.mc || die "echo failed" - - cat "${ED}"/usr/share/sendmail-cf/cf/submit.mc >> "${ED}"/etc/mail/submit.mc || die "submit.mc cat failed" - - echo "# local-host-names - include all aliases for your machine here" \ - > "${D}"/etc/mail/local-host-names || die "local-host-names echo failed" - - cat <<- EOF > "${ED}"/etc/mail/trusted-users - # trusted-users - users that can send mail as others without a warning - # apache, mailman, majordomo, uucp are good candidates - EOF - - cat <<- EOF > "${ED}"/etc/mail/access - # Check the /usr/share/doc/sendmail/README.cf file for a description - # of the format of this file. (search for access_db in that file) - # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc - # package. - # - - EOF - - cat <<- EOF > "${ED}"/etc/conf.d/sendmail - # Config file for /etc/init.d/sendmail - # add start-up options here - SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode - CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue - KILL_OPTS="" # add -9/-15/your favorite evil SIG level here - - EOF - - if use sasl; then - dodir /etc/sasl2 - cat <<- EOF > "${ED}"/etc/sasl2/Sendmail.conf - pwcheck_method: saslauthd - mech_list: PLAIN LOGIN - - EOF - fi - - doinitd "${FILESDIR}"/sendmail - systemd_dounit "${FILESDIR}"/sendmail.service - systemd_dounit "${FILESDIR}"/sm-client.service -} diff --git a/mail-mta/ssmtp/Manifest b/mail-mta/ssmtp/Manifest deleted file mode 100644 index 8e40e930ecf1..000000000000 --- a/mail-mta/ssmtp/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST ssmtp-2.64-patches-4.tar.xz 6928 BLAKE2B 6f1d9a823273298abc58025c94cb288e1e296031580f63ed489a9d2559cd8846761e78c6fdfc1a385e645f990bc739ce3cf3ad0d1c1a3006dd3bd60e4a38c4f4 SHA512 6fa57c0bc5ad363e21bf69fb60f1cbb87ad1ead393a53ab5bd25b709303c321a29ed37ce7fe95b94dae748703bba3b0631fc2a95e40957c5241b5d9f42bc0c4a -DIST ssmtp_2.64-11.debian.tar.xz 36500 BLAKE2B 237ab0fcae9b4b67f5bb08194a480b44d523298b72f3b3e1d780571f2ef5dacccda81047538ba7a5c59cb24802843eeb5ca073742f13f3d00757b810eef9514e SHA512 925c9fc05f90516f1e89763689f32c6b4d5713822758d627a7a8eade612ded45fa4bc481b242c64b4d397564d98b1443a938d7bfa3507638a8df29f54cd1a05c -DIST ssmtp_2.64-12.debian.tar.xz 37556 BLAKE2B 593888401b752da31b0cef9d8bb00717837550b66c51b94f19a940d2576b0d106d8bba03e9712c08c939b229f28b0682f4acf9a9f9df31e8904b29db5e2287ad SHA512 30f66800bdb43c4427fe8610a5515b9906676aa5cb392e86513a8cf5d19ff8b4ec6be7552e4ce19d2179e6d44589a0d59ea5267aeb26b092f764510b34646419 -DIST ssmtp_2.64.orig.tar.bz2 52501 BLAKE2B be158f8d969f98e1a7105bf4b741da960efa2a1c4a941426d6b6ec0677df13a2272fc71a93d2c44fe65c7d0a30e9acc4ec8259ed298b746c8d9ceefd64f95336 SHA512 911752e744420adf58552b9cf3a6e558d8b39103e5ad33a9ed4429b9a3a2091f7674aac11fe9bbd66747a61cdabe6bd638b80efcaadc86b057c12e2e235cca72 diff --git a/mail-mta/ssmtp/files/ssmtp-2.64_p11-gcc14.patch b/mail-mta/ssmtp/files/ssmtp-2.64_p11-gcc14.patch deleted file mode 100644 index a96f6a9ac4ad..000000000000 --- a/mail-mta/ssmtp/files/ssmtp-2.64_p11-gcc14.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 85acc260f11090415c0f94b7d726917d6a449018 Mon Sep 17 00:00:00 2001 -From: psykose <alice@ayaya.dev> -Date: Wed, 19 Apr 2023 20:11:39 +0000 -Subject: main/ssmtp: fix int-conversion - -fixes -Werror=int-conversion --- -diff --git a/ssmtp.c b/ssmtp.c -index af4d1e5..9a28320 100644 ---- a/ssmtp.c -+++ b/ssmtp.c -@@ -55,21 +55,21 @@ bool_t use_oldauth = False; /* use old AUTH LOGIN username style */ - - #define ARPADATE_LENGTH 32 /* Current date in RFC format */ - char arpadate[ARPADATE_LENGTH]; --char *auth_user = (char)NULL; --char *auth_pass = (char)NULL; --char *auth_method = (char)NULL; /* Mechanism for SMTP authentication */ --char *mail_domain = (char)NULL; --char *from = (char)NULL; /* Use this as the From: address */ -+char *auth_user = NULL; -+char *auth_pass = NULL; -+char *auth_method = NULL; /* Mechanism for SMTP authentication */ -+char *mail_domain = NULL; -+char *from = NULL; /* Use this as the From: address */ - char *hostname; - char *mailhost = "mailhub"; --char *minus_f = (char)NULL; --char *minus_F = (char)NULL; -+char *minus_f = NULL; -+char *minus_F = NULL; - char *gecos; --char *prog = (char)NULL; -+char *prog = NULL; - char *root = NULL; - char *tls_cert = "/etc/ssl/certs/ssmtp.pem"; /* Default Certificate */ --char *uad = (char)NULL; --char *config_file = (char)NULL; /* alternate configuration file */ -+char *uad = NULL; -+char *config_file = NULL; /* alternate configuration file */ - - headers_t headers, *ht; - diff --git a/mail-mta/ssmtp/metadata.xml b/mail-mta/ssmtp/metadata.xml deleted file mode 100644 index a045ef1fbdf0..000000000000 --- a/mail-mta/ssmtp/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <use> - <flag name="mta">Install symlinks for sendmail-compatible MTA.</flag> - </use> -</pkgmetadata> diff --git a/mail-mta/ssmtp/ssmtp-2.64_p11-r1.ebuild b/mail-mta/ssmtp/ssmtp-2.64_p11-r1.ebuild deleted file mode 100644 index 5cc7e2e2a05f..000000000000 --- a/mail-mta/ssmtp/ssmtp-2.64_p11-r1.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PATCHSET=4 -WANT_AUTOMAKE=none -inherit autotools - -DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub" -HOMEPAGE="https://wiki.debian.org/sSMTP" -SRC_URI=" - mirror://debian/pool/main/s/ssmtp/${PN}_$(ver_cut 1-2).orig.tar.bz2 - mirror://debian/pool/main/s/ssmtp/${PN}_${PV/_p/-}.debian.tar.xz - https://dev.gentoo.org/~pinkbyte/distfiles/patches/${PN}-$(ver_cut 1-2)-patches-${MY_PATCHSET}.tar.xz -" -S="${WORKDIR}"/${PN}-$(ver_cut 1-2) - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris" -IUSE="+ssl gnutls +mta" -REQUIRED_USE="gnutls? ( ssl )" - -DEPEND=" - !prefix? ( acct-group/ssmtp ) - ssl? ( - gnutls? ( net-libs/gnutls[openssl] ) - !gnutls? ( dev-libs/openssl:= ) - ) -" -RDEPEND=" - ${DEPEND} - net-mail/mailbase - mta? ( - !mail-mta/courier - !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/opensmtpd - ) -" - -PATCHES=( "${FILESDIR}"/${P}-gcc14.patch ) # bug 879873, from Alpine - -src_prepare() { - drop_debian_patch() { - rm "${WORKDIR}"/debian/patches/${1} || die - sed -i -e "/^${1}/d" "${WORKDIR}"/debian/patches/series || die - } - - drop_gentoo_patch() { - rm "${WORKDIR}"/patches/${1} || die - } - - # Forces gnutls with no optionality (drops openssl support) - drop_debian_patch 01-374327-use-gnutls.patch - - # Included in Debian patchset - # TODO: Drop these with new patch tarball - drop_gentoo_patch 0090_all_debian-remote-addr.patch - drop_gentoo_patch 0100_all_ldflags.patch - drop_gentoo_patch 0130_all_garbage-writes.patch - - PATCHES+=( - # Debian patchset - $(awk '{print $1}' "${WORKDIR}"/debian/patches/series | sed -e "s:^:${WORKDIR}/debian/patches/:") - - # Gentoo patchset - "${WORKDIR}"/patches - ) - - default - - # let's start by not using configure.in anymore as future autoconf - # versions will not support it. - mv configure.in configure.ac || die - - eautoconf -} - -src_configure() { - local myeconfargs=( - --sysconfdir="${EPREFIX}"/etc/ssmtp - $(use_enable ssl) - $(use_with gnutls) - --enable-inet6 - --enable-md5auth - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - emake etcdir="${EPREFIX}"/etc -} - -src_install() { - dosbin ssmtp - - doman ssmtp.8 ssmtp.conf.5 - dodoc ChangeLog CHANGELOG_OLD INSTALL README TLS - newdoc ssmtp.lsm DESC - - insinto /etc/ssmtp - doins ssmtp.conf revaliases - - local conffile="${ED}/etc/ssmtp/ssmtp.conf" - - # Sorry about the weird indentation, I couldn't figure out a cleverer way - # to do this without having horribly >80 char lines. - sed -i -e "s:^hostname=:\n# Gentoo bug #47562\\ - # Commenting the following line will force ssmtp to figure\\ - # out the hostname itself.\n\\ - # hostname=:" \ - "${conffile}" || die "sed failed" - - # Comment rewriteDomain (bug #243364) - sed -i -e "s:^rewriteDomain=:#rewriteDomain=:" "${conffile}" - - # Set restrictive perms on ssmtp.conf as per #187841, #239197 - # Protect the ssmtp configfile from being readable by regular users as it - # may contain login/password data to auth against a the mailhub used. - if ! use prefix; then - fowners root:ssmtp /etc/ssmtp/ssmtp.conf - fperms 640 /etc/ssmtp/ssmtp.conf - fowners root:ssmtp /usr/sbin/ssmtp - fperms 2711 /usr/sbin/ssmtp - fi - - if use mta; then - dosym ../sbin/ssmtp /usr/lib/sendmail - dosym ssmtp /usr/sbin/sendmail - dosym ../sbin/ssmtp /usr/bin/mailq - dosym ../sbin/ssmtp /usr/bin/newaliases - fi -} diff --git a/mail-mta/ssmtp/ssmtp-2.64_p12.ebuild b/mail-mta/ssmtp/ssmtp-2.64_p12.ebuild deleted file mode 100644 index 0b8069da565f..000000000000 --- a/mail-mta/ssmtp/ssmtp-2.64_p12.ebuild +++ /dev/null @@ -1,144 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PATCHSET=4 -WANT_AUTOMAKE=none -inherit autotools flag-o-matic - -DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub" -HOMEPAGE="https://wiki.debian.org/sSMTP" -SRC_URI=" - mirror://debian/pool/main/s/ssmtp/${PN}_$(ver_cut 1-2).orig.tar.bz2 - mirror://debian/pool/main/s/ssmtp/${PN}_${PV/_p/-}.debian.tar.xz - https://dev.gentoo.org/~pinkbyte/distfiles/patches/${PN}-$(ver_cut 1-2)-patches-${MY_PATCHSET}.tar.xz -" -S="${WORKDIR}"/${PN}-$(ver_cut 1-2) - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris" -IUSE="+ssl gnutls +mta" -REQUIRED_USE="gnutls? ( ssl )" - -DEPEND=" - !prefix? ( acct-group/ssmtp ) - ssl? ( - gnutls? ( net-libs/gnutls[openssl] ) - !gnutls? ( dev-libs/openssl:= ) - ) -" -RDEPEND=" - ${DEPEND} - net-mail/mailbase - mta? ( - !mail-mta/courier - !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/opensmtpd - ) -" - -src_prepare() { - drop_debian_patch() { - rm "${WORKDIR}"/debian/patches/${1} || die - sed -i -e "/^${1}/d" "${WORKDIR}"/debian/patches/series || die - } - - drop_gentoo_patch() { - rm "${WORKDIR}"/patches/${1} || die - } - - # Forces gnutls with no optionality (drops openssl support) - drop_debian_patch 01-374327-use-gnutls.patch - - # Included in Debian patchset - # TODO: Drop these with new patch tarball - drop_gentoo_patch 0090_all_debian-remote-addr.patch - drop_gentoo_patch 0100_all_ldflags.patch - drop_gentoo_patch 0130_all_garbage-writes.patch - - PATCHES+=( - # Debian patchset - $(awk '{print $1}' "${WORKDIR}"/debian/patches/series | sed -e "s:^:${WORKDIR}/debian/patches/:") - - # Gentoo patchset - "${WORKDIR}"/patches - ) - - default - - # let's start by not using configure.in anymore as future autoconf - # versions will not support it. - mv configure.in configure.ac || die - - eautoconf -} - -src_configure() { - # bug #944143, bug #947207 - append-flags -std=gnu17 - - local myeconfargs=( - --sysconfdir="${EPREFIX}"/etc/ssmtp - $(use_enable ssl) - $(use_with gnutls) - --enable-inet6 - --enable-md5auth - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - emake etcdir="${EPREFIX}"/etc -} - -src_install() { - dosbin ssmtp - - doman ssmtp.8 ssmtp.conf.5 - dodoc ChangeLog CHANGELOG_OLD INSTALL README TLS - newdoc ssmtp.lsm DESC - - insinto /etc/ssmtp - doins ssmtp.conf revaliases - - local conffile="${ED}/etc/ssmtp/ssmtp.conf" - - # Sorry about the weird indentation, I couldn't figure out a cleverer way - # to do this without having horribly >80 char lines. - sed -i -e "s:^hostname=:\n# Gentoo bug #47562\\ - # Commenting the following line will force ssmtp to figure\\ - # out the hostname itself.\n\\ - # hostname=:" \ - "${conffile}" || die "sed failed" - - # Comment rewriteDomain (bug #243364) - sed -i -e "s:^rewriteDomain=:#rewriteDomain=:" "${conffile}" - - # Set restrictive perms on ssmtp.conf as per #187841, #239197 - # Protect the ssmtp configfile from being readable by regular users as it - # may contain login/password data to auth against a the mailhub used. - if ! use prefix; then - fowners root:ssmtp /etc/ssmtp/ssmtp.conf - fperms 640 /etc/ssmtp/ssmtp.conf - fowners root:ssmtp /usr/sbin/ssmtp - fperms 2711 /usr/sbin/ssmtp - fi - - if use mta; then - dosym ../sbin/ssmtp /usr/lib/sendmail - dosym ssmtp /usr/sbin/sendmail - dosym ../sbin/ssmtp /usr/bin/mailq - dosym ../sbin/ssmtp /usr/bin/newaliases - fi -} |
