nixpkgs/pkgs/development/libraries/ti-rpc/default.nix

46 lines
1.7 KiB
Nix
Raw Normal View History

2015-07-28 14:23:08 +02:00
{ fetchurl, stdenv, autoreconfHook, libkrb5 }:
stdenv.mkDerivation rec {
2015-07-28 10:41:53 +02:00
name = "libtirpc-0.3.2";
src = fetchurl {
url = "mirror://sourceforge/libtirpc/${name}.tar.bz2";
2015-07-28 10:41:53 +02:00
sha256 = "1z1z8xnlqgqznxzmyc6sypjc6b220xkv0s55hxd5sb3zydws6210";
};
2015-07-28 14:23:08 +02:00
nativeBuildInputs = [ autoreconfHook ];
2015-06-27 02:19:12 +02:00
propagatedBuildInputs = [ libkrb5 ];
2015-07-28 14:23:08 +02:00
# http://sourceforge.net/p/libtirpc/mailman/libtirpc-devel/thread/5581CB06.5020604%40email.com/#msg34216933
patches = [ ./fix_missing_rpc_get_default_domain.patch ];
preConfigure = ''
sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h
'';
preInstall = "mkdir -p $out/etc";
doCheck = true;
2015-02-18 03:05:04 +01:00
meta = with stdenv.lib; {
homepage = "http://sourceforge.net/projects/libtirpc/";
description = "The transport-independent Sun RPC implementation (TI-RPC)";
2015-02-18 03:05:04 +01:00
license = licenses.bsd3;
2015-04-04 08:52:52 +02:00
platforms = platforms.linux;
2015-02-18 03:05:04 +01:00
maintainers = with maintainers; [ abbradar ];
longDescription = ''
Currently, NFS commands use the SunRPC routines provided by the
glibc. These routines do not support IPv6 addresses. Ulrich
Drepper, who is the maintainer of the glibc, refuses any change in
the glibc concerning the RPC. He wants the RPC to become a separate
library. Other OS (NetBSD, FreeBSD, Solarix, HP-UX, AIX) have
migrated their SunRPC library to a TI-RPC (Transport Independent
RPC) implementation. This implementation allows the support of
other transports than UDP and TCP over IPv4. FreeBSD provides a
TI-RPC library ported from NetBSD with improvements. This library
already supports IPv6. So, the FreeBSD release 5.2.1 TI-RPC has
been ported to replace the SunRPC of the glibc.
'';
};
}