summaryrefslogtreecommitdiff
path: root/mail-mta
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-08-13 19:01:40 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-08-13 19:01:40 +0000
commitde7fa9c41ec64be7f82b1241e35a550461771db0 (patch)
tree27604b0f4790a73447095359a54d1b6a7238277f /mail-mta
parent35b3f4e55de0c283a0a9607e5cfc46f08cb5eb16 (diff)
downloadbaldeagleos-repo-de7fa9c41ec64be7f82b1241e35a550461771db0.tar.gz
baldeagleos-repo-de7fa9c41ec64be7f82b1241e35a550461771db0.tar.xz
baldeagleos-repo-de7fa9c41ec64be7f82b1241e35a550461771db0.zip
Adding metadata
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch56
-rw-r--r--mail-mta/msmtp/msmtp-1.8.28.ebuild2
-rw-r--r--mail-mta/msmtp/msmtp-1.8.30.ebuild2
3 files changed, 60 insertions, 0 deletions
diff --git a/mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch b/mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch
new file mode 100644
index 000000000000..a7c5cf17f1d1
--- /dev/null
+++ b/mail-mta/msmtp/files/msmtp-fix-tests-without-msmtpd.patch
@@ -0,0 +1,56 @@
+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/msmtp-1.8.28.ebuild b/mail-mta/msmtp/msmtp-1.8.28.ebuild
index 817e0e7b10d3..ca630062ed1c 100644
--- a/mail-mta/msmtp/msmtp-1.8.28.ebuild
+++ b/mail-mta/msmtp/msmtp-1.8.28.ebuild
@@ -58,6 +58,8 @@ BDEPEND="
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:' \
diff --git a/mail-mta/msmtp/msmtp-1.8.30.ebuild b/mail-mta/msmtp/msmtp-1.8.30.ebuild
index 190d9f4f528a..6d7dbf7aa1b0 100644
--- a/mail-mta/msmtp/msmtp-1.8.30.ebuild
+++ b/mail-mta/msmtp/msmtp-1.8.30.ebuild
@@ -58,6 +58,8 @@ BDEPEND="
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:' \