commit:     fc7d0c675be5bbda0fb47b3cac3ca39049ab0c16
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 14 05:43:09 2017 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Jan 14 06:32:09 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc7d0c67

net-dns/updatedd: new revision fixing the DYNDNSHOST for OVH.

Maciej S. Szmigiero submitted this patch which fixes updatedd on
OVH. It simply updates the hostname used to avoid a 302 redirect that
confuses updatedd.

Gentoo-Bug: 605624

Package-Manager: portage-2.3.0

 net-dns/updatedd/files/fix-ovh-DYNDNSHOST.patch              | 11 +++++++++++
 .../{updatedd-2.6-r1.ebuild => updatedd-2.6-r2.ebuild}       | 12 ++++++------
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/net-dns/updatedd/files/fix-ovh-DYNDNSHOST.patch 
b/net-dns/updatedd/files/fix-ovh-DYNDNSHOST.patch
new file mode 100644
index 00000000..f8f6174
--- /dev/null
+++ b/net-dns/updatedd/files/fix-ovh-DYNDNSHOST.patch
@@ -0,0 +1,11 @@
+--- a/src/plugins/libovh.h     2006-09-07 22:32:59.000000000 +0200
++++ b/src/plugins/libovh.h     2013-01-20 13:48:37.162920947 +0100
+@@ -21,7 +21,7 @@
+ 
+ #include <ret_codes.h>
+ 
+-#define DYNDNSHOST    "ovh.com"
++#define DYNDNSHOST    "www.ovh.com"
+ #define PORT          80
+ 
+ #define BUFSIZE               512

diff --git a/net-dns/updatedd/updatedd-2.6-r1.ebuild 
b/net-dns/updatedd/updatedd-2.6-r2.ebuild
similarity index 71%
rename from net-dns/updatedd/updatedd-2.6-r1.ebuild
rename to net-dns/updatedd/updatedd-2.6-r2.ebuild
index 4605c11..1553365 100644
--- a/net-dns/updatedd/updatedd-2.6-r1.ebuild
+++ b/net-dns/updatedd/updatedd-2.6-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -17,10 +17,10 @@ IUSE=""
 RDEPEND=""
 DEPEND=""
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-options.patch
-       default
-}
+PATCHES=(
+       "${FILESDIR}/${P}-options.patch"
+       "${FILESDIR}/fix-ovh-DYNDNSHOST.patch"
+)
 
 src_configure() {
        econf --disable-static
@@ -28,6 +28,6 @@ src_configure() {
 
 src_install() {
        default
-       mv "${D}"/usr/share/doc/updatedd "${D}"/usr/share/doc/${PF}
+       mv "${D}/usr/share/doc/updatedd" "${D}/usr/share/doc/${PF}" || die
        prune_libtool_files
 }

Reply via email to