From 5e133f9ad11c6c18913ddc0bb2c085be7198b693 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Wed, 14 Aug 2002 15:53:48 +0000 Subject: add hafiye 1.0 Multi Platform Customizable TCP/IP Packet Sniffer --- security/hafiye/Makefile | 29 +++++++++++++++++++++++++++++ security/hafiye/distinfo | 1 + security/hafiye/pkg-comment | 1 + security/hafiye/pkg-descr | 18 ++++++++++++++++++ security/hafiye/pkg-plist | 10 ++++++++++ 5 files changed, 59 insertions(+) create mode 100644 security/hafiye/Makefile create mode 100644 security/hafiye/distinfo create mode 100644 security/hafiye/pkg-comment create mode 100644 security/hafiye/pkg-descr create mode 100644 security/hafiye/pkg-plist (limited to 'security/hafiye') diff --git a/security/hafiye/Makefile b/security/hafiye/Makefile new file mode 100644 index 000000000000..6f24e494e0db --- /dev/null +++ b/security/hafiye/Makefile @@ -0,0 +1,29 @@ +# ex:ts=8 +# Ports collection makefile for: hafiye +# Date Created: Aug 14, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= hafiye +PORTVERSION= 1.0 +CATEGORIES= security +MASTER_SITES= http://www.enderunix.org/hafiye/ \ + http://www.acikkod.org/hafiye/ + +MAINTAINER= ports@FreeBSD.org + +USE_REINPLACE= yes +MAKE_ENV= LDFLAGS="-lpcap" + +post-patch: + @${REINPLACE_CMD} -e "s|^CC|#CC|g ; s|^CFLAGS|#CFLAGS|g ; \ + s|^LDFLAGS|#LDFLAGS|g" ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/hafiye ${PREFIX}/bin + @${MKDIR} ${DATADIR} + ${CP} -R ${WRKSRC}/KB/* ${DATADIR} + +.include diff --git a/security/hafiye/distinfo b/security/hafiye/distinfo new file mode 100644 index 000000000000..b8959eb817a8 --- /dev/null +++ b/security/hafiye/distinfo @@ -0,0 +1 @@ +MD5 (hafiye-1.0.tar.gz) = 5537acb500e9c78d448d7a9dea46f560 diff --git a/security/hafiye/pkg-comment b/security/hafiye/pkg-comment new file mode 100644 index 000000000000..94719ac1bb0b --- /dev/null +++ b/security/hafiye/pkg-comment @@ -0,0 +1 @@ +Multi Platform Customizable TCP/IP Packet Sniffer diff --git a/security/hafiye/pkg-descr b/security/hafiye/pkg-descr new file mode 100644 index 000000000000..4b80ba1576b1 --- /dev/null +++ b/security/hafiye/pkg-descr @@ -0,0 +1,18 @@ +When I looked at the source code for various famous sniffers, I've noticed +that they all had all seperate .C files for interpreting various protocols. +Why not have a sniffer that can understand user-supplied protocol details? +Here it is. + +When fired, Hafiye first visits each sub-directory under its knowledge-base +directory and opens to see whether it is a protocol knowledge-base file. If +so, It loads the necessary information from that file and places it into its +memory space. After constructing the supplied knowledge-base, Hafiye starts +looping for receiving packets. When a packet arrives, it demultiplexes the +layers according to its knowledge-base and prints protocol-based information. + +Features + - Multi Platform Support (Posix Compliant) + - Customizable Protocol Definitions (Layer II, III and IV) + - Customizable Packet Interpretation (Layer II, III and IV) + +WWW: http://www.enderunix.org/hafiye/ diff --git a/security/hafiye/pkg-plist b/security/hafiye/pkg-plist new file mode 100644 index 000000000000..c5e0fa92e1c2 --- /dev/null +++ b/security/hafiye/pkg-plist @@ -0,0 +1,10 @@ +bin/hafiye +share/hafiye/LII/IP +share/hafiye/LIII/ICMP +share/hafiye/LIII/TCP +share/hafiye/LIII/UDP +share/hafiye/LIV/DNS +@dirrm share/hafiye/LII +@dirrm share/hafiye/LIII +@dirrm share/hafiye/LIV +@dirrm share/hafiye -- cgit v1.2.3