diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-31 12:20:22 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-31 12:20:22 +0000 |
commit | bb2bd151afb5e979fdbe0ffa6c44be7e6ff3fed7 (patch) | |
tree | 210720730d4aba103813c8052d16f58e26858c84 /pkgs/os-specific/linux/ebtables | |
parent | 5b1ee7a0dae320155448403a11d8d6c0437b7fb1 (diff) |
* 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.nix | 27 |
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 0000000000000..1f0539add9390 --- /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; + }; +} |