@@ -1,40 +1,36 @@
1−{ fetchurl, stdenv, pkgconfig, libnsl, libtirpc, fetchpatch
1+{ fetchgit, stdenv, pkgconfig, libnsl, libtirpc, autoreconfHook
22, useSystemd ? true, systemd }:
33
44stdenv.mkDerivation rec {
55 name = "rpcbind-${version}";
66 version = "1.2.5";
77
8− src = fetchurl {
9− url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
10− sha256 = "0ynszy5hpc7wbz8xngqwyhgbi9cay73y43izqhcmrcv375l61qrc";
8+ src = fetchgit {
9+ url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
10+ rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2";
11+ sha256 = "1k5rr0pia70ifyp877rbjdd82377fp7ii0sqvv18qhashr6489va";
1112 };
1213
1314 patches = [
1415 ./sunrpc.patch
15− (fetchpatch {
16− name = "CVE-2017-8779.patch";
17− url = "https://raw.githubusercontent.com/guidovranken/rpcbomb/e6da9e489aa8ad000b0ad5ac9abc5b4eefc3a769/rpcbind_patch.txt";
18− sha256 = "0w231w8fxihgrn526np078j3vbj3ylvjvxjmfpjvqhga5zg821ab";
19− })
2016 ];
2117
2218 buildInputs = [ libnsl libtirpc ]
2319 ++ stdenv.lib.optional useSystemd systemd;
2420
2521 configureFlags = [
26− "--with-systemdsystemunitdir=${if useSystemd then "$(out)/etc/systemd/system" else "no"}"
22+ "--with-systemdsystemunitdir=${if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"}"
2723 "--enable-warmstarts"
2824 "--with-rpcuser=rpc"
2925 ];
3026
31− nativeBuildInputs = [ pkgconfig ];
27+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
3228
3329 meta = with stdenv.lib; {
3430 description = "ONC RPC portmapper";
3531 license = licenses.bsd3;
3632 platforms = platforms.unix;
37− homepage = https://sourceforge.net/projects/rpcbind/;
33+ homepage = https://linux-nfs.org/;
3834 maintainers = with maintainers; [ abbradar ];
3935 longDescription = ''
4036 Universal addresses to RPC program number mapper.