summary refs log tree commit diff
path: root/pkgs/os-specific/linux/openvswitch/lts.nix
diff options
context:
space:
mode:
authorKyle Copperfield <kmcopper@users.noreply.github.com>2019-11-13 00:37:25 +0000
committerKyle Copperfield <kmcopper@danwin1210.me>2019-11-13 21:00:31 +0000
commit2011aef629f0efe234b2331b36c491392f7bc81d (patch)
tree5c372bc5dd194dd2e5344b920a511ef1c6dd1a58 /pkgs/os-specific/linux/openvswitch/lts.nix
parentd4b8d1e42a540b024b95d9cce489f01db15ddb81 (diff)
downloadnixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.tar
nixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.tar.gz
nixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.tar.bz2
nixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.tar.lz
nixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.tar.xz
nixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.tar.zst
nixpkgs-2011aef629f0efe234b2331b36c491392f7bc81d.zip
openvswitch: many improvements
- tidy maintainer definition
- add kmcopper to maintainers
- use https for url fetch
- update lts to 2.5.9
- compile with openssl 1.1
- use https for homepage url
- use python3 in 2.12
Diffstat (limited to 'pkgs/os-specific/linux/openvswitch/lts.nix')
-rw-r--r--pkgs/os-specific/linux/openvswitch/lts.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/openvswitch/lts.nix b/pkgs/os-specific/linux/openvswitch/lts.nix
index 8e9a006735e..4f3f4c5c172 100644
--- a/pkgs/os-specific/linux/openvswitch/lts.nix
+++ b/pkgs/os-specific/linux/openvswitch/lts.nix
@@ -1,26 +1,30 @@
 { stdenv, fetchurl, makeWrapper, pkgconfig, utillinux, which
-, procps, libcap_ng, openssl, python27, iproute , perl
-, kernel ? null }:
+, procps, libcap_ng, openssl, python2, iproute , perl
+, automake, autoconf, libtool, kernel ? null }:
 
 with stdenv.lib;
 
 let
   _kernel = kernel;
 in stdenv.mkDerivation rec {
-  version = "2.5.6";
+  version = "2.5.9";
   pname = "openvswitch";
 
   src = fetchurl {
-    url = "http://openvswitch.org/releases/${pname}-${version}.tar.gz";
-    sha256 = "14zjcd0ddjv90rwb24l3cac6psd34a9r04jjghn1av0kf6b76zj4";
+    url = "https://www.openvswitch.org/releases/${pname}-${version}.tar.gz";
+    sha256 = "0iv0ncwl6s4qyyb655yj5xvqrjr1zbymmab96q259wa09xnyw7b7";
   };
 
+  patches = [ ./patches/lts-ssl.patch ];
+
   kernel = optional (_kernel != null) _kernel.dev;
 
-  nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ makeWrapper utillinux openssl libcap_ng python27
+  nativeBuildInputs = [ autoconf libtool automake pkgconfig  ];
+  buildInputs = [ makeWrapper utillinux openssl libcap_ng python2
                   perl procps which ];
 
+  preConfigure = "./boot.sh";
+
   configureFlags = [
     "--localstatedir=/var"
     "--sharedstatedir=/var"
@@ -36,8 +40,8 @@ in stdenv.mkDerivation rec {
 
   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}'
+    substituteInPlace xenserver/opt_xensource_libexec_interface-reconfigure --replace '/usr/bin/env python' '${python2.interpreter}'
+    substituteInPlace vtep/ovs-vtep --replace '/usr/bin/env python' '${python2.interpreter}'
   '';
 
   enableParallelBuilding = true;
@@ -71,7 +75,8 @@ in stdenv.mkDerivation rec {
       support distribution across multiple physical servers similar
       to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V.
       '';
-    homepage = http://openvswitch.org/;
+    homepage = https://www.openvswitch.org/;
     license = licenses.asl20;
+    maintainers = with maintainers; [ netixx kmcopper ];
   };
 }