Merge pull request #289636 from D3vil0p3r/patch-6

ptunnel: init at 0.72

authored by a-n-n-a-l-e-e and committed by GitHub bf056e14 045b2a11

+52
+52
pkgs/by-name/pt/ptunnel/package.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , fetchpatch 5 + , libpcap 6 + }: 7 + 8 + stdenv.mkDerivation (finalAttrs: { 9 + pname = "ptunnel"; 10 + version = "0.72"; 11 + 12 + src = fetchurl { 13 + url = "https://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-${finalAttrs.version}.tar.gz"; 14 + hash = "sha256-sxj3qn2IkYtiadBUp+JvBPl9iHD0e9Sadsssmcc0B6Q="; 15 + }; 16 + 17 + patches = [ 18 + # fix hyphen-used-as-minus-sign lintian warning in manpage. 19 + (fetchpatch { 20 + url = "https://salsa.debian.org/alteholz/ptunnel/-/raw/7475a32bc401056aeeb1b99e56b9ae5f1ee9c960/debian/patches/fix_minus_chars_in_man.patch"; 21 + hash = "sha256-DcMsCZczO+SxOiQuFbdSJn5UH5E4TVf3+vupJ4OurVg="; 22 + }) 23 + # fix typo in README file. 24 + (fetchpatch { 25 + url = "https://salsa.debian.org/alteholz/ptunnel/-/raw/7475a32bc401056aeeb1b99e56b9ae5f1ee9c960/debian/patches/fix_typo.diff"; 26 + hash = "sha256-9cdOCfr2r9FnTmxJwvoClW5uf27j05zWQLykahKMJQg="; 27 + }) 28 + # reverse parameters to memset. 29 + (fetchpatch { 30 + url = "https://salsa.debian.org/alteholz/ptunnel/-/raw/1dbf9b69507e19c86ac539fd8e3c60fc274717b3/debian/patches/memset-fix.patch"; 31 + hash = "sha256-dYbuMM0/ZUgi3OxukBIp5rKhlwAjGu7cl/3w3sWr/xU="; 32 + }) 33 + ]; 34 + 35 + makeFlags = [ 36 + "prefix=$(out)" 37 + "CC=cc" 38 + ]; 39 + 40 + buildInputs = [ 41 + libpcap 42 + ]; 43 + 44 + meta = with lib; { 45 + description = "A tool for reliably tunneling TCP connections over ICMP echo request and reply packets"; 46 + homepage = "https://www.cs.uit.no/~daniels/PingTunnel"; 47 + license = licenses.bsd3; 48 + mainProgram = "ptunnel"; 49 + maintainers = with maintainers; [ d3vil0p3r ]; 50 + platforms = platforms.unix; 51 + }; 52 + })