rpcbind: switch to upstream git repo, drop patch
This commit is contained in:
parent
1758e15810
commit
f2a4adfec2
@ -1,40 +1,36 @@
|
|||||||
{ fetchurl, stdenv, pkgconfig, libnsl, libtirpc, fetchpatch
|
{ fetchgit, stdenv, pkgconfig, libnsl, libtirpc, autoreconfHook
|
||||||
, useSystemd ? true, systemd }:
|
, useSystemd ? true, systemd }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "rpcbind-${version}";
|
name = "rpcbind-${version}";
|
||||||
version = "1.2.5";
|
version = "1.2.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchgit {
|
||||||
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
|
url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
|
||||||
sha256 = "0ynszy5hpc7wbz8xngqwyhgbi9cay73y43izqhcmrcv375l61qrc";
|
rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2";
|
||||||
|
sha256 = "1k5rr0pia70ifyp877rbjdd82377fp7ii0sqvv18qhashr6489va";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./sunrpc.patch
|
./sunrpc.patch
|
||||||
(fetchpatch {
|
|
||||||
name = "CVE-2017-8779.patch";
|
|
||||||
url = "https://raw.githubusercontent.com/guidovranken/rpcbomb/e6da9e489aa8ad000b0ad5ac9abc5b4eefc3a769/rpcbind_patch.txt";
|
|
||||||
sha256 = "0w231w8fxihgrn526np078j3vbj3ylvjvxjmfpjvqhga5zg821ab";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ libnsl libtirpc ]
|
buildInputs = [ libnsl libtirpc ]
|
||||||
++ stdenv.lib.optional useSystemd systemd;
|
++ stdenv.lib.optional useSystemd systemd;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-systemdsystemunitdir=${if useSystemd then "$(out)/etc/systemd/system" else "no"}"
|
"--with-systemdsystemunitdir=${if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"}"
|
||||||
"--enable-warmstarts"
|
"--enable-warmstarts"
|
||||||
"--with-rpcuser=rpc"
|
"--with-rpcuser=rpc"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "ONC RPC portmapper";
|
description = "ONC RPC portmapper";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
homepage = https://sourceforge.net/projects/rpcbind/;
|
homepage = https://linux-nfs.org/;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Universal addresses to RPC program number mapper.
|
Universal addresses to RPC program number mapper.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user