From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5BB2A1382C5 for ; Tue, 30 Mar 2021 02:18:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A40FFE085A; Tue, 30 Mar 2021 02:18:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B1ACE085A for ; Tue, 30 Mar 2021 02:18:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A5CA0340C08 for ; Tue, 30 Mar 2021 02:18:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11CCD632 for ; Tue, 30 Mar 2021 02:18:03 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1617070573.2b3b0bac1a60894fe8d1d5b2d19b0c14bdc6d692.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/updatedd/, net-dns/updatedd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/updatedd/files/fix-ovh-support.patch net-dns/updatedd/updatedd-2.6-r6.ebuild X-VCS-Directories: net-dns/updatedd/files/ net-dns/updatedd/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 2b3b0bac1a60894fe8d1d5b2d19b0c14bdc6d692 X-VCS-Branch: master Date: Tue, 30 Mar 2021 02:18:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 29ad5eb0-1928-465e-9b64-a22aef922cb3 X-Archives-Hash: 72b14c62b1efca645e2c9322f664d58a commit: 2b3b0bac1a60894fe8d1d5b2d19b0c14bdc6d692 Author: Michael Orlitzky gentoo org> AuthorDate: Tue Mar 30 02:16:13 2021 +0000 Commit: Michael Orlitzky gentoo 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 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 +}