Merge pull request #24053 from Mic92/iana-etc
iana-etc: 2.30 -> 20170317
This commit is contained in:
commit
f19547b7fe
@ -529,7 +529,7 @@
|
|||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
If you see errors similar to <literal>getProtocolByName: does not exist (no such protocol name: tcp)</literal>
|
If you see errors similar to <literal>getProtocolByName: does not exist (no such protocol name: tcp)</literal>
|
||||||
you may need to add <literal>pkgs.iana_etc</literal> to <varname>contents</varname>.
|
you may need to add <literal>pkgs.iana-etc</literal> to <varname>contents</varname>.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
|
@ -178,10 +178,10 @@ in
|
|||||||
|
|
||||||
environment.etc =
|
environment.etc =
|
||||||
{ # /etc/services: TCP/UDP port assignments.
|
{ # /etc/services: TCP/UDP port assignments.
|
||||||
"services".source = pkgs.iana_etc + "/etc/services";
|
"services".source = pkgs.iana-etc + "/etc/services";
|
||||||
|
|
||||||
# /etc/protocols: IP protocol numbers.
|
# /etc/protocols: IP protocol numbers.
|
||||||
"protocols".source = pkgs.iana_etc + "/etc/protocols";
|
"protocols".source = pkgs.iana-etc + "/etc/protocols";
|
||||||
|
|
||||||
# /etc/rpc: RPC program numbers.
|
# /etc/rpc: RPC program numbers.
|
||||||
"rpc".source = pkgs.glibc.out + "/etc/rpc";
|
"rpc".source = pkgs.glibc.out + "/etc/rpc";
|
||||||
|
@ -1,17 +1,21 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "iana-etc-2.30";
|
name = "iana-etc-${version}";
|
||||||
|
version = "20170328";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://sethwklein.net/${name}.tar.bz2";
|
url = "https://github.com/Mic92/iana-etc/releases/download/${version}/iana-etc-${version}.tar.gz";
|
||||||
sha256 = "03gjlg5zlwsdk6qyw3v85l129rna5bpm4m7pzrp864h0n97qg9mr";
|
sha256 = "0c0zgijmh035wan3pvz8ykkmkdbraml4b9kx36b4j1lj9fhgy1yk";
|
||||||
};
|
};
|
||||||
|
|
||||||
preInstall = "installFlags=\"PREFIX=$out\"";
|
installPhase = ''
|
||||||
|
mkdir -p $out/etc
|
||||||
|
cp services protocols $out/etc/
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://sethwklein.net/iana-etc;
|
homepage = https://github.com/Mic92/iana-etc;
|
||||||
description = "IANA protocol and port number assignments (/etc/protocols and /etc/services)";
|
description = "IANA protocol and port number assignments (/etc/protocols and /etc/services)";
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchurl, fetchpatch, tzdata, iana_etc, libcCross
|
{ stdenv, lib, fetchurl, fetchpatch, tzdata, iana-etc, libcCross
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, pcre
|
, pcre
|
||||||
, Security }:
|
, Security }:
|
||||||
@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
|
|||||||
# ParseInLocation fails the test
|
# ParseInLocation fails the test
|
||||||
sed -i '/TestParseInSydney/areturn' src/time/format_test.go
|
sed -i '/TestParseInSydney/areturn' src/time/format_test.go
|
||||||
|
|
||||||
sed -i 's,/etc/protocols,${iana_etc}/etc/protocols,' src/net/lookup_unix.go
|
sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
|
||||||
'' + lib.optionalString stdenv.isLinux ''
|
'' + lib.optionalString stdenv.isLinux ''
|
||||||
sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
|
sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchurl, tzdata, iana_etc, go_bootstrap, runCommand
|
{ stdenv, lib, fetchurl, tzdata, iana-etc, go_bootstrap, runCommand
|
||||||
, perl, which, pkgconfig, patch, fetchpatch
|
, perl, which, pkgconfig, patch, fetchpatch
|
||||||
, pcre
|
, pcre
|
||||||
, Security, Foundation, bash }:
|
, Security, Foundation, bash }:
|
||||||
@ -75,8 +75,8 @@ stdenv.mkDerivation rec {
|
|||||||
# Remove the timezone naming test
|
# Remove the timezone naming test
|
||||||
sed -i '/TestLoadFixed/areturn' src/time/time_test.go
|
sed -i '/TestLoadFixed/areturn' src/time/time_test.go
|
||||||
|
|
||||||
sed -i 's,/etc/protocols,${iana_etc}/etc/protocols,' src/net/lookup_unix.go
|
sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
|
||||||
sed -i 's,/etc/services,${iana_etc}/etc/services,' src/net/port_unix.go
|
sed -i 's,/etc/services,${iana-etc}/etc/services,' src/net/port_unix.go
|
||||||
'' + lib.optionalString stdenv.isLinux ''
|
'' + lib.optionalString stdenv.isLinux ''
|
||||||
sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
|
sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, tzdata, iana_etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, fetchpatch
|
, perl, which, pkgconfig, patch, fetchpatch
|
||||||
, pcre, cacert
|
, pcre, cacert
|
||||||
, Security, Foundation, bash }:
|
, Security, Foundation, bash }:
|
||||||
@ -69,8 +69,8 @@ stdenv.mkDerivation rec {
|
|||||||
# Remove the timezone naming test
|
# Remove the timezone naming test
|
||||||
sed -i '/TestLoadFixed/areturn' src/time/time_test.go
|
sed -i '/TestLoadFixed/areturn' src/time/time_test.go
|
||||||
|
|
||||||
sed -i 's,/etc/protocols,${iana_etc}/etc/protocols,' src/net/lookup_unix.go
|
sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
|
||||||
sed -i 's,/etc/services,${iana_etc}/etc/services,' src/net/port_unix.go
|
sed -i 's,/etc/services,${iana-etc}/etc/services,' src/net/port_unix.go
|
||||||
|
|
||||||
# Disable cgo lookup tests not works, they depend on resolver
|
# Disable cgo lookup tests not works, they depend on resolver
|
||||||
rm src/net/cgo_unix_test.go
|
rm src/net/cgo_unix_test.go
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, tzdata, iana_etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, fetchpatch
|
, perl, which, pkgconfig, patch, fetchpatch
|
||||||
, pcre, cacert
|
, pcre, cacert
|
||||||
, Security, Foundation, bash }:
|
, Security, Foundation, bash }:
|
||||||
@ -71,8 +71,8 @@ stdenv.mkDerivation rec {
|
|||||||
# Remove the timezone naming test
|
# Remove the timezone naming test
|
||||||
sed -i '/TestLoadFixed/areturn' src/time/time_test.go
|
sed -i '/TestLoadFixed/areturn' src/time/time_test.go
|
||||||
|
|
||||||
sed -i 's,/etc/protocols,${iana_etc}/etc/protocols,' src/net/lookup_unix.go
|
sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
|
||||||
sed -i 's,/etc/services,${iana_etc}/etc/services,' src/net/port_unix.go
|
sed -i 's,/etc/services,${iana-etc}/etc/services,' src/net/port_unix.go
|
||||||
|
|
||||||
# Disable cgo lookup tests not works, they depend on resolver
|
# Disable cgo lookup tests not works, they depend on resolver
|
||||||
rm src/net/cgo_unix_test.go
|
rm src/net/cgo_unix_test.go
|
||||||
|
@ -61,6 +61,7 @@ doNotDisplayTwice rec {
|
|||||||
gupnptools = gupnp-tools; # added 2015-12-19
|
gupnptools = gupnp-tools; # added 2015-12-19
|
||||||
gnustep-make = gnustep.make; # added 2016-7-6
|
gnustep-make = gnustep.make; # added 2016-7-6
|
||||||
htmlTidy = html-tidy; # added 2014-12-06
|
htmlTidy = html-tidy; # added 2014-12-06
|
||||||
|
iana_etc = iana-etc; # added 2017-03-08
|
||||||
inherit (haskell.compiler) jhc uhc; # 2015-05-15
|
inherit (haskell.compiler) jhc uhc; # 2015-05-15
|
||||||
inotifyTools = inotify-tools;
|
inotifyTools = inotify-tools;
|
||||||
joseki = apache-jena-fuseki; # added 2016-02-28
|
joseki = apache-jena-fuseki; # added 2016-02-28
|
||||||
|
@ -12564,7 +12564,7 @@ with pkgs;
|
|||||||
inherit (callPackages ../data/fonts/gdouros { })
|
inherit (callPackages ../data/fonts/gdouros { })
|
||||||
symbola aegyptus akkadian anatolian maya unidings musica analecta;
|
symbola aegyptus akkadian anatolian maya unidings musica analecta;
|
||||||
|
|
||||||
iana_etc = callPackage ../data/misc/iana-etc { };
|
iana-etc = callPackage ../data/misc/iana-etc { };
|
||||||
|
|
||||||
poppler_data = callPackage ../data/misc/poppler-data { };
|
poppler_data = callPackage ../data/misc/poppler-data { };
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
|
|||||||
hdparm = linux;
|
hdparm = linux;
|
||||||
hello = all;
|
hello = all;
|
||||||
host = linux;
|
host = linux;
|
||||||
iana_etc = linux;
|
iana-etc = linux;
|
||||||
icewm = linux;
|
icewm = linux;
|
||||||
idutils = all;
|
idutils = all;
|
||||||
inetutils = linux;
|
inetutils = linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user