aboutsummaryrefslogtreecommitdiff
path: root/security/sslsniffer
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2003-05-12 02:16:09 +0000
committerPete Fritchman <petef@FreeBSD.org>2003-05-12 02:16:09 +0000
commit834e68fbc1f15d32aac754a43559d4538f84c363 (patch)
tree89d9f5ad25e6468616144c55a8c2a5115871d17a /security/sslsniffer
parent253f3b43236e0063044c43949c92d9721666d5f8 (diff)
downloadports-834e68fbc1f15d32aac754a43559d4538f84c363.tar.gz
ports-834e68fbc1f15d32aac754a43559d4538f84c363.zip
Add sslsniffer 1.21, sSLv3/TLS and SSLv2 sniffer.
PR: 45401 Submitted by: Jim Geovedi <jim@corebsd.or.id>
Notes
Notes: svn path=/head/; revision=80725
Diffstat (limited to 'security/sslsniffer')
-rw-r--r--security/sslsniffer/Makefile29
-rw-r--r--security/sslsniffer/distinfo1
-rw-r--r--security/sslsniffer/files/patch-Makefile35
-rw-r--r--security/sslsniffer/pkg-descr6
-rw-r--r--security/sslsniffer/pkg-plist3
5 files changed, 74 insertions, 0 deletions
diff --git a/security/sslsniffer/Makefile b/security/sslsniffer/Makefile
new file mode 100644
index 000000000000..a48aa7ebc55c
--- /dev/null
+++ b/security/sslsniffer/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: sslsniffer
+# Date created: Nov 18, 2002
+# Whom: Jim Geovedi <jim@corebsd.or.id>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sslsniffer
+PORTVERSION= 1.21
+CATEGORIES= security net
+MASTER_SITES= http://crypto.stanford.edu/~eujin/sslsniffer/
+
+MAINTAINER= jim@corebsd.or.id
+COMMENT= SSLv3/TLS and SSLv2 sniffer
+
+USE_OPENSSL= Yes
+MAKE_FLAGS= CC='${CC}'
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sslsniffer ${PREFIX}/bin
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/sslsniffer/distinfo b/security/sslsniffer/distinfo
new file mode 100644
index 000000000000..92dd6d31cabf
--- /dev/null
+++ b/security/sslsniffer/distinfo
@@ -0,0 +1 @@
+MD5 (sslsniffer-1.21.tar.gz) = 8a3b8e72c393d1fffbe1060e834ebfe5
diff --git a/security/sslsniffer/files/patch-Makefile b/security/sslsniffer/files/patch-Makefile
new file mode 100644
index 000000000000..3c54276e9ff7
--- /dev/null
+++ b/security/sslsniffer/files/patch-Makefile
@@ -0,0 +1,35 @@
+--- Makefile.orig Mon Nov 18 18:52:28 2002
++++ Makefile Mon Nov 18 18:55:30 2002
+@@ -1,26 +1,24 @@
+-CC= gcc
+ PFLAGS= -cache-dir=/tmp/${USER}
+ PURIFY= purify ${PFLAGS}
+-INCS= -I/usr/local/ssl/include
+-LIBS= -L/usr/local/ssl/lib -L. -lnsl -lssl -lcrypto -lutl
++INCS= -I${OPENSSLINC}
++LIBS= -L${OPENSSLLIB} -L. -lssl -lcrypto -lutl
+ SRCS= sslsniffer.c
+ OBJS= ${SRCS:.c=.o}
+ BINS= sslsniffer
+ UTL_LIB= libutl.a
+ UTL_SRCS= general_utilities.c net_utilities.c
+ AR= ar
+-ARFLAGS= rs
++ARFLAGS= r
+ BINS.PURIFY= sslpure
+
+-CCFLAGS= -g -Wall -O3 -pedantic ${INCS}
+
+ all: $(UTL_LIB) ${BINS}
+
+ %.o: %.c
+- ${CC} ${CCFLAGS} -c $<
++ ${CC} ${CFLAGS} ${INCS} -c $<
+
+ ${BINS}: ${OBJS}
+- ${CC} ${CCFLAGS} -o $@ ${OBJS} ${LIBS}
++ ${CC} ${CFLAGS} ${INCS} -o $@ ${OBJS} ${LIBS}
+
+ $(UTL_LIB): general_utilities.o net_utilities.o
+ ${AR} ${ARFLAGS} $@ general_utilities.o net_utilities.o
+
diff --git a/security/sslsniffer/pkg-descr b/security/sslsniffer/pkg-descr
new file mode 100644
index 000000000000..a4a93a9a5f69
--- /dev/null
+++ b/security/sslsniffer/pkg-descr
@@ -0,0 +1,6 @@
+A SSLv3/TLS and SSLv2 proxy server that sniffs SSL/TLS packets and prints
+out the contents of packets in stdout. It can also serve as a (not very
+efficient) proxy server. Note that this tool does not decrypt or even
+attempt to decrypt the traffic that is routed through it.
+
+WWW: http://crypto.stanford.edu/~eujin/sslsniffer/
diff --git a/security/sslsniffer/pkg-plist b/security/sslsniffer/pkg-plist
new file mode 100644
index 000000000000..d2af084657fb
--- /dev/null
+++ b/security/sslsniffer/pkg-plist
@@ -0,0 +1,3 @@
+bin/sslsniffer
+%%PORTDOCS%%share/doc/sslsniffer/README
+%%PORTDOCS%%@dirrm share/doc/sslsniffer