ddclient: minor packaging cleanups
This commit is contained in:
parent
beec141d84
commit
d4f4f418b3
@ -11,31 +11,31 @@ buildPerlPackage rec {
|
|||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
buildInputs = [ perlPackages.IOSocketSSL perlPackages.DigestSHA1 ];
|
buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 ];
|
||||||
|
|
||||||
patches = [ ./ddclient-line-buffer-stdout.patch ];
|
patches = [ ./ddclient-line-buffer-stdout.patch ];
|
||||||
|
|
||||||
# Use iproute2 instead of ifconfig
|
# Use iproute2 instead of ifconfig
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
touch Makefile.PL
|
touch Makefile.PL
|
||||||
substituteInPlace ddclient --replace 'in the output of ifconfig' 'in the output of ip addr show'
|
substituteInPlace ddclient \
|
||||||
substituteInPlace ddclient --replace 'ifconfig -a' '${iproute}/sbin/ip addr show'
|
--replace 'in the output of ifconfig' 'in the output of ip addr show' \
|
||||||
substituteInPlace ddclient --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
|
--replace 'ifconfig -a' '${iproute}/sbin/ip addr show' \
|
||||||
|
--replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
install -Dm755 ddclient $out/bin/ddclient
|
||||||
cp ddclient $out/bin
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# there are no tests distributed with ddclient
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://sourceforge.net/p/ddclient/wiki/Home/;
|
|
||||||
description = "Client for updating dynamic DNS service entries";
|
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.
|
# Mostly since `iproute` is Linux only.
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user