summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/knocker
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
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 <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/knocker')
-rw-r--r--net-analyzer/knocker/Manifest1
-rw-r--r--net-analyzer/knocker/files/knocker-0.7.1-fency.patch149
-rw-r--r--net-analyzer/knocker/files/knocker-0.7.1-free.patch30
-rw-r--r--net-analyzer/knocker/files/knocker-0.7.1-knocker_user_is_root.patch11
-rw-r--r--net-analyzer/knocker/knocker-0.7.1-r2.ebuild30
-rw-r--r--net-analyzer/knocker/knocker-0.7.1-r3.ebuild26
-rw-r--r--net-analyzer/knocker/metadata.xml8
7 files changed, 255 insertions, 0 deletions
diff --git a/net-analyzer/knocker/Manifest b/net-analyzer/knocker/Manifest
new file mode 100644
index 000000000000..61392537e848
--- /dev/null
+++ b/net-analyzer/knocker/Manifest
@@ -0,0 +1 @@
+DIST knocker-0.7.1.tar.gz 72132 SHA256 db6f2a9e9705e3b678b9fd7fdd32ccdf13ab3f2dba2a6d053530a2faf67faf8d SHA512 e65d615235328c027e1c6179a11bee186fa3d173205850e8b9fac591819e344de770d968c2667f1a18bef88cf90422c357bf76b9d05a8915629977cb8e334cc2 WHIRLPOOL 03943601b8fa07d49b33f0a4b2bdc36d062cca83a2fd20acac7bc0741079fbbbc469f05f418e6743adb4e0eba04a4406eeca0ec4bf861d650089de68174a62ab
diff --git a/net-analyzer/knocker/files/knocker-0.7.1-fency.patch b/net-analyzer/knocker/files/knocker-0.7.1-fency.patch
new file mode 100644
index 000000000000..6051d87b2e68
--- /dev/null
+++ b/net-analyzer/knocker/files/knocker-0.7.1-fency.patch
@@ -0,0 +1,149 @@
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -23,7 +23,7 @@
+ .conf in the user ~/.knocker subdirectory.
+
+ 13 May 2002
+- - --no-fency (-nf for short) option added. This switch tells knocker to show
++ - --no-fancy (-nf for short) option added. This switch tells knocker to show
+ the output in a "polite" way. All the lines and stuffs shown in the default
+ mode, will not be displayed using this option.
+
+--- a/src/knocker_args.c
++++ b/src/knocker_args.c
+@@ -82,7 +82,7 @@
+ fprintf (stdout, "Extra options:\n");
+ fprintf (stdout, " %s, %s quiet mode (no console output, logs to file)\n", QUIET_MODE_SHORT_OPT, QUIET_MODE_LONG_OPT);
+ fprintf (stdout, " %s, %s <logfile> log scan results to the specified file\n", ENABLE_LOGFILE_SHORT_OPT, ENABLE_LOGFILE_LONG_OPT);
+- fprintf (stdout, " %s, %s disable fency output\n", NO_FENCY_SHORT_OPT, NO_FENCY_LONG_OPT);
++ fprintf (stdout, " %s, %s disable fancy output\n", NO_FANCY_SHORT_OPT, NO_FANCY_LONG_OPT);
+ fprintf (stdout, " %s, %s disable colored output\n", NO_COLORS_SHORT_OPT, NO_COLORS_LONG_OPT);
+ fprintf (stdout, "\n");
+ fprintf (stdout, " %s let you configure %s\n", CONFIGURE_LONG_OPT, PACKAGE);
+@@ -111,7 +111,7 @@
+ args->logfile = logfile;
+ args->quiet = quiet;
+ args->colors = colors;
+- args->fency = TRUE; /* true by default */
++ args->fancy = TRUE; /* true by default */
+
+ return 0;
+ }
+@@ -189,10 +189,10 @@
+ }
+ return (0); /* we should have all arguments here */
+ }
+- else if ((!strcmp (argv[i], NO_FENCY_SHORT_OPT)) || (!strcmp (argv[i], NO_FENCY_LONG_OPT)))
++ else if ((!strcmp (argv[i], NO_FANCY_SHORT_OPT)) || (!strcmp (argv[i], NO_FANCY_LONG_OPT)))
+ {
+- /* Disable fency output */
+- args->fency = FALSE;
++ /* Disable fancy output */
++ args->fancy = FALSE;
+ }
+ else if ((!strcmp (argv[i], NO_COLORS_SHORT_OPT)) || (!strcmp (argv[i], NO_COLORS_LONG_OPT)))
+ {
+--- a/src/knocker_output.c
++++ b/src/knocker_output.c
+@@ -48,7 +48,7 @@
+ {
+ time_t timenow;
+
+- if (!knocker_args.fency)
++ if (!knocker_args.fancy)
+ return 0;
+
+
+@@ -104,7 +104,7 @@
+ */
+ void knocker_output_host_info (const char *hostname_str, const char *hostip_str)
+ {
+- if (knocker_args.fency)
++ if (knocker_args.fancy)
+ {
+ knocker_term_color_fprintf (knocker_output_fp, " - ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
+ knocker_term_color_fprintf (knocker_output_fp, "hostname to scan: ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
+@@ -134,7 +134,7 @@
+ */
+ void knocker_output_resolve_error (char *hostname_str)
+ {
+- if (knocker_args.fency)
++ if (knocker_args.fancy)
+ {
+ knocker_term_color_fprintf (knocker_output_fp, " - ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
+ knocker_term_color_fprintf (knocker_output_fp, "failed to resolve given hostname/IP: ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
+@@ -157,7 +157,7 @@
+ */
+ void knocker_output_ports_info (int sp, int ep)
+ {
+- if (!knocker_args.fency)
++ if (!knocker_args.fancy)
+ {
+ knocker_term_color_fprintf (knocker_output_fp, "\n", KNOCKER_COLOR_2, KNOCKER_COLOR_2_ATTR);
+ return;
+@@ -183,7 +183,7 @@
+ */
+ void knocker_output_open_port (int port, char *service_str)
+ {
+- if (knocker_args.fency)
++ if (knocker_args.fancy)
+ {
+ knocker_term_color_fprintf (knocker_output_fp, " -=[ ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
+ knocker_term_color_intfprintf (knocker_output_fp, port, KNOCKER_COLOR_2, KNOCKER_COLOR_2_ATTR);
+@@ -216,7 +216,7 @@
+ */
+ void knocker_output_results (char *hostname_str, char *hostname_ip, int tot_ps, int open_ps, char *secs)
+ {
+- if (knocker_args.fency)
++ if (knocker_args.fancy)
+ {
+ knocker_term_color_fprintf (knocker_output_fp, "\n", KNOCKER_COLOR_2, KNOCKER_COLOR_2_ATTR);
+ knocker_term_color_fprintf (knocker_output_fp, "+=- - - - - - - - - - - - - - - - - - - - - - - - - - - - ",
+--- a/src/knocker_main.c
++++ b/src/knocker_main.c
+@@ -75,7 +75,7 @@
+
+ knocker_core_init_portscan_data (&pscan_data);
+
+- if (knocker_args.fency)
++ if (knocker_args.fancy)
+ knocker_term_clear ();
+
+ knocker_output_open ();
+--- a/src/knocker_args.h
++++ b/src/knocker_args.h
+@@ -53,9 +53,9 @@
+ #define QUIET_MODE_SHORT_OPT "-q"
+ #define QUIET_MODE_LONG_OPT "--quiet"
+
+- /* option to disable fency cool out put */
+-#define NO_FENCY_SHORT_OPT "-nf"
+-#define NO_FENCY_LONG_OPT "--no-fency"
++ /* option to disable fancy cool out put */
++#define NO_FANCY_SHORT_OPT "-nf"
++#define NO_FANCY_LONG_OPT "--no-fancy"
+
+ /* option to disable colored out put */
+ #define NO_COLORS_SHORT_OPT "-nc"
+@@ -88,7 +88,7 @@
+ int logfile; /* log to file TRUE,FALSE */
+ int quiet; /* quiet mode TRUE,FALSE */
+ int colors; /* no colors, TRUE,FALSE */
+- int fency; /* fency output, TRUE, FALSE */
++ int fancy; /* fancy output, TRUE, FALSE */
+ int win32_frontend;
+ } knocker_args_t;
+
+--- a/docs/knocker.1
++++ b/docs/knocker.1
+@@ -38,8 +38,8 @@
+ \fB\-lf\fr, \fB\-\-logfile <logfile>\fR
+ log the results to a specified file.
+ .TP
+-\fB\-nf\fr, \fB\-\-no-fency\fR
+-disable fency output
++\fB\-nf\fr, \fB\-\-no-fancy\fR
++disable fancy output
+ .TP
+ \fB\-nc\fr, \fB\-\-no-colors\fR
+ disable colored output
diff --git a/net-analyzer/knocker/files/knocker-0.7.1-free.patch b/net-analyzer/knocker/files/knocker-0.7.1-free.patch
new file mode 100644
index 000000000000..5381d2fd83e3
--- /dev/null
+++ b/net-analyzer/knocker/files/knocker-0.7.1-free.patch
@@ -0,0 +1,30 @@
+--- a/src/knocker_conf.c
++++ b/src/knocker_conf.c
+@@ -223,6 +223,8 @@
+ {
+ char *tmpp = malloc (strlen (line));
+ char *p = malloc (strlen (line));
++ char *tmpp_orig = tmpp;
++ char *p_orig = p;
+
+ /* Check if the option is present in the line */
+ tmpp = strstr (line, opt);
+@@ -234,7 +236,7 @@
+
+ if (!_isblank (*tmpp) || *tmpp != KNOCKER_OPTION_TOKEN)
+ {
+- free (tmpp);
++ free (tmpp_orig);
+ return 0;
+ }
+
+@@ -247,8 +249,7 @@
+
+ strcpy (value, p);
+
+- /* free(p); this cause knocker to segfault */
+- /* well I have to know why... */
++ free(p_orig);
+
+ return 1;
+ }
diff --git a/net-analyzer/knocker/files/knocker-0.7.1-knocker_user_is_root.patch b/net-analyzer/knocker/files/knocker-0.7.1-knocker_user_is_root.patch
new file mode 100644
index 000000000000..d93136b2f255
--- /dev/null
+++ b/net-analyzer/knocker/files/knocker-0.7.1-knocker_user_is_root.patch
@@ -0,0 +1,11 @@
+--- a/src/knocker_user.c
++++ b/src/knocker_user.c
+@@ -82,7 +82,7 @@
+ _dir_create (user->dir);
+ }
+
+- if (knocker_user_is_root)
++ if (knocker_user_is_root())
+ user->super = 1;
+ else
+ user->super = 0;
diff --git a/net-analyzer/knocker/knocker-0.7.1-r2.ebuild b/net-analyzer/knocker/knocker-0.7.1-r2.ebuild
new file mode 100644
index 000000000000..de9a3307edad
--- /dev/null
+++ b/net-analyzer/knocker/knocker-0.7.1-r2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit base toolchain-funcs
+
+DESCRIPTION="Knocker is an easy to use security port scanner written in C"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="http://knocker.sourceforge.net"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+DOCS="AUTHORS BUGS ChangeLog NEWS README TO-DO"
+
+PATCHES=( "${FILESDIR}"/${P}-free.patch )
+
+src_prepare() {
+ # fix configure checks for compiler, wrt bug #442962
+ tc-export CC
+
+ base_src_prepare
+}
diff --git a/net-analyzer/knocker/knocker-0.7.1-r3.ebuild b/net-analyzer/knocker/knocker-0.7.1-r3.ebuild
new file mode 100644
index 000000000000..55ca0de66051
--- /dev/null
+++ b/net-analyzer/knocker/knocker-0.7.1-r3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit base toolchain-funcs
+
+DESCRIPTION="Knocker is an easy to use security port scanner written in C"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="http://knocker.sourceforge.net"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+
+DOCS=( AUTHORS BUGS ChangeLog NEWS README TO-DO )
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-fency.patch \
+ "${FILESDIR}"/${P}-free.patch \
+ "${FILESDIR}"/${P}-knocker_user_is_root.patch
+
+ tc-export CC
+}
diff --git a/net-analyzer/knocker/metadata.xml b/net-analyzer/knocker/metadata.xml
new file mode 100644
index 000000000000..566c8ae56e64
--- /dev/null
+++ b/net-analyzer/knocker/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <upstream>
+ <remote-id type="sourceforge">knocker</remote-id>
+ </upstream>
+</pkgmetadata>