* [gentoo-commits] repo/gentoo:master commit in: net-mail/smtptools/, net-mail/smtptools/files/
@ 2020-05-28 8:58 Jeroen Roovers
0 siblings, 0 replies; only message in thread
From: Jeroen Roovers @ 2020-05-28 8:58 UTC (permalink / raw
To: gentoo-commits
commit: 5972a103acba7a5780859be4ef41e0311ca08079
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu May 28 08:58:01 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu May 28 08:58:51 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5972a103
net-mail/smtptools: Fix building with CFLAGS=-fno-common
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Closes: https://bugs.gentoo.org/707142
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
.../smtptools/files/smtptools-0.2.3-cleanups.patch | 12 +++++-----
.../files/smtptools-0.2.3-fno-common.patch | 11 +++++++++
net-mail/smtptools/smtptools-0.2.3-r1.ebuild | 28 ++++++++++++++++++++++
3 files changed, 45 insertions(+), 6 deletions(-)
diff --git a/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch b/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch
index 6873cf39025..3ea1d43712a 100644
--- a/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch
+++ b/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch
@@ -1,5 +1,5 @@
---- smtptools/usmtpd.c
-+++ smtptools/usmtpd.c
+--- a/usmtpd.c
++++ b/usmtpd.c
@@ -60,8 +60,8 @@
/* run */ static const char *reminfo;
/* run */ static const char *relayclient;
@@ -41,16 +41,16 @@
if (rblcheck) do_rbl_check(&o);
---- smtptools/relaydb.c
-+++ smtptools/relaydb.c
+--- a/relaydb.c
++++ b/relaydb.c
@@ -1,4 +1,5 @@
#include "config.h"
+#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
---- smtptools/uostr.h
-+++ smtptools/uostr.h
+--- a/uostr.h
++++ b/uostr.h
@@ -1,6 +1,7 @@
#ifndef UOSTR_H
#define UOSTR_H
diff --git a/net-mail/smtptools/files/smtptools-0.2.3-fno-common.patch b/net-mail/smtptools/files/smtptools-0.2.3-fno-common.patch
new file mode 100644
index 00000000000..34435ec7cce
--- /dev/null
+++ b/net-mail/smtptools/files/smtptools-0.2.3-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/uostr.h
++++ b/uostr.h
+@@ -14,7 +14,7 @@
+ uostr_t *uostr_alloc P__((void)); /* mallocs a uostr_t and inits with 0 */
+ void uostr_free P__((uostr_t *)); /* free(uostr_t), after free(uostr_t->data) */
+ void uostr_freedata P__((uostr_t *)); /* free(uostr_t->data) */
+-void (*uostr_xallocfn) P__((const char *)); /* called by x-functions in case of oom */
++extern void (*uostr_xallocfn) P__((const char *)); /* called by x-functions in case of oom */
+ void uostr_xallocerr P__((const char *fn)) UO_ATTRIB_NORET; /* internal function, leave alone */
+
+ /* be careful - if u->data is NULL then u->len and u->size need not to contain any information */
diff --git a/net-mail/smtptools/smtptools-0.2.3-r1.ebuild b/net-mail/smtptools/smtptools-0.2.3-r1.ebuild
new file mode 100644
index 00000000000..4c93c7172b3
--- /dev/null
+++ b/net-mail/smtptools/smtptools-0.2.3-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="A collection of tools to send or receive mails with SMTP"
+HOMEPAGE="https://www.ohse.de/uwe/software/smtptools.html"
+SRC_URI="ftp://ftp.ohse.de/uwe/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~x86"
+
+RDEPEND="!net-mail/qtools"
+PATCHES=(
+ "${FILESDIR}"/${P}-cleanups.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+)
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-autotools.patch
+ mv configure.{in,ac} || die
+ rm acconfig.h || die
+
+ default
+ eautoreconf
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-28 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-28 8:58 [gentoo-commits] repo/gentoo:master commit in: net-mail/smtptools/, net-mail/smtptools/files/ Jeroen Roovers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox