2015-02-18 03:02:46 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libtirpc
|
|
|
|
, useSystemd ? true, systemd }:
|
2012-03-21 21:35:15 +01:00
|
|
|
|
2015-07-20 11:20:02 +02:00
|
|
|
let version = "1.0.7";
|
2015-02-18 03:02:46 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "rpcbind-${version}";
|
2012-03-21 21:35:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-18 03:02:46 +01:00
|
|
|
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
|
2015-07-20 11:20:02 +02:00
|
|
|
sha256 = "14vl0kmavc1fay630f4w8l1hjfzhmcqm8d0akzahhgymh5fw1f7r";
|
2012-03-21 21:35:15 +01:00
|
|
|
};
|
|
|
|
|
2012-03-22 12:16:28 +01:00
|
|
|
patches = [ ./sunrpc.patch ];
|
2015-07-20 11:20:02 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -e 's|/usr/include/tirpc|${libtirpc}/include/tirpc|' -i src/Makefile.am -i src/Makefile.in
|
|
|
|
'';
|
2012-03-22 12:16:28 +01:00
|
|
|
|
2015-02-18 03:02:46 +01:00
|
|
|
buildInputs = [ libtirpc ]
|
|
|
|
++ stdenv.lib.optional useSystemd systemd;
|
2012-03-21 21:35:15 +01:00
|
|
|
|
2015-02-18 03:02:46 +01:00
|
|
|
configureFlags = stdenv.lib.optional (!useSystemd) "--with-systemdsystemunitdir=no";
|
2012-03-21 21:35:15 +01:00
|
|
|
|
2015-02-18 03:02:46 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
meta = with stdenv.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;
|
2015-05-18 16:06:42 +02:00
|
|
|
homepage = http://sourceforge.net/projects/rpcbind/;
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|