lol
at 16.09-beta 42 lines 1.6 kB view raw
1{ fetchurl, stdenv, autoreconfHook, libkrb5 }: 2 3stdenv.mkDerivation rec { 4 name = "libtirpc-1.0.1"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/libtirpc/${name}.tar.bz2"; 8 sha256 = "17mqrdgsgp9m92pmq7bvr119svdg753prqqxmg4cnz5y657rfmji"; 9 }; 10 11 nativeBuildInputs = [ autoreconfHook ]; 12 propagatedBuildInputs = [ libkrb5 ]; 13 14 preConfigure = '' 15 sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h 16 ''; 17 18 preInstall = "mkdir -p $out/etc"; 19 20 doCheck = true; 21 22 meta = with stdenv.lib; { 23 homepage = "http://sourceforge.net/projects/libtirpc/"; 24 description = "The transport-independent Sun RPC implementation (TI-RPC)"; 25 license = licenses.bsd3; 26 platforms = platforms.linux; 27 maintainers = with maintainers; [ abbradar ]; 28 longDescription = '' 29 Currently, NFS commands use the SunRPC routines provided by the 30 glibc. These routines do not support IPv6 addresses. Ulrich 31 Drepper, who is the maintainer of the glibc, refuses any change in 32 the glibc concerning the RPC. He wants the RPC to become a separate 33 library. Other OS (NetBSD, FreeBSD, Solarix, HP-UX, AIX) have 34 migrated their SunRPC library to a TI-RPC (Transport Independent 35 RPC) implementation. This implementation allows the support of 36 other transports than UDP and TCP over IPv4. FreeBSD provides a 37 TI-RPC library ported from NetBSD with improvements. This library 38 already supports IPv6. So, the FreeBSD release 5.2.1 TI-RPC has 39 been ported to replace the SunRPC of the glibc. 40 ''; 41 }; 42}