mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
43 lines
1.5 KiB
Nix
43 lines
1.5 KiB
Nix
{ fetchurl, stdenv, krb5 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libtirpc-0.2.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libtirpc/${name}.tar.bz2";
|
|
sha256 = "18a337wa4amf0k21wnimp3yzs5l3cxqndz4x3x8bm993zhfy5hs5";
|
|
};
|
|
|
|
buildInputs = [ krb5 ];
|
|
|
|
# http://www.sourcemage.org/projects/grimoire/repository/revisions/d6344b6a3a94b88ed67925a474de5930803acfbf
|
|
preConfigure = ''
|
|
echo "" > src/des_crypt.c
|
|
|
|
sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h
|
|
'';
|
|
|
|
preInstall = "mkdir -p $out/etc";
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
homepage = "http://sourceforge.net/projects/libtirpc/";
|
|
description = "The transport-independent Sun RPC implementation (TI-RPC)";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
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 improvments. This library
|
|
already supports IPv6. So, the FreeBSD release 5.2.1 TI-RPC has
|
|
been ported to replace the SunRPC of the glibc.
|
|
'';
|
|
};
|
|
}
|