From fe90804a4903c30e7934026899676547d0fb6bb4 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 2 May 2007 21:14:55 +0000 Subject: [PATCH] Initial commit. Package-Manager: portage-2.1.2.5 --- net-analyzer/nipper/ChangeLog | 11 ++++++ net-analyzer/nipper/Manifest | 34 +++++++++++++++++++ net-analyzer/nipper/files/digest-nipper-0.9.4 | 3 ++ .../nipper-0.9.4-banner-exclamation.patch | 12 +++++++ .../nipper/files/nipper-0.9.4-pix-xml.patch | 23 +++++++++++++ net-analyzer/nipper/metadata.xml | 10 ++++++ net-analyzer/nipper/nipper-0.9.4.ebuild | 32 +++++++++++++++++ 7 files changed, 125 insertions(+) create mode 100644 net-analyzer/nipper/ChangeLog create mode 100644 net-analyzer/nipper/Manifest create mode 100644 net-analyzer/nipper/files/digest-nipper-0.9.4 create mode 100644 net-analyzer/nipper/files/nipper-0.9.4-banner-exclamation.patch create mode 100644 net-analyzer/nipper/files/nipper-0.9.4-pix-xml.patch create mode 100644 net-analyzer/nipper/metadata.xml create mode 100644 net-analyzer/nipper/nipper-0.9.4.ebuild diff --git a/net-analyzer/nipper/ChangeLog b/net-analyzer/nipper/ChangeLog new file mode 100644 index 000000000000..3a519c04bd6a --- /dev/null +++ b/net-analyzer/nipper/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-analyzer/nipper +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nipper/ChangeLog,v 1.1 2007/05/02 21:14:55 ikelos Exp $ + +*nipper-0.9.4 (02 May 2007) + + 02 May 2007; Mike Auty + +files/nipper-0.9.4-banner-exclamation.patch, + +files/nipper-0.9.4-pix-xml.patch, +metadata.xml, +nipper-0.9.4.ebuild: + Initial commit. + diff --git a/net-analyzer/nipper/Manifest b/net-analyzer/nipper/Manifest new file mode 100644 index 000000000000..6ae90774ac13 --- /dev/null +++ b/net-analyzer/nipper/Manifest @@ -0,0 +1,34 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX nipper-0.9.4-banner-exclamation.patch 493 RMD160 dd4758d4b3a0f9ba2e727f0c8278d823a9046750 SHA1 071a7345650c390c813a4cfeb7ba1a7d50f99f28 SHA256 00207b96e6be83342a273fe2ca9897cfe36c94e08a70495d417637d0f02449f0 +MD5 c7cfdce19f275adb9180ef93a570a035 files/nipper-0.9.4-banner-exclamation.patch 493 +RMD160 dd4758d4b3a0f9ba2e727f0c8278d823a9046750 files/nipper-0.9.4-banner-exclamation.patch 493 +SHA256 00207b96e6be83342a273fe2ca9897cfe36c94e08a70495d417637d0f02449f0 files/nipper-0.9.4-banner-exclamation.patch 493 +AUX nipper-0.9.4-pix-xml.patch 1984 RMD160 49fc1b7b80ab5142752775196e6eea913b422bbe SHA1 b65ef46ecc36bf021c3a780fd15d5a194e3764e2 SHA256 9447313a98086ef62f4dc3c85c3e8ad45936b0e8c5f392dfcb1d1771e85c53ed +MD5 525626ee91e5a2ae27a7a0a5abac290f files/nipper-0.9.4-pix-xml.patch 1984 +RMD160 49fc1b7b80ab5142752775196e6eea913b422bbe files/nipper-0.9.4-pix-xml.patch 1984 +SHA256 9447313a98086ef62f4dc3c85c3e8ad45936b0e8c5f392dfcb1d1771e85c53ed files/nipper-0.9.4-pix-xml.patch 1984 +DIST nipper-0.9.4.tgz 140377 RMD160 e2e34e5bb418a07f168265ce43e895d894365a4c SHA1 42ccaf0fb165647a5dcf37a528212274d0daef45 SHA256 2a3b2d986a175f623a94d26c93a0351677418a47d9b45c9040e7dec1a21de14d +EBUILD nipper-0.9.4.ebuild 764 RMD160 3de4f5468f2da7c5f687224f4f2a93fab165f9c5 SHA1 91d23cce42f83316c82578a01a41b41448ee4b8a SHA256 fcabbbac6ae0a98969fd9da383a98aaf8d787ca3f4715fc00ac5291831cf9793 +MD5 a50d15b0f8ea0fd58c2ee23fa266db4f nipper-0.9.4.ebuild 764 +RMD160 3de4f5468f2da7c5f687224f4f2a93fab165f9c5 nipper-0.9.4.ebuild 764 +SHA256 fcabbbac6ae0a98969fd9da383a98aaf8d787ca3f4715fc00ac5291831cf9793 nipper-0.9.4.ebuild 764 +MISC ChangeLog 426 RMD160 96542727434c6926cd475f4e2939c28f6fc6e57e SHA1 ba909c4ccae72d1214006e36667c0515ef1bc65b SHA256 6e66fb0a905c72034c9280ec84277949019196e8ed42220d7735ced0d759eb79 +MD5 1fa10a24eadbc3eaa5fcc19238acd31c ChangeLog 426 +RMD160 96542727434c6926cd475f4e2939c28f6fc6e57e ChangeLog 426 +SHA256 6e66fb0a905c72034c9280ec84277949019196e8ed42220d7735ced0d759eb79 ChangeLog 426 +MISC metadata.xml 363 RMD160 01fe79957007968468460d3e461fbf60f393925b SHA1 1c4b57bb5c7215e582a23593abf6ed436b525a70 SHA256 c250d9259c70da469184ee9d45a74309c698e56cd5e894885fb7535de4f54890 +MD5 948354d52df710e9c181cc9d1bb922ab metadata.xml 363 +RMD160 01fe79957007968468460d3e461fbf60f393925b metadata.xml 363 +SHA256 c250d9259c70da469184ee9d45a74309c698e56cd5e894885fb7535de4f54890 metadata.xml 363 +MD5 b40e09f2051990a43d360c5105cee829 files/digest-nipper-0.9.4 229 +RMD160 c85c89cecf70cbc4d843abed7bc51b2f4b27ad9f files/digest-nipper-0.9.4 229 +SHA256 22c22dc45e3fe9a88d2a50190414eb3b8faf8dcf1a46b84f5969fe4f8e076623 files/digest-nipper-0.9.4 229 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.3 (GNU/Linux) + +iD8DBQFGOP9fu7rWomwgFXoRAp+zAJ43Yx7eMI/Y1kYlM2IIIsnAvulb0ACdFy5Q +xkUoVSXSbf7mWbojPywKzlw= +=jisY +-----END PGP SIGNATURE----- diff --git a/net-analyzer/nipper/files/digest-nipper-0.9.4 b/net-analyzer/nipper/files/digest-nipper-0.9.4 new file mode 100644 index 000000000000..a3a7e7695bc5 --- /dev/null +++ b/net-analyzer/nipper/files/digest-nipper-0.9.4 @@ -0,0 +1,3 @@ +MD5 16ad94b950e3b1e449581634916e4f3b nipper-0.9.4.tgz 140377 +RMD160 e2e34e5bb418a07f168265ce43e895d894365a4c nipper-0.9.4.tgz 140377 +SHA256 2a3b2d986a175f623a94d26c93a0351677418a47d9b45c9040e7dec1a21de14d nipper-0.9.4.tgz 140377 diff --git a/net-analyzer/nipper/files/nipper-0.9.4-banner-exclamation.patch b/net-analyzer/nipper/files/nipper-0.9.4-banner-exclamation.patch new file mode 100644 index 000000000000..c8e0164ff9d8 --- /dev/null +++ b/net-analyzer/nipper/files/nipper-0.9.4-banner-exclamation.patch @@ -0,0 +1,12 @@ +diff -uNr nipper-0.9.4/IOS/process-banner.c nipper-0.9.4.orig/IOS/process-banner.c +--- nipper-0.9.4/IOS/process-banner.c 2007-05-01 15:37:19.000000000 +0100 ++++ nipper-0.9.4.orig/IOS/process-banner.c 2007-04-29 12:40:45.000000000 +0100 +@@ -53,7 +53,7 @@ + readLine(input, line, lineSize); + + // Get all parts of the banner message... ++ while ((strstr(line, bannerTerminator) == 0)) +- while ((strstr(line, bannerTerminator) == 0) && (line[0] != '!')) + { + if (debugMode == true) + { diff --git a/net-analyzer/nipper/files/nipper-0.9.4-pix-xml.patch b/net-analyzer/nipper/files/nipper-0.9.4-pix-xml.patch new file mode 100644 index 000000000000..76f45ddf060e --- /dev/null +++ b/net-analyzer/nipper/files/nipper-0.9.4-pix-xml.patch @@ -0,0 +1,23 @@ +diff -uNr nipper-0.9.4.orig/PIX/report.c nipper-0.9.4/PIX/report.c +--- nipper-0.9.4.orig/PIX/report.c 2007-04-29 12:40:45.000000000 +0100 ++++ nipper-0.9.4/PIX/report.c 2007-05-01 15:25:37.000000000 +0100 +@@ -622,6 +622,7 @@ + output_table(reportFile, reportFormat, false, passwords, settings_ssh_table, &settings_general_heading, tableNum, friendlyHostname); + tableNum++; + addAbbreviation("SSH", false); ++ output_endsection(reportFile, reportFormat, subsection_end); + } + + // Interfaces +diff -uNr nipper-0.9.4.orig/report-text.c nipper-0.9.4/report-text.c +--- nipper-0.9.4.orig/report-text.c 2007-04-29 12:40:46.000000000 +0100 ++++ nipper-0.9.4/report-text.c 2007-05-01 15:25:18.000000000 +0100 +@@ -784,7 +784,7 @@ + + // Objects + const char *settings_objects_title = "Object Groups"; +-const char *settings_objects_desc = "Cisco object groups can be used to group items such as *ABBREV*IP*-ABBREV* addresses, services and protocols. Object groups can be used with any Cisco security appliance command and the command will be effective for all members of the group, this can significantly simplify the devices configuration. Furthermore, object groups can be members or other object groups. There are different types of object group:*NONEWPARA*"; ++const char *settings_objects_desc = "Cisco object groups can be used to group items such as *ABBREV*IP*-ABBREV* addresses, services and protocols. Object groups can be used with any Cisco security appliance command and the command will be effective for all members of the group, this can significantly simplify the devices configuration. Furthermore, object groups can be members or other object groups. There are different types of object group:"; + struct tableHeading settings_objects_heading3 = {false, 1, "ICMP Types", 0}; + struct tableHeading settings_objects_heading2 = {false, 1, "Networks", &settings_objects_heading3}; + struct tableHeading settings_objects_heading1 = {false, 1, "Protocols", &settings_objects_heading2}; diff --git a/net-analyzer/nipper/metadata.xml b/net-analyzer/nipper/metadata.xml new file mode 100644 index 000000000000..753e2c63e202 --- /dev/null +++ b/net-analyzer/nipper/metadata.xml @@ -0,0 +1,10 @@ + + + + no-herd + + ikelos@gentoo.org + Mike Auty + + A security tool for auditing cisco and other firewall device configurations. + diff --git a/net-analyzer/nipper/nipper-0.9.4.ebuild b/net-analyzer/nipper/nipper-0.9.4.ebuild new file mode 100644 index 000000000000..8668c288b784 --- /dev/null +++ b/net-analyzer/nipper/nipper-0.9.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nipper/nipper-0.9.4.ebuild,v 1.1 2007/05/02 21:14:55 ikelos Exp $ + +inherit toolchain-funcs eutils + +DESCRIPTION="Script to parse and report on Cisco config errors" +HOMEPAGE="http://www.sourceforge.net/projects/nipper" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="sys-libs/glibc" +RDEPEND="sys-libs/glibc" + +RESTRICT="mirror" + +src_compile() { + epatch ${FILESDIR}/${P}-pix-xml.patch + epatch ${FILESDIR}/${P}-banner-exclamation.patch + + cd ${S} + $(tc-getCC) ${CFLAGS} ${PN}.c -o${PN} +} + +src_install() { + dobin ${PN} + dodoc INSTALL LICENSE TODO Changelog +} -- 2.26.2