summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2024-02-10 09:04:05 +0100
committerEray Aslan <eras@gentoo.org>2024-02-10 09:06:22 +0100
commit6a97a967b317e56a55d61fe862611d3da7d3faee (patch)
tree0171f2724295943ddb8c9bc55e44106e7a45b85d /mail-mta
parentmedia-libs/nvidia-vaapi-driver: fix building with musl (diff)
downloadgentoo-6a97a967b317e56a55d61fe862611d3da7d3faee.tar.gz
gentoo-6a97a967b317e56a55d61fe862611d3da7d3faee.tar.bz2
gentoo-6a97a967b317e56a55d61fe862611d3da7d3faee.zip
mail-mta/postfix: add 3.9_pre20240208, drop 3.9_pre20240206
Signed-off-by: Eray Aslan <eras@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/postfix/Manifest2
-rw-r--r--mail-mta/postfix/postfix-3.9_pre20240208.ebuild (renamed from mail-mta/postfix/postfix-3.9_pre20240206.ebuild)70
2 files changed, 42 insertions, 30 deletions
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest
index d00807516435..774f1e2b2342 100644
--- a/mail-mta/postfix/Manifest
+++ b/mail-mta/postfix/Manifest
@@ -1,3 +1,3 @@
DIST postfix-3.8.4.tar.gz 4864184 BLAKE2B 200ce3d72444da05e42fc8627002d53d68c1b3d78b7f74b0130ac958c23d16454783ef4849a8c9a4e3cba8ae36646e921f7e94ac4fb819b597e1a5ab1a875272 SHA512 5bae3d62e104714aead1fff28a595bab4315227382f53c8dae2a231f4240e31abda19c1e3befc1db4c89bc5d66c9a43830390365aadabdac5cf36b493c5c48c7
DIST postfix-3.8.5.tar.gz 4871284 BLAKE2B 0de999c47a4130eb3418ec60b23c10be405b9bc4b2a6022671f9dc4713256d2b81d3b43f01d89e02d2593f87109dcde366b0265eb0cb13cb3118d0e60e36b48b SHA512 26005da5750e7af742f4fc7596ae8320467176e069546c3487418c663b54f56734b4a6541665b8d72d94df2e0fd4f68a2bcc44c50a6d950334d5a5fb2293dff4
-DIST postfix-3.9-20240206.tar.gz 4885037 BLAKE2B 7e1dadf30231aa86af2d05ce026b753f57bb6515060feeb46e4bc96e004af203d558c7a5ba090799dc628b824bd4bd950d5523235346c3ada3eb1034ce929a28 SHA512 eb7043e759e024c186db97aea1d4c6de69f48f1f0a736c9d998593200687fd5c20ca258ce53ee4a290669486d57f9f3c62c3450e66227d53941a9cac62b8a86e
+DIST postfix-3.9-20240208.tar.gz 4936057 BLAKE2B 3945f3057cd7efc7b93d3114e1e81b49214c3ac1ef2e39f5a4ec5e5df1ddfa01fbf6dee3efd46ba6a04c95668d3efeb231ebc1177a963ea460017074e43335a3 SHA512 8ab8e7a7ea8cd31dd3bdac6960721f814bce52147c1bc31075e9bf0c93ee54bf8ae07cd34d9071d33cf6de415ad2a53d8276276857f6d3c2ed79f50186cc5811
diff --git a/mail-mta/postfix/postfix-3.9_pre20240206.ebuild b/mail-mta/postfix/postfix-3.9_pre20240208.ebuild
index 06bd8f93f72c..0073efccdb40 100644
--- a/mail-mta/postfix/postfix-3.9_pre20240206.ebuild
+++ b/mail-mta/postfix/postfix-3.9_pre20240208.ebuild
@@ -16,7 +16,7 @@ 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 ~riscv ~s390 ~sparc ~x86"
-IUSE="berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mysql nis pam postgres sasl selinux sqlite ssl"
+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
@@ -30,6 +30,7 @@ DEPEND="
ldap? ( net-nds/openldap:= )
ldap-bind? ( net-nds/openldap:=[sasl] )
lmdb? ( >=dev-db/lmdb-0.9.11:= )
+ mongodb? ( dev-libs/mongo-c-driver dev-libs/libbson )
mysql? ( dev-db/mysql-connector-c:0= )
nis? ( net-libs/libnsl:= )
pam? ( sys-libs/pam )
@@ -53,8 +54,8 @@ RDEPEND="${DEPEND}
!mail-mta/ssmtp[mta]
selinux? ( sec-policy/selinux-postfix )"
-# require at least one of db implementations for newalias (and postmap)
-# command to function correctly
+# require at least one db implementation for newalias (and postmap)
+# command to function properly
REQUIRED_USE="
|| ( berkdb cdb lmdb )
ldap-bind? ( ldap sasl )
@@ -74,7 +75,7 @@ src_configure() {
# bug #915670
unset LD_LIBRARY_PATH
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
+ for name in CDB LDAP LMDB MONGODB MYSQL PCRE PGSQL SDBM SQLITE
do
local AUXLIBS_${name}=""
done
@@ -88,11 +89,30 @@ src_configure() {
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)"
@@ -108,26 +128,6 @@ src_configure() {
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.
@@ -172,12 +172,24 @@ src_configure() {
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 \
+ 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}" \
+ 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}"
}