2011-03-31 12:20:22 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ebtables";
|
2019-12-03 14:35:42 +00:00
|
|
|
version = "2.0.11";
|
2011-03-31 12:20:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-03 14:35:42 +00:00
|
|
|
url = "http://ftp.netfilter.org/pub/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0apxgmkhsk3vxn9q3libxn3dgrdljrxyy4mli2gk49m7hi3na7xp";
|
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
|
|
|
|
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";
|
|
|
|
|
2018-08-23 15:48:30 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-03-31 12:20:22 +00:00
|
|
|
description = "A filtering tool for Linux-based bridging firewalls";
|
|
|
|
homepage = http://ebtables.sourceforge.net/;
|
2018-08-23 15:48:30 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2011-03-31 12:20:22 +00:00
|
|
|
};
|
|
|
|
}
|