Initial import of tdetect version 0.2.1.

A utility for detecting traceroutes and reporting them via syslog.

PR:		9899
Submitted by:	Peter Shipley <shipley@dis.org>
This commit is contained in:
Steve Price 1999-05-03 02:49:35 +00:00
parent fc76415ee8
commit f61a972ad1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18374
6 changed files with 53 additions and 0 deletions

35
net/tdetect/Makefile Normal file
View File

@ -0,0 +1,35 @@
# New ports collection makefile for: oneko
# Ports collection makefile for: tdetect
# Version required: 0.2
# Date created: Sun Jan 31, 1997
# Whom: shipley@dis.org
#
# $Id$
#
DISTNAME= tdetect-0.2
PKGNAME= tdetect-0.2.1
CATEGORIES= net
MASTER_SITES= http://sb.123.org/ \
http://www.genocide2600.com/~tattooman/unix-loggers/ \
http://ftp.ceti.com.pl/pub/scout/progs/Unix/
MAINTAINER= shipley@dis.org
#WRKSRC= ${WRKDIR}/tdetect-0.2
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${PREFIX}/sbin/tdetect
post-install:
strip ${PREFIX}/sbin/tdetect
@if [ ! -f ${PREFIX}/etc/rc.d/tdetect.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/tdetect.sh; \
${ECHO} "ethernetdev=ed0" > ${PREFIX}/etc/rc.d/tdetect.sh; \
${ECHO} "[ -x ${PREFIX}/sbin/tdetect ] && ${PREFIX}/sbin/tdetect \$ethernetdev && echo -n ' tdetect'" >> ${PREFIX}/etc/rc.d/tdetect.sh; \
chmod 750 ${PREFIX}/etc/rc.d/tdetect.sh; \
${ECHO} "IMPORTANT ${PREFIX}/etc/rc.d/tdetect.sh and set ethernetdev to the name of the ethernetdev you wish to monitor"; \
fi
.include <bsd.port.mk>

1
net/tdetect/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (tdetect-0.2.tar.gz) = 54a27e2623c6f57d734fbfbd8019c7b0

1
net/tdetect/pkg-comment Normal file
View File

@ -0,0 +1 @@
A Utility for detecting traceroutes and reporting them via. syslog

8
net/tdetect/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
tdetect A simple C library for portable packet creation
If you're interested to detect all attempts to make "traceroute your-host"
or "traceroute host.your-network", you can try to use this simple program.
The idea is simple - to detect UDP (Unix traceroute) or ICMP ECHO (Windows
traceroute) packets with TTL fields == 1.
See http://sb.123.org/ for more info

6
net/tdetect/pkg-message Normal file
View File

@ -0,0 +1,6 @@
IMPORTANT!
Dont forget to edit ${PREFIX}/etc/rc.d/tdetect.sh
and set ethernetdev to the name of the ethernet device you wish to monitor

2
net/tdetect/pkg-plist Normal file
View File

@ -0,0 +1,2 @@
sbin/tdetect
etc/rc.d/tdetect.sh