1{ stdenv, fetchurl, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 name = "bridge-utils-1.5";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/bridge/${name}.tar.gz";
8 sha256 = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688";
9 };
10
11 # Remove patch once the kernel headers are updated
12 patches = [ ./add-ip6-header.patch ];
13
14 buildInputs = [ autoreconfHook ];
15
16 postInstall = ''
17 # The bridge utils build does not fail even if the brctl binary
18 # is not build. This test ensures that we fail if we don't produce a brctl
19 # binary.
20 test -f $out/sbin/brctl
21 '';
22
23 meta = {
24 description = "http://sourceforge.net/projects/bridge/";
25 homepage = [ "http://www.linux-foundation.org/en/Net:Bridge/" "http://sourceforge.net/projects/bridge/" ];
26 license = "GPL";
27 platforms = stdenv.lib.platforms.linux;
28 };
29}