mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
ddclient: minor packaging cleanups
This commit is contained in:
parent
beec141d84
commit
d4f4f418b3
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user