net-dns/updatedd: new revision fixing the DYNDNSHOST for OVH.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 14 Jan 2017 05:43:09 +0000 (00:43 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 14 Jan 2017 06:32:09 +0000 (01:32 -0500)
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 [new file with mode: 0644]
net-dns/updatedd/updatedd-2.6-r2.ebuild [moved from net-dns/updatedd/updatedd-2.6-r1.ebuild with 71% similarity]

diff --git a/net-dns/updatedd/files/fix-ovh-DYNDNSHOST.patch b/net-dns/updatedd/files/fix-ovh-DYNDNSHOST.patch
new file mode 100644 (file)
index 0000000..f8f6174
--- /dev/null
@@ -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
similarity index 71%
rename from net-dns/updatedd/updatedd-2.6-r1.ebuild
rename to net-dns/updatedd/updatedd-2.6-r2.ebuild
index 4605c11b58d3dbfa8b13aa92d9ee829227d7e6da..1553365661647e74de02c0a5ca6c62f7346c47f1 100644 (file)
@@ -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
 }