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