openvswitch-lts: remove

+159 -195
-168
pkgs/by-name/op/openvswitch/generic.nix
··· 1 - { 2 - version, 3 - hash, 4 - updateScriptArgs ? "", 5 - }: 6 - 7 - { 8 - lib, 9 - stdenv, 10 - fetchurl, 11 - autoconf, 12 - automake, 13 - installShellFiles, 14 - iproute2, 15 - kernel ? null, 16 - libcap_ng, 17 - libtool, 18 - openssl, 19 - perl, 20 - pkg-config, 21 - procps, 22 - python3, 23 - tcpdump, 24 - sphinxHook, 25 - util-linux, 26 - which, 27 - writeScript, 28 - makeWrapper, 29 - withDPDK ? false, 30 - dpdk, 31 - numactl, 32 - libpcap, 33 - }: 34 - 35 - let 36 - _kernel = kernel; 37 - in 38 - stdenv.mkDerivation rec { 39 - pname = if withDPDK then "openvswitch-dpdk" else "openvswitch"; 40 - inherit version; 41 - 42 - kernel = lib.optional (_kernel != null) _kernel.dev; 43 - 44 - src = fetchurl { 45 - url = "https://www.openvswitch.org/releases/openvswitch-${version}.tar.gz"; 46 - inherit hash; 47 - }; 48 - 49 - outputs = [ 50 - "out" 51 - "man" 52 - ]; 53 - 54 - patches = [ 55 - # 8: vsctl-bashcomp - argument completion FAILED (completion.at:664) 56 - ./patches/disable-bash-arg-completion-test.patch 57 - 58 - # https://github.com/openvswitch/ovs/commit/9185793e75435d890f18d391eaaeab0ade6f1415 59 - ./patches/fix-python313.patch 60 - ]; 61 - 62 - nativeBuildInputs = [ 63 - autoconf 64 - automake 65 - installShellFiles 66 - libtool 67 - pkg-config 68 - sphinxHook 69 - makeWrapper 70 - ]; 71 - 72 - sphinxBuilders = [ "man" ]; 73 - 74 - sphinxRoot = "./Documentation"; 75 - 76 - buildInputs = 77 - [ 78 - libcap_ng 79 - openssl 80 - perl 81 - procps 82 - python3 83 - util-linux 84 - which 85 - ] 86 - ++ (lib.optionals withDPDK [ 87 - dpdk 88 - numactl 89 - libpcap 90 - ]); 91 - 92 - preConfigure = "./boot.sh"; 93 - 94 - configureFlags = 95 - [ 96 - "--localstatedir=/var" 97 - "--sharedstatedir=/var" 98 - "--sbindir=$(out)/bin" 99 - ] 100 - ++ (lib.optionals (_kernel != null) [ "--with-linux" ]) 101 - ++ (lib.optionals withDPDK [ "--with-dpdk=shared" ]); 102 - 103 - # Leave /var out of this! 104 - installFlags = [ 105 - "LOGDIR=$(TMPDIR)/dummy" 106 - "RUNDIR=$(TMPDIR)/dummy" 107 - "PKIDIR=$(TMPDIR)/dummy" 108 - ]; 109 - 110 - enableParallelBuilding = true; 111 - 112 - postInstall = '' 113 - installShellCompletion --bash utilities/ovs-appctl-bashcomp.bash 114 - installShellCompletion --bash utilities/ovs-vsctl-bashcomp.bash 115 - 116 - wrapProgram $out/bin/ovs-l3ping \ 117 - --prefix PYTHONPATH : $out/share/openvswitch/python 118 - 119 - wrapProgram $out/bin/ovs-tcpdump \ 120 - --prefix PATH : ${lib.makeBinPath [ tcpdump ]} \ 121 - --prefix PYTHONPATH : $out/share/openvswitch/python 122 - ''; 123 - 124 - doCheck = true; 125 - preCheck = '' 126 - export TESTSUITEFLAGS="-j$NIX_BUILD_CORES" 127 - export RECHECK=yes 128 - 129 - patchShebangs tests/ 130 - ''; 131 - 132 - nativeCheckInputs = 133 - [ iproute2 ] 134 - ++ (with python3.pkgs; [ 135 - netaddr 136 - pyparsing 137 - pytest 138 - setuptools 139 - ]); 140 - 141 - passthru.updateScript = writeScript "ovs-update.nu" '' 142 - ${./update.nu} ${updateScriptArgs} 143 - ''; 144 - 145 - meta = with lib; { 146 - changelog = "https://www.openvswitch.org/releases/NEWS-${version}.txt"; 147 - description = "Multilayer virtual switch"; 148 - longDescription = '' 149 - Open vSwitch is a production quality, multilayer virtual switch 150 - licensed under the open source Apache 2.0 license. It is 151 - designed to enable massive network automation through 152 - programmatic extension, while still supporting standard 153 - management interfaces and protocols (e.g. NetFlow, sFlow, SPAN, 154 - RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to 155 - support distribution across multiple physical servers similar 156 - to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V. 157 - ''; 158 - homepage = "https://www.openvswitch.org/"; 159 - license = licenses.asl20; 160 - maintainers = with maintainers; [ 161 - adamcstephens 162 - kmcopper 163 - netixx 164 - xddxdd 165 - ]; 166 - platforms = platforms.linux; 167 - }; 168 - }
-5
pkgs/by-name/op/openvswitch/lts.nix
··· 1 - import ./generic.nix { 2 - version = "2.17.9"; 3 - hash = "sha256-4bP6RyZ2YmhT8i1j+VnlrQYeG/V+G71ETQ7Yj5R++LE="; 4 - updateScriptArgs = "--lts=true --regex '2\.17.*'"; 5 - }
+158 -2
pkgs/by-name/op/openvswitch/package.nix
··· 1 - import ./generic.nix { 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + autoconf, 6 + automake, 7 + installShellFiles, 8 + iproute2, 9 + kernel ? null, 10 + libcap_ng, 11 + libtool, 12 + nix-update-script, 13 + openssl, 14 + perl, 15 + pkg-config, 16 + procps, 17 + python3, 18 + tcpdump, 19 + sphinxHook, 20 + util-linux, 21 + which, 22 + makeWrapper, 23 + withDPDK ? false, 24 + dpdk, 25 + numactl, 26 + libpcap, 27 + }: 28 + 29 + let 30 + _kernel = kernel; 31 + in 32 + stdenv.mkDerivation rec { 33 + pname = if withDPDK then "openvswitch-dpdk" else "openvswitch"; 2 34 version = "3.3.0"; 3 - hash = "sha256-Gvy4H7lHwL6IWGaZXWwIjmHfQ1YRFXiSBqKzP3vBsF8="; 35 + 36 + kernel = lib.optional (_kernel != null) _kernel.dev; 37 + 38 + src = fetchurl { 39 + url = "https://www.openvswitch.org/releases/openvswitch-${version}.tar.gz"; 40 + hash = "sha256-Gvy4H7lHwL6IWGaZXWwIjmHfQ1YRFXiSBqKzP3vBsF8="; 41 + }; 42 + 43 + outputs = [ 44 + "out" 45 + "man" 46 + ]; 47 + 48 + patches = [ 49 + # 8: vsctl-bashcomp - argument completion FAILED (completion.at:664) 50 + ./patches/disable-bash-arg-completion-test.patch 51 + 52 + # https://github.com/openvswitch/ovs/commit/9185793e75435d890f18d391eaaeab0ade6f1415 53 + ./patches/fix-python313.patch 54 + ]; 55 + 56 + nativeBuildInputs = [ 57 + autoconf 58 + automake 59 + installShellFiles 60 + libtool 61 + pkg-config 62 + sphinxHook 63 + makeWrapper 64 + ]; 65 + 66 + sphinxBuilders = [ "man" ]; 67 + 68 + sphinxRoot = "./Documentation"; 69 + 70 + buildInputs = 71 + [ 72 + libcap_ng 73 + openssl 74 + perl 75 + procps 76 + python3 77 + util-linux 78 + which 79 + ] 80 + ++ (lib.optionals withDPDK [ 81 + dpdk 82 + numactl 83 + libpcap 84 + ]); 85 + 86 + preConfigure = "./boot.sh"; 87 + 88 + configureFlags = 89 + [ 90 + "--localstatedir=/var" 91 + "--sharedstatedir=/var" 92 + "--sbindir=$(out)/bin" 93 + ] 94 + ++ (lib.optionals (_kernel != null) [ "--with-linux" ]) 95 + ++ (lib.optionals withDPDK [ "--with-dpdk=shared" ]); 96 + 97 + # Leave /var out of this! 98 + installFlags = [ 99 + "LOGDIR=$(TMPDIR)/dummy" 100 + "RUNDIR=$(TMPDIR)/dummy" 101 + "PKIDIR=$(TMPDIR)/dummy" 102 + ]; 103 + 104 + enableParallelBuilding = true; 105 + 106 + postInstall = '' 107 + installShellCompletion --bash utilities/ovs-appctl-bashcomp.bash 108 + installShellCompletion --bash utilities/ovs-vsctl-bashcomp.bash 109 + 110 + wrapProgram $out/bin/ovs-l3ping \ 111 + --prefix PYTHONPATH : $out/share/openvswitch/python 112 + 113 + wrapProgram $out/bin/ovs-tcpdump \ 114 + --prefix PATH : ${lib.makeBinPath [ tcpdump ]} \ 115 + --prefix PYTHONPATH : $out/share/openvswitch/python 116 + ''; 117 + 118 + doCheck = true; 119 + preCheck = '' 120 + export TESTSUITEFLAGS="-j$NIX_BUILD_CORES" 121 + export RECHECK=yes 122 + 123 + patchShebangs tests/ 124 + ''; 125 + 126 + nativeCheckInputs = 127 + [ iproute2 ] 128 + ++ (with python3.pkgs; [ 129 + netaddr 130 + pyparsing 131 + pytest 132 + setuptools 133 + ]); 134 + 135 + passthru.updateScript = nix-update-script { }; 136 + 137 + meta = with lib; { 138 + changelog = "https://www.openvswitch.org/releases/NEWS-${version}.txt"; 139 + description = "Multilayer virtual switch"; 140 + longDescription = '' 141 + Open vSwitch is a production quality, multilayer virtual switch 142 + licensed under the open source Apache 2.0 license. It is 143 + designed to enable massive network automation through 144 + programmatic extension, while still supporting standard 145 + management interfaces and protocols (e.g. NetFlow, sFlow, SPAN, 146 + RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to 147 + support distribution across multiple physical servers similar 148 + to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V. 149 + ''; 150 + homepage = "https://www.openvswitch.org/"; 151 + license = licenses.asl20; 152 + maintainers = with maintainers; [ 153 + adamcstephens 154 + kmcopper 155 + netixx 156 + xddxdd 157 + ]; 158 + platforms = platforms.linux; 159 + }; 4 160 }
-19
pkgs/by-name/op/openvswitch/update.nu
··· 1 - #!/usr/bin/env nix-shell 2 - #!nix-shell -i nu -p nushell common-updater-scripts 3 - 4 - def main [--lts = false, --regex: string] { 5 - let tags = list-git-tags --url=https://github.com/openvswitch/ovs | lines | sort --natural | str replace v '' 6 - 7 - let latest_tag = if $regex == null { $tags } else { $tags | find --regex $regex } | last 8 - let current_version = nix eval --raw -f default.nix $"openvswitch(if $lts {"-lts"}).version" | str trim 9 - 10 - if $latest_tag != $current_version { 11 - if $lts { 12 - update-source-version openvswitch-lts $latest_tag $"--file=(pwd)/pkgs/by-name/op/openvswitch/lts.nix" 13 - } else { 14 - update-source-version openvswitch $latest_tag $"--file=(pwd)/pkgs/by-name/op/openvswitch/default.nix" 15 - } 16 - } 17 - 18 - {"lts?": $lts, before: $current_version, after: $latest_tag} 19 - }
+1
pkgs/top-level/aliases.nix
··· 1125 1125 onlyoffice-bin_latest = onlyoffice-bin; # Added 2024-07-03 1126 1126 onlyoffice-bin_7_2 = throw "onlyoffice-bin_7_2 has been removed. Please use the latest version available under onlyoffice-bin"; # Added 2024-07-03 1127 1127 onlyoffice-bin_7_5 = throw "onlyoffice-bin_7_5 has been removed. Please use the latest version available under onlyoffice-bin"; # Added 2024-07-03 1128 + openvswitch-lts = throw "openvswitch-lts has been removed. Please use the latest version available under openvswitch"; # Added 2024-08-24 1128 1129 oroborus = throw "oroborus was removed, because it was abandoned years ago."; #Added 2023-09-10 1129 1130 osxfuse = macfuse-stubs; # Added 2021-03-20 1130 1131 oxen = throw "'oxen' has been removed, because it was broken, outdated and unmaintained"; # Added 2023-12-09
-1
pkgs/top-level/all-packages.nix
··· 11110 11110 opentelemetry-collector = callPackage ../tools/misc/opentelemetry-collector { }; 11111 11111 opentelemetry-collector-contrib = callPackage ../tools/misc/opentelemetry-collector/contrib.nix { }; 11112 11112 11113 - openvswitch-lts = callPackage ../by-name/op/openvswitch/lts.nix { }; 11114 11113 openvswitch-dpdk = callPackage ../by-name/op/openvswitch/package.nix { withDPDK = true; }; 11115 11114 11116 11115 ovn-lts = callPackage ../by-name/ov/ovn/lts.nix { };