Merge pull request #51487 from uvNikita/ddclient/upgrade

ddclient: 3.8.3 -> 3.9.0
This commit is contained in:
Renaud 2019-01-03 20:42:28 +01:00 committed by GitHub
commit e767e9b678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 25 deletions

View file

@ -1,20 +0,0 @@
diff -u ddclient-3.8.1/ddclient ddclient-3.8.1.patched/ddclient
--- ddclient-3.8.1/ddclient 2011-07-11 23:04:21.000000000 +0200
+++ ddclient-3.8.1.patched/ddclient 2012-11-08 11:52:31.930647236 +0100
@@ -19,6 +19,7 @@ use strict;
use Getopt::Long;
use Sys::Hostname;
use IO::Socket;
+use IO::Handle qw( );
my ($VERSION) = q$Revision: 157 $ =~ /(\d+)/;
@@ -675,7 +676,7 @@ $SIG{'TERM'} = sub { $caught_term = 1; };
$SIG{'KILL'} = sub { $caught_kill = 1; };
# don't fork() if foreground or force is on
if (opt('foreground') || opt('force')) {
- ;
+ STDOUT->autoflush(1);
} elsif (opt('daemon')) {
$SIG{'CHLD'} = 'IGNORE';
my $pid = fork;

View file

@ -2,19 +2,17 @@
perlPackages.buildPerlPackage rec {
name = "ddclient-${version}";
version = "3.8.3";
version = "3.9.0";
src = fetchurl {
url = "mirror://sourceforge/ddclient/${name}.tar.gz";
sha256 = "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy";
sha256 = "0fwyhab8yga2yi1kdfkbqxa83wxhwpagmj1w1mwkg2iffh1fjjlw";
};
# perl packages by default get devdoc which isn't present
outputs = [ "out" ];
buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 ];
patches = [ ./ddclient-line-buffer-stdout.patch ];
buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 DataValidateIP JSONPP ];
# Use iproute2 instead of ifconfig
preConfigure = ''