From nobody@FreeBSD.org  Tue Jul 26 03:10:35 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E3C2E1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 03:10:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D276C8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 03:10:35 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6Q3AZpl011457
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 03:10:35 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6Q3AZCp011456;
	Tue, 26 Jul 2011 03:10:35 GMT
	(envelope-from nobody)
Message-Id: <201107260310.p6Q3AZCp011456@red.freebsd.org>
Date: Tue, 26 Jul 2011 03:10:35 GMT
From: Rob Farmer <rfarmer@predatorlabs.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [maintainer] [patch] dns/ddclient Update to 1.8.1
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159199
>Category:       ports
>Synopsis:       [maintainer] [patch] dns/ddclient Update to 1.8.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    zi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 26 03:20:06 UTC 2011
>Closed-Date:    Thu Jul 28 22:22:01 UTC 2011
>Last-Modified:  Thu Jul 28 22:22:01 UTC 2011
>Originator:     Rob Farmer
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD turquoise.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r224302: Sun Jul 24 19:44:08 PDT 2011     rfarmer@turquoise.predatorlabs.net:/usr/obj/usr/src/sys/TURQUOISE  amd64
>Description:
Update to 1.8.1

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/dns/ddclient/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	13 Mar 2011 14:53:21 -0000	1.27
+++ Makefile	26 Jul 2011 02:33:50 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	ddclient
-PORTVERSION=	3.8.0
-PORTREVISION=	2
+PORTVERSION=	3.8.1
 CATEGORIES=	dns
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/dns/ddclient/distinfo,v
retrieving revision 1.18
diff -u -r1.18 distinfo
--- distinfo	10 Mar 2011 00:10:24 -0000	1.18
+++ distinfo	26 Jul 2011 02:35:14 -0000
@@ -1,2 +1,2 @@
-SHA256 (ddclient-3.8.0.tar.bz2) = 910dc49bd4b2920fad6c4afce03805de5a4cffd0db5f3d902c5417353420aef4
-SIZE (ddclient-3.8.0.tar.bz2) = 41701
+SHA256 (ddclient-3.8.1.tar.bz2) = 77a82668a53fdbed1e05ad6febe6dbefb093e3922afb20b993d4ad9ee868258f
+SIZE (ddclient-3.8.1.tar.bz2) = 43711
Index: files/patch-ddclient
===================================================================
RCS file: /home/ncvs/ports/dns/ddclient/files/patch-ddclient,v
retrieving revision 1.3
diff -u -r1.3 patch-ddclient
--- files/patch-ddclient	17 Aug 2010 19:22:56 -0000	1.3
+++ files/patch-ddclient	26 Jul 2011 02:41:54 -0000
@@ -1,21 +1,21 @@
---- ./ddclient.orig	2009-01-27 20:14:02.000000000 +0100
-+++ ./ddclient	2010-08-17 20:13:00.000000000 +0200
+--- ./ddclient.orig	2011-07-25 19:41:39.000000000 -0700
++++ ./ddclient	2011-07-25 19:41:48.000000000 -0700
 @@ -1,4 +1,3 @@
 -#!/usr/bin/perl -w
  #!/usr/local/bin/perl -w
  ######################################################################
- # $Id: ddclient 106 2008-12-04 18:05:23Z wimpunk $
+ # $Id: ddclient 130 2011-07-11 21:02:07Z wimpunk $
 @@ -19,6 +18,7 @@
  use Getopt::Long;
  use Sys::Hostname;
  use IO::Socket;
 +use POSIX 'setsid';
  
- my $version  = "3.8.0";
- my $programd  = $0; 
-@@ -625,6 +625,9 @@
- $SIG{'KILL'}   = sub { $caught_kill = 1; };
- if (opt('daemon') && !opt('force')) {
+ my ($VERSION) = q$Revision: 130 $ =~ /(\d+)/;
+ 
+@@ -668,6 +668,9 @@
+     ;
+ } elsif (opt('daemon')) {
      $SIG{'CHLD'}   = 'IGNORE';
 +    chdir '/';
 +    open(STDIN,  "</dev/null");
@@ -23,35 +23,34 @@
      my $pid = fork;
      if ($pid < 0) {
  	print STDERR "${program}: can not fork ($!)\n";
-@@ -632,11 +635,10 @@
+@@ -675,10 +678,9 @@
      } elsif ($pid) {
  	exit 0;
      }
 +    setsid;
      $SIG{'CHLD'}   = 'DEFAULT';
-     $opt{'syslog'} = 1;
 -    open(STDOUT, ">/dev/null");
 -    open(STDERR, ">/dev/null");
 -    open(STDIN,  "</dev/null");
 +    open(STDERR, "&STDOUT");
- 
-     write_pid();
  }
