tcptrace: init at 6.6.7 (#285606)

authored by Arne Keller and committed by GitHub 13e9de06 56dcfe36

+70
+16
pkgs/by-name/tc/tcptrace/fix-owners.patch
···
··· 1 + Index: tcptrace-6.6.1/Makefile.in 2 + =================================================================== 3 + --- tcptrace-6.6.1.orig/Makefile.in 4 + --- tcptrace-6.6.1/Makefile.in 5 + @@ -286,9 +286,9 @@ 6 + # just a quick installation rule 7 + INSTALL = ./install-sh -c 8 + install: tcptrace install-man 9 + - $(INSTALL) -m 755 -o bin -g bin tcptrace ${BINDIR}/tcptrace 10 + + $(INSTALL) -m 755 tcptrace ${BINDIR}/tcptrace 11 + install-man: 12 + - $(INSTALL) -m 444 -o bin -g bin tcptrace.man $(MANDIR)/man1/tcptrace.1 13 + + $(INSTALL) -m 444 tcptrace.man $(MANDIR)/man1/tcptrace.1 14 + 15 + 16 +
+54
pkgs/by-name/tc/tcptrace/package.nix
···
··· 1 + { 2 + stdenv, 3 + fetchurl, 4 + lib, 5 + libpcap, 6 + }: 7 + stdenv.mkDerivation (final: { 8 + name = "tcptrace"; 9 + version = "6.6.7"; 10 + 11 + srcs = [ 12 + (fetchurl { 13 + # Home page was down on 2024-02-01, so use Debian mirror as fallback. 14 + urls = [ 15 + "http://www.tcptrace.org/download/tcptrace-${final.version}.tar.gz" 16 + "mirror://debian/pool/main/t/tcptrace/tcptrace_${final.version}.orig.tar.gz" 17 + ]; 18 + hash = "sha256-YzgKQFGTPKCJeUdqnfxvlZMIvJ9g1FJVIC44jrVpEL0="; 19 + }) 20 + (fetchurl { 21 + url = "mirror://debian/pool/main/t/tcptrace/tcptrace_6.6.7-6.debian.tar.xz"; 22 + hash = "sha256-8rkwzdXcDOc3kACvrlyTQsnSw6AJgy6xA0YrECu63gY="; 23 + }) 24 + ]; 25 + sourceRoot = "tcptrace-${final.version}"; 26 + 27 + outputs = [ 28 + "out" 29 + "man" 30 + ]; 31 + 32 + setOutputFlags = false; 33 + 34 + patches = [ ./fix-owners.patch ]; 35 + prePatch = '' 36 + patches_deb=(../debian/patches/bug*) 37 + patches+=" ''${patches_deb[*]}" 38 + ''; 39 + 40 + buildInputs = [ libpcap ]; 41 + makeFlags = [ 42 + "BINDIR=${placeholder "out"}/bin" 43 + "MANDIR=${placeholder "man"}/share/man" 44 + ]; 45 + 46 + meta = { 47 + description = "Tool for analysis of TCP dump files"; 48 + homepage = "http://www.tcptrace.org/"; 49 + license = lib.licenses.gpl2Plus; 50 + maintainers = [ lib.maintainers.gmacon ]; 51 + mainProgram = "tcptrace"; 52 + platforms = lib.platforms.unix; 53 + }; 54 + })