ddclient: minor packaging cleanups

This commit is contained in:
Peter Hoeg 2017-08-13 21:45:25 +08:00
parent beec141d84
commit d4f4f418b3

View file

@ -11,31 +11,31 @@ buildPerlPackage rec {
outputs = [ "out" ];
buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 ];
patches = [ ./ddclient-line-buffer-stdout.patch ];
# Use iproute2 instead of ifconfig
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'
substituteInPlace ddclient \
--replace 'in the output of ifconfig' 'in the output of ip addr show' \
--replace 'ifconfig -a' '${iproute}/sbin/ip addr show' \
--replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
'';
installPhase = ''
mkdir -p $out/bin
cp ddclient $out/bin
install -Dm755 ddclient $out/bin/ddclient
'';
# there are no tests distributed with ddclient
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;
homepage = https://sourceforge.net/p/ddclient/wiki/Home/;
license = licenses.gpl2Plus;
# Mostly since `iproute` is Linux only.
platforms = platforms.linux;
platforms = platforms.linux;
};
}