openfortivpn: turn off format hardening and use autoreconfHook

This commit is contained in:
Robin Gloster 2016-02-12 13:46:50 +00:00
parent 200dedf2cd
commit 7e01cafa4b

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, automake, autoconf, openssl, ppp }:
{ stdenv, fetchFromGitHub, autoreconfHook, openssl, ppp }:
with stdenv.lib;
@ -15,13 +15,11 @@ in stdenv.mkDerivation {
sha256 = "0kwl8hv3nydd34xp1489jpjdj4bmknfl9xrgynij0vf5qx29xv7m";
};
buildInputs = [ openssl automake autoconf ppp ];
buildInputs = [ openssl ppp autoreconfHook ];
hardening_format = false;
preConfigure = ''
aclocal
autoconf
automake --add-missing
substituteInPlace src/tunnel.c --replace "/usr/sbin/pppd" "${ppp}/bin/pppd"
'';