2014-11-15 23:17:56 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2014-11-15 23:17:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-12-01 12:26:49 +01:00
|
|
|
name = "bridge-utils-1.5";
|
2007-11-18 11:37:32 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2010-09-14 12:54:50 +02:00
|
|
|
url = "mirror://sourceforge/bridge/${name}.tar.gz";
|
2011-12-01 12:26:49 +01:00
|
|
|
sha256 = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688";
|
2007-11-18 11:37:32 +01:00
|
|
|
};
|
|
|
|
|
2019-01-09 17:45:29 +01:00
|
|
|
patches = [
|
|
|
|
./autoconf-ar.patch
|
|
|
|
./add-ip6-header.patch # Remove patch once the kernel headers are updated
|
|
|
|
];
|
2007-11-18 11:37:32 +01:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2007-11-18 11:37:32 +01:00
|
|
|
|
2014-11-15 22:22:52 +01:00
|
|
|
postInstall = ''
|
|
|
|
# The bridge utils build does not fail even if the brctl binary
|
|
|
|
# is not build. This test ensures that we fail if we don't produce a brctl
|
|
|
|
# binary.
|
|
|
|
test -f $out/sbin/brctl
|
|
|
|
'';
|
|
|
|
|
2011-12-01 12:26:49 +01:00
|
|
|
meta = {
|
2018-11-24 19:58:03 +01:00
|
|
|
description = "https://sourceforge.net/projects/bridge/";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.linuxfoundation.org/networking/bridge";
|
2018-11-24 19:58:03 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-09-09 11:55:49 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2007-11-18 11:37:32 +01:00
|
|
|
};
|
|
|
|
}
|