summary refs log tree commit diff
path: root/pkgs/tools/networking/ddclient
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2016-02-20 12:14:29 +0100
committerRobert Helgesson <robert@rycee.net>2016-02-20 18:30:36 +0100
commit113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d (patch)
tree83a376ab7851fc22c639e3c1c8de5ea3fe68b098 /pkgs/tools/networking/ddclient
parentc576d1a97bb7aa6165c6e9f50bd21a22bdbd56f9 (diff)
downloadnixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.tar
nixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.tar.gz
nixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.tar.bz2
nixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.tar.lz
nixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.tar.xz
nixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.tar.zst
nixpkgs-113106df1b8e2bbb1ba6cb8b11b36cd7be3e393d.zip
ddclient: 3.8.2 -> 3.8.3
Also remove patch for issue that has been fixed upstream, add simple
meta section, and minor other cleanups.
Diffstat (limited to 'pkgs/tools/networking/ddclient')
-rw-r--r--pkgs/tools/networking/ddclient/ddclient-foreground.patch12
-rw-r--r--pkgs/tools/networking/ddclient/default.nix23
2 files changed, 15 insertions, 20 deletions
diff --git a/pkgs/tools/networking/ddclient/ddclient-foreground.patch b/pkgs/tools/networking/ddclient/ddclient-foreground.patch
deleted file mode 100644
index 1ae3621f507..00000000000
--- a/pkgs/tools/networking/ddclient/ddclient-foreground.patch
+++ /dev/null
@@ -1,12 +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
-@@ -574,7 +574,7 @@
-     "usage: ${program} [options]",
-     "options are:",
-     [ "daemon",      "=s", "-daemon delay         : run as a daemon, specify delay as an interval." ],
--+     [ "foreground",  "!",  "-foreground           : do not fork" ],
-+    [ "foreground",  "!",  "-foreground           : do not fork" ],
-     [ "proxy",       "=s", "-proxy host           : use 'host' as the HTTP proxy" ],
-     [ "server",      "=s", "-server host          : update DNS information on 'host'" ],
-     [ "protocol",    "=s", "-protocol type        : update protocol used" ],
diff --git a/pkgs/tools/networking/ddclient/default.nix b/pkgs/tools/networking/ddclient/default.nix
index 41688d84351..1664fbf3707 100644
--- a/pkgs/tools/networking/ddclient/default.nix
+++ b/pkgs/tools/networking/ddclient/default.nix
@@ -1,24 +1,25 @@
-{buildPerlPackage, fetchurl, perlPackages, iproute}:
+{ stdenv, buildPerlPackage, fetchurl, perlPackages, iproute }:
 
-buildPerlPackage {
-  name = "ddclient-3.8.2";
+buildPerlPackage rec {
+  name = "ddclient-${version}";
+  version = "3.8.3";
 
   src = fetchurl {
-    url = mirror://sourceforge/ddclient/ddclient-3.8.2.tar.gz ;
-    sha256 = "17mcdqxcwa6c05m8xhxi4r37j4qvbp3wgbpvzqgmrmgwava5wcrw";
+    url = "mirror://sourceforge/ddclient/${name}.tar.gz";
+    sha256 = "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy";
   };
 
   buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
 
-  patches = [ ./ddclient-foreground.patch ./ddclient-line-buffer-stdout.patch ];
+  patches = [ ./ddclient-line-buffer-stdout.patch ];
 
   # Use iproute2 instead of ifconfig
-  preConfigure = '' 
+  preConfigure = ''
     touch Makefile.PL
     substituteInPlace ddclient --replace 'in the output of ifconfig' 'in the output of ip addr show'
     substituteInPlace ddclient --replace 'ifconfig -a' '${iproute}/sbin/ip addr show'
     substituteInPlace ddclient --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
-  ''; 
+  '';
 
   installPhase = ''
     mkdir -p $out/bin
@@ -26,4 +27,10 @@ buildPerlPackage {
   '';
 
   doCheck = false;
+
+  meta = with stdenv.lib; {
+    homepage = https://sourceforge.net/p/ddclient/wiki/Home/;
+    description = "Client for updating dynamic DNS service entries";
+    license = licenses.gpl2Plus;
+  };
 }