firehol: 3.1.5: search for config files in /etc/firehol

to fix error when running firehol command, see issue #35114
This commit is contained in:
xeji 2018-02-18 15:58:13 +01:00
parent d4e1ef7b7b
commit d8a4e098f6

View File

@ -52,6 +52,17 @@ stdenv.mkDerivation rec {
AS_IF([test "x$ac_cv_ping_6_opt" = "xyes"],[
'')
# put firehol config files in /etc/firehol (not $out/etc/firehol)
# to avoid error on startup, see #35114
(pkgs.writeText "firehol-sysconfdir.patch"
''
--- a/sbin/install.config.in.in
+++ b/sbin/install.config.in.in
@@ -4 +4 @@
-SYSCONFDIR="@sysconfdir_POST@"
+SYSCONFDIR="/etc"
'')
];
nativeBuildInputs = [ autoconf automake ];