2017-01-29 20:06:07 +03:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libtirpc
|
2015-02-18 05:02:46 +03:00
|
|
|
, useSystemd ? true, systemd }:
|
2012-03-22 00:35:15 +04:00
|
|
|
|
2017-01-29 20:06:07 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2015-02-18 05:02:46 +03:00
|
|
|
name = "rpcbind-${version}";
|
2017-01-29 20:06:07 +03:00
|
|
|
version = "0.2.4";
|
2016-12-01 03:18:08 +03:00
|
|
|
|
2012-03-22 00:35:15 +04:00
|
|
|
src = fetchurl {
|
2015-02-18 05:02:46 +03:00
|
|
|
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
|
2017-01-29 20:06:07 +03:00
|
|
|
sha256 = "0rjc867mdacag4yqvs827wqhkh27135rp9asj06ixhf71m9rljh7";
|
2012-03-22 00:35:15 +04:00
|
|
|
};
|
|
|
|
|
2016-01-13 21:16:28 +03:00
|
|
|
patches = [
|
|
|
|
./sunrpc.patch
|
|
|
|
];
|
2012-03-22 15:16:28 +04:00
|
|
|
|
2015-02-18 05:02:46 +03:00
|
|
|
buildInputs = [ libtirpc ]
|
|
|
|
++ stdenv.lib.optional useSystemd systemd;
|
2012-03-22 00:35:15 +04:00
|
|
|
|
2017-01-29 20:06:07 +03:00
|
|
|
configureFlags = [
|
|
|
|
"--with-systemdsystemunitdir=${if useSystemd then "$(out)/etc/systemd/system" else "no"}"
|
|
|
|
"--enable-warmstarts"
|
|
|
|
"--with-rpcuser=rpc"
|
|
|
|
];
|
2012-03-22 00:35:15 +04:00
|
|
|
|
2015-02-18 05:02:46 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2012-03-22 00:35:15 +04:00
|
|
|
description = "ONC RPC portmapper";
|
2015-02-18 05:02:46 +03:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2016-08-13 03:18:13 +03:00
|
|
|
homepage = "http://sourceforge.net/projects/rpcbind/";
|
2015-02-18 05:02:46 +03:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2012-03-22 00:35:15 +04:00
|
|
|
longDescription = ''
|
|
|
|
Universal addresses to RPC program number mapper.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|