3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #132341 from Stunkymonkey/tools-networking-pname-version

tools/networking: replace name with pname&version
This commit is contained in:
Sandro 2021-08-05 12:18:52 +02:00 committed by GitHub
commit 4de327b877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 79 additions and 57 deletions

View file

@ -1,7 +1,8 @@
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "noip-2.1.9-1";
pname = "noip";
version = "2.1.9-1";
src = fetchurl {
url = "https://www.noip.com/client/linux/noip-duc-linux.tar.gz";

View file

@ -7,12 +7,13 @@
# directory, but we use luajit, zeromq, and rrdtool from nixpkgs
stdenv.mkDerivation rec {
name = "ntopng-2.0";
pname = "ntopng";
version = "2.0";
src = fetchurl {
urls = [
"mirror://sourceforge/project/ntop/ntopng/old/${name}.tar.gz"
"mirror://sourceforge/project/ntop/ntopng/${name}.tar.gz"
"mirror://sourceforge/project/ntop/ntopng/old/ntopng-${version}.tar.gz"
"mirror://sourceforge/project/ntop/ntopng/ntopng-${version}.tar.gz"
];
sha256 = "0l82ivh05cmmqcvs26r6y69z849d28njipphqzvnakf43ggddgrw";
};

View file

@ -6,10 +6,11 @@ let
paths = [ libevent.dev libevent.out ];
};
in
stdenv.mkDerivation {
name = "nylon-1.21";
stdenv.mkDerivation rec {
pname = "nylon";
version = "1.21";
src = fetchurl {
url = "https://monkey.org/~marius/nylon/nylon-1.21.tar.gz";
url = "https://monkey.org/~marius/nylon/nylon-${version}.tar.gz";
sha256 = "34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "pcapfix-1.1.4";
pname = "pcapfix";
version = "1.1.4";
src = fetchurl {
url = "https://f00l.de/pcapfix/${name}.tar.gz";
url = "https://f00l.de/pcapfix/pcapfix-${version}.tar.gz";
sha256 = "0m6308ka33wqs568b7cwa1f5q0bv61j2nwfizdyzrazw673lnh6d";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "pdnsd-1.2.9a-par";
stdenv.mkDerivation rec {
pname = "pdnsd";
version = "1.2.9a-par";
src = fetchurl {
url = "http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-1.2.9a-par.tar.gz";
url = "http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-${version}.tar.gz";
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, perl, readline, rsh, ssh, slurm, slurmSupport ? false }:
stdenv.mkDerivation rec {
name = "pdsh-2.34";
pname = "pdsh";
version = "2.34";
src = fetchurl {
url = "https://github.com/chaos/pdsh/releases/download/${name}/${name}.tar.gz";
url = "https://github.com/chaos/pdsh/releases/download/pdsh-${version}/pdsh-${version}.tar.gz";
sha256 = "1s91hmhrz7rfb6h3l5k97s393rcm1ww3svp8dx5z8vkkc933wyxl";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, openssl, zlib, ncurses }:
stdenv.mkDerivation rec {
name = "polygraph-4.13.0";
pname = "polygraph";
version = "4.13.0";
src = fetchurl {
url = "http://www.web-polygraph.org/downloads/srcs/${name}-src.tgz";
url = "http://www.web-polygraph.org/downloads/srcs/polygraph-${version}-src.tgz";
sha256 = "1rwzci3n7q33hw3spd79adnclzwgwlxcisc9szzjmcjqhbkcpj1a";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "srelay-0.4.8";
stdenv.mkDerivation rec {
pname = "srelay";
version = "0.4.8";
src = fetchurl {
url = "mirror://sourceforge/project/socks-relay/socks-relay/srelay-0.4.8/srelay-0.4.8.tar.gz";
url = "mirror://sourceforge/project/socks-relay/socks-relay/srelay-${version}/srelay-${version}.tar.gz";
sha256 = "1sn6005aqyfvrlkm5445cyyaj6h6wfyskfncfmds55x34hfyxpvl";
};

View file

@ -1,10 +1,11 @@
{lib, stdenv, fetchurl, perl}:
stdenv.mkDerivation {
name = "surfraw-2.3.0";
stdenv.mkDerivation rec {
pname = "surfraw";
version = "2.3.0";
src = fetchurl {
url = "https://gitlab.com/surfraw/Surfraw/uploads/2de827b2786ef2fe43b6f07913ca7b7f/surfraw-2.3.0.tar.gz";
url = "https://gitlab.com/surfraw/Surfraw/uploads/2de827b2786ef2fe43b6f07913ca7b7f/surfraw-${version}.tar.gz";
sha256 = "099nbif0x5cbcf18snc58nx1a3q7z0v9br9p2jiq9pcc7ic2015d";
};

View file

@ -1,10 +1,11 @@
{ fetchurl, lib, stdenv, makeWrapper, perlPackages }:
stdenv.mkDerivation rec {
name = "swec-0.4";
pname = "swec";
version = "0.4";
src = fetchurl {
url = "http://files.zerodogg.org/swec/${name}.tar.bz2";
url = "http://files.zerodogg.org/swec/swec-${version}.tar.bz2";
sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx";
};
@ -24,9 +25,9 @@ stdenv.mkDerivation rec {
installPhase = ''
make install prefix="$out"
mkdir -p "$out/share/${name}"
cp -v default.sdf "$out/share/${name}"
sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g"
mkdir -p "$out/share/swec-${version}"
cp -v default.sdf "$out/share/swec-${version}"
sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/swec-${version}/swec'|g"
wrapProgram "$out/bin/swec" \
--prefix PERL5LIB : ${with perlPackages; makePerlPath [ LWP URI HTMLParser ]}

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, libevent, libtirpc }:
stdenv.mkDerivation rec {
name = "trickle-1.07";
pname = "trickle";
version = "1.07";
src = fetchurl {
url = "https://monkey.org/~marius/trickle/${name}.tar.gz";
url = "https://monkey.org/~marius/trickle/trickle-${version}.tar.gz";
sha256 = "0s1qq3k5mpcs9i7ng0l9fvr1f75abpbzfi1jaf3zpzbs1dz50dlx";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "ucspi-tcp-0.88";
pname = "ucspi-tcp";
version = "0.88";
src = fetchurl {
url = "https://cr.yp.to/ucspi-tcp/${name}.tar.gz";
url = "https://cr.yp.to/ucspi-tcp/ucspi-tcp-${version}.tar.gz";
sha256 = "171yl9kfm8w7l17dfxild99mbf877a9k5zg8yysgb1j8nz51a1ja";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "udptunnel-19";
stdenv.mkDerivation rec {
pname = "udptunnel";
version = "19";
src = fetchurl {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/udptunnel/udptunnel-r19.tar.gz";
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/udptunnel/udptunnel-r${version}.tar.gz";
sha256 = "1hkrn153rdyrp9g15z4d5dq44cqlnby2bfplp6z0g3862lnv7m3l";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, fetchpatch, pam, openssl }:
stdenv.mkDerivation ({
name = "uw-imap-2007f";
stdenv.mkDerivation rec {
pname = "uw-imap";
version = "2007f";
src = fetchurl {
url = "ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz";
url = "ftp://ftp.cac.washington.edu/imap/imap-${version}.tar.gz";
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
};
@ -59,4 +60,4 @@ stdenv.mkDerivation ({
echo "Cross-compilation, injecting make flags"
makeFlagsArray+=("ARRC=${stdenv.hostPlatform.config}-ar rc")
'';
})
}

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, fetchpatch, openssl, libpcap, python2, withPython ? false }:
stdenv.mkDerivation rec {
name = "vde2-2.3.2";
pname = "vde2";
version = "2.3.2";
src = fetchurl {
url = "mirror://sourceforge/vde/vde2/2.3.1/${name}.tar.gz";
url = "mirror://sourceforge/vde/vde2/${version}/vde2-${version}.tar.gz";
sha256 = "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "vlan-1.9";
stdenv.mkDerivation rec {
pname = "vlan";
version = "1.9";
src = fetchurl {
url = "mirror://gentoo/distfiles/vlan.1.9.tar.gz";
url = "mirror://gentoo/distfiles/vlan.${version}.tar.gz";
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
};

View file

@ -1,7 +1,8 @@
{ lib, stdenv, fetchsvn, nettools, libgcrypt, openssl, openresolv, perl, gawk, makeWrapper }:
stdenv.mkDerivation {
name = "vpnc-0.5.3-post-r550";
pname = "vpnc";
version = "0.5.3-post-r550";
src = fetchsvn {
url = "https://svn.unix-ag.uni-kl.de/vpnc";
rev = "550";

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, fetchpatch, openssl, lzo, zlib, bison, flex }:
stdenv.mkDerivation rec {
name = "vtun-3.0.4";
pname = "vtun";
version = "3.0.4";
src = fetchurl {
url = "mirror://sourceforge/vtun/${name}.tar.gz";
url = "mirror://sourceforge/vtun/vtun-${version}.tar.gz";
sha256 = "1fcqzn2bdjw31j1hvv6lg99v2phhszm29kp2xambxzp32mmxzy5b";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "wakelan-1.1";
pname = "wakelan";
version = "1.1";
src = fetchurl {
url = "mirror://metalab/system/network/misc/${name}.tar.gz";
url = "mirror://metalab/system/network/misc/wakelan-${version}.tar.gz";
sha256 = "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x";
};

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
stdenv.mkDerivation {
name = "webalizer-2.23-05";
stdenv.mkDerivation rec {
pname = "webalizer";
version = "2.23-05";
src = fetchurl {
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-05-src.tar.bz2";
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-${version}-src.tar.bz2";
sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g";
};

View file

@ -1,12 +1,13 @@
{ lib, stdenv, fetchurl, xlibsWrapper, imake, gccmakedep }:
stdenv.mkDerivation {
name = "x11-ssh-askpass-1.2.4.1";
stdenv.mkDerivation rec {
pname = "x11-ssh-askpass";
version = "1.2.4.1";
outputs = [ "out" "man" ];
src = fetchurl {
url = "http://pkgs.fedoraproject.org/repo/pkgs/openssh/x11-ssh-askpass-1.2.4.1.tar.gz/8f2e41f3f7eaa8543a2440454637f3c3/x11-ssh-askpass-1.2.4.1.tar.gz";
url = "http://pkgs.fedoraproject.org/repo/pkgs/openssh/x11-ssh-askpass-${version}.tar.gz/8f2e41f3f7eaa8543a2440454637f3c3/x11-ssh-askpass-${version}.tar.gz";
sha256 = "620de3c32ae72185a2c9aeaec03af24242b9621964e38eb625afb6cdb30b8c88";
};

View file

@ -1,14 +1,15 @@
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, glib, jansson }:
stdenv.mkDerivation rec {
name = "xnbd-0.4.0";
pname = "xnbd";
version = "0.4.0";
src = fetchurl {
url = "https://bitbucket.org/hirofuchi/xnbd/downloads/${name}.tgz";
url = "https://bitbucket.org/hirofuchi/xnbd/downloads/xnbd-${version}.tgz";
sha256 = "00wkvsa0yaq4mabczcbfpj6rjvp02yahw8vdrq8hgb3wpm80x913";
};
sourceRoot = "${name}/trunk";
sourceRoot = "xnbd-${version}/trunk";
patches = [ ./0001-Fix-build-for-glibc-2.28.patch ];