-@@ -1404,17 +1406,17 @@
+ 
+ # write out the pid file if we're daemon'ized
+@@ -1463,17 +1465,17 @@
      ## execute the command.
      local *FD;
      if (! open(FD, $cmd)) {
 -	printf STDERR "$program: cannot execute command %s.\n", $cmd;
-+    warning("$program: cannot execute command %s.\n", $cmd);
++	warning("$program: cannot execute command %s.\n", $cmd);
  
      } elsif ($stdin && (! print FD "$stdin\n")) {
 -	printf STDERR "$program: failed writting to %s.\n", $cmd;
-+    warning("$program: failed writing to %s.\n", $cmd);
++	warning("$program: failed writing to %s.\n", $cmd);
  	close(FD);
  
      } elsif (! close(FD)) {
 -	printf STDERR "$program: failed closing %s.($@)\n", $cmd;
-+    warning("$program: failed closing %s.($@)\n", $cmd);
++	warning("$program: failed closing %s.($@)\n", $cmd);
  
      } elsif (opt('exec') && $?) {
 -	printf STDERR "$program: failed %s. ($@)\n", $cmd;
Index: files/patch-ticket2
===================================================================
RCS file: files/patch-ticket2
diff -N files/patch-ticket2
--- files/patch-ticket2	13 Mar 2011 14:53:21 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
---- ddclient.orig	2011-03-11 00:00:19.394750047 -0800
-+++ ddclient	2011-03-11 00:04:28.967751644 -0800
-@@ -2094,10 +2094,14 @@
-     } elsif (defined($sub) && &$sub($host)) {
- 	$update = 1;
- 
--    } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) ||
--	     ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) ||
--	     ($cache{$host}{'mx'} ne $config{$host}{'mx'}) ||
--	     ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) {
-+    } elsif ((defined($cache{$host}{'static'}) && defined($config{$host}{'static'}) &&
-+	     ($cache{$host}{'static'} ne $config{$host}{'static'})) ||
-+	     (defined($cache{$host}{'wildcard'}) && defined($config{$host}{'wildcard'}) &&
-+	     ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'})) ||
-+	     (defined($cache{$host}{'mx'}) && defined($config{$host}{'mx'}) &&
-+	     ($cache{$host}{'mx'} ne $config{$host}{'mx'})) ||
-+	     (defined($cache{$host}{'backupmx'}) && defined($config{$host}{'backupmx'}) &&
-+	     ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) ) {
- 	info("updating %s because host settings have been changed.", $host);
- 	$update = 1;
- 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->zi 
Responsible-Changed-By: zi 
Responsible-Changed-When: Tue Jul 26 22:33:31 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159199 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159199: commit references a PR
Date: Thu, 28 Jul 2011 21:59:41 +0000 (UTC)

 zi          2011-07-28 21:59:28 UTC
 
   FreeBSD ports repository
 
   Modified files:
     dns/ddclient         Makefile distinfo 
     dns/ddclient/files   patch-ddclient 
   Removed files:
     dns/ddclient/files   patch-ticket2 
   Log:
   Update to 1.8.1 [1]
   Add LICENSE
   
   PR:             ports/159199
   Submitted by:   Rob Farmer <rfarmer@predatorlabs.net> (maintainer) [1]
   Approved by:    tabthorpe (mentor)
   
   Revision  Changes    Path
   1.28      +1 -2      ports/dns/ddclient/Makefile
   1.19      +2 -2      ports/dns/ddclient/distinfo
   1.4       +15 -16    ports/dns/ddclient/files/patch-ddclient
   1.2       +0 -21     ports/dns/ddclient/files/patch-ticket2 (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: zi 
State-Changed-When: Thu Jul 28 22:22:00 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159199 
>Unformatted:
