Hello,

I've been using ddclient for a while now, but the most recent update is
quite annoying: it spews error messages everywhere. If run from cron, in
particular, this results in a near-endless amount of useless mail being
sent. This is documented at
https://sourceforge.net/forum/message.php?msg_id=4167772, and fixed by
http://ddclient.svn.sourceforge.net/viewvc/ddclient/trunk/svn/ddclient?r1=43&view=log.

Note that the errors are sent in non-debug mode as well as in debug
mode.

The attached diff incorporates the above fix, thus solving the issue. I
sent this diff to the maintainer first, who asked me to try to get it
committed.

                Joachim

diff -Nurd /usr/ports/net/ddclient/Makefile 
/usr/ports/mystuff/net/ddclient/Makefile
--- /usr/ports/net/ddclient/Makefile    Fri Mar 23 11:48:02 2007
+++ /usr/ports/mystuff/net/ddclient/Makefile    Mon Apr 23 01:34:14 2007
@@ -3,6 +3,7 @@
 COMMENT=               "Dynamic DNS service update client"
 
 DISTNAME=              ddclient-3.7.1
+PKGNAME=               ${DISTNAME}p0
 CATEGORIES=            net
 
 HOMEPAGE=              http://ddclient.sourceforge.net/
diff -Nurd /usr/ports/net/ddclient/patches/patch-ddclient 
/usr/ports/mystuff/net/ddclient/patches/patch-ddclient
--- /usr/ports/net/ddclient/patches/patch-ddclient      Thu Jan  1 01:00:00 1970
+++ /usr/ports/mystuff/net/ddclient/patches/patch-ddclient      Mon Apr 23 
01:36:59 2007
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- ddclient.orig      Mon Apr 23 01:34:19 2007
++++ ddclient   Mon Apr 23 01:36:50 2007
+@@ -1656,8 +1656,8 @@ sub geturl {
+     $url    =~ s%^[^/]*/%%;
+  
+     debug("server = $server");
+-    debug("opt(fw = ",opt('fw'));
+-    debug("glo fw = $globals{'fw'}");
++    opt('fw') && debug("opt(fw = ",opt('fw'),")");
++    $globals{'fw'} && debug("glo fw = $globals{'fw'}"); 
+     #if ( $globals{'ssl'} and $server ne $globals{'fw'} ) {
+     ## always omit SSL for connections to local router
+     if ( $globals{'ssl'} and (caller(1))[3] ne 'main::get_ip' ) {

-- 
TFMotD: rc.shutdown (8) - command script run at system shutdown

Reply via email to