summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/firehol
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-02-18 15:58:13 +0100
committerxeji <xeji@cat3.de>2018-02-18 15:58:13 +0100
commitd8a4e098f6af2934f6d3c575a8c10d95059a3c58 (patch)
tree15f31d590d0ab521b26b71de76644ce1d58bd167 /pkgs/applications/networking/firehol
parentd4e1ef7b7b62c974d7d068b76a22651884aa6b4b (diff)
firehol: 3.1.5: search for config files in /etc/firehol
to fix error when running firehol command, see issue #35114
Diffstat (limited to 'pkgs/applications/networking/firehol')
-rw-r--r--pkgs/applications/networking/firehol/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/networking/firehol/default.nix b/pkgs/applications/networking/firehol/default.nix
index cf41ca1b0b3b..2435b2dcc98d 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 ];