public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/updatedd/, net-dns/updatedd/files/
Date: Tue, 30 Mar 2021 02:18:03 +0000 (UTC)	[thread overview]
Message-ID: <1617070573.2b3b0bac1a60894fe8d1d5b2d19b0c14bdc6d692.mjo@gentoo> (raw)

commit:     2b3b0bac1a60894fe8d1d5b2d19b0c14bdc6d692
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 30 02:16:13 2021 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Mar 30 02:16:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b3b0bac

net-dns/updatedd: new revision to fix OVH support.

Closes: https://bugs.gentoo.org/777423
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 net-dns/updatedd/files/fix-ovh-support.patch | 70 ++++++++++++++++++++++++++++
 net-dns/updatedd/updatedd-2.6-r6.ebuild      | 29 ++++++++++++
 2 files changed, 99 insertions(+)

diff --git a/net-dns/updatedd/files/fix-ovh-support.patch b/net-dns/updatedd/files/fix-ovh-support.patch
new file mode 100644
index 00000000000..da9e64d9085
--- /dev/null
+++ b/net-dns/updatedd/files/fix-ovh-support.patch
@@ -0,0 +1,70 @@
+https://bugs.gentoo.org/777423
+
+--- a/src/plugins/libovh.c
++++ b/src/plugins/libovh.c
+@@ -181,6 +181,7 @@
+ 
+ 	char *b64user;
+ 	char message[BUFLEN];
++	size_t pos, towrite;
+ 
+ 	if(strlen(args->login) > 128) {
+ 		ret_msg(NONE, "username is too long");
+@@ -220,10 +221,18 @@
+ 		    "\n--------------------------------------\n"
+ 		    "%s--------------------------------------\n\n",
+                     message);
+-	
+-	if(write(s, message, strlen(message)) == -1) {
+-		ret_msg(PERR, "write() failed");
+-		return RET_WARNING;
++
++	for (pos = 0, towrite = strlen(message); towrite > 0; ) {
++		ssize_t ret;
++
++		ret = write(s, message + pos, towrite - pos);
++		if(ret <= 0) {
++			ret_msg(PERR, "write() failed");
++			return RET_WARNING;
++		}
++
++		pos += ret;
++		towrite -= ret;
+ 	}
+ 
+ 	free(b64user);
+@@ -236,13 +245,22 @@
+ {
+ 
+ 	int n;
+-	char server_msg[BUFSIZE], *ptr;
++	char server_msg[BUFLEN], *ptr;
+ 
+ 	/* get server_msg */
+ 	(void)memset(server_msg, 0, sizeof(server_msg));
+-	if(read(s, server_msg, sizeof(server_msg) - 1) < 0) {
+-		ret_msg(PERR, "read() failed");
+-		return RET_WARNING;
++
++	for (ptr = server_msg; ptr < &server_msg[BUFLEN]; ) {
++		ssize_t ret;
++
++		ret = read(s, ptr, &server_msg[BUFLEN] - ptr);
++		if (ret < 0) {
++			ret_msg(PERR, "read() failed");
++			return RET_WARNING;
++		} else if (ret == 0)
++			break;
++
++		ptr += ret;
+ 	}
+ 
+ 	print_debug("\n\nServer message:"
+@@ -267,6 +285,7 @@
+ 				}
+ 			}
+ 		}
++		ret_msg(NONE, "unknown server response");
+ 	} else if(strstr(server_msg, "401 Authorization Required")) {
+ 		ret_msg(NONE, "wrong username or password");
+ 	} else {

diff --git a/net-dns/updatedd/updatedd-2.6-r6.ebuild b/net-dns/updatedd/updatedd-2.6-r6.ebuild
new file mode 100644
index 00000000000..d352c43644a
--- /dev/null
+++ b/net-dns/updatedd/updatedd-2.6-r6.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Dynamic DNS client with plugins for several dynamic dns services"
+HOMEPAGE="https://savannah.nongnu.org/projects/updatedd/"
+SRC_URI="https://savannah.nongnu.org/download/updatedd/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+	dev-perl/IO-Socket-Timeout"
+
+PATCHES=(
+	"${FILESDIR}/${P}-options.patch"
+	"${FILESDIR}/fix-ovh-DYNDNSHOST.patch"
+	"${FILESDIR}/respect-docdir.patch"
+	"${FILESDIR}/set-socket-timeouts-for-ipserv.patch"
+	"${FILESDIR}/fix-ovh-support.patch"
+)
+
+src_configure() {
+	econf --disable-static
+}


             reply	other threads:[~2021-03-30  2:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30  2:18 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-14 21:54 [gentoo-commits] repo/gentoo:master commit in: net-dns/updatedd/, net-dns/updatedd/files/ Michael Orlitzky
2017-01-14  6:32 Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617070573.2b3b0bac1a60894fe8d1d5b2d19b0c14bdc6d692.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox