public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-mail/sendEmail/, net-mail/sendEmail/files/
@ 2021-03-30 21:45 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-03-30 21:45 UTC (permalink / raw
  To: gentoo-commits

commit:     b424a6f07068788031835d186c3382f8e96a8092
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 30 21:12:52 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 30 21:45:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b424a6f0

net-mail/sendEmail: port to EAPI 7, drop base.eclass

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/1.56-overzealous-verify-mode-check.patch |  4 ++--
 .../files/1.56-overzealous-version-check.patch     |  4 ++--
 net-mail/sendEmail/sendEmail-1.56-r2.ebuild        | 25 +++++++++++-----------
 3 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch b/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch
index f5c5c39ee5c..80b003917dc 100644
--- a/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch
+++ b/net-mail/sendEmail/files/1.56-overzealous-verify-mode-check.patch
@@ -1,5 +1,5 @@
---- sendEmail	2013-05-21 16:44:18.000000000 +0100
-+++ sendEmail	2013-06-05 09:26:20.000000000 +0100
+--- a/sendEmail
++++ b/sendEmail
 @@ -1903,7 +1903,7 @@
      if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
          printmsg("DEBUG => Starting TLS", 2);

diff --git a/net-mail/sendEmail/files/1.56-overzealous-version-check.patch b/net-mail/sendEmail/files/1.56-overzealous-version-check.patch
index 5cd47b06788..38a18df4acc 100644
--- a/net-mail/sendEmail/files/1.56-overzealous-version-check.patch
+++ b/net-mail/sendEmail/files/1.56-overzealous-version-check.patch
@@ -1,5 +1,5 @@
---- a/sendEmail	2013-03-25 08:59:12.000000000 +0000
-+++ b/sendEmail	2013-03-25 08:59:22.000000000 +0000
+--- a/sendEmail
++++ b/sendEmail
 @@ -1903,7 +1903,7 @@
      if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
          printmsg("DEBUG => Starting TLS", 2);

diff --git a/net-mail/sendEmail/sendEmail-1.56-r2.ebuild b/net-mail/sendEmail/sendEmail-1.56-r2.ebuild
index 8b8af8e7a31..b84b856369c 100644
--- a/net-mail/sendEmail/sendEmail-1.56-r2.ebuild
+++ b/net-mail/sendEmail/sendEmail-1.56-r2.ebuild
@@ -1,29 +1,30 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-MY_P="${PN}-v${PV}"
-
-inherit base
+EAPI=7
 
+MY_P="${PN}-v${PV}"
 DESCRIPTION="Command line based, SMTP email agent"
 HOMEPAGE="http://caspian.dotconf.net/menu/Software/SendEmail/"
 SRC_URI="http://caspian.dotconf.net/menu/Software/SendEmail/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
 IUSE="ssl"
 
-DEPEND=""
-RDEPEND="dev-lang/perl
-	ssl? ( dev-perl/IO-Socket-SSL )"
+RDEPEND="
+	dev-lang/perl
+	ssl? ( dev-perl/IO-Socket-SSL )
+"
 
-PATCHES=( "${FILESDIR}/${PV}-overzealous-version-check.patch"
-	  "${FILESDIR}/${PV}-overzealous-verify-mode-check.patch" )
-S="${WORKDIR}/${MY_P}"
+PATCHES=(
+	"${FILESDIR}"/${PV}-overzealous-version-check.patch
+	"${FILESDIR}"/${PV}-overzealous-verify-mode-check.patch
+)
 
 src_install() {
 	dobin sendEmail
-	dodoc CHANGELOG  README  TODO
+	dodoc CHANGELOG README TODO
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-mail/sendEmail/, net-mail/sendEmail/files/
@ 2025-05-11  0:18 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-05-11  0:18 UTC (permalink / raw
  To: gentoo-commits

commit:     dfa22a8d91ee529cd68dfab03f91c73c8cf8ad22
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 00:16:16 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 11 00:17:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfa22a8d

net-mail/sendEmail: fix runtime w/ newer OpenSSL; verify TLS certs

* Crank up TLSv1 -> TLSv3 to support newer OpenSSL (bug #954329, similar to
  previous bug #698322)

* Verify TLS certs (https://bugs.debian.org/1041517)

Bug: https://bugs.debian.org/1041517
Bug: https://bugs.gentoo.org/698322
Closes: https://bugs.gentoo.org/954329
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/sendEmail/files/1.56-openssl-3.patch   | 12 +++++++++
 net-mail/sendEmail/files/1.56-verify-mode.patch | 16 ++++++++++++
 net-mail/sendEmail/sendEmail-1.56-r4.ebuild     | 33 +++++++++++++++++++++++++
 3 files changed, 61 insertions(+)

diff --git a/net-mail/sendEmail/files/1.56-openssl-3.patch b/net-mail/sendEmail/files/1.56-openssl-3.patch
new file mode 100644
index 000000000000..827c6150dc66
--- /dev/null
+++ b/net-mail/sendEmail/files/1.56-openssl-3.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/954329 (previously https://bugs.gentoo.org/698322)
+--- a/sendEmail
++++ b/sendEmail
+@@ -1903,7 +1903,7 @@
+     if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
+         printmsg("DEBUG => Starting TLS", 2);
+         if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); }
+-        if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1', SSL_verify_mode => 0x00)) {
++        if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1_3', SSL_verify_mode => 0x00)) {
+             quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1);
+         }
+         printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);

diff --git a/net-mail/sendEmail/files/1.56-verify-mode.patch b/net-mail/sendEmail/files/1.56-verify-mode.patch
new file mode 100644
index 000000000000..12379d8f0c5a
--- /dev/null
+++ b/net-mail/sendEmail/files/1.56-verify-mode.patch
@@ -0,0 +1,16 @@
+https://sources.debian.org/patches/sendemail/1.56-5.2/fix_tls_hostname_verification.patch/
+https://bugs.debian.org/1041517
+--- a/sendEmail
++++ b/sendEmail
+@@ -1903,7 +1903,10 @@ else {
+     if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
+         printmsg("DEBUG => Starting TLS", 2);
+         if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); }
+-        if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1_3', SSL_verify_mode => 0x00)) {
++        if (! IO::Socket::SSL->start_SSL($SERVER,
++		SSL_version => 'TLSv1_3',
++		SSL_verifycn_scheme => 'smtp',
++		SSL_verifycn_name => $conf{'server'})) {
+             quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1);
+         }
+         printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);

diff --git a/net-mail/sendEmail/sendEmail-1.56-r4.ebuild b/net-mail/sendEmail/sendEmail-1.56-r4.ebuild
new file mode 100644
index 000000000000..9409e3943605
--- /dev/null
+++ b/net-mail/sendEmail/sendEmail-1.56-r4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="Command line based, SMTP email agent"
+HOMEPAGE="http://caspian.dotconf.net/menu/Software/SendEmail/"
+SRC_URI="http://caspian.dotconf.net/menu/Software/SendEmail/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ssl"
+
+RDEPEND="
+	dev-lang/perl
+	ssl? ( dev-perl/IO-Socket-SSL )
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PV}-overzealous-version-check.patch
+	"${FILESDIR}"/${PV}-overzealous-verify-mode-check.patch
+	"${FILESDIR}"/${PV}-openssl-1.1.patch
+	"${FILESDIR}"/${PV}-openssl-3.patch
+	"${FILESDIR}"/${PV}-verify-mode.patch
+)
+
+src_install() {
+	dobin sendEmail
+	dodoc CHANGELOG README TODO
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-11  0:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-11  0:18 [gentoo-commits] repo/gentoo:master commit in: net-mail/sendEmail/, net-mail/sendEmail/files/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2021-03-30 21:45 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox