summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ebtables
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-03-31 12:20:22 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-03-31 12:20:22 +0000
commitbb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7 (patch)
tree210720730d4aba103813c8052d16f58e26858c84 /pkgs/os-specific/linux/ebtables
parent5b1ee7a0dae320155448403a11d8d6c0437b7fb1 (diff)
downloadnixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.tar
nixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.tar.gz
nixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.tar.bz2
nixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.tar.lz
nixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.tar.xz
nixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.tar.zst
nixpkgs-bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7.zip
* Added ebtables.
svn path=/nixpkgs/branches/modular-python/; revision=26626
Diffstat (limited to 'pkgs/os-specific/linux/ebtables')
-rw-r--r--pkgs/os-specific/linux/ebtables/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ebtables/default.nix b/pkgs/os-specific/linux/ebtables/default.nix
new file mode 100644
index 00000000000..1f0539add93
--- /dev/null
+++ b/pkgs/os-specific/linux/ebtables/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "ebtables-2.0.9-2";
+
+  src = fetchurl {
+    url = mirror://sourceforge/ebtables/ebtables-v2.0.9-2.tar.gz;
+    sha256 = "18yni9zzhfi1ygkgifzj8qpn95cwwiw7j6b3wsl1bij39mj5z1cq";
+  };
+
+  makeFlags =
+    "LIBDIR=$(out)/lib BINDIR=$(out)/sbin MANDIR=$(out)/share/man " +
+    "ETCDIR=$(out)/etc INITDIR=$(TMPDIR) SYSCONFIGDIR=$(out)/etc/sysconfig";
+
+  preBuild =
+    ''
+      substituteInPlace Makefile --replace '-o root -g root' ""
+    '';
+
+  preInstall = "mkdir -p $out/etc/sysconfig";
+
+  meta = {
+    description = "A filtering tool for Linux-based bridging firewalls";
+    homepage = http://ebtables.sourceforge.net/;
+    platforms = stdenv.lib.platforms.linux;
+  };
+}