aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/sdig
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-28 21:33:06 +0800
committerpav <pav@FreeBSD.org>2004-03-28 21:33:06 +0800
commita18725cdcfb901213015896f972ede34c2942ccf (patch)
tree2824544970c7b45eb69844d44e2b006c114d1b6b /net-mgmt/sdig
parentec9ed65aa310db947dff0ed6c275e11fb89c59bb (diff)
downloadfreebsd-ports-graphics-a18725cdcfb901213015896f972ede34c2942ccf.tar.gz
freebsd-ports-graphics-a18725cdcfb901213015896f972ede34c2942ccf.tar.zst
freebsd-ports-graphics-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>
Diffstat (limited to 'net-mgmt/sdig')
-rw-r--r--net-mgmt/sdig/Makefile25
-rw-r--r--net-mgmt/sdig/distinfo2
-rw-r--r--net-mgmt/sdig/files/patch-Makefile.in37
-rw-r--r--net-mgmt/sdig/pkg-descr10
4 files changed, 74 insertions, 0 deletions
diff --git a/net-mgmt/sdig/Makefile b/net-mgmt/sdig/Makefile
new file mode 100644
index 00000000000..f3a05678c7e
--- /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 00000000000..41c949d4db1
--- /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 00000000000..c00f77ae3fe
--- /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 00000000000..2c0c9f9948d
--- /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