summary refs log tree commit diff
path: root/pkgs/applications/networking
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
parentd4e1ef7b7b62c974d7d068b76a22651884aa6b4b (diff)
downloadnixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.tar
nixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.tar.gz
nixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.tar.bz2
nixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.tar.lz
nixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.tar.xz
nixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.tar.zst
nixpkgs-d8a4e098f6af2934f6d3c575a8c10d95059a3c58.zip
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')
-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 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 ];