openvswitch: split out lib, dev, tools to reduce closure size (#443500)
This commit is contained in:
@@ -41,7 +41,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
"lib"
|
||||
"man"
|
||||
"tools"
|
||||
];
|
||||
|
||||
patches = [
|
||||
@@ -97,13 +100,21 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --bash utilities/ovs-appctl-bashcomp.bash
|
||||
installShellCompletion --bash utilities/ovs-vsctl-bashcomp.bash
|
||||
# Install bash completions in correct location
|
||||
rm -f $out/etc/bash_completion.d/ovs-*.bash
|
||||
installShellCompletion utilities/ovs-appctl-bashcomp.bash
|
||||
installShellCompletion utilities/ovs-vsctl-bashcomp.bash
|
||||
|
||||
wrapProgram $out/bin/ovs-l3ping \
|
||||
mkdir -p $tools/{bin,share/openvswitch/scripts}
|
||||
mv $out/share/openvswitch/bugtool-plugins $tools/share/openvswitch
|
||||
mv $out/share/openvswitch/scripts/ovs-{bugtool*,check-dead-ifs,monitor-ipsec,vtep} $tools/share/openvswitch/scripts
|
||||
mv $out/share/openvswitch/scripts/usdt $tools/share/openvswitch/scripts
|
||||
mv $out/bin/ovs-{bugtool,dpctl-top,l3ping,parse-backtrace,pcap,tcpdump,tcpundump,test,vlan-test} $tools/bin
|
||||
|
||||
wrapProgram $tools/bin/ovs-l3ping \
|
||||
--prefix PYTHONPATH : $out/share/openvswitch/python
|
||||
|
||||
wrapProgram $out/bin/ovs-tcpdump \
|
||||
wrapProgram $tools/bin/ovs-tcpdump \
|
||||
--prefix PATH : ${lib.makeBinPath [ tcpdump ]} \
|
||||
--prefix PYTHONPATH : $out/share/openvswitch/python
|
||||
'';
|
||||
@@ -152,6 +163,7 @@ stdenv.mkDerivation rec {
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [
|
||||
adamcstephens
|
||||
booxter
|
||||
kmcopper
|
||||
netixx
|
||||
xddxdd
|
||||
|
||||
Reference in New Issue
Block a user