1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Add smtpmap 0.8, an SMTP software identifier.

PR:		46552
Submitted by:	Hubert Tournier <hubert@frbsd.org>
This commit is contained in:
Oliver Lehmann 2003-06-17 00:03:58 +00:00
parent e2fa11337b
commit 7da1d13b26
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83126
8 changed files with 107 additions and 0 deletions

View File

@ -316,6 +316,7 @@
SUBDIR += skip
SUBDIR += slurpie
SUBDIR += slush
SUBDIR += smtpmap
SUBDIR += smtpscan
SUBDIR += smurflog
SUBDIR += sniff

41
security/smtpmap/Makefile Normal file
View File

@ -0,0 +1,41 @@
# New ports collection makefile for: smtpmap
# Date created: 26 decembre 2002
# Whom: Hubert Tournier <hubert@frbsd.org>
#
# $FreeBSD$
#
PORTNAME= smtpmap
PORTVERSION= 0.8
CATEGORIES= security mail net
MASTER_SITES= http://plasmahh.free-bsd.org/
MAINTAINER= hubert@frbsd.org
COMMENT= An SMTP software identifier
.if !exists(/usr/include/getopt.h)
LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
MAKE_ENV= LIBS="-L${LOCALBASE}/lib -lgnugetopt" \
INC=-I${LOCALBASE}/include
.endif
USE_BZIP2= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKEFILE= makefile
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/makefile.conf
@${REINPLACE_CMD} -e 's|\(INC)\) \(small\)|\1 $$(LIBS) \2|g' ${WRKSRC}/src/makefile
@${REINPLACE_CMD} -e 's|-j 5||g' -e 's|@\(./inst\)|\1|g' ${WRKSRC}/makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/smtpmap ${PREFIX}/bin
${INSTALL} -d ${DATADIR}
.for file in fingerprints-conf fingerprints-return fingerprints-rfc
${INSTALL_DATA} ${WRKSRC}/share/${file} ${DATADIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (smtpmap-0.8.tar.bz2) = d01a24967d55290a1564251cef8f8cb4

View File

@ -0,0 +1,12 @@
--- include/small_socket.h.orig Tue Oct 29 19:16:01 2002
+++ include/small_socket.h Tue Jun 17 01:30:21 2003
@@ -8,8 +8,8 @@
#define __SMALL_SOCKET_H
extern "C" {
-#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/time.h> // For NetBSD compatibility
#include <netinet/in.h>
#include <fcntl.h>

View File

@ -0,0 +1,20 @@
--- include/types.h.orig Wed Dec 25 23:26:52 2002
+++ include/types.h Wed Dec 25 23:27:14 2002
@@ -13,7 +13,7 @@
#ifndef __TYPES_H
#define __TYPES_H
-#ifdef __linux__
+#ifdef __FreeBSD__
typedef bool BOOL;
typedef float double32;
typedef double double64;
@@ -29,7 +29,7 @@
typedef signed short sint16;
typedef unsigned short uint16;
-#endif // __linux__
+#endif // __FreeBSD__
#ifdef __sparc__
typedef bool BOOL;

View File

@ -0,0 +1,15 @@
--- makefile.conf.orig Thu Oct 31 23:37:00 2002
+++ makefile.conf Tue Jun 17 01:20:41 2003
@@ -4,9 +4,8 @@
# Internal Configuration, do not touch
TMPDIR=.smtpmap-$(VERSION)
CC=g++
-#CFLAGS=-O -Wall -pg -g -D_PREFIX=\"$(PREFIX)\"
CFLAGS=-O -Wall -g3 -D_PREFIX=\"$(PREFIX)\"
-INC=-I ../include
-LIBS=
+INC+=-I../include -I/usr/include
DEPFLAG=-M $(INC)
-PREFIX=/usr
+PREFIX=%%PREFIX%%
+LOCALBASE=%%LOCALBASE%%

View File

@ -0,0 +1,12 @@
Smtpmap is able to identify the running smtp software on a given host.
It shows the probability of the server version, and uses three
different fingerprinting technologies to maximize the probabilities.
It can also be used to look if there is any smtp service running on
the given port.
Smtpmap is a program from Dennis Lubert <plasmahh@gmx.net>.
WWW: http://plasmahh.free-bsd.org/down_tool
- Hubert Tournier
hubert@frbsd.org

View File

@ -0,0 +1,5 @@
bin/smtpmap
share/smtpmap/fingerprints-conf
share/smtpmap/fingerprints-return
share/smtpmap/fingerprints-rfc
@dirrm share/smtpmap