From a0789202c396d3e6408c38961041ce962bb2c00a Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Mon, 3 Sep 2012 15:09:45 +0000 Subject: [PATCH] slowhttptest: initial ebuild, keywords adjusted --- app-fuzz/slowhttptest/Manifest | 3 ++ .../slowhttptest/files/1.4-add-includes.patch | 33 ++++++++++++++++++ app-fuzz/slowhttptest/slowhttptest-1.4.ebuild | 34 +++++++++++++++++++ .../base/package.accept_keywords/app-fuzz | 4 +-- .../base/package.accept_keywords/net-analyzer | 7 ++-- 5 files changed, 76 insertions(+), 5 deletions(-) create mode 100644 app-fuzz/slowhttptest/Manifest create mode 100644 app-fuzz/slowhttptest/files/1.4-add-includes.patch create mode 100644 app-fuzz/slowhttptest/slowhttptest-1.4.ebuild diff --git a/app-fuzz/slowhttptest/Manifest b/app-fuzz/slowhttptest/Manifest new file mode 100644 index 000000000..41844866b --- /dev/null +++ b/app-fuzz/slowhttptest/Manifest @@ -0,0 +1,3 @@ +AUX 1.4-add-includes.patch 851 SHA256 3e91723d21bf3fe946a66f1d8102873698ebb4e87b8e51e806ebf3c7e8372389 SHA512 49e5710c5a841158ec3a9e1beee9a26c8b1115dff36c6984f12b9c764dd8f9e19049caa15ca30059a1a1c4339edc9bae903222904fcae2cc7665481dd2c15f20 WHIRLPOOL ed499ead51a35245174e4725e1d20d4693a660115b04c927ebad4a36d2c77578967081005d771b7849de39b52e3ddb65f750aa3fda2e455a697e4d999f046ebc +DIST slowhttptest-1.4.tar.gz 102699 SHA256 d15635c056a044cfbf63822ce0452bbe1ed1a3ca24471cf4b7d04c375e21153c SHA512 7110727b6955bd62d532b0cfa5768450e0106e9fd935fa59991fcf276b2e571cf96d268cb09e251c08c619240062b2f053f954d1fdb3596e829a7f06873fe0cf WHIRLPOOL 2dc74284eb580c8b911788f867c60b9f065a5122fa02413afbb9e6ab65d922af9b4f245468458aa82ec05e2a8a4a045cbb83a1b6cf43d99ff9f62b6d747a21cd +EBUILD slowhttptest-1.4.ebuild 635 SHA256 599191e6b66847ba1aa75d1016392e5d5aa2ff21c8341eea75ab8430f1c32787 SHA512 3d9887ad873173dfb4deecc6103ec4d6330ef99b3e217ee152e933ff9613212d8dcf0db6f66e4f8be0b5b77d22a883cfcb9ba9c798a5d97f54635c09583678f3 WHIRLPOOL 14e1e4d5553e205401dc17c47a507f9480f9d21bcdd3644ddf080c1d1295a40862d3288fcce49adf3522c538d10c24d460f2a8a706f871e794aa8f3fc4efd75f diff --git a/app-fuzz/slowhttptest/files/1.4-add-includes.patch b/app-fuzz/slowhttptest/files/1.4-add-includes.patch new file mode 100644 index 000000000..ea5841fe1 --- /dev/null +++ b/app-fuzz/slowhttptest/files/1.4-add-includes.patch @@ -0,0 +1,33 @@ +--- src/slowsocket.cc 2012-07-09 00:46:57.189374024 +0200 ++++ src/slowsocket.cc 2012-07-09 00:47:10.448861586 +0200 +@@ -40,6 +40,8 @@ + #include "slowsocket.h" + #include "slowurl.h" + ++#include ++ + namespace slowhttptest { + SlowSocket::SlowSocket() + : sockfd_(-1), +--- src/slowhttptestmain.cc 2012-07-09 00:43:46.223420938 +0200 ++++ src/slowhttptestmain.cc 2012-07-09 00:46:04.914727611 +0200 +@@ -35,6 +35,8 @@ + #include "slowlog.h" + #include "slowhttptest.h" + ++#include ++ + #define DEFAULT_URL "http://localhost/" + + static void info() { +--- src/slowhttptest.cc 2012-07-09 00:58:31.379212387 +0200 ++++ src/slowhttptest.cc 2012-07-09 00:58:43.038761781 +0200 +@@ -48,6 +48,8 @@ + #include "slowstats.h" + #include "text-generator.h" + ++#include ++ + // Global flag to indicate if we need to run. + extern int g_running; + diff --git a/app-fuzz/slowhttptest/slowhttptest-1.4.ebuild b/app-fuzz/slowhttptest/slowhttptest-1.4.ebuild new file mode 100644 index 000000000..64859e7f9 --- /dev/null +++ b/app-fuzz/slowhttptest/slowhttptest-1.4.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Application Layer DoS attack simulator" +HOMEPAGE="http://code.google.com/p/slowhttptest" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/openssl" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/1.4-add-includes.patch +} + +# QA: LDFLAGS issues need to be solved by the upstream + +#src_configure() { +# LDFLAGS="${LDFLAGS}" econf +# econf +#} + +src_install() { + dobin src/slowhttptest +} diff --git a/profiles/pentoo/base/package.accept_keywords/app-fuzz b/profiles/pentoo/base/package.accept_keywords/app-fuzz index baa057a3e..de0be5195 100644 --- a/profiles/pentoo/base/package.accept_keywords/app-fuzz +++ b/profiles/pentoo/base/package.accept_keywords/app-fuzz @@ -1,12 +1,12 @@ app-fuzz/Peach app-fuzz/bed app-fuzz/bss +~app-fuzz/fuzzdb-1.09 app-fuzz/fuzzer-server app-fuzz/http-fuzz app-fuzz/ohrwurm app-fuzz/protos +~app-fuzz/slowhttptest-1.4 app-fuzz/smtp-fuzz app-fuzz/smudge app-fuzz/snmp-fuzzer - -~app-fuzz/fuzzdb-1.09 diff --git a/profiles/pentoo/base/package.accept_keywords/net-analyzer b/profiles/pentoo/base/package.accept_keywords/net-analyzer index 857cfb4d2..480980b8f 100644 --- a/profiles/pentoo/base/package.accept_keywords/net-analyzer +++ b/profiles/pentoo/base/package.accept_keywords/net-analyzer @@ -15,9 +15,11 @@ ~net-analyzer/net-snmp-5.4.3 =net-analyzer/plecost-9999 +=net-analyzer/wpscan-9999 -net-analyzer/thc-ipv6 -net-analyzer/nmap +~net-analyzer/thc-ipv6-1.9 +~net-analyzer/nmap-6.01 +~net-analyzer/theHarvester-2.2 #below here likely needs cleaning up net-analyzer/argus @@ -157,7 +159,6 @@ net-analyzer/tcpflow net-analyzer/tcpreplay net-analyzer/tcpslice net-analyzer/thc-pptp-bruter -net-analyzer/theHarvester net-analyzer/thrulay net-analyzer/tleds net-analyzer/tptest