forked from mirrors/nixpkgs
ddclient: 3.8.3 -> 3.9.0
This release fixes cloudflare protocol usage by switching to a new api version. See release notes: https://sourceforge.net/p/ddclient/news/2018/08/ddclient-390-released. Partially fixes #26691.
This commit is contained in:
parent
24ab7035a8
commit
6ccc6c7cd1
|
@ -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;
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue