2018-01-13 17:56:33 +01:00
|
|
|
{ fetchurl, fetchpatch, stdenv, autoreconfHook, libkrb5 }:
|
2011-11-03 22:08:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-27 14:53:35 +02:00
|
|
|
name = "libtirpc-1.0.2";
|
2011-11-03 22:08:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-17 18:44:20 +01:00
|
|
|
url = "mirror://sourceforge/libtirpc/${name}.tar.bz2";
|
2017-07-27 14:53:35 +02:00
|
|
|
sha256 = "1xchbxy0xql7yl7z4n1icj8r7dmly46i22fvm00vdjq64zlmqg3j";
|
2011-11-03 22:08:32 +01:00
|
|
|
};
|
|
|
|
|
2018-01-13 17:56:33 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/openembedded/openembedded-core/2be873301420ec6ca2c70d899b7c49a7e2b0954d/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch";
|
|
|
|
sha256 = "1jmbn0j2bnjp0j9z5vzz5xiwyv3kd28w5pixbqsy2lz6q8nii7cf";
|
|
|
|
});
|
|
|
|
|
2017-11-06 20:33:36 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed '1i#include <stdint.h>' -i src/xdr_sizeof.c
|
|
|
|
'';
|
|
|
|
|
2015-07-28 14:23:08 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2015-06-27 02:19:12 +02:00
|
|
|
propagatedBuildInputs = [ libkrb5 ];
|
2014-01-15 16:43:51 +01:00
|
|
|
|
2012-03-17 18:44:20 +01:00
|
|
|
preConfigure = ''
|
2012-03-21 10:18:40 +01:00
|
|
|
sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h
|
2012-03-17 18:44:20 +01:00
|
|
|
'';
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
preInstall = "mkdir -p $out/etc";
|
2011-11-03 22:08:32 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2015-02-18 03:05:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://sourceforge.net/projects/libtirpc/;
|
2011-11-03 22:08:32 +01:00
|
|
|
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 ];
|
2012-03-17 18:44:20 +01: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 03:31:03 +01:00
|
|
|
TI-RPC library ported from NetBSD with improvements. This library
|
2012-03-17 18:44:20 +01: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 22:08:32 +01:00
|
|
|
};
|
|
|
|
}
|