summary refs log tree commit diff
path: root/pkgs/development/libraries/ti-rpc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-11-03 21:08:32 +0000
committerLudovic Courtès <ludo@gnu.org>2011-11-03 21:08:32 +0000
commit9878098ddf1268739fe748fdf689fac2a3feb2da (patch)
tree371371ad48bf599f2a4e0fc27bad0f67338fcf5c /pkgs/development/libraries/ti-rpc
parent15c16f50aaaad3ae652a634dc5ec94479fc33d05 (diff)
downloadnixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.tar
nixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.tar.gz
nixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.tar.bz2
nixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.tar.lz
nixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.tar.xz
nixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.tar.zst
nixpkgs-9878098ddf1268739fe748fdf689fac2a3feb2da.zip
Add TI-RPC.
svn path=/nixpkgs/trunk/; revision=30216
Diffstat (limited to 'pkgs/development/libraries/ti-rpc')
-rw-r--r--pkgs/development/libraries/ti-rpc/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ti-rpc/default.nix b/pkgs/development/libraries/ti-rpc/default.nix
new file mode 100644
index 00000000000..1fbfdc58fce
--- /dev/null
+++ b/pkgs/development/libraries/ti-rpc/default.nix
@@ -0,0 +1,44 @@
+{ fetchurl, stdenv }:
+
+stdenv.mkDerivation rec {
+  name = "libtirpc-0.1.8-1";
+
+  src = fetchurl {
+    url = "http://nfsv4.bullopensource.org/tarballs/tirpc/${name}.tar.bz2";
+    sha256 = "0jf0sj2cv1rm1dm1i226ww9h93srljf8zf0yfy9mvwxg8gqnn5fy";
+  };
+
+  preConfigure =
+    '' sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i "Makefile.in"
+    '';
+  preInstall = "ensureDir $out/etc";
+
+  doCheck = true;
+
+  meta = {
+    description = "The transport-independent Sun RPC implementation (TI-RPC)";
+
+    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.
+      '';
+
+    homepage = http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php;
+
+    # Free software license, see
+    # <http://www.gnu.org/licenses/license-list.html#SISSL>.
+    license = "Sun Industry Standards Source License 1.0";
+
+    platforms = stdenv.lib.platforms.all;
+    maintainers = [ stdenv.lib.maintainers.ludo ];
+  };
+}