freeradius: add patch for HTTP/2 support in rlm_rest module
Co-Authored-By: Franz Pletz <franz.pletz@mayflower.de> Co-Authored-By: Simon Waibl <simon.waibl@mayflower.de>
This commit is contained in:
co-authored by
Franz Pletz
Simon Waibl
parent
82b54d4906
commit
0e474f2d26
@@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, talloc, finger_bsd, perl
|
{ stdenv, fetchurl, fetchpatch, autoreconfHook, talloc, finger_bsd, perl
|
||||||
, openssl
|
, openssl
|
||||||
, linkOpenssl? true
|
, linkOpenssl? true
|
||||||
, openldap
|
, openldap
|
||||||
@@ -71,6 +71,12 @@ stdenv.mkDerivation rec {
|
|||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
] ++ optional (!linkOpenssl) "--with-openssl=no";
|
] ++ optional (!linkOpenssl) "--with-openssl=no";
|
||||||
|
|
||||||
|
patches = stdenv.lib.optional withRest (fetchpatch {
|
||||||
|
# Fix HTTP/2 in rest
|
||||||
|
url = "https://github.com/FreeRADIUS/freeradius-server/commit/6286520698a3cc4053b4d49eb0a61d9ba77632aa.patch";
|
||||||
|
sha256 = "1ycvr3ql1mfkvzydnn4aiygnidicv2hgllppv37nb1p2pk02159g";
|
||||||
|
});
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/main/checkrad.in --replace "/usr/bin/finger" "${finger_bsd}/bin/finger"
|
substituteInPlace src/main/checkrad.in --replace "/usr/bin/finger" "${finger_bsd}/bin/finger"
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user