2012-11-08 16:54:53 +04:00
|
|
|
{buildPerlPackage, fetchurl, perlPackages, iproute}:
|
2009-09-16 15:27:18 +04:00
|
|
|
|
|
|
|
buildPerlPackage {
|
2014-01-13 20:53:23 +04:00
|
|
|
name = "ddclient-3.8.2";
|
2009-09-16 15:27:18 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-13 20:53:23 +04:00
|
|
|
url = mirror://sourceforge/ddclient/ddclient-3.8.2.tar.gz ;
|
|
|
|
sha256 = "17mcdqxcwa6c05m8xhxi4r37j4qvbp3wgbpvzqgmrmgwava5wcrw";
|
2009-09-16 15:27:18 +04:00
|
|
|
};
|
|
|
|
|
2013-11-25 02:02:27 +04:00
|
|
|
buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
|
2012-11-08 16:54:53 +04:00
|
|
|
|
2009-09-16 15:27:18 +04:00
|
|
|
patches = [ ./ddclient-foreground.patch ];
|
|
|
|
|
2012-11-08 16:54:53 +04:00
|
|
|
# Use iproute2 instead of ifconfig
|
2009-09-16 15:27:18 +04:00
|
|
|
preConfigure = ''
|
|
|
|
touch Makefile.PL
|
2012-11-08 16:54:53 +04:00
|
|
|
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'
|
2009-09-16 15:27:18 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/bin
|
2009-09-16 15:27:18 +04:00
|
|
|
cp ddclient $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
}
|