diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-10 12:30:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-10 12:30:41 +0100 |
commit | add278b9601ff9e4af091c91c851ee46a185be8f (patch) | |
tree | 4b654beae0eec584ae1d1f3227a57607d591a0ea /mail-mta | |
parent | d8a7472fc6314625f7d16e0427004eb448412908 (diff) |
gentoo auto-resync : 10:09:2024 - 12:30:41
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/Manifest.gz | bin | 2379 -> 2381 bytes | |||
-rw-r--r-- | mail-mta/msmtp/Manifest | 2 | ||||
-rw-r--r-- | mail-mta/msmtp/msmtp-1.8.26.ebuild | 2 | ||||
-rw-r--r-- | mail-mta/postfix/Manifest | 1 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-3.9.0-r1.ebuild | 311 |
5 files changed, 314 insertions, 2 deletions
diff --git a/mail-mta/Manifest.gz b/mail-mta/Manifest.gz Binary files differindex 4fb0374acb8d..89f2554b4756 100644 --- a/mail-mta/Manifest.gz +++ b/mail-mta/Manifest.gz diff --git a/mail-mta/msmtp/Manifest b/mail-mta/msmtp/Manifest index bfe2add62f51..a3fa7edc4930 100644 --- a/mail-mta/msmtp/Manifest +++ b/mail-mta/msmtp/Manifest @@ -5,5 +5,5 @@ DIST msmtp-1.8.25.tar.xz 418264 BLAKE2B 1ba407a130849c7ba1f9959a88d368f8b8330b33 DIST msmtp-1.8.26.tar.xz 419644 BLAKE2B 55373fef589bc0cee8ad6091b4988b622e302ef1720c423b306bbfaa4b44fe59a8c6d7aeb9f32e672873a3f5b0f8f777c1c6c7729e84b3324e5f6812ee9b69a7 SHA512 36fa4a571079b0e1141e645f2a565f3c7699e1899f6ece66e3539bed595473488bdf147ed6ff1bff103c6240e484b2c357122292d5eae65ac4c0f74215eb556c EBUILD msmtp-1.8.24.ebuild 3249 BLAKE2B a23ec0cb1ed73d23be8a1f57f9b3546a141c08c77e6f6088de681f8c73129607a7b5e8f8eac574de059379acc3c26155f0d0f33cc604f0af214669055b1e5454 SHA512 5c974176eb3407ac5dbcac4efe9fd7fab72676517f457396cbcef56cd43fa5cf220ceefd27dfca0d72412775a8b9af46d603497f47c479710f8ac152643cd57e EBUILD msmtp-1.8.25.ebuild 3249 BLAKE2B a23ec0cb1ed73d23be8a1f57f9b3546a141c08c77e6f6088de681f8c73129607a7b5e8f8eac574de059379acc3c26155f0d0f33cc604f0af214669055b1e5454 SHA512 5c974176eb3407ac5dbcac4efe9fd7fab72676517f457396cbcef56cd43fa5cf220ceefd27dfca0d72412775a8b9af46d603497f47c479710f8ac152643cd57e -EBUILD msmtp-1.8.26.ebuild 3243 BLAKE2B c2175838fdf529840edc4d03b3e3ed59bb073323f4032c9583ebdd677fff9f7cd79abca27efbd7f2a44e0d98b6e61d0530dabd852774872701c21d4d3ffe43d5 SHA512 6b51705ecfe3a20e8db36f4e1ce2647ab83acdfcbd95d5210c036566c9943b61683d630abfff848bcc94b3b3adbbf9cc2537210e223193d66b08e3679e504adf +EBUILD msmtp-1.8.26.ebuild 3241 BLAKE2B 13cf7d23907534e043eba77e649760874cc708097d0acc20ba2d920445ef5c5652bb4e446b57b7c4249b74eb416e7772d19f9db640c3ac1d37dd4c41683d865f SHA512 4754b1a0338b0962f002a37330fcf75370968f7d99650b1f74994e013c921d841eb7350d47bd67f9598855a8b11c514b69e13bee5094eeee34c12a0cb96a4505 MISC metadata.xml 674 BLAKE2B 09c5b10c2f26131f176d511b2ed2fc52ee44bac70577c8448b49412316c85367400017e009a0fb15a0becf082d8d283a52b686f5f5b355df016cfeddfac94e53 SHA512 4c02e5b504ab12b277b3e2330fcd4842976136e72a6135364eaed94a2db94c07c31b26b126d880cb7c1288cafea6ad8ca731e8996f16ee1f489aaf94fff2fc2e diff --git a/mail-mta/msmtp/msmtp-1.8.26.ebuild b/mail-mta/msmtp/msmtp-1.8.26.ebuild index df9b395fd7dc..490153a4f249 100644 --- a/mail-mta/msmtp/msmtp-1.8.26.ebuild +++ b/mail-mta/msmtp/msmtp-1.8.26.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://marlam.de/msmtp/releases/${P}.tar.xz" LICENSE="GPL-3" SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="daemon doc keyring +gnutls idn +mta nls sasl ssl" # fcaps.eclass unconditionally defines "filecaps" USE flag which we need for diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest index 404d1c7eca8c..2e7def799ae6 100644 --- a/mail-mta/postfix/Manifest +++ b/mail-mta/postfix/Manifest @@ -9,5 +9,6 @@ DIST postfix-3.9.0.tar.gz 4953133 BLAKE2B e07a525d9cbea43d3ed11f3d672452cf94f88c EBUILD postfix-3.10_pre20240902.ebuild 8411 BLAKE2B bde0cd29c70ae795fe8696726ae5c67716f68fa6e1e5d838c684034496d60a33abf012a66f01bd3772ddc41cc0c3523e2892846817c34f4be28327320e1de020 SHA512 c2237053b348f57a7ef84981dd5cf0dbd6864d4ad19e83802d7b311601775bf355ef880f5bbc9a11599fd49b4e50c6cec3f59ed6098080354f8588817a12f404 EBUILD postfix-3.8.5.ebuild 8361 BLAKE2B b82838527efcecd8d3342646d8ee2e71dc6afc19269db4dffe787e489d28569c51dc3c39bf955578c962f701c8ad7ad88602440421f8278720b2e8442465da74 SHA512 28e8aeca4d63c549a1550347c880c337c2ba72a399b26cc295d4ac82ec5efcad7cc362349d3fc6d3d37a3b77bfcb9dc4b58f919f598186778aa4f2e39a2bae67 EBUILD postfix-3.8.6.ebuild 8367 BLAKE2B 516c2e76bd01f99a1c70d9bf3e286e41b4fc20245e4689f3f3df614919a55858b5ec9d2f0802f763c9d476afd2c2ed7537cc1c07a1b52f35cda65b3f804672cc SHA512 87ad08edd945f52bbd2b21767973cb3ee1e9aabfd561f78d852816af703dcedd675d0f165fb77dc4d6fa4b2436b8f04d155f0e83a9dbc9fcada02aac5ea186c5 +EBUILD postfix-3.9.0-r1.ebuild 8425 BLAKE2B ddcfd6d1b540cabcf2d66079ebd15004f67997bb564308186ddc813be7d1b87939f68abc5b7e032681d358ceb5606584d7bdfe5d29631ab5dc939d53f2ea12d1 SHA512 220a7513fa2d35f2d8a8f81fda6f99cf1480de5c46b572bfbae91e759ea7c4881261d285f087ab8af20d0a4b15fa67243968f8167505c29b27e843ae8e79e35e EBUILD postfix-3.9.0.ebuild 8401 BLAKE2B e2212cc6435c369d418d6a31c8b09c698e030fbce019024dc2420c717fd1edfe12f901f1ea0d460c95da602db8bc1393b3f3424e80392711c348d58d23949de3 SHA512 6cab60da7011985d857409fe5bca63d1a039f77d87a4aef31bf7c332f1f87fe81cf2bbbee1100a1486dd414eca7163f7cdb7b83a18bd48446e456776a27707b2 MISC metadata.xml 952 BLAKE2B 53d30be39de0878119f60168ad40d4eb1328b7887ef87f34f7d641a6201fb1567c50558e4f87fc160928461461e5850022863ea21217c57184f782d82a5e3340 SHA512 60feaf7daa0360bc5a76b166a0b32afd74bb6922370cb8f200d1eb2e791ff3837f64d0211b622924b4425fe05ac2133806aa86dd8f0c9976b385362b1a8cb730 diff --git a/mail-mta/postfix/postfix-3.9.0-r1.ebuild b/mail-mta/postfix/postfix-3.9.0-r1.ebuild new file mode 100644 index 000000000000..7afab4a89695 --- /dev/null +++ b/mail-mta/postfix/postfix-3.9.0-r1.ebuild @@ -0,0 +1,311 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit pam systemd toolchain-funcs + +MY_PV="${PV/_pre/-}" +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" +S="${WORKDIR}/${MY_SRC}" + +LICENSE="|| ( IBM EPL-2.0 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mongodb mysql nis pam postgres sasl selinux sqlite ssl" + +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 ) + mysql? ( dev-db/mysql-connector-c:0= ) + nis? ( net-libs/libnsl:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:* ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( >=dev-libs/openssl-1.1.1:0= ) + " + +RDEPEND="${DEPEND} + memcached? ( net-misc/memcached ) + net-mail/mailbase + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/msmtp[mta] + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/sendmail + !mail-mta/opensmtpd + !mail-mta/ssmtp[mta] + selinux? ( sec-policy/selinux-postfix )" + +# require at least one db implementation for newalias (and postmap) +# command to function properly +REQUIRED_USE=" + || ( berkdb cdb lmdb ) + ldap-bind? ( ldap sasl ) + " + +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 + + for name in CDB LDAP LMDB MONGODB MYSQL PCRE PGSQL SDBM SQLITE + do + local AUXLIBS_${name}="" + done + + # Make sure LDFLAGS get passed down to the executables. + local mycc="" mylibs="${LDFLAGS} -ldl" + + # libpcre is EOL. prefer libpcre2 + 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 mysql; then + mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" + AUXLIBS_MYSQL="$(mysql_config --libs)" + fi + + if use postgres; then + mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" + AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" + fi + + if use sqlite; then + mycc="${mycc} -DHAS_SQLITE" + AUXLIBS_SQLITE="-lsqlite3 -lpthread" + fi + + if use 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_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 mysql/postgres unnecessarily - bug #359913 + use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" + use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" + + dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* + dodoc -r README_FILES/ examples/ + # postfix set-permissions expects uncompressed man files + docompress -x /usr/share/man + + if use pam; then + pamd_mimic_system smtp auth account + fi + + if use sasl; then + insinto /etc/sasl2 + newins "${FILESDIR}"/smtp.sasl smtpd.conf + fi + + # header files + insinto /usr/include/postfix + doins include/*.h + + 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 +} |