2011-03-31 12:20:22 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-28 12:34:56 +00:00
|
|
|
name = "ebtables-${version}";
|
|
|
|
version = "2.0.10-4";
|
2011-03-31 12:20:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-28 12:34:56 +00:00
|
|
|
url = "mirror://sourceforge/ebtables/ebtables-v${version}.tar.gz";
|
|
|
|
sha256 = "0pa5ljlk970yfyhpf3iqwfpbc30j8mgn90fapw9cfz909x47nvyw";
|
2011-03-31 12:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags =
|
2013-01-28 12:34:56 +00:00
|
|
|
[ "LIBDIR=$(out)/lib" "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man"
|
|
|
|
"ETCDIR=$(out)/etc" "INITDIR=$(TMPDIR)" "SYSCONFIGDIR=$(out)/etc/sysconfig"
|
|
|
|
"LOCALSTATEDIR=/var"
|
|
|
|
];
|
2011-03-31 12:20:22 +00:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
substituteInPlace Makefile --replace '-o root -g root' ""
|
|
|
|
'';
|
|
|
|
|
2013-01-28 12:34:56 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2011-03-31 12:20:22 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|