2011-03-31 14:20:22 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ebtables";
|
2019-12-03 15:35:42 +01:00
|
|
|
version = "2.0.11";
|
2011-03-31 14:20:22 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-03 15:35:42 +01:00
|
|
|
url = "http://ftp.netfilter.org/pub/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0apxgmkhsk3vxn9q3libxn3dgrdljrxyy4mli2gk49m7hi3na7xp";
|
2011-03-31 14:20:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags =
|
2013-01-28 13:34:56 +01: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 14:20:22 +02:00
|
|
|
|
2013-01-28 13:34:56 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2011-03-31 14:20:22 +02:00
|
|
|
preInstall = "mkdir -p $out/etc/sysconfig";
|
|
|
|
|
2018-08-23 17:48:30 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-03-31 14:20:22 +02:00
|
|
|
description = "A filtering tool for Linux-based bridging firewalls";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://ebtables.sourceforge.net/";
|
2018-08-23 17:48:30 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2011-03-31 14:20:22 +02:00
|
|
|
};
|
|
|
|
}
|