diff options
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/dhcping/default.nix | 7 | ||||
-rw-r--r-- | pkgs/tools/networking/easyrsa/2.x.nix | 46 | ||||
-rw-r--r-- | pkgs/tools/networking/hans/default.nix | 29 | ||||
-rw-r--r-- | pkgs/tools/networking/httping/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/networking/ip2location/default.nix | 5 | ||||
-rw-r--r-- | pkgs/tools/networking/ipv6calc/default.nix | 3 | ||||
-rw-r--r-- | pkgs/tools/networking/isync/isync-recursice-imap.patch | 114 | ||||
-rw-r--r-- | pkgs/tools/networking/minissdpd/default.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/networking/mtr/edd425.patch | 218 | ||||
-rw-r--r-- | pkgs/tools/networking/netsniff-ng/default.nix | 5 | ||||
-rw-r--r-- | pkgs/tools/networking/ntp/no-openssl.patch | 161 | ||||
-rw-r--r-- | pkgs/tools/networking/pcapc/default.nix | 3 | ||||
-rw-r--r-- | pkgs/tools/networking/pingtcp/default.nix | 5 |
13 files changed, 74 insertions, 533 deletions
diff --git a/pkgs/tools/networking/dhcping/default.nix b/pkgs/tools/networking/dhcping/default.nix index 53d87b2e3fa..19c2383c1c2 100644 --- a/pkgs/tools/networking/dhcping/default.nix +++ b/pkgs/tools/networking/dhcping/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl }: -let version = "1.2"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "dhcping-${version}"; + version = "1.2"; src = fetchurl { sha256 = "0sk4sg3hn88n44dxikipf3ggfj3ixrp22asb7nry9p0bkfaqdvrj"; @@ -14,7 +14,6 @@ stdenv.mkDerivation { doCheck = true; meta = with stdenv.lib; { - inherit version; description = "Send DHCP request to find out if a DHCP server is running"; longDescription = '' dhcping sends either a DHCPREQUEST or DHCPINFORM packet to the server @@ -31,4 +30,4 @@ stdenv.mkDerivation { platforms = platforms.linux; maintainers = with maintainers; [ nckx ]; }; - } +} diff --git a/pkgs/tools/networking/easyrsa/2.x.nix b/pkgs/tools/networking/easyrsa/2.x.nix new file mode 100644 index 00000000000..e49c32aac70 --- /dev/null +++ b/pkgs/tools/networking/easyrsa/2.x.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchurl, autoconf, automake111x, makeWrapper +, gnugrep, openssl}: + +stdenv.mkDerivation rec { + name = "easyrsa-2.2.0"; + + src = fetchurl { + url = "https://github.com/OpenVPN/easy-rsa/archive/v2.2.0.tar.gz"; + sha256 = "1xq4by5frb6ikn53ss3y8v7ss639dccxfq8jfrbk07ynkmk668qk"; + }; + + # Copy missing files and autoreconf + preConfigure = '' + cp ${automake111x}/share/automake/install-sh . + cp ${automake111x}/share/automake/missing . + + autoreconf + ''; + + preBuild = '' + mkdir -p $out/share/easy-rsa + ''; + + nativeBuildInputs = [ autoconf makeWrapper automake111x ]; + buildInputs = [ gnugrep openssl]; + + # Make sane defaults and patch default config vars + postInstall = '' + cp $out/share/easy-rsa/openssl-1.0.0.cnf $out/share/easy-rsa/openssl.cnf + for prog in $(find "$out/share/easy-rsa" -executable -type f); do + makeWrapper "$prog" "$out/bin/$(basename $prog)" \ + --set EASY_RSA "$out/share/easy-rsa" \ + --set OPENSSL "${openssl}/bin/openssl" \ + --set GREP "${gnugrep}/bin/grep" + done + sed -i "/EASY_RSA=\|OPENSSL=\|GREP=/d" $out/share/easy-rsa/vars + ''; + + meta = with stdenv.lib; { + description = "Simple shell based CA utility"; + homepage = http://openvpn.net/; + license = licenses.gpl2; + maintainers = [ maintainers.offline ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/networking/hans/default.nix b/pkgs/tools/networking/hans/default.nix index aecc0bb63fa..0e838a896cb 100644 --- a/pkgs/tools/networking/hans/default.nix +++ b/pkgs/tools/networking/hans/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, nettools }: -let version = "0.4.4"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "hans-${version}"; + version = "0.4.4"; src = fetchFromGitHub { sha256 = "1xskffmmdmg1whlrl5wpkv9z29vh0igrbmsz0b45s9v0761a7kis"; @@ -11,8 +11,19 @@ stdenv.mkDerivation { owner = "friedrich"; }; + buildInputs = [ nettools ]; + + postPatch = '' + substituteInPlace src/tun.cpp --replace "/sbin/" "${nettools}/bin/" + ''; + + enableParallelBuilding = true; + + installPhase = '' + install -D -m0755 hans $out/bin/hans + ''; + meta = with stdenv.lib; { - inherit version; description = "Tunnel IPv4 over ICMP"; longDescription = '' Hans makes it possible to tunnel IPv4 through ICMP echo packets, so you @@ -25,16 +36,4 @@ stdenv.mkDerivation { platforms = platforms.linux; maintainers = with maintainers; [ nckx ]; }; - - buildInputs = [ nettools ]; - - postPatch = '' - substituteInPlace src/tun.cpp --replace "/sbin/" "${nettools}/bin/" - ''; - - enableParallelBuilding = true; - - installPhase = '' - install -D -m0755 hans $out/bin/hans - ''; } diff --git a/pkgs/tools/networking/httping/default.nix b/pkgs/tools/networking/httping/default.nix index 9b1de33cf6d..00f7bde429f 100644 --- a/pkgs/tools/networking/httping/default.nix +++ b/pkgs/tools/networking/httping/default.nix @@ -3,7 +3,6 @@ stdenv.mkDerivation rec { name = "httping-${version}"; - version = "2.4"; src = fetchurl { @@ -20,7 +19,6 @@ stdenv.mkDerivation rec { ]; meta = with stdenv.lib; { - inherit version; homepage = http://www.vanheusden.com/httping; description = "ping with HTTP requests"; longDescription = '' diff --git a/pkgs/tools/networking/ip2location/default.nix b/pkgs/tools/networking/ip2location/default.nix index 18fd2d12131..22eb31384a1 100644 --- a/pkgs/tools/networking/ip2location/default.nix +++ b/pkgs/tools/networking/ip2location/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl }: -let version = "7.0.0"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "ip2location-${version}"; + version = "7.0.0"; src = fetchurl { sha256 = "05zbc02z7vm19byafi05i1rnkxc6yrfkhnm30ly68zzyipkmzx1l"; @@ -14,7 +14,6 @@ stdenv.mkDerivation { doCheck = true; meta = with stdenv.lib; { - inherit version; description = "Look up locations of host names and IP addresses"; longDescription = '' A command-line tool to find the country, region, city,coordinates, diff --git a/pkgs/tools/networking/ipv6calc/default.nix b/pkgs/tools/networking/ipv6calc/default.nix index a7c844932c9..e41b65d3d25 100644 --- a/pkgs/tools/networking/ipv6calc/default.nix +++ b/pkgs/tools/networking/ipv6calc/default.nix @@ -2,9 +2,9 @@ , geoip ? null, geolite-legacy ? null , ip2location-database ? null }: -let version = "0.99.1"; in stdenv.mkDerivation rec { name = "ipv6calc-${version}"; + version = "0.99.1"; src = fetchurl { url = "ftp://ftp.deepspace6.net/pub/ds6/sources/ipv6calc/${name}.tar.gz"; @@ -39,7 +39,6 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = with stdenv.lib; { - inherit version; description = "Calculate/manipulate (not only) IPv6 addresses"; longDescription = '' ipv6calc is a small utility to manipulate (not only) IPv6 addresses and diff --git a/pkgs/tools/networking/isync/isync-recursice-imap.patch b/pkgs/tools/networking/isync/isync-recursice-imap.patch deleted file mode 100644 index db12069950f..00000000000 --- a/pkgs/tools/networking/isync/isync-recursice-imap.patch +++ /dev/null @@ -1,114 +0,0 @@ -diff -rupN ../isync-1.0.4_original/./src/drv_imap.c ./src/drv_imap.c ---- ../isync-1.0.4_original/./src/drv_imap.c 2007-09-22 01:44:12.000000000 -0700 -+++ ./src/drv_imap.c 2009-04-22 15:28:58.000000000 -0700 -@@ -1678,7 +1678,7 @@ imap_list( store_t *gctx, string_list_t - int ret; - - imap->boxes = 0; -- if ((ret = imap_exec_b( ctx, 0, "LIST \"\" \"%s%%\"", ctx->prefix )) != DRV_OK) -+ if ((ret = imap_exec_b( ctx, 0, "LIST \"\" \"%s*\"", ctx->prefix )) != DRV_OK) - return ret; - *retb = imap->boxes; - return DRV_OK; -diff -rupN ../isync-1.0.4_original/./src/drv_maildir.c ./src/drv_maildir.c ---- ../isync-1.0.4_original/./src/drv_maildir.c 2008-02-23 01:02:21.000000000 -0800 -+++ ./src/drv_maildir.c 2009-04-22 15:34:05.000000000 -0700 -@@ -24,6 +24,7 @@ - - #include "isync.h" - -+#include <assert.h> - #include <limits.h> - #include <stdlib.h> - #include <string.h> -@@ -46,6 +47,56 @@ - #include <db.h> - #endif /* USE_DB */ - -+static void encode_maildir_box(const char* in, char* out, size_t size) -+{ -+ const char* p; -+ char c; -+ size_t out_chars; -+ -+ for (p = in, out_chars = 0; (c = *p); ++p, ++out, ++out_chars) { -+ assert(out_chars < size); -+ if (c == '/') { -+ assert(out_chars < size - 1); -+ *(out++) = '~'; -+ *out = '-'; -+ ++out_chars; -+ } -+ else if (c == '~') { -+ assert(out_chars < size - 1); -+ *(out++) = '~'; -+ *out = '~'; -+ ++out_chars; -+ } -+ else { -+ *out = c; -+ } -+ } -+ assert(out_chars < size); -+ *out = 0; -+} -+ -+static void decode_maildir_box(const char* in, char* out, size_t size) -+{ -+ const char* p; -+ char c; -+ size_t out_chars; -+ -+ for (p = in, out_chars = 0; (c = *p); ++p, ++out, ++out_chars) { -+ assert(out_chars < size); -+ if (c == '~') { -+ assert(out_chars < size - 1); -+ c = *(++p); -+ *out = (c == '-' ? '/' : '~'); -+ ++out_chars; -+ } -+ else { -+ *out = c; -+ } -+ } -+ assert(out_chars < size); -+ *out = 0; -+} -+ - typedef struct maildir_store_conf { - store_conf_t gen; - char *inbox; -@@ -164,14 +215,17 @@ maildir_list( store_t *gctx, string_list - const char *inbox = ((maildir_store_conf_t *)gctx->conf)->inbox; - int bl; - struct stat st; -- char buf[PATH_MAX]; -+ char buf[PATH_MAX], box[PATH_MAX]; - - if (*de->d_name == '.') - continue; - bl = nfsnprintf( buf, sizeof(buf), "%s%s/cur", gctx->conf->path, de->d_name ); - if (stat( buf, &st ) || !S_ISDIR(st.st_mode)) - continue; -- add_string_list( retb, !memcmp( buf, inbox, bl - 4 ) && !inbox[bl - 4] ? "INBOX" : de->d_name ); -+ -+ decode_maildir_box(de->d_name, box, PATH_MAX); -+ add_string_list( retb, -+ !memcmp( buf, inbox, bl - 4 ) && !inbox[bl - 4] ? "INBOX" : box ); - } - closedir (dir); - -@@ -717,8 +771,11 @@ maildir_prepare( store_t *gctx, int opts - #endif /* USE_DB */ - if (!strcmp( gctx->name, "INBOX" )) - gctx->path = nfstrdup( ((maildir_store_conf_t *)gctx->conf)->inbox ); -- else -- nfasprintf( &gctx->path, "%s%s", gctx->conf->path, gctx->name ); -+ else { -+ char box[_POSIX_PATH_MAX]; -+ encode_maildir_box(gctx->name, box, _POSIX_PATH_MAX); -+ nfasprintf( &gctx->path, "%s%s", gctx->conf->path, box ); -+ } - if (opts & OPEN_SETFLAGS) - opts |= OPEN_OLD; - if (opts & OPEN_EXPUNGE) diff --git a/pkgs/tools/networking/minissdpd/default.nix b/pkgs/tools/networking/minissdpd/default.nix index b197d16abdb..a414b6f092e 100644 --- a/pkgs/tools/networking/minissdpd/default.nix +++ b/pkgs/tools/networking/minissdpd/default.nix @@ -1,13 +1,11 @@ { stdenv, fetchurl, libnfnetlink }: -let - version = "1.5"; +stdenv.mkDerivation rec { name = "minissdpd-${version}"; -in stdenv.mkDerivation { - inherit name; + version = "1.5.20160119"; src = fetchurl { - sha256 = "03w9zg8i8bfjlr0haa08r823rfcff6lzm1ia875il7kkhnqkgmnz"; + sha256 = "0z0h2fqjlys9g08fbv0jg8l53h8cjlpdk45z4g71kwdk1m9ld8r2"; url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz"; name = "${name}.tar.gz"; }; @@ -21,7 +19,6 @@ in stdenv.mkDerivation { doCheck = true; meta = with stdenv.lib; { - inherit version; description = "Small daemon to speed up UPnP device discoveries"; longDescription = '' MiniSSDPd receives NOTIFY packets and stores (caches) that information diff --git a/pkgs/tools/networking/mtr/edd425.patch b/pkgs/tools/networking/mtr/edd425.patch deleted file mode 100644 index b950cacd2e5..00000000000 --- a/pkgs/tools/networking/mtr/edd425.patch +++ /dev/null @@ -1,218 +0,0 @@ -diff --git a/asn.c b/asn.c -index eac8d5e..33622ca 100644 ---- a/asn.c -+++ b/asn.c -@@ -16,6 +16,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -+#include "config.h" -+ - #include <unistd.h> - #include <stdio.h> - #include <stdlib.h> -@@ -35,7 +37,6 @@ - #include <sys/socket.h> - #include <search.h> - --#include "config.h" - #include "mtr.h" - #include "asn.h" - -diff --git a/curses.c b/curses.c -index eacc40d..b96daee 100644 ---- a/curses.c -+++ b/curses.c -@@ -16,7 +16,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" -+ - #include <strings.h> - #include <unistd.h> - -diff --git a/display.c b/display.c -index aa369ee..3545467 100644 ---- a/display.c -+++ b/display.c -@@ -16,7 +16,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" -+ - #include <stdio.h> - #include <stdlib.h> - #include <sys/types.h> -diff --git a/dns.c b/dns.c -index e89fd4b..4076b71 100644 ---- a/dns.c -+++ b/dns.c -@@ -22,7 +22,8 @@ - Released under GPL, as above. - */ - --#include <config.h> -+#include "config.h" -+ - #include <sys/types.h> - #include <sys/time.h> - #include <sys/select.h> -diff --git a/getopt.c b/getopt.c -index 3d43e26..e2f8758 100644 ---- a/getopt.c -+++ b/getopt.c -@@ -27,7 +27,7 @@ - #endif - - #ifdef HAVE_CONFIG_H --#include <config.h> -+#include "config.h" - #endif - - #if !defined (__STDC__) || !__STDC__ -diff --git a/getopt1.c b/getopt1.c -index bccf8b2..0a2d405 100644 ---- a/getopt1.c -+++ b/getopt1.c -@@ -16,7 +16,7 @@ - Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ - - #ifdef HAVE_CONFIG_H --#include <config.h> -+#include "config.h" - #endif - - #include "getopt.h" -diff --git a/gtk.c b/gtk.c -index 38ed507..7faa132 100644 ---- a/gtk.c -+++ b/gtk.c -@@ -17,7 +17,7 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" - - #include <stdio.h> - #include <stdlib.h> -diff --git a/mtr.c b/mtr.c -index 50eb464..416b744 100644 ---- a/mtr.c -+++ b/mtr.c -@@ -16,19 +16,21 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -+#include "config.h" -+ - #include <sys/types.h> --#include <config.h> --#include <netdb.h> - #include <stdio.h> - #include <stdlib.h> - #include <string.h> --#include <netinet/in.h> --#include <sys/socket.h> - #include <unistd.h> --#include <strings.h> --#include <time.h> - #include <errno.h> - #include <string.h> -+#include <strings.h> -+ -+#include <netdb.h> -+#include <netinet/in.h> -+#include <sys/socket.h> -+#include <time.h> - #include <ctype.h> - #include <assert.h> - #include <fcntl.h> -diff --git a/net.c b/net.c -index 1c8d28f..d648804 100644 ---- a/net.c -+++ b/net.c -@@ -16,7 +16,7 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" - - #if defined(HAVE_SYS_XTI_H) - #include <sys/xti.h> -@@ -1562,4 +1562,4 @@ void net_harvest_fds(void) - net_add_fds(&writefd, &maxfd); - select(maxfd, NULL, &writefd, NULL, &tv); - net_process_fds(&writefd); --} -\ No newline at end of file -+} -diff --git a/raw.c b/raw.c -index 8b0df47..0e1f4f4 100644 ---- a/raw.c -+++ b/raw.c -@@ -18,7 +18,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" -+ - #include <ctype.h> - #include <stdlib.h> - #include <stdio.h> -@@ -27,7 +28,6 @@ - #include <netinet/in.h> - #include <arpa/inet.h> - -- - #include "mtr.h" - #include "raw.h" - #include "net.h" -diff --git a/report.c b/report.c -index 71040e4..39b2fb2 100644 ---- a/report.c -+++ b/report.c -@@ -16,7 +16,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" -+ - #include <sys/types.h> - #include <stdio.h> - #include <netdb.h> -diff --git a/select.c b/select.c -index 31bfd5f..7553675 100644 ---- a/select.c -+++ b/select.c -@@ -16,7 +16,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" -+ - #include <sys/types.h> - #include <sys/time.h> - #include <stdlib.h> -diff --git a/split.c b/split.c -index 642353e..5ead235 100644 ---- a/split.c -+++ b/split.c -@@ -20,7 +20,8 @@ - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - --#include <config.h> -+#include "config.h" -+ - #include <ctype.h> - #include <stdlib.h> - #include <stdio.h> diff --git a/pkgs/tools/networking/netsniff-ng/default.nix b/pkgs/tools/networking/netsniff-ng/default.nix index 3c1d41a133b..3705745b957 100644 --- a/pkgs/tools/networking/netsniff-ng/default.nix +++ b/pkgs/tools/networking/netsniff-ng/default.nix @@ -2,9 +2,9 @@ , libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl , pkgconfig, zlib }: -let version = "0.6.0"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "netsniff-ng-${version}"; + version = "0.6.0"; # Upstream recommends and supports git src = fetchFromGitHub rec { @@ -41,7 +41,6 @@ stdenv.mkDerivation { ''; meta = with stdenv.lib; { - inherit version; description = "Swiss army knife for daily Linux network plumbing"; longDescription = '' netsniff-ng is a free Linux networking toolkit. Its gain of performance diff --git a/pkgs/tools/networking/ntp/no-openssl.patch b/pkgs/tools/networking/ntp/no-openssl.patch deleted file mode 100644 index 3a7784016ff..00000000000 --- a/pkgs/tools/networking/ntp/no-openssl.patch +++ /dev/null @@ -1,161 +0,0 @@ -Fix ntp-keygen build without OpenSSL - -http://bk1.ntp.org/ntp-stable/?PAGE=patch&REV=5497b345z5MNTuNvJWuqPSje25NQTg - -Index: ntp-4.2.8/Makefile.am -=================================================================== ---- ntp-4.2.8.orig/Makefile.am -+++ ntp-4.2.8/Makefile.am -@@ -2,7 +2,10 @@ ACLOCAL_AMFLAGS = -I sntp/m4 -I sntp/lib - - NULL = - -+# moved sntp first to get libtool and libevent built. -+ - SUBDIRS = \ -+ sntp \ - scripts \ - include \ - libntp \ -@@ -17,7 +20,6 @@ SUBDIRS = \ - clockstuff \ - kernel \ - util \ -- sntp \ - tests \ - $(NULL) - -@@ -64,7 +66,6 @@ BUILT_SOURCES = \ - .gcc-warning \ - libtool \ - html/.datecheck \ -- sntp/built-sources-only \ - $(srcdir)/COPYRIGHT \ - $(srcdir)/.checkChangeLog \ - $(NULL) -Index: ntp-4.2.8/configure.ac -=================================================================== ---- ntp-4.2.8.orig/configure.ac -+++ ntp-4.2.8/configure.ac -@@ -102,7 +102,7 @@ esac - enable_nls=no - LIBOPTS_CHECK_NOBUILD([sntp/libopts]) - --NTP_ENABLE_LOCAL_LIBEVENT -+NTP_LIBEVENT_CHECK_NOBUILD([2], [sntp/libevent]) - - NTP_LIBNTP - -@@ -771,6 +771,10 @@ esac - - #### - -+AC_CHECK_FUNCS([arc4random_buf]) -+ -+#### -+ - saved_LIBS="$LIBS" - LIBS="$LIBS $LDADD_LIBNTP" - AC_CHECK_FUNCS([daemon]) -Index: ntp-4.2.8/libntp/ntp_crypto_rnd.c -=================================================================== ---- ntp-4.2.8.orig/libntp/ntp_crypto_rnd.c -+++ ntp-4.2.8/libntp/ntp_crypto_rnd.c -@@ -24,6 +24,21 @@ - int crypto_rand_init = 0; - #endif - -+#ifndef HAVE_ARC4RANDOM_BUF -+static void -+arc4random_buf(void *buf, size_t nbytes); -+ -+void -+evutil_secure_rng_get_bytes(void *buf, size_t nbytes); -+ -+static void -+arc4random_buf(void *buf, size_t nbytes) -+{ -+ evutil_secure_rng_get_bytes(buf, nbytes); -+ return; -+} -+#endif -+ - /* - * As of late 2014, here's how we plan to provide cryptographic-quality - * random numbers: -Index: ntp-4.2.8/sntp/configure.ac -=================================================================== ---- ntp-4.2.8.orig/sntp/configure.ac -+++ ntp-4.2.8/sntp/configure.ac -@@ -97,11 +97,14 @@ esac - enable_nls=no - LIBOPTS_CHECK - --AM_COND_IF( -- [BUILD_SNTP], -- [NTP_LIBEVENT_CHECK], -- [NTP_LIBEVENT_CHECK_NOBUILD] --) -+# From when we only used libevent for sntp: -+#AM_COND_IF( -+# [BUILD_SNTP], -+# [NTP_LIBEVENT_CHECK], -+# [NTP_LIBEVENT_CHECK_NOBUILD] -+#) -+ -+NTP_LIBEVENT_CHECK([2]) - - # Checks for libraries. - -Index: ntp-4.2.8/sntp/m4/ntp_libevent.m4 -=================================================================== ---- ntp-4.2.8.orig/sntp/m4/ntp_libevent.m4 -+++ ntp-4.2.8/sntp/m4/ntp_libevent.m4 -@@ -1,4 +1,25 @@ --dnl NTP_ENABLE_LOCAL_LIBEVENT -*- Autoconf -*- -+# SYNOPSIS -*- Autoconf -*- -+# -+# NTP_ENABLE_LOCAL_LIBEVENT -+# NTP_LIBEVENT_CHECK([MINVERSION [, DIR]]) -+# NTP_LIBEVENT_CHECK_NOBUILD([MINVERSION [, DIR]]) -+# -+# DESCRIPTION -+# -+# AUTHOR -+# -+# Harlan Stenn -+# -+# LICENSE -+# -+# This file is Copyright (c) 2014 Network Time Foundation -+# -+# Copying and distribution of this file, with or without modification, are -+# permitted in any medium without royalty provided the copyright notice, -+# author attribution and this notice are preserved. This file is offered -+# as-is, without any warranty. -+ -+dnl NTP_ENABLE_LOCAL_LIBEVENT - dnl - dnl Provide only the --enable-local-libevent command-line option. - dnl -@@ -29,7 +50,7 @@ dnl If NOBUILD is provided as the 3rd ar - dnl but DO NOT invoke DIR/configure if we are going to use our bundled - dnl version. This may be the case for nested packages. - dnl --dnl provide --enable-local-libevent . -+dnl provides --enable-local-libevent . - dnl - dnl Examples: - dnl -Index: ntp-4.2.8/util/Makefile.am -=================================================================== ---- ntp-4.2.8.orig/util/Makefile.am -+++ ntp-4.2.8/util/Makefile.am -@@ -19,6 +19,7 @@ AM_LDFLAGS = $(LDFLAGS_NTP) - LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(PTHREAD_LIBS) - tg2_LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) - ntp_keygen_LDADD = version.o $(LIBOPTS_LDADD) ../libntp/libntp.a -+ntp_keygen_LDADD += $(LDADD_LIBEVENT) - ntp_keygen_LDADD += $(LDADD_LIBNTP) $(PTHREAD_LIBS) $(LDADD_NTP) $(LIBM) - ntp_keygen_SOURCES = ntp-keygen.c ntp-keygen-opts.c ntp-keygen-opts.h - diff --git a/pkgs/tools/networking/pcapc/default.nix b/pkgs/tools/networking/pcapc/default.nix index 7da123a377b..66028a973b3 100644 --- a/pkgs/tools/networking/pcapc/default.nix +++ b/pkgs/tools/networking/pcapc/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, libpcap }: -let version = "2015-03-06"; in stdenv.mkDerivation rec { name = "pcapc-${version}"; + version = "2015-03-06"; src = fetchFromGitHub { sha256 = "02j45wmxy8qcji0giwx3364pbqb6849s8y0xfvzx40g98mssl027"; @@ -24,7 +24,6 @@ stdenv.mkDerivation rec { ''; meta = with stdenv.lib; { - inherit version; inherit (src.meta) homepage; description = "Compile libpcap filter expressions into BPF opcodes"; license = licenses.gpl3; diff --git a/pkgs/tools/networking/pingtcp/default.nix b/pkgs/tools/networking/pingtcp/default.nix index 784639b788c..4d99eaaeff6 100644 --- a/pkgs/tools/networking/pingtcp/default.nix +++ b/pkgs/tools/networking/pingtcp/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchgit, cmake }: -let version = "0.0.3"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "pingtcp-${version}"; + version = "0.0.3"; # This project uses git submodules, which fetchFromGitHub doesn't support: src = fetchgit { @@ -27,7 +27,6 @@ stdenv.mkDerivation { ''; meta = with stdenv.lib; { - inherit version; description = "Measure TCP handshake time"; homepage = https://github.com/LanetNetwork/pingtcp; license = licenses.gpl3; |