diff options
author | pav <pav@FreeBSD.org> | 2004-03-28 21:33:06 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-03-28 21:33:06 +0800 |
commit | a18725cdcfb901213015896f972ede34c2942ccf (patch) | |
tree | 2824544970c7b45eb69844d44e2b006c114d1b6b | |
parent | ec9ed65aa310db947dff0ed6c275e11fb89c59bb (diff) | |
download | freebsd-ports-gnome-a18725cdcfb901213015896f972ede34c2942ccf.tar.gz freebsd-ports-gnome-a18725cdcfb901213015896f972ede34c2942ccf.tar.zst freebsd-ports-gnome-a18725cdcfb901213015896f972ede34c2942ccf.zip |
Add sdig, Switch Digger, a program designed to track down computers
to the finest level of information available at the moment. Sometimes this
can mean an exact description of a port in a building anywhere in an enterprise.
PR: ports/64728
Submitted by: Russell Jackson <rjackson@cserv62.csub.edu>
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/sdig/Makefile | 25 | ||||
-rw-r--r-- | net-mgmt/sdig/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/sdig/files/patch-Makefile.in | 37 | ||||
-rw-r--r-- | net-mgmt/sdig/pkg-descr | 10 |
5 files changed, 75 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index d96ff207c9e2..64c585af2106 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -120,6 +120,7 @@ SUBDIR += scdp SUBDIR += scli SUBDIR += scotty3 + SUBDIR += sdig SUBDIR += sendip SUBDIR += sing SUBDIR += sipcalc diff --git a/net-mgmt/sdig/Makefile b/net-mgmt/sdig/Makefile new file mode 100644 index 000000000000..f3a05678c7e0 --- /dev/null +++ b/net-mgmt/sdig/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: sdig +# Date created: 25 May 2004 +# Whom: Russell A. Jackson <rjackson@cserv62.csub.edu> +# +# $FreeBSD$ +# + +PORTNAME= sdig +PORTVERSION= 0.40 +CATEGORIES= net-mgmt +MASTER_SITES= http://www.exploits.org/sdig/ + +MAINTAINER= rjackson@cserv62.csub.edu +COMMENT= Find which switch/router port a given host is on + +LIB_DEPENDS= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp + +USE_GMAKE= yes +GNU_CONFIGURE= yes + +MAN5= sdig.conf.5 +MAN8= sdig.8 +PLIST_FILES= bin/sdig etc/sdig.conf-sample + +.include <bsd.port.mk> diff --git a/net-mgmt/sdig/distinfo b/net-mgmt/sdig/distinfo new file mode 100644 index 000000000000..41c949d4db14 --- /dev/null +++ b/net-mgmt/sdig/distinfo @@ -0,0 +1,2 @@ +MD5 (sdig-0.40.tar.gz) = 60132d49076f0e51d7cccc99cb72b7f4 +SIZE (sdig-0.40.tar.gz) = 72623 diff --git a/net-mgmt/sdig/files/patch-Makefile.in b/net-mgmt/sdig/files/patch-Makefile.in new file mode 100644 index 000000000000..c00f77ae3fed --- /dev/null +++ b/net-mgmt/sdig/files/patch-Makefile.in @@ -0,0 +1,37 @@ +--- Makefile.in.orig Fri Apr 4 08:35:54 2003 ++++ Makefile.in Thu Mar 25 13:36:34 2004 +@@ -9,8 +9,8 @@ + MANDIR = $(DESTDIR)@mandir@ + + # other definitions +-CC = @CC@ +-CFLAGS = -Iinclude -O2 -Wall # -g -static ++CC ?= @CC@ ++CFLAGS += -Iinclude -I/usr/local/include + + INSTALLCMD = @INSTALL@ + INSTALLMODE_BIN = 0755 +@@ -32,6 +32,9 @@ + $(CC) $(CFLAGS) -o sdig sdig.o common.o snmpget.o \ + $(NETSNMP_LIBS) + ++snmpget.o: snmpget.c ++ $(CC) $(CFLAGS) -c snmpget.c ++ + clean: + rm -f $(PROGS) *.o + +@@ -49,12 +52,7 @@ + + install-conf: + ./install-sh -d $(CONFDIR) +- @if ( test -f $(CONFDIR)/sdig.conf ) \ +- then \ +- echo Not replacing existing file: $(CONFDIR)/sdig.conf; \ +- else \ +- $(INSTALLCMD) -m $(INSTALLMODE_CONF) sdig.conf $(CONFDIR); \ +- fi ++ $(INSTALLCMD) -m $(INSTALLMODE_CONF) sdig.conf $(CONFDIR)/sdig.conf-sample + + install-man: + ./install-sh -d $(MANDIR)/man5 diff --git a/net-mgmt/sdig/pkg-descr b/net-mgmt/sdig/pkg-descr new file mode 100644 index 000000000000..2c0c9f9948da --- /dev/null +++ b/net-mgmt/sdig/pkg-descr @@ -0,0 +1,10 @@ +This program is designed to track down computers to the finest level of +information available at the moment. Sometimes this can mean an exact +description of a port in a building anywhere in an enterprise. Other +times this may just be a vague notion of a faraway network. The results +are only as good as the data you feed to it. + +WWW: http://www.exploits.org/sdig + +- Russell A. Jackson +rjackson@cserv62.csub.edu |