From d8a4e098f6af2934f6d3c575a8c10d95059a3c58 Mon Sep 17 00:00:00 2001 From: xeji Date: Sun, 18 Feb 2018 15:58:13 +0100 Subject: [PATCH] firehol: 3.1.5: search for config files in /etc/firehol to fix error when running firehol command, see issue #35114 --- pkgs/applications/networking/firehol/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/networking/firehol/default.nix b/pkgs/applications/networking/firehol/default.nix index cf41ca1b0b3..2435b2dcc98 100644 --- a/pkgs/applications/networking/firehol/default.nix +++ b/pkgs/applications/networking/firehol/default.nix @@ -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 ];