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