Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 1999 17:27:30 -0800 (PST)
From:      shipley@dis.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/9899: port submission for tdetect
Message-ID:  <199902040127.RAA28529@dipshit.dis.org>

next in thread | raw e-mail | index | archive | help

>Number:         9899
>Category:       ports
>Synopsis:       port submission for tdetect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  3 17:30:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Peter Shipley
>Release:        FreeBSD 3.0-RELEASE i386
>Organization:
>Environment:

	FreeBSD connected to a network

>Description:

	tdetect is a program that monitors the local net and 
	creats a syslog message/event reporting traceroute 

	this is a useful security monitoring tool.


>How-To-Repeat:

	

>Fix:
	
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tdetect
#	tdetect/Makefile
#	tdetect/files
#	tdetect/files/md5
#	tdetect/files/CVS
#	tdetect/pkg
#	tdetect/pkg/PLIST
#	tdetect/pkg/DESCR
#	tdetect/pkg/COMMENT
#	tdetect/pkg/CVS
#	tdetect/pkg/MESSAGE
#	tdetect/patches
#
echo c - tdetect
mkdir -p tdetect > /dev/null 2>&1
echo x - tdetect/Makefile
sed 's/^X//' >tdetect/Makefile << 'END-of-tdetect/Makefile'
X# New ports collection makefile for:   oneko
X# Ports collection makefile for:  tdetect
X# Version required:     	  0.2
X# Date created:			  Sun Jan 31, 1997
X# Whom:               		  shipley@dis.org
X#
X# $Id$
X#
X
XDISTNAME=	tdetect-0.2
XPKGNAME=	tdetect-0.2.1
XCATEGORIES=     net
XMASTER_SITES=	http://sb.123.org/ \
X		http://www.genocide2600.com/~tattooman/unix-loggers/ \
X		http://ftp.ceti.com.pl/pub/scout/progs/Unix/
X
XMAINTAINER=	shipley@dis.org
X
XDISTDIR=	/var/tmp/	# for debuging
X
XWRKSRC=         ${WRKDIR}/tdetect-0.2
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${PREFIX}/sbin/tdetect
X
Xpost-install:
X	strip ${PREFIX}/sbin/tdetect
X	@if [ ! -f ${PREFIX}/etc/rc.d/tdetect.sh ]; then \
X		${ECHO} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \
X		${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/tdetect.sh; \
X		${ECHO} "ethernetdev=ed0" > ${PREFIX}/etc/rc.d/tdetect.sh; \
X		${ECHO} "[ -x ${PREFIX}/sbin/tdetect ] && ${PREFIX}/sbin/tdetect \$ethernetdev && echo -n ' tdetect'" >> ${PREFIX}/etc/rc.d/tdetect.sh; \
X		chmod 750 ${PREFIX}/etc/rc.d/tdetect.sh; \
X		${ECHO} "IMPORTANT ${PREFIX}/etc/rc.d/tdetect.sh and set ethernetdev to the name of the ethernetdev you wish to monitor"; \
X	fi
X
X.include <bsd.port.mk>
END-of-tdetect/Makefile
echo c - tdetect/files
mkdir -p tdetect/files > /dev/null 2>&1
echo x - tdetect/files/md5
sed 's/^X//' >tdetect/files/md5 << 'END-of-tdetect/files/md5'
XMD5 (tdetect-0.2.tar.gz) = 54a27e2623c6f57d734fbfbd8019c7b0
END-of-tdetect/files/md5
echo c - tdetect/files/CVS
mkdir -p tdetect/files/CVS > /dev/null 2>&1
echo c - tdetect/pkg
mkdir -p tdetect/pkg > /dev/null 2>&1
echo x - tdetect/pkg/PLIST
sed 's/^X//' >tdetect/pkg/PLIST << 'END-of-tdetect/pkg/PLIST'
Xsbin/tdetect
Xetc/rc.d/tdetect.sh
END-of-tdetect/pkg/PLIST
echo x - tdetect/pkg/DESCR
sed 's/^X//' >tdetect/pkg/DESCR << 'END-of-tdetect/pkg/DESCR'
Xtdetect  A simple  C library for portable packet creation 
X
X  If you're interested to detect all attempts to make "traceroute your-host"
Xor "traceroute host.your-network", you can try to use this simple program.  
XThe idea is simple - to detect UDP (Unix traceroute) or ICMP ECHO (Windows  
Xtraceroute) packets with TTL fields == 1.                                   
X
XSee http://sb.123.org/ for more info
END-of-tdetect/pkg/DESCR
echo x - tdetect/pkg/COMMENT
sed 's/^X//' >tdetect/pkg/COMMENT << 'END-of-tdetect/pkg/COMMENT'
XA Utility for detecting traceroutes and reporting them via. syslog
END-of-tdetect/pkg/COMMENT
echo c - tdetect/pkg/CVS
mkdir -p tdetect/pkg/CVS > /dev/null 2>&1
echo x - tdetect/pkg/MESSAGE
sed 's/^X//' >tdetect/pkg/MESSAGE << 'END-of-tdetect/pkg/MESSAGE'
X
XIMPORTANT!
X
XDont forget to edit ${PREFIX}/etc/rc.d/tdetect.sh
Xand set ethernetdev to the name of the ethernet device you wish to monitor
X
END-of-tdetect/pkg/MESSAGE
echo c - tdetect/patches
mkdir -p tdetect/patches > /dev/null 2>&1
exit


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902040127.RAA28529>