forked from mirrors/nixpkgs
openvswitch: 2.3.1 -> 2.5.0 (#15729)
This commit is contained in:
parent
5c6d7825b4
commit
4561a649f4
|
@ -1,22 +1,24 @@
|
||||||
{ stdenv, fetchurl, makeWrapper
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, utillinux, which
|
||||||
, openssl, python27, iproute, perl, kernel ? null }:
|
, procps, libcap_ng, openssl, python27, iproute , perl
|
||||||
|
, kernel ? null }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
_kernel = kernel;
|
_kernel = kernel;
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
version = "2.3.1";
|
version = "2.5.0";
|
||||||
name = "openvswitch-${version}";
|
name = "openvswitch-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://openvswitch.org/releases/${name}.tar.gz";
|
url = "http://openvswitch.org/releases/${name}.tar.gz";
|
||||||
sha256 = "1lmwyhm5wmdv1l4v1v5xd36d5ra21jz9ix57nh1lgm8iqc0lj5r1";
|
sha256 = "08bgsqjjn2q5hvxsjqs7n3jir7k7291wlj3blsqhacjhmpxm9nil";
|
||||||
};
|
};
|
||||||
|
|
||||||
kernel = optional (_kernel != null) _kernel.dev;
|
kernel = optional (_kernel != null) _kernel.dev;
|
||||||
|
|
||||||
buildInputs = [ makeWrapper openssl python27 perl ];
|
buildInputs = [ makeWrapper pkgconfig utillinux openssl libcap_ng python27
|
||||||
|
perl procps which ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
|
@ -31,6 +33,15 @@ in stdenv.mkDerivation rec {
|
||||||
"PKIDIR=$(TMPDIR)/dummy"
|
"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 = ''
|
postInstall = ''
|
||||||
cp debian/ovs-monitor-ipsec $out/share/openvswitch/scripts
|
cp debian/ovs-monitor-ipsec $out/share/openvswitch/scripts
|
||||||
makeWrapper \
|
makeWrapper \
|
||||||
|
|
Loading…
Reference in a new issue