Merge pull request #173384 from SuperSandro2000/ddclient-update
This commit is contained in:
commit
2cf32f976a
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
wrapProgram $out/bin/sieve-connect \
|
wrapProgram $out/bin/sieve-connect \
|
||||||
--prefix PERL5LIB : "${with perlPackages; makePerlPath [
|
--prefix PERL5LIB : "${with perlPackages; makePerlPath [
|
||||||
AuthenSASL Socket6 IOSocketInet6 IOSocketSSL NetSSLeay NetDNS
|
AuthenSASL Socket6 IOSocketINET6 IOSocketSSL NetSSLeay NetDNS
|
||||||
TermReadKey TermReadLineGnu ]}"
|
TermReadKey TermReadLineGnu ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
LWPProtocolHttps
|
LWPProtocolHttps
|
||||||
MozillaCA
|
MozillaCA
|
||||||
CryptSSLeay
|
CryptSSLeay
|
||||||
IOSocketInet6
|
IOSocketINET6
|
||||||
LinuxDistribution
|
LinuxDistribution
|
||||||
JSONPP
|
JSONPP
|
||||||
JSON
|
JSON
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
perlPackages.NetSSLeay
|
perlPackages.NetSSLeay
|
||||||
perlPackages.NetServer
|
perlPackages.NetServer
|
||||||
perlPackages.LogLog4perl
|
perlPackages.LogLog4perl
|
||||||
perlPackages.IOSocketInet6
|
perlPackages.IOSocketINET6
|
||||||
perlPackages.Socket6
|
perlPackages.Socket6
|
||||||
perlPackages.URI
|
perlPackages.URI
|
||||||
perlPackages.DBFile
|
perlPackages.DBFile
|
||||||
@ -126,7 +126,7 @@ stdenv.mkDerivation rec {
|
|||||||
esac
|
esac
|
||||||
wrapProgram "$file" \
|
wrapProgram "$file" \
|
||||||
--set PERL5LIB "$out/${perlPackages.perl.libPrefix}:${with perlPackages; makePerlPath [
|
--set PERL5LIB "$out/${perlPackages.perl.libPrefix}:${with perlPackages; makePerlPath [
|
||||||
LogLog4perl IOSocketInet6 Socket6 URI DBFile DateManip
|
LogLog4perl IOSocketINET6 Socket6 URI DBFile DateManip
|
||||||
HTMLTemplate FileCopyRecursive FCGI NetCIDR NetSNMP NetServer
|
HTMLTemplate FileCopyRecursive FCGI NetCIDR NetSNMP NetServer
|
||||||
ListMoreUtils DBDPg LWP rrdtool
|
ListMoreUtils DBDPg LWP rrdtool
|
||||||
]}"
|
]}"
|
||||||
|
@ -1,48 +1,44 @@
|
|||||||
{ lib, fetchFromGitHub, perlPackages, iproute2, perl }:
|
{ lib, fetchFromGitHub, perlPackages, autoreconfHook, iproute2, perl }:
|
||||||
|
|
||||||
perlPackages.buildPerlPackage rec {
|
perlPackages.buildPerlPackage rec {
|
||||||
pname = "ddclient";
|
pname = "ddclient";
|
||||||
version = "3.9.1";
|
version = "3.10.0";
|
||||||
|
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ddclient";
|
owner = "ddclient";
|
||||||
repo = "ddclient";
|
repo = "ddclient";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0hf377g4j9r9sac75xp17nk2h58mazswz4vkg4g2gl2yyhvzq91w";
|
sha256 = "sha256-wWUkjXwVNZRJR1rXPn3IkDRi9is9vsRuNC/zq8RpB1E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# perl packages by default get devdoc which isn't present
|
postPatch = ''
|
||||||
outputs = [ "out" ];
|
|
||||||
|
|
||||||
buildInputs = with perlPackages; [ IOSocketSSL DigestSHA1 DataValidateIP JSONPP IOSocketInet6 ];
|
|
||||||
|
|
||||||
# Use iproute2 instead of ifconfig
|
|
||||||
preConfigure = ''
|
|
||||||
touch Makefile.PL
|
touch Makefile.PL
|
||||||
substituteInPlace ddclient \
|
|
||||||
--replace 'in the output of ifconfig' 'in the output of ip addr show' \
|
|
||||||
--replace 'ifconfig -a' '${iproute2}/sbin/ip addr show' \
|
|
||||||
--replace 'ifconfig $arg' '${iproute2}/sbin/ip addr show $arg' \
|
|
||||||
--replace '/usr/bin/perl' '${perl}/bin/perl' # Until we get the patchShebangs fixed (issue #55786) we need to patch this manually
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
|
buildInputs = with perlPackages; [ IOSocketINET6 IOSocketSSL JSONPP ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
# patch sheebang ddclient script which only exists after buildPhase
|
||||||
|
preConfigure
|
||||||
install -Dm755 ddclient $out/bin/ddclient
|
install -Dm755 ddclient $out/bin/ddclient
|
||||||
install -Dm644 -t $out/share/doc/ddclient COP* ChangeLog README.* RELEASENOTE
|
install -Dm644 -t $out/share/doc/ddclient COP* README.* ChangeLog.md
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# there are no tests distributed with ddclient
|
# TODO: run upstream tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Client for updating dynamic DNS service entries";
|
description = "Client for updating dynamic DNS service entries";
|
||||||
homepage = "https://ddclient.net/";
|
homepage = "https://ddclient.net/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
# Mostly since `iproute` is Linux only.
|
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
|
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
EncodeIMAPUTF7
|
EncodeIMAPUTF7
|
||||||
FileCopyRecursive
|
FileCopyRecursive
|
||||||
FileTail
|
FileTail
|
||||||
IOSocketInet6
|
IOSocketINET6
|
||||||
IOTee
|
IOTee
|
||||||
JSONWebToken
|
JSONWebToken
|
||||||
LWP
|
LWP
|
||||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
wrapProgram $out/bin/swaks --set PERL5LIB \
|
wrapProgram $out/bin/swaks --set PERL5LIB \
|
||||||
"${with perlPackages; makePerlPath [
|
"${with perlPackages; makePerlPath [
|
||||||
NetSSLeay AuthenSASL NetDNS IOSocketInet6
|
NetSSLeay AuthenSASL NetDNS IOSocketINET6
|
||||||
]}"
|
]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -12242,7 +12242,7 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
IOSocketInet6 = buildPerlModule {
|
IOSocketINET6 = buildPerlModule {
|
||||||
pname = "IO-Socket-INET6";
|
pname = "IO-Socket-INET6";
|
||||||
version = "2.72";
|
version = "2.72";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -27816,7 +27816,7 @@ let
|
|||||||
hash = "sha256-RdIExtrXzZAXYIS/JCe6qM5QNoSlaZ6+sjbk0zvAuoY=";
|
hash = "sha256-RdIExtrXzZAXYIS/JCe6qM5QNoSlaZ6+sjbk0zvAuoY=";
|
||||||
};
|
};
|
||||||
buildInputs = [ PodCoverage TestDifferences TestException TestFatal TestNoWarnings TestPod ];
|
buildInputs = [ PodCoverage TestDifferences TestException TestFatal TestNoWarnings TestPod ];
|
||||||
propagatedBuildInputs = [ ClassAccessor Clone EmailValid FileShareDir FileSlurp IOSocketInet6 ListMoreUtils ModuleFind Moose MooseXSingleton NetIP Readonly TextCSV ZonemasterLDNS libintl-perl ];
|
propagatedBuildInputs = [ ClassAccessor Clone EmailValid FileShareDir FileSlurp IOSocketINET6 ListMoreUtils ModuleFind Moose MooseXSingleton NetIP Readonly TextCSV ZonemasterLDNS libintl-perl ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# disable dnssec test as it fails
|
# disable dnssec test as it fails
|
||||||
@ -27927,6 +27927,7 @@ let
|
|||||||
DistZillaPluginNoTabsTests = self.DistZillaPluginTestNoTabs;
|
DistZillaPluginNoTabsTests = self.DistZillaPluginTestNoTabs;
|
||||||
EmailMIMEModifier = self.EmailMIME;
|
EmailMIMEModifier = self.EmailMIME;
|
||||||
ExtUtilsCommand = self.ExtUtilsMakeMaker;
|
ExtUtilsCommand = self.ExtUtilsMakeMaker;
|
||||||
|
IOSocketInet6 = self.IOSocketINET6;
|
||||||
IOstringy = self.IOStringy;
|
IOstringy = self.IOStringy;
|
||||||
libintl_perl = self.libintl-perl;
|
libintl_perl = self.libintl-perl;
|
||||||
libintlperl = self.libintl-perl;
|
libintlperl = self.libintl-perl;
|
||||||
|
Loading…
Reference in New Issue
Block a user