freeradius: fix checkrad paths by providing perl, finger substitution

This commit is contained in:
Sheena Artrip 2016-04-27 03:07:38 -04:00
parent 6e24c9974f
commit b6a900803a
No known key found for this signature in database
GPG Key ID: A4B75E82267F507D

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, talloc
{ stdenv, fetchurl, autoreconfHook, talloc, finger_bsd, perl
, openssl
, linkOpenssl? true
, openldap
@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
name = "freeradius-${version}";
version = "3.0.11";
buildInputs = [ autoreconfHook openssl talloc ]
buildInputs = [ autoreconfHook openssl talloc finger_bsd perl ]
++ optional withLdap [ openldap ]
++ optional withSqlite [ sqlite ]
++ optional withPcap [ libpcap ]
@ -60,6 +60,10 @@ stdenv.mkDerivation rec {
"--localstatedir=/var"
] ++ optional (!linkOpenssl) "--with-openssl=no";
postPatch = ''
substituteInPlace src/main/checkrad.in --replace "/usr/bin/finger" "${finger_bsd}/bin/finger"
'';
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"