Merge pull request #62610 from Profpatsch/iperf3-symlink-manpage
iperf3: symlink manpage to iperf & split man output
This commit is contained in:
commit
3b58c7206b
@ -11,10 +11,18 @@ stdenv.mkDerivation rec {
|
|||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
configureFlags = [ "--enable-fastsampling" ];
|
configureFlags = [ "--enable-fastsampling" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/iperf $out/bin/iperf2
|
||||||
|
ln -s $out/bin/iperf2 $out/bin/iperf
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://sourceforge.net/projects/iperf/;
|
homepage = https://sourceforge.net/projects/iperf/;
|
||||||
description = "Tool to measure IP bandwidth using UDP or TCP";
|
description = "Tool to measure IP bandwidth using UDP or TCP";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
||||||
|
# prioritize iperf3
|
||||||
|
priority = 10;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=99ec9e1c84e338629cf1b27b0fdc808bde4d8564";
|
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=99ec9e1c84e338629cf1b27b0fdc808bde4d8564";
|
||||||
@ -19,7 +21,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -s iperf3 $out/bin/iperf
|
ln -s $out/bin/iperf3 $out/bin/iperf
|
||||||
|
ln -s $man/share/man/man1/iperf3.1 $man/share/man/man1/iperf.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user