summaryrefslogtreecommitdiff
path: root/net-analyzer/scanssh
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/scanssh')
-rw-r--r--net-analyzer/scanssh/Manifest6
-rw-r--r--net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff61
-rw-r--r--net-analyzer/scanssh/metadata.xml9
-rw-r--r--net-analyzer/scanssh/scanssh-2.1.ebuild34
4 files changed, 110 insertions, 0 deletions
diff --git a/net-analyzer/scanssh/Manifest b/net-analyzer/scanssh/Manifest
new file mode 100644
index 000000000000..3627c6c7b8f6
--- /dev/null
+++ b/net-analyzer/scanssh/Manifest
@@ -0,0 +1,6 @@
+AUX scanssh-2.0-fix-warnings.diff 1071 SHA256 1e06a9fc99f548b99c519fdfba93f4b0ae3ee326c71fce0e1da2104b55be758d SHA512 b9080dbe7551e905db0744ca36b8690d05d784ad7c4c77f4fcbe64ff603353e998cc28ae45c26e230f594278cdb6f130029aa633166e6636933be44845c27b06 WHIRLPOOL e301d1c5ffff8b67bc897beb85a59b6ce808abbb8465864d9acae57a2ffcbe7449f635193e185dc8a1817fcfee5c99b39dfc99d17650e407732631c945c7a393
+DIST scanssh-2.1.tar.gz 111481 SHA256 057eec87edafbbe5bc22960cbac53e3ada0222400d649a5e2f22cc8981f5b035 SHA512 1ddff6f8e51735bab28032c8d7cbb641ff0cd19a404a27ab489589ef1e30e3721dd486854eb4fef15368cc53f10c9c2650ffaf7fa7f767dc2202fcc5540ae59c WHIRLPOOL 5b14b341d44a5f57e3263f35d063084f116feb315a4b1e92cf7a69d752266accab64c17cf713bf7bc5074e14f4a895f3b6bae0d30c6bc1e7d24436eebd8eeafa
+EBUILD scanssh-2.1.ebuild 639 SHA256 04034ac62701e9a74a945ef17a3b7abc4c1a4ae5579f1939f8019d7a0fa0c3b0 SHA512 d2e4f94dd8af668ce43308d8db5f11d4043110607815071fe0a563ede1231677d6fe340c6ad78a4e49bdb26e45ade7066d88b0621e86acf972a491f5175a3f2e WHIRLPOOL 8ae042fbc294519b00b0a2f93565c71875d86b56bfc55e069cd16ddc7474efd1ab43b8c51355d74ffe6c21a4688e27881ee324769108186e8c461fb0cccab6ad
+MISC ChangeLog 2465 SHA256 84a2c112091893af49923345733327bf43169f9a6d4ad65dc7b12608ae4722b3 SHA512 98334208fea00c112b835eab2b8ba37aeda0a499b0140fafb6fddce8512c9adb14450f20ac095053e88a60e492558a93af68d85c5feb14c780afaab30d25a303 WHIRLPOOL 6bd9244f63a6804509abe5978700b3303254e814e8c5c5d3fd8a19566e8a54d56e82e6fd52e28c7fed3e6501e69514ad32b96b2a74bbf4f4a8ac894941395bf6
+MISC ChangeLog-2015 2886 SHA256 a4e0df4a26a977ec9727e48f20cbf6eeba23ccd0380b8e1f6bca94e3ae25e884 SHA512 150be2a0bb21405188bb9fe1e05eccad68ecb6f450ff5b30207fd3501100651c232da04a380f27cffc96824a484bd6b92a8479e9bdf39f9b5b032273a22c6a49 WHIRLPOOL febcaf81c3400ae13dc07c6a30b99de23ad32479e6960c0b535c9d152808bf02fb43e5dd1b4568a91f096ca492da8f89f745d0a6cb8dd37cf70fe669abce8d25
+MISC metadata.xml 436 SHA256 389675b99830c1cf851f62d5e20922992ceb359aa3884c240373738d01a8a106 SHA512 98f0bb0894f2208336cb9e42bc4445a13c01a851d1a0f964519029c639ec37d7d476cc128e0e9acc0558ad23f2312c8189784f7e08a4cd0e80fb92823fce1da7 WHIRLPOOL 32546f446221e541ad60914a405bd4bfcc00e18d3111cfeddbb92a13b14d1b0c83bf96a936a9e041ac4d3ca669d7c5ffc45416d9bf84286d1c225995af197f68
diff --git a/net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff b/net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff
new file mode 100644
index 000000000000..0ced6821efa9
--- /dev/null
+++ b/net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff
@@ -0,0 +1,61 @@
+--- a/arc4random.c
++++ b/arc4random.c
+@@ -1,5 +1,6 @@
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <time.h>
+
+ #include "config.h"
+
+--- a/interface.c
++++ b/interface.c
+@@ -56,6 +56,13 @@
+
+ #include "interface.h"
+
++#ifndef HAVE_STRLCPY
++ size_t strlcpy(char *, const char *, size_t);
++#endif
++#ifndef HAVE_STRLCAT
++ size_t strlcat(char *, const char *, size_t);
++#endif
++
+ /* Prototypes */
+ static int pcap_dloff(pcap_t *);
+
+--- a/md5.c
++++ b/md5.c
+@@ -23,6 +23,7 @@
+ copyright in any changes I have made; this code remains in the
+ public domain. */
+
++#include <string.h>
+ #include <sys/types.h>
+
+ #ifdef HAVE_CONFIG_H
+--- a/scanssh.c
++++ b/scanssh.c
+@@ -78,6 +78,10 @@
+ #define DNFPRINTF(y, x)
+ #endif
+
++#ifndef HAVE_STRLCPY
++ size_t strlcpy(char *, const char *, size_t);
++#endif
++
+ struct address_node {
+ TAILQ_ENTRY (address_node) an_next;
+
+--- a/xmalloc.c
++++ b/xmalloc.c
+@@ -20,6 +20,10 @@
+
+ #include "config.h"
+
++#ifndef HAVE_STRLCPY
++ size_t strlcpy(char *, const char *, size_t);
++#endif
++
+ void *
+ xmalloc(size_t size)
+ {
diff --git a/net-analyzer/scanssh/metadata.xml b/net-analyzer/scanssh/metadata.xml
new file mode 100644
index 000000000000..afd56fd6df8d
--- /dev/null
+++ b/net-analyzer/scanssh/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<longdescription>Scanssh protocol scanner - scans a list of addresses an networks for running SSH protocol servers and their version numbers.</longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/scanssh/scanssh-2.1.ebuild b/net-analyzer/scanssh/scanssh-2.1.ebuild
new file mode 100644
index 000000000000..880f43c66660
--- /dev/null
+++ b/net-analyzer/scanssh/scanssh-2.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="network scanner that gathers info on SSH protocols and versions"
+HOMEPAGE="http://monkey.org/~provos/scanssh/"
+SRC_URI="http://monkey.org/~provos/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ~ppc64 sparc x86"
+
+DEPEND="
+ dev-libs/libdnet
+ dev-libs/libevent
+ net-libs/libpcap
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0-fix-warnings.diff
+ touch configure
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin scanssh
+ doman scanssh.1
+}