2014-01-15 15:43:51 +00:00
|
|
|
{ fetchurl, stdenv, krb5 }:
|
2011-11-03 21:08:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-15 15:43:51 +00:00
|
|
|
name = "libtirpc-0.2.4";
|
2011-11-03 21:08:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-17 17:44:20 +00:00
|
|
|
url = "mirror://sourceforge/libtirpc/${name}.tar.bz2";
|
2014-01-15 15:43:51 +00:00
|
|
|
sha256 = "18a337wa4amf0k21wnimp3yzs5l3cxqndz4x3x8bm993zhfy5hs5";
|
2011-11-03 21:08:32 +00:00
|
|
|
};
|
|
|
|
|
2014-01-15 15:43:51 +00:00
|
|
|
buildInputs = [ krb5 ];
|
|
|
|
|
2012-03-20 23:17:45 +00:00
|
|
|
# http://www.sourcemage.org/projects/grimoire/repository/revisions/d6344b6a3a94b88ed67925a474de5930803acfbf
|
2012-03-17 17:44:20 +00:00
|
|
|
preConfigure = ''
|
2012-03-20 23:17:45 +00:00
|
|
|
echo "" > src/des_crypt.c
|
|
|
|
|
2012-03-21 09:18:40 +00:00
|
|
|
sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h
|
2012-03-17 17:44:20 +00:00
|
|
|
'';
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
preInstall = "mkdir -p $out/etc";
|
2011-11-03 21:08:32 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2012-03-17 17:44:20 +00:00
|
|
|
homepage = "http://sourceforge.net/projects/libtirpc/";
|
2011-11-03 21:08:32 +00:00
|
|
|
description = "The transport-independent Sun RPC implementation (TI-RPC)";
|
2012-03-17 22:25:30 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2012-03-17 17:44:20 +00:00
|
|
|
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
|
2014-12-30 02:31:03 +00:00
|
|
|
TI-RPC library ported from NetBSD with improvements. This library
|
2012-03-17 17:44:20 +00:00
|
|
|
already supports IPv6. So, the FreeBSD release 5.2.1 TI-RPC has
|
|
|
|
been ported to replace the SunRPC of the glibc.
|
|
|
|
'';
|
2011-11-03 21:08:32 +00:00
|
|
|
};
|
|
|
|
}
|