aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-06-17 00:03:58 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-06-17 00:03:58 +0000
commit7da1d13b26964e2af353b886bbd8b998df1af653 (patch)
treebd41d86d44c2a562618481b6cf9025613067f8f5
parente2fa11337b952217eb4b4401e319ce2302089032 (diff)
downloadports-7da1d13b26964e2af353b886bbd8b998df1af653.tar.gz
ports-7da1d13b26964e2af353b886bbd8b998df1af653.zip
Notes
-rw-r--r--security/Makefile1
-rw-r--r--security/smtpmap/Makefile41
-rw-r--r--security/smtpmap/distinfo1
-rw-r--r--security/smtpmap/files/patch-include::small_socket.h12
-rw-r--r--security/smtpmap/files/patch-include::types.h20
-rw-r--r--security/smtpmap/files/patch-makefile.conf15
-rw-r--r--security/smtpmap/pkg-descr12
-rw-r--r--security/smtpmap/pkg-plist5
8 files changed, 107 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 05acea523943..5f80bb583a8d 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -316,6 +316,7 @@
SUBDIR += skip
SUBDIR += slurpie
SUBDIR += slush
+ SUBDIR += smtpmap
SUBDIR += smtpscan
SUBDIR += smurflog
SUBDIR += sniff
diff --git a/security/smtpmap/Makefile b/security/smtpmap/Makefile
new file mode 100644
index 000000000000..3f878226c3ea
--- /dev/null
+++ b/security/smtpmap/Makefile
@@ -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>
diff --git a/security/smtpmap/distinfo b/security/smtpmap/distinfo
new file mode 100644
index 000000000000..a4bcaa727d15
--- /dev/null
+++ b/security/smtpmap/distinfo
@@ -0,0 +1 @@
+MD5 (smtpmap-0.8.tar.bz2) = d01a24967d55290a1564251cef8f8cb4
diff --git a/security/smtpmap/files/patch-include::small_socket.h b/security/smtpmap/files/patch-include::small_socket.h
new file mode 100644
index 000000000000..304e062016a2
--- /dev/null
+++ b/security/smtpmap/files/patch-include::small_socket.h
@@ -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>
diff --git a/security/smtpmap/files/patch-include::types.h b/security/smtpmap/files/patch-include::types.h
new file mode 100644
index 000000000000..f1011d5f76d2
--- /dev/null
+++ b/security/smtpmap/files/patch-include::types.h
@@ -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;
diff --git a/security/smtpmap/files/patch-makefile.conf b/security/smtpmap/files/patch-makefile.conf
new file mode 100644
index 000000000000..ce4e0b7d5d30
--- /dev/null
+++ b/security/smtpmap/files/patch-makefile.conf
@@ -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%%
diff --git a/security/smtpmap/pkg-descr b/security/smtpmap/pkg-descr
new file mode 100644
index 000000000000..6d06e34cfe7f
--- /dev/null
+++ b/security/smtpmap/pkg-descr
@@ -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
diff --git a/security/smtpmap/pkg-plist b/security/smtpmap/pkg-plist
new file mode 100644
index 000000000000..85a4f9adafdf
--- /dev/null
+++ b/security/smtpmap/pkg-plist
@@ -0,0 +1,5 @@
+bin/smtpmap
+share/smtpmap/fingerprints-conf
+share/smtpmap/fingerprints-return
+share/smtpmap/fingerprints-rfc
+@dirrm share/smtpmap