Skip to content

Commit

Permalink
openvswitch: 2.3.1 -> 2.5.0 (#15729)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakke authored and fpletz committed May 28, 2016
1 parent 5c6d782 commit 4561a64
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/os-specific/linux/openvswitch/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{ stdenv, fetchurl, makeWrapper
, openssl, python27, iproute, perl, kernel ? null }:
{ stdenv, fetchurl, makeWrapper, pkgconfig, utillinux, which
, procps, libcap_ng, openssl, python27, iproute , perl
, kernel ? null }:

with stdenv.lib;

let
_kernel = kernel;
in stdenv.mkDerivation rec {
version = "2.3.1";
version = "2.5.0";
name = "openvswitch-${version}";

src = fetchurl {
url = "http://openvswitch.org/releases/${name}.tar.gz";
sha256 = "1lmwyhm5wmdv1l4v1v5xd36d5ra21jz9ix57nh1lgm8iqc0lj5r1";
sha256 = "08bgsqjjn2q5hvxsjqs7n3jir7k7291wlj3blsqhacjhmpxm9nil";
};

kernel = optional (_kernel != null) _kernel.dev;

buildInputs = [ makeWrapper openssl python27 perl ];
buildInputs = [ makeWrapper pkgconfig utillinux openssl libcap_ng python27
perl procps which ];

configureFlags = [
"--localstatedir=/var"
Expand All @@ -31,6 +33,15 @@ in stdenv.mkDerivation rec {
"PKIDIR=$(TMPDIR)/dummy"
];

postBuild = ''
# fix tests
substituteInPlace xenserver/opt_xensource_libexec_interface-reconfigure --replace '/usr/bin/env python' '${python27.interpreter}'
substituteInPlace vtep/ovs-vtep --replace '/usr/bin/env python' '${python27.interpreter}'
'';

enableParallelBuilding = true;
doCheck = false; # bash-completion test fails with "compgen: command not found"

postInstall = ''
cp debian/ovs-monitor-ipsec $out/share/openvswitch/scripts
makeWrapper \
Expand Down

0 comments on commit 4561a64

Please sign in to comment.