mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
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>
This commit is contained in:
parent
717e0f7aa1
commit
8e5ecc763f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105504
@ -120,6 +120,7 @@
|
||||
SUBDIR += scdp
|
||||
SUBDIR += scli
|
||||
SUBDIR += scotty3
|
||||
SUBDIR += sdig
|
||||
SUBDIR += sendip
|
||||
SUBDIR += sing
|
||||
SUBDIR += sipcalc
|
||||
|
25
net-mgmt/sdig/Makefile
Normal file
25
net-mgmt/sdig/Makefile
Normal file
@ -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>
|
2
net-mgmt/sdig/distinfo
Normal file
2
net-mgmt/sdig/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (sdig-0.40.tar.gz) = 60132d49076f0e51d7cccc99cb72b7f4
|
||||
SIZE (sdig-0.40.tar.gz) = 72623
|
37
net-mgmt/sdig/files/patch-Makefile.in
Normal file
37
net-mgmt/sdig/files/patch-Makefile.in
Normal file
@ -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
|
10
net-mgmt/sdig/pkg-descr
Normal file
10
net-mgmt/sdig/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user