2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2011-03-31 14:20:22 +02:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2020-03-02 18:14:18 +01:00
|
|
|
makeFlags = [
|
|
|
|
"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";
|
|
|
|
|
2020-03-02 18:14:18 +01:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/sbin/ebtables-legacy $out/sbin/ebtables
|
|
|
|
ln -s $out/sbin/ebtables-legacy-restore $out/sbin/ebtables-restore
|
|
|
|
ln -s $out/sbin/ebtables-legacy-save $out/sbin/ebtables-save
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|