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