ncat: Remove old package, available in nmap
This commit is contained in:
parent
df79303703
commit
e498a645c1
|
@ -1,25 +0,0 @@
|
||||||
{stdenv, fetchurl, openssl}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "ncat-0.10rc3";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = mirror://sourceforge/nmap-ncat/ncat-0.10rc3.tar.gz;
|
|
||||||
sha256 = "1yb26ipxwhqkfannji90jxi38k35fal4ffx0jm5clr1a1rndjjzb";
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [./ncat-0.10rc3.patch];
|
|
||||||
|
|
||||||
buildInputs = [openssl];
|
|
||||||
|
|
||||||
CFLAGS = "-g";
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
install -D ncat $out/bin/ncat
|
|
||||||
install -D docs/man/ncat.1 $out/man/ncat.1
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A netcat implementation with IPv6 support";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
diff -urN ncat-0.10rc3/ncat_main.c ncat-0.10rc3-fixed/ncat_main.c
|
|
||||||
--- ncat-0.10rc3/ncat_main.c 2006-01-10 03:29:08.000000000 +0300
|
|
||||||
+++ ncat-0.10rc3-fixed/ncat_main.c 2007-07-09 09:58:58.000000000 +0400
|
|
||||||
@@ -23,6 +23,7 @@
|
|
||||||
{
|
|
||||||
struct sockaddr_in ss;
|
|
||||||
struct sockaddr_in6 ss6;
|
|
||||||
+ struct sockaddr_storage sst;
|
|
||||||
|
|
||||||
struct conn_state cs;
|
|
||||||
|
|
||||||
@@ -271,7 +272,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
/* resolve hostname */
|
|
||||||
- if (!resolve(argv[optind], (struct sockaddr_storage *) &ss)) {
|
|
||||||
+ if (!resolve(argv[optind], (struct sockaddr_storage *) &sst)) {
|
|
||||||
/* host failed to resolve :( */
|
|
||||||
fprintf(stderr,
|
|
||||||
"%s: Could not resolve target hostname %s. QUITTING.\n",
|
|
||||||
@@ -297,6 +298,8 @@
|
|
||||||
|
|
||||||
/* IPv6 connect() */
|
|
||||||
if (oipv == 6) {
|
|
||||||
+ memcpy(&ss6,&sst,sizeof(ss6));
|
|
||||||
+
|
|
||||||
ss6.sin6_family = AF_INET6;
|
|
||||||
ss_len = sizeof(struct sockaddr_in6);
|
|
||||||
|
|
||||||
@@ -329,6 +332,8 @@
|
|
||||||
}
|
|
||||||
/* IPv4 connect() - default. */
|
|
||||||
else {
|
|
||||||
+ memcpy(&ss,&sst,sizeof(ss));
|
|
||||||
+
|
|
||||||
ss.sin_family = AF_INET;
|
|
||||||
ss_len = sizeof(struct sockaddr_in);
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ doNotDisplayTwice rec {
|
||||||
mssys = ms-sys; # added 2015-12-13
|
mssys = ms-sys; # added 2015-12-13
|
||||||
multipath_tools = multipath-tools; # added 2016-01-21
|
multipath_tools = multipath-tools; # added 2016-01-21
|
||||||
mupen64plus1_5 = mupen64plus; # added 2016-02-12
|
mupen64plus1_5 = mupen64plus; # added 2016-02-12
|
||||||
|
ncat = nmap; # added 2016-01-26
|
||||||
nfsUtils = nfs-utils; # added 2014-12-06
|
nfsUtils = nfs-utils; # added 2014-12-06
|
||||||
phonon_qt5 = qt5.phonon; # added 2015-12-19
|
phonon_qt5 = qt5.phonon; # added 2015-12-19
|
||||||
phonon_qt5_backend_gstreamer = qt5.phonon-backend-gstreamer; # added 2015-12-19
|
phonon_qt5_backend_gstreamer = qt5.phonon-backend-gstreamer; # added 2015-12-19
|
||||||
|
|
|
@ -2434,8 +2434,6 @@ in
|
||||||
|
|
||||||
nc6 = callPackage ../tools/networking/nc6 { };
|
nc6 = callPackage ../tools/networking/nc6 { };
|
||||||
|
|
||||||
ncat = callPackage ../tools/networking/ncat { };
|
|
||||||
|
|
||||||
ncftp = callPackage ../tools/networking/ncftp { };
|
ncftp = callPackage ../tools/networking/ncftp { };
|
||||||
|
|
||||||
ncompress = callPackage ../tools/compression/ncompress { };
|
ncompress = callPackage ../tools/compression/ncompress { };
|
||||||
|
@ -16407,4 +16405,3 @@ in
|
||||||
togglesg-download = callPackage ../tools/misc/togglesg-download { };
|
togglesg-download = callPackage ../tools/misc/togglesg-download { };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,6 @@ with import ./release-lib.nix { inherit supportedSystems; };
|
||||||
mpg321 = linux;
|
mpg321 = linux;
|
||||||
mutt = linux;
|
mutt = linux;
|
||||||
mysql = linux;
|
mysql = linux;
|
||||||
ncat = linux;
|
|
||||||
netcat = all;
|
netcat = all;
|
||||||
nfs-utils = linux;
|
nfs-utils = linux;
|
||||||
nix = all;
|
nix = all;
|
||||||
|
|
|
@ -167,7 +167,6 @@ let
|
||||||
mupen64plus = linux;
|
mupen64plus = linux;
|
||||||
mutt = linux;
|
mutt = linux;
|
||||||
nano = allBut cygwin;
|
nano = allBut cygwin;
|
||||||
ncat = linux;
|
|
||||||
netcat = all;
|
netcat = all;
|
||||||
nss_ldap = linux;
|
nss_ldap = linux;
|
||||||
nssmdns = linux;
|
nssmdns = linux;
|
||||||
|
|
Loading…
Reference in a new issue