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.
This commit is contained in:
Robert Helgesson
2016-02-20 18:30:36 +01:00
parent c576d1a97b
commit 113106df1b
2 changed files with 15 additions and 20 deletions
+15 -8
View File
@@ -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;
};
}