summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-01-18 21:01:01 +0000
committerGitHub <noreply@github.com>2021-01-18 21:01:01 +0000
commit90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e (patch)
treef0899f4b48e06c0a7365b5c0fdcdcdbb842c2e18
parent6dfa72b172af3d6da3534a10e4f9739af867f2c7 (diff)
parent1cb447c9615a0a3c40ce4a6679c589671cc5702a (diff)
downloadnixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.tar
nixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.tar.gz
nixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.tar.bz2
nixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.tar.lz
nixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.tar.xz
nixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.tar.zst
nixpkgs-90b88c416d4d2f1ac2ebc9f14552dd4c4cd7928e.zip
Merge pull request #81545 from yesbox/ebtables-legacy
ebtables: restore legacy commands
-rw-r--r--pkgs/os-specific/linux/ebtables/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/ebtables/default.nix b/pkgs/os-specific/linux/ebtables/default.nix
index 2045c4b112c..bca24d9c905 100644
--- a/pkgs/os-specific/linux/ebtables/default.nix
+++ b/pkgs/os-specific/linux/ebtables/default.nix
@@ -9,16 +9,22 @@ stdenv.mkDerivation rec {
     sha256 = "0apxgmkhsk3vxn9q3libxn3dgrdljrxyy4mli2gk49m7hi3na7xp";
   };
 
-  makeFlags =
-    [ "LIBDIR=$(out)/lib" "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man"
-      "ETCDIR=$(out)/etc" "INITDIR=$(TMPDIR)" "SYSCONFIGDIR=$(out)/etc/sysconfig"
-      "LOCALSTATEDIR=/var"
-    ];
+  makeFlags = [
+    "LIBDIR=$(out)/lib" "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man"
+    "ETCDIR=$(out)/etc" "INITDIR=$(TMPDIR)" "SYSCONFIGDIR=$(out)/etc/sysconfig"
+    "LOCALSTATEDIR=/var"
+  ];
 
   NIX_CFLAGS_COMPILE = "-Wno-error";
 
   preInstall = "mkdir -p $out/etc/sysconfig";
 
+  postInstall = ''
+    ln -s $out/sbin/ebtables-legacy          $out/sbin/ebtables
+    ln -s $out/sbin/ebtables-legacy-restore  $out/sbin/ebtables-restore
+    ln -s $out/sbin/ebtables-legacy-save     $out/sbin/ebtables-save
+  '';
+
   meta = with lib; {
     description = "A filtering tool for Linux-based bridging firewalls";
     homepage = "http://ebtables.sourceforge.net/";