diff options
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/axel/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/ccnet/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/networking/dhcpcd/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/getmail/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/networking/htpdate/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/http-prompt/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/mailutils/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/minio-client/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/networking/ngrok-2/default.nix | 17 | ||||
-rw-r--r-- | pkgs/tools/networking/nzbget/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/networking/openssh/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/networking/p2p/libtorrent/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/p2p/tahoe-lafs/default.nix | 43 | ||||
-rw-r--r-- | pkgs/tools/networking/tlspool/configvar-fix.patch | 36 | ||||
-rw-r--r-- | pkgs/tools/networking/tlspool/default.nix | 53 | ||||
-rw-r--r-- | pkgs/tools/networking/tlspool/fixing-rpath.patch | 36 | ||||
-rw-r--r-- | pkgs/tools/networking/urlwatch/default.nix | 4 |
17 files changed, 92 insertions, 133 deletions
diff --git a/pkgs/tools/networking/axel/default.nix b/pkgs/tools/networking/axel/default.nix index c9d689b8b2c1..2155d3c1b3d8 100644 --- a/pkgs/tools/networking/axel/default.nix +++ b/pkgs/tools/networking/axel/default.nix @@ -19,6 +19,6 @@ stdenv.mkDerivation rec { description = "Console downloading program with some features for parallel connections for faster downloading"; homepage = http://axel.alioth.debian.org/; maintainers = with maintainers; [ pSub ]; - platforms = with platforms; linux ++ darwin; + platforms = with platforms; linux; }; } diff --git a/pkgs/tools/networking/ccnet/default.nix b/pkgs/tools/networking/ccnet/default.nix index d4a279bcc424..408fd0f8c8fe 100644 --- a/pkgs/tools/networking/ccnet/default.nix +++ b/pkgs/tools/networking/ccnet/default.nix @@ -1,13 +1,13 @@ {stdenv, fetchurl, which, autoreconfHook, pkgconfig, vala, python, libsearpc, libzdb, libuuid, libevent, sqlite, openssl}: stdenv.mkDerivation rec { - version = "6.1.0"; - seafileVersion = "6.1.0"; + version = "6.1.7"; + seafileVersion = "6.1.7"; name = "ccnet-${version}"; src = fetchurl { url = "https://github.com/haiwen/ccnet/archive/v${version}.tar.gz"; - sha256 = "0q4a102xlcsxlr53h4jr4w8qzkbzvm2f3nk9fsha48h6l2hw34bb"; + sha256 = "1kkzdxa9r7sw1niwniznfkvilgvb7q039wq07cfk73qs3231bj7r"; }; nativeBuildInputs = [ pkgconfig which autoreconfHook vala python ]; diff --git a/pkgs/tools/networking/dhcpcd/default.nix b/pkgs/tools/networking/dhcpcd/default.nix index 02d5a3073f4b..93529fe4ce53 100644 --- a/pkgs/tools/networking/dhcpcd/default.nix +++ b/pkgs/tools/networking/dhcpcd/default.nix @@ -13,6 +13,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ udev ]; + preConfigure = "patchShebangs ./configure"; + configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var" diff --git a/pkgs/tools/networking/getmail/default.nix b/pkgs/tools/networking/getmail/default.nix index 4a358255b10c..224c7a4ab484 100644 --- a/pkgs/tools/networking/getmail/default.nix +++ b/pkgs/tools/networking/getmail/default.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, python2Packages }: python2Packages.buildPythonApplication rec { - version = "5.5"; + version = "5.6"; name = "getmail-${version}"; namePrefix = ""; src = fetchurl { url = "http://pyropus.ca/software/getmail/old-versions/${name}.tar.gz"; - sha256 = "0l43lbnrnyyrq8mlnw37saq6v0mh3nkirdq1dwnsrihykzjjwf70"; + sha256 = "16nmvj80szr6yvcxxgmxn2lxqpjqqj4xg5a0b66zhvck6j42q3a6"; }; doCheck = false; diff --git a/pkgs/tools/networking/htpdate/default.nix b/pkgs/tools/networking/htpdate/default.nix index f0bb4ab46fae..c8e14ad7f697 100644 --- a/pkgs/tools/networking/htpdate/default.nix +++ b/pkgs/tools/networking/htpdate/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "Utility to fetch time and set the system clock over HTTP"; homepage = http://www.vervest.org/htp/; - platforms = platforms.unix; + platforms = platforms.linux; license = licenses.gpl2Plus; }; } diff --git a/pkgs/tools/networking/http-prompt/default.nix b/pkgs/tools/networking/http-prompt/default.nix index b1f83c8b2161..37f4f96a3172 100644 --- a/pkgs/tools/networking/http-prompt/default.nix +++ b/pkgs/tools/networking/http-prompt/default.nix @@ -28,7 +28,7 @@ pythonPackages.buildPythonApplication rec { description = "An interactive command-line HTTP client featuring autocomplete and syntax highlighting"; homepage = https://github.com/eliangcs/http-prompt; license = licenses.mit; - maintainers = with maintainers; [ matthiasbeyer ]; + maintainers = with maintainers; [ ]; platforms = platforms.linux; # can only test on linux }; } diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix index 6f47b4b55766..c85aaea6f3b9 100644 --- a/pkgs/tools/networking/mailutils/default.nix +++ b/pkgs/tools/networking/mailutils/default.nix @@ -34,7 +34,7 @@ in stdenv.mkDerivation rec { ]; doCheck = true; - enableParallelBuilding = true; + enableParallelBuilding = false; hardeningDisable = [ "format" ]; configureFlags = [ diff --git a/pkgs/tools/networking/minio-client/default.nix b/pkgs/tools/networking/minio-client/default.nix index 7538c08249c0..bfe7dfc2dc0d 100644 --- a/pkgs/tools/networking/minio-client/default.nix +++ b/pkgs/tools/networking/minio-client/default.nix @@ -3,13 +3,13 @@ buildGoPackage rec { name = "minio-client-${version}"; - version = "2018-02-09T23-07-36Z"; + version = "2018-03-25T01-22-22Z"; src = fetchFromGitHub { owner = "minio"; repo = "mc"; rev = "RELEASE.${version}"; - sha256 = "1mzjqcvl8740jkkrsyycwqminnd0vdl1m2mvq8hnywj8hs816bfd"; + sha256 = "1x71va37jaqsi99d0i0mccybrs9kjgmpfsm0dchmc58mmhyagh3k"; }; goPackagePath = "github.com/minio/mc"; diff --git a/pkgs/tools/networking/ngrok-2/default.nix b/pkgs/tools/networking/ngrok-2/default.nix index 031161da4d57..23725fb2d874 100644 --- a/pkgs/tools/networking/ngrok-2/default.nix +++ b/pkgs/tools/networking/ngrok-2/default.nix @@ -1,31 +1,38 @@ { stdenv, fetchurl, unzip }: +with stdenv.lib; + stdenv.mkDerivation rec { name = "ngrok-${version}"; version = "2.2.8"; - src = if stdenv.system == "i686-linux" then fetchurl { + src = if stdenv.isLinux && stdenv.isi686 then fetchurl { url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-i386.tgz"; sha256 = "0s5ymlaxrvm13q3mlvfirh74sx60qh56c5sgdma2r7q5qlsq41xg"; - } else if stdenv.system == "x86_64-linux" then fetchurl { + } else if stdenv.isLinux && stdenv.isx86_64 then fetchurl { url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz"; sha256 = "1mn9iwgy6xzrjihikwc2k2j59igqmph0cwx17qp0ziap9lp5xxad"; + } else if stdenv.isDarwin then fetchurl { + url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-386.zip"; + sha256 = "0yfd250b55wcpgqd00rqfaa7a82f35fmybb31q5xwdbgc2i47pbh"; } else throw "platform ${stdenv.system} not supported!"; sourceRoot = "."; + nativeBuildInputs = optional stdenv.isDarwin unzip; + installPhase = '' install -D ngrok $out/bin/ngrok ''; - meta = with stdenv.lib; { + meta = { description = "ngrok"; longDescription = '' Allows you to expose a web server running on your local machine to the internet. ''; homepage = https://ngrok.com/; - license = stdenv.lib.licenses.unfree; - platforms = [ "i686-linux" "x86_64-linux" ]; + license = licenses.unfree; + platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]; maintainers = [ maintainers.bobvanderlinden ]; }; } diff --git a/pkgs/tools/networking/nzbget/default.nix b/pkgs/tools/networking/nzbget/default.nix index d72ee844c0ec..ef65444ae331 100644 --- a/pkgs/tools/networking/nzbget/default.nix +++ b/pkgs/tools/networking/nzbget/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { name = "nzbget-${version}"; - version = "19.0"; + version = "19.1"; src = fetchurl { url = "http://github.com/nzbget/nzbget/releases/download/v${version}/nzbget-${version}-src.tar.gz"; - sha256 = "08kgi4zmh4h1pvxh8x4c3ydf9xl2s6ncm579f0wdm2zknvpf0j16"; + sha256 = "1rjwv555zc2hiagf00k8l1pzav91qglsnqbqkyy3pmn2d8sl5pq6"; }; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index 1c135cd36f48..42fcc842ad55 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -21,12 +21,12 @@ in with stdenv.lib; stdenv.mkDerivation rec { name = "openssh-${version}"; - version = if hpnSupport then "7.5p1" else "7.6p1"; + version = if hpnSupport then "7.6p1" else "7.6p1"; src = if hpnSupport then fetchurl { - url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-7_5_P1.tar.gz"; - sha256 = "1hasdcfjl6xf5nbbbvqyyq5v7ad10nywrq89j7naxz9wln58nhnn"; + url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-7_6_P1.tar.gz"; + sha256 = "15b1zjk9f3jlxji1vpqfla40cnzy8hv2clk925cvpgz7lqgv4a1d"; } else fetchurl { diff --git a/pkgs/tools/networking/p2p/libtorrent/default.nix b/pkgs/tools/networking/p2p/libtorrent/default.nix index 87785f50e6fa..87cf6d172c0c 100644 --- a/pkgs/tools/networking/p2p/libtorrent/default.nix +++ b/pkgs/tools/networking/p2p/libtorrent/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { homepage = "http://rtorrent.net/downloads/"; description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code"; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ ebzzry codyopel ]; }; } diff --git a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix index 4bdc630efd79..8c0c4a6c5664 100644 --- a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix +++ b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, lib, unzip, nettools, pythonPackages }: +{ fetchurl, lib, unzip, nettools, pythonPackages, texinfo }: # FAILURES: The "running build_ext" phase fails to compile Twisted # plugins, because it tries to write them into Twisted's (immutable) @@ -15,7 +15,9 @@ pythonPackages.buildPythonApplication rec { sha256 = "0x9f1kjym1188fp6l5sqy0zz8mdb4xw861bni2ccv26q482ynbks"; }; - patchPhase = '' + outputs = [ "out" "doc" "info" ]; + + postPatch = '' sed -i "src/allmydata/util/iputil.py" \ -es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g" @@ -30,6 +32,24 @@ pythonPackages.buildPythonApplication rec { sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py ''; + # Remove broken and expensive tests. + preConfigure = '' + ( + cd src/allmydata/test + + # Buggy? + rm cli/test_create.py test_backupdb.py + + # These require Tor and I2P. + rm test_connections.py test_iputil.py test_hung_server.py test_i2p_provider.py test_tor_provider.py + + # Expensive + rm test_system.py + ) + ''; + + nativeBuildInputs = with pythonPackages; [ sphinx texinfo ]; + buildInputs = with pythonPackages; [ unzip numpy mock ]; # The `backup' command requires `sqlite3'. @@ -39,16 +59,23 @@ pythonPackages.buildPythonApplication rec { service-identity pyyaml ]; + # Install the documentation. postInstall = '' - # Install the documentation. - mkdir -p "$out/share/doc/${name}" - cp -rv "docs/"* "$out/share/doc/${name}" - find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \; + ( + cd docs + + make singlehtml + mkdir -p "$doc/share/doc/${name}" + cp -rv _build/singlehtml/* "$doc/share/doc/${name}" + + make info + mkdir -p "$info/share/info" + cp -rv _build/texinfo/*.info "$info/share/info" + ) ''; checkPhase = '' - # Still broken. ~ C. - # trial allmydata + trial --rterrors allmydata ''; meta = { diff --git a/pkgs/tools/networking/tlspool/configvar-fix.patch b/pkgs/tools/networking/tlspool/configvar-fix.patch deleted file mode 100644 index 424fef20dcfd..000000000000 --- a/pkgs/tools/networking/tlspool/configvar-fix.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 8561789ba70ae5d741992b143ee288b8e11a5e2b Mon Sep 17 00:00:00 2001 -From: joachim schiele <js@lastlog.de> -Date: Wed, 1 Mar 2017 15:15:22 +0100 -Subject: [PATCH] fix to - https://github.com/arpa2/tlspool/issues/58#issuecomment-283333738 - ---- - tool/Makefile | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/tool/Makefile b/tool/Makefile -index 9a15012..0f655e9 100644 ---- a/tool/Makefile -+++ b/tool/Makefile -@@ -38,7 +38,6 @@ pgp11genkey_LIBS = $(P11KIT_LIBS) -lcrypto - - configvar_CFLAGS = $(tlspool_CFLAGS) - configvar_LDFLAGS = $(tlspool_LDFLAGS) --configvar_LIBS = $(tlspool_LIBS) - - P11KIT_CFLAGS = $(shell pkg-config --cflags p11-kit-1) - P11KIT_LIBS = $(shell pkg-config --libs p11-kit-1) -@@ -96,8 +95,8 @@ have_db: have_db.c - pgp11_genkey: pgp11_genkey.c - gcc -std=gnu11 $(CFLAGS) $(pgp11genkey_CFLAGS) -o "$@" "$<" $(pgp11genkey_LIBS) - --configvar: configvar.c $(configvar_LIBS) -- gcc -std=gnu11 $(CFLAGS) $(configvar_CFLAGS) $(configvar_LDFLAGS) $(configvar_CFLAGS) -o "$@" "$<" $(configvar_LIBS) -+configvar: configvar.c -+ gcc -std=gnu11 $(CFLAGS) $(configvar_CFLAGS) $(configvar_LDFLAGS) $(configvar_CFLAGS) -o "$@" "$<" - - $(tlspool_LIBS): - $(MAKE) -C ../lib `basename $(tlspool_LIBS)` --- -2.12.0 - diff --git a/pkgs/tools/networking/tlspool/default.nix b/pkgs/tools/networking/tlspool/default.nix index 02d3f2c29488..b992fef2253f 100644 --- a/pkgs/tools/networking/tlspool/default.nix +++ b/pkgs/tools/networking/tlspool/default.nix @@ -1,56 +1,51 @@ -{ pkgs, stdenv, fetchFromGitHub, unzip, libtool, pkgconfig, git, p11-kit, - libtasn1, db, openldap, libmemcached, cyrus_sasl, openssl, softhsm, bash, - python, libkrb5, quickder, unbound, ldns, gnupg, gnutls-kdh, - useSystemd ? true, systemd, swig +{ stdenv, fetchFromGitHub +, cmake, pkgconfig, arpa2cm +, openldap, p11-kit, unbound, libtasn1, db, openssl, quickder, libkrb5, ldns, gnutls-kdh +, softhsm }: let pname = "tlspool"; - version = "20170123"; + version = "20180227"; in stdenv.mkDerivation rec { name = "${pname}-${version}"; - src = fetchFromGitHub { + src = fetchFromGitHub { owner = "arpa2"; repo = "tlspool"; - rev = "90cfa0758b02849114ba6373f280a4f2d3e534bf"; - sha256 = "1qyq6da5bsgb8y9f3jhfrnhbvjns4k80lpkrydkvfx83bg494370"; + rev = "b4459637d71c7602e94d455e23c74f3973b9cf30"; + sha256 = "0x78f2bdsiglwicwn3injm5ysfjlfa0yzdpnc0r3iw4z0n89rj2r"; }; - propagatedBuildInputs = [ python softhsm openldap p11-kit.dev p11-kit.out gnupg ]; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ unbound unzip git libtasn1 db libmemcached cyrus_sasl openssl bash quickder - libkrb5 ldns libtool swig pkgs.pythonPackages.pip gnutls-kdh ] - ++ stdenv.lib.optional useSystemd systemd; + nativeBuildInputs = [ + cmake pkgconfig arpa2cm + ]; - patches = [ ./fixing-rpath.patch ./configvar-fix.patch ]; + buildInputs = [ + openldap p11-kit unbound libtasn1 db openssl quickder libkrb5 ldns gnutls-kdh + ]; postPatch = '' + # CMake is probably confused because the current version isn't 1.2.6, but 1.2-6 + substituteInPlace CMakeLists.txt \ + --replace "Quick-DER 1.2.4" "Quick-DER 1.2" substituteInPlace etc/tlspool.conf \ --replace "dnssec_rootkey ../etc/root.key" "dnssec_rootkey $out/etc/root.key" \ --replace "pkcs11_path /usr/local/lib/softhsm/libsofthsm2.so" "pkcs11_path ${softhsm}/lib/softhsm/libsofthsm2.so" - substituteInPlace lib/Makefile \ - --replace "DESTDIR=\$(DESTDIR) PREFIX=\$(PREFIX)" "DESTDIR=\$(DESTDIR) PREFIX=\$(PREFIX) SWIG=${swig}/bin/swig" ''; - buildPhase = '' - make clean - make DESTDIR=$out PREFIX=/ all - ''; - - installPhase = '' - mkdir -p $out/bin $out/lib $out/sbin $out/etc/tlspool/ $out/include/${pname}/pulleyback - make DESTDIR=$out PREFIX=/ install - cp -R etc/* $out/etc/tlspool/ - cp include/tlspool/*.h $out/include/${pname} - cp pulleyback/*.h $out/include/${pname}/pulleyback/ - cp src/*.h $out/include/${pname} + postInstall = '' + mkdir -p $out/include/${pname}/pulleyback $out/etc/tlspool + cp -R $src/etc/* $out/etc/tlspool/ + cp $src/include/tlspool/*.h $out/include/${pname} + cp $src/pulleyback/*.h $out/include/${pname}/pulleyback/ + cp $src/src/*.h $out/include/${pname} ''; meta = with stdenv.lib; { description = "A supercharged TLS daemon that allows for easy, strong and consistent deployment"; - license = licenses.bsd2; + license = licenses.gpl3; homepage = http://www.tlspool.org; maintainers = with maintainers; [ leenaars qknight ]; }; diff --git a/pkgs/tools/networking/tlspool/fixing-rpath.patch b/pkgs/tools/networking/tlspool/fixing-rpath.patch deleted file mode 100644 index 6a434f3e4008..000000000000 --- a/pkgs/tools/networking/tlspool/fixing-rpath.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 8082f050794f771d1afb8e5c3d08862fc633922b Mon Sep 17 00:00:00 2001 -From: joachim schiele <js@lastlog.de> -Date: Wed, 1 Mar 2017 13:12:19 +0100 -Subject: [PATCH] RPATH is back - https://github.com/arpa2/tlspool/issues/58#issuecomment-283318767 - ---- - tool/Makefile | 10 +++++++++- - 1 file changed, 9 insertions(+), 1 deletion(-) - -diff --git a/tool/Makefile b/tool/Makefile -index c1e6ce9..9a15012 100644 ---- a/tool/Makefile -+++ b/tool/Makefile -@@ -18,9 +18,17 @@ LIBS = - - PREFIX = /usr/local - -+DIR := ${CURDIR} -+LIBDIR := "" -+ifndef DESTDIR -+ LIBDIR=$(DIR)/../lib/ -+else -+ LIBDIR=$(DESTDIR)/lib -+endif -+ - tlspool_CFLAGS = - tlspool_LIBS = ../lib/libtlspool.so --tlspool_LDFLAGS = -L ../lib -ltlspool -+tlspool_LDFLAGS = -L ../lib -ltlspool -Wl,-rpath,$(LIBDIR) - - donai_CFLAGS = -DDONAI_ONLY_TEXTPROC - donai_SRC = ../src/donai.c --- -2.11.1 - diff --git a/pkgs/tools/networking/urlwatch/default.nix b/pkgs/tools/networking/urlwatch/default.nix index 0c37043de9bb..3e77117e55f0 100644 --- a/pkgs/tools/networking/urlwatch/default.nix +++ b/pkgs/tools/networking/urlwatch/default.nix @@ -2,13 +2,13 @@ python3Packages.buildPythonApplication rec { name = "urlwatch-${version}"; - version = "2.8"; + version = "2.9"; src = fetchFromGitHub { owner = "thp"; repo = "urlwatch"; rev = version; - sha256 = "1nja7n6pc45azd3l1xyvav89855lvcgwabrvf34rps81dbl8cnl4"; + sha256 = "0biy02vyhdwghy9qjmjwlfd8hzaz9gfsssd53ng6zpww4wkkiydz"; }; propagatedBuildInputs = with python3Packages; [ |