From 8b6b59d39ce94ff1dd44882d417cca56184fe891 Mon Sep 17 00:00:00 2001 From: jeh Date: Mon, 16 Oct 2000 02:28:03 +0000 Subject: Add new port net/sing v1.0 Tool for sending customized ICMP packets PR: 21776 Submitted by: Roman Shterenzon --- net-mgmt/sing/Makefile | 24 +++++++++++++++++++++++ net-mgmt/sing/distinfo | 1 + net-mgmt/sing/files/patch-aa | 45 ++++++++++++++++++++++++++++++++++++++++++++ net-mgmt/sing/files/patch-ab | 13 +++++++++++++ net-mgmt/sing/pkg-comment | 1 + net-mgmt/sing/pkg-descr | 20 ++++++++++++++++++++ net-mgmt/sing/pkg-plist | 1 + 7 files changed, 105 insertions(+) create mode 100644 net-mgmt/sing/Makefile create mode 100644 net-mgmt/sing/distinfo create mode 100644 net-mgmt/sing/files/patch-aa create mode 100644 net-mgmt/sing/files/patch-ab create mode 100644 net-mgmt/sing/pkg-comment create mode 100644 net-mgmt/sing/pkg-descr create mode 100644 net-mgmt/sing/pkg-plist (limited to 'net-mgmt') diff --git a/net-mgmt/sing/Makefile b/net-mgmt/sing/Makefile new file mode 100644 index 000000000000..051d68ebf840 --- /dev/null +++ b/net-mgmt/sing/Makefile @@ -0,0 +1,24 @@ +# Ports collection makefile for: sing +# Date created: Oct 6 2000 +# Whom: Roman Shterenzon +# +# $FreeBSD$ +# + +PORTNAME= sing +PORTVERSION= 1.0 +CATEGORIES= net security +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= SING-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= roman@xpert.com + +GNU_CONFIGURE= yes +MAN8= sing.8 + +post-extract: + @${RM} -rf ${WRKSRC}/libpcap* + +.include diff --git a/net-mgmt/sing/distinfo b/net-mgmt/sing/distinfo new file mode 100644 index 000000000000..e9dbbf324f85 --- /dev/null +++ b/net-mgmt/sing/distinfo @@ -0,0 +1 @@ +MD5 (SING-1.0.tgz) = 0e478a271068eefc6e26e45d236e7694 diff --git a/net-mgmt/sing/files/patch-aa b/net-mgmt/sing/files/patch-aa new file mode 100644 index 000000000000..40c157d9c527 --- /dev/null +++ b/net-mgmt/sing/files/patch-aa @@ -0,0 +1,45 @@ +--- Makefile.in.orig Sat Sep 16 13:03:43 2000 ++++ Makefile.in Fri Oct 6 01:17:29 2000 +@@ -72,7 +72,7 @@ + getopt_SOURCES = @getopt_SOURCES@ + libpcapdir = @libpcapdir@ + +-INCLUDES = -I$(includedir) -I$(libpcapdir) ++INCLUDES = -I$(includedir) # -I$(libpcapdir) + + LIBS = @LIBS@ -lpcap + +@@ -108,7 +108,7 @@ + SOURCES = $(sing_SOURCES) + OBJECTS = $(sing_OBJECTS) + +-all: libpcap all-redirect ++all: all-redirect + .SUFFIXES: + .SUFFIXES: .S .c .o .s + +@@ -149,11 +149,11 @@ + + install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(bindir) ++ $(mkinstalldirs) $(DESTDIR)$(sbindir) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + if test -f $$p; then \ +- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ +- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ ++ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ ++ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ + else :; fi; \ + done + +@@ -223,8 +223,7 @@ + + + help.o: help.c config.h +-sing.o: sing.c config.h libpcap-0.4/pcap.h libpcap-0.4/net/bpf.h \ +- sing.h ipcompat.h misc.h packet.h dev_struct.h ++sing.o: sing.c config.h sing.h ipcompat.h misc.h packet.h dev_struct.h + ip_options.o: ip_options.c config.h ip_options.h ipcompat.h packet.h \ + misc.h + device.o: device.c config.h device.h misc.h packet.h dev_struct.h diff --git a/net-mgmt/sing/files/patch-ab b/net-mgmt/sing/files/patch-ab new file mode 100644 index 000000000000..2934e7389816 --- /dev/null +++ b/net-mgmt/sing/files/patch-ab @@ -0,0 +1,13 @@ +--- configure.orig Fri Oct 6 01:19:57 2000 ++++ configure Fri Oct 6 01:20:05 2000 +@@ -1097,10 +1097,6 @@ + fi + fi + +-if test -n "$GCC"; then +- CFLAGS="-O3 -Wall" +-fi +- + echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 + echo "configure:1104: checking how to run the C preprocessor" >&5 + # On Suns, sometimes $CPP names a directory. diff --git a/net-mgmt/sing/pkg-comment b/net-mgmt/sing/pkg-comment new file mode 100644 index 000000000000..0d8947d23727 --- /dev/null +++ b/net-mgmt/sing/pkg-comment @@ -0,0 +1 @@ +Tool for sending customized ICMP packets diff --git a/net-mgmt/sing/pkg-descr b/net-mgmt/sing/pkg-descr new file mode 100644 index 000000000000..d53357cb5ff9 --- /dev/null +++ b/net-mgmt/sing/pkg-descr @@ -0,0 +1,20 @@ +Sing is a little tool that sends ICMP packets fully customized from command +line. The main purpose is to replace/complement the niceful ping command +with certain enhancements as: + + - Send fragmented packets (Linux and BSD). + - Send monster packets > 65534 (Linux and BSD). + - Send/read spoofed packets. + - Send many ICMP Information types in addition to the ECHO REQUEST type sent + by default as Address Mask Request, Timestamp, Information Request, Router + Solicitation and Router Advertisement. + - Send many ICMP error types: Redirect, Source Quench, Time Exceeded, + Destination Unreach and Parameter Problem. + - Send to host with Loose or Strict Source Routing. + - Use little fingerprinting techniques to discover Windows or Solaris boxes. + - Send ICMP packets emulating certain OS: Cisco, Solaris, Linux, Shiva, + Unix and Windows at the moment. + +WWW: http://sourceforge.net/projects/sing/ + +--Roman diff --git a/net-mgmt/sing/pkg-plist b/net-mgmt/sing/pkg-plist new file mode 100644 index 000000000000..8c8ba8603195 --- /dev/null +++ b/net-mgmt/sing/pkg-plist @@ -0,0 +1 @@ +sbin/sing -- cgit