From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-analyzer/scanssh/Manifest | 1 + .../scanssh/files/scanssh-2.0-fix-warnings.diff | 61 ++++++++++++++++++++++ net-analyzer/scanssh/metadata.xml | 6 +++ net-analyzer/scanssh/scanssh-2.1.ebuild | 35 +++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 net-analyzer/scanssh/Manifest create mode 100644 net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff create mode 100644 net-analyzer/scanssh/metadata.xml create mode 100644 net-analyzer/scanssh/scanssh-2.1.ebuild (limited to 'net-analyzer/scanssh') diff --git a/net-analyzer/scanssh/Manifest b/net-analyzer/scanssh/Manifest new file mode 100644 index 000000000000..9dc819125a12 --- /dev/null +++ b/net-analyzer/scanssh/Manifest @@ -0,0 +1 @@ +DIST scanssh-2.1.tar.gz 111481 SHA256 057eec87edafbbe5bc22960cbac53e3ada0222400d649a5e2f22cc8981f5b035 SHA512 1ddff6f8e51735bab28032c8d7cbb641ff0cd19a404a27ab489589ef1e30e3721dd486854eb4fef15368cc53f10c9c2650ffaf7fa7f767dc2202fcc5540ae59c WHIRLPOOL 5b14b341d44a5f57e3263f35d063084f116feb315a4b1e92cf7a69d752266accab64c17cf713bf7bc5074e14f4a895f3b6bae0d30c6bc1e7d24436eebd8eeafa 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 + #include ++#include + + #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 + #include + + #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..4a05ae080d13 --- /dev/null +++ b/net-analyzer/scanssh/metadata.xml @@ -0,0 +1,6 @@ + + + +netmon +Scanssh protocol scanner - scans a list of addresses an networks for running SSH protocol servers and their version numbers. + diff --git a/net-analyzer/scanssh/scanssh-2.1.ebuild b/net-analyzer/scanssh/scanssh-2.1.ebuild new file mode 100644 index 000000000000..09086e75c906 --- /dev/null +++ b/net-analyzer/scanssh/scanssh-2.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} -- cgit v1.2.3-18-g5258