2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2011-03-31 12:20:22 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2011-03-31 12:20:22 +00:00
|
|
|
description = "A filtering tool for Linux-based bridging firewalls";
|
2020-04-01 01:11:51 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|