2021-01-19 07:50:56 +01:00
|
|
|
{ fetchgit, lib, stdenv, pkg-config, libnsl, libtirpc, autoreconfHook
|
2015-02-18 03:02:46 +01:00
|
|
|
, useSystemd ? true, systemd }:
|
2012-03-21 21:35:15 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rpcbind";
|
2021-10-29 03:30:57 +02:00
|
|
|
version = "1.2.6";
|
2016-12-01 01:18:08 +01:00
|
|
|
|
2018-08-31 00:04:15 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
|
|
|
|
rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2";
|
2021-10-29 03:30:57 +02:00
|
|
|
sha256 = "sha256-aidETIZaQYzC3liDGM915wyBWpMrn4OudxEcFS/Iucw=";
|
2012-03-21 21:35:15 +01:00
|
|
|
};
|
|
|
|
|
2016-01-13 19:16:28 +01:00
|
|
|
patches = [
|
|
|
|
./sunrpc.patch
|
|
|
|
];
|
2012-03-22 12:16:28 +01:00
|
|
|
|
2017-11-07 20:34:51 +01:00
|
|
|
buildInputs = [ libnsl libtirpc ]
|
2021-01-15 08:07:56 +01:00
|
|
|
++ lib.optional useSystemd systemd;
|
2012-03-21 21:35:15 +01:00
|
|
|
|
2017-01-29 18:06:07 +01:00
|
|
|
configureFlags = [
|
2018-08-31 00:04:15 +02:00
|
|
|
"--with-systemdsystemunitdir=${if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"}"
|
2017-01-29 18:06:07 +01:00
|
|
|
"--enable-warmstarts"
|
|
|
|
"--with-rpcuser=rpc"
|
|
|
|
];
|
2012-03-21 21:35:15 +01:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2015-02-18 03:02:46 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2012-03-21 21:35:15 +01:00
|
|
|
description = "ONC RPC portmapper";
|
2015-02-18 03:02:46 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://linux-nfs.org/";
|
2015-02-18 03:02:46 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2012-03-21 21:35:15 +01:00
|
|
|
longDescription = ''
|
|
|
|
Universal addresses to RPC program number mapper.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|