aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/sdig
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-03-28 13:33:06 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-03-28 13:33:06 +0000
commit8e5ecc763f49fb3c6217a59b8aa50ff23182401c (patch)
tree326110e3962000409eef66dfc2c0a32aee5bb3d6 /net-mgmt/sdig
parent717e0f7aa1250a69563eadf6ea1709a78ad90620 (diff)
downloadports-8e5ecc763f49fb3c6217a59b8aa50ff23182401c.tar.gz
ports-8e5ecc763f49fb3c6217a59b8aa50ff23182401c.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>
Notes
Notes: svn path=/head/; revision=105504
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 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