2015-02-18 02:02:46 +00:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libtirpc
|
|
|
|
, useSystemd ? true, systemd }:
|
2012-03-21 20:35:15 +00:00
|
|
|
|
2015-02-18 02:02:46 +00:00
|
|
|
let version = "0.2.2";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "rpcbind-${version}";
|
2012-03-21 20:35:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-18 02:02:46 +00:00
|
|
|
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
|
|
|
|
sha256 = "0acgl1c07ymnks692b90aq5ldj4h0km7n03kz26wxq6vjv3winqk";
|
2012-03-21 20:35:15 +00:00
|
|
|
};
|
|
|
|
|
2012-03-22 11:16:28 +00:00
|
|
|
patches = [ ./sunrpc.patch ];
|
|
|
|
|
2015-02-18 02:02:46 +00:00
|
|
|
buildInputs = [ libtirpc ]
|
|
|
|
++ stdenv.lib.optional useSystemd systemd;
|
2012-03-21 20:35:15 +00:00
|
|
|
|
2015-02-18 02:02:46 +00:00
|
|
|
configureFlags = stdenv.lib.optional (!useSystemd) "--with-systemdsystemunitdir=no";
|
2012-03-21 20:35:15 +00:00
|
|
|
|
2015-02-18 02:02:46 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2012-03-21 20:35:15 +00:00
|
|
|
longDescription = ''
|
|
|
|
Universal addresses to RPC program number mapper.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|