From 8913d5cfa9e358290a049be9f3958dd0685db3ac Mon Sep 17 00:00:00 2001 From: blshkv Date: Thu, 5 Jul 2018 17:30:15 +0800 Subject: [PATCH] smtpmap: remove, use nmap instead --- net-analyzer/smtpmap/Manifest | 1 - net-analyzer/smtpmap/files/gcc-3.4.patch | 71 ------------------- .../smtpmap/files/smtpmap-64bit.patch | 11 --- .../smtpmap/smtpmap-0.8.234_beta.ebuild | 42 ----------- 4 files changed, 125 deletions(-) delete mode 100644 net-analyzer/smtpmap/Manifest delete mode 100644 net-analyzer/smtpmap/files/gcc-3.4.patch delete mode 100644 net-analyzer/smtpmap/files/smtpmap-64bit.patch delete mode 100644 net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild diff --git a/net-analyzer/smtpmap/Manifest b/net-analyzer/smtpmap/Manifest deleted file mode 100644 index 0a7076747..000000000 --- a/net-analyzer/smtpmap/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST smtpmap-0.8.234-BETA.tar.bz2 84923 SHA256 09fb1aa68a67032dd4ec8816d45ea5fc48796d4b4c11350f3f593fdf307559c2 diff --git a/net-analyzer/smtpmap/files/gcc-3.4.patch b/net-analyzer/smtpmap/files/gcc-3.4.patch deleted file mode 100644 index 777a688d8..000000000 --- a/net-analyzer/smtpmap/files/gcc-3.4.patch +++ /dev/null @@ -1,71 +0,0 @@ -diff -Naur smtpmap-0.8.234-BETA.orig/include/bintree.h smtpmap-0.8.234-BETA/include/bintree.h ---- smtpmap-0.8.234-BETA.orig/include/bintree.h 2003-02-25 20:50:31.000000000 +0100 -+++ smtpmap-0.8.234-BETA/include/bintree.h 2006-06-30 01:23:11.000000000 +0200 -@@ -17,6 +17,11 @@ - class treenode; - template - class bintreeiterator; -+ -+// forward declarations to allow friend declarations -+template class bintree; -+template ostream& operator<< (ostream & o, const bintree & t); -+ - template - class bintree /*{{{*/ - { -@@ -398,6 +403,13 @@ - Root = NULL; - }/*}}}*/ - enum avl_tree_skew { left, right, noone }; -+ -+// forward declarations to allow friend declarations -+template class treenode; -+template ostream& operator<< ( ostream & o, const treenode & v); -+template bool operator < ( const treenode & a, const treenode & b); -+template bool operator > ( const treenode & a, const treenode & b); -+ - template - class treenode/*{{{*/ - { -diff -Naur smtpmap-0.8.234-BETA.orig/include/dllist.h smtpmap-0.8.234-BETA/include/dllist.h ---- smtpmap-0.8.234-BETA.orig/include/dllist.h 2003-04-17 00:23:59.000000000 +0200 -+++ smtpmap-0.8.234-BETA/include/dllist.h 2006-06-30 00:52:30.000000000 +0200 -@@ -31,6 +31,12 @@ - // ********** definition dllist class - // ********** - -+// forward declarations to allow friend declarations -+template class dllist; -+template ostream & operator<< ( ostream& o , const dllist & v); -+template bool operator < ( const dllist & a, const dllist & b) ; -+template bool operator > ( const dllist & a, const dllist & b) ; -+ - template - class dllist/*{{{*/ - { -@@ -408,6 +414,13 @@ - * These Nodes contain the actual elements fo the list - * together with the control data - */ -+ -+// forward declarations to allow friend declarations -+template class dllnode; -+template ostream& operator<< ( ostream & o, const dllnode & v); -+template bool operator < ( const dllnode & a, const dllnode & b); -+template bool operator > ( const dllnode & a, const dllnode & b); -+ - template - class dllnode/*{{{*/ - { -diff -Naur smtpmap-0.8.234-BETA.orig/src/smtpmap.cpp smtpmap-0.8.234-BETA/src/smtpmap.cpp ---- smtpmap-0.8.234-BETA.orig/src/smtpmap.cpp 2003-04-09 19:54:10.000000000 +0200 -+++ smtpmap-0.8.234-BETA/src/smtpmap.cpp 2006-06-30 01:18:38.000000000 +0200 -@@ -455,7 +455,7 @@ - cout << "Note: More than -v -v -v will not produce more verbositiy" << endl; - break; - } -- ((int)debuglevel)++; -+ (*(int**)&debuglevel)++; - break; - case 'V': - cout << "smtp-map " << VERSION << endl; diff --git a/net-analyzer/smtpmap/files/smtpmap-64bit.patch b/net-analyzer/smtpmap/files/smtpmap-64bit.patch deleted file mode 100644 index 5599a88c5..000000000 --- a/net-analyzer/smtpmap/files/smtpmap-64bit.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/mstring.cpp 2010-02-01 12:02:19.972249219 +0100 -+++ src/mstring.cpp 2010-02-01 12:03:33.158999955 +0100 -@@ -546,7 +546,7 @@ - cout << "begin + to_st.leng : " << (void*) (begin + to_st.leng) << endl; - cout << "begin + to_st.leng : " << (begin + to_st.leng) << endl; - */ -- int mv = leng - (int)begin + (int)stripped - to_st.leng + 1; -+ unsigned long mv = leng - (unsigned long)begin + (unsigned long)stripped - to_st.leng + 1; - // cout << "mv : " << mv << endl; - memmove ( begin, begin + to_st.leng , mv ); - begin = strstr ( stripped, to_st.sp ); diff --git a/net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild b/net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild deleted file mode 100644 index c4db52c50..000000000 --- a/net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -inherit eutils - -MY_P=${P/_beta/-BETA} - -DESCRIPTION="a very complete and well done fingerprinter for SMTP, FTP and POP3 fingerprinter" -HOMEPAGE="http://www.projectiwear.org/~plasmahh/software.html" -SRC_URI="http://www.projectiwear.org/~plasmahh/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="" - -DEPEND="" -RDEPEND="" - -S=${WORKDIR}/${MY_P} - -src_configure(){ - epatch "${FILESDIR}"/gcc-3.4.patch - epatch "${FILESDIR}"/smtpmap-64bit.patch - sed -i "s|-O -Wall|$CFLAGS|g" makefile.conf || die "sed failed" -} - -src_compile() { - ./configure - # It has is own configuration script... maybe some sed here after needs to be done - emake || die "make failed" -} - -src_install() { - insinto /usr/share/smtpmap - doins share/* - dobin src/smtpmap - dodoc ChangeLog README TODO -}