nixpkgs/pkgs/servers/rpcbind/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2016-12-01 00:18:08 +00:00
{ fetchurl, fetchpatch, stdenv, pkgconfig, libtirpc
2015-02-18 02:02:46 +00:00
, useSystemd ? true, systemd }:
let version = "0.2.3";
2015-02-18 02:02:46 +00:00
in stdenv.mkDerivation rec {
name = "rpcbind-${version}";
2016-12-01 00:18:08 +00:00
src = fetchurl {
2015-02-18 02:02:46 +00:00
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
sha256 = "0yyjzv4161rqxrgjcijkrawnk55rb96ha0pav48s03l2klx855wq";
};
2016-01-13 18:16:28 +00:00
patches = [
./sunrpc.patch
./0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
2016-12-01 00:18:08 +00:00
(fetchpatch {
url = "https://sources.debian.net/data/main/r/rpcbind/0.2.3-0.5/debian/patches/CVE-2015-7236.patch";
sha256 = "1wsv5j8f5djzxr11n4027x107cam1avmx9w34g6l5d9s61j763wq";
})
2016-01-13 18:16:28 +00:00
];
2015-02-18 02:02:46 +00:00
buildInputs = [ libtirpc ]
++ stdenv.lib.optional useSystemd systemd;
2015-02-18 02:02:46 +00:00
configureFlags = stdenv.lib.optional (!useSystemd) "--with-systemdsystemunitdir=no";
2015-02-18 02:02:46 +00:00
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {
description = "ONC RPC portmapper";
2015-02-18 02:02:46 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
homepage = "http://sourceforge.net/projects/rpcbind/";
2015-02-18 02:02:46 +00:00
maintainers = with maintainers; [ abbradar ];
longDescription = ''
Universal addresses to RPC program number mapper.
'';
};
}