ports/64728 New port: net-mgmt/sdig Find which switch/router a given host is on
Russell Jackson
rjackson at cserv62.csub.edu
Sat Mar 27 05:30:10 UTC 2004
The following reply was made to PR ports/64728; it has been noted by GNATS.
From: Russell Jackson <rjackson at cserv62.csub.edu>
To: freebsd-gnats-submit at freebsd.org
Cc:
Subject: Re: ports/64728 New port: net-mgmt/sdig Find which switch/router a given host is on
Date: Fri, 26 Mar 2004 21:22:17 -0800
Looks like gnats doesn't like MIME attachments
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./files
# ./files/patch-Makefile.in
# ./Makefile
# ./pkg-plist
# ./distinfo
# ./pkg-descr
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-Makefile.in
sed 's/^X//' >./files/patch-Makefile.in << 'END-of-./files/patch-Makefile.in'
X--- Makefile.in.orig Fri Apr 4 08:35:54 2003
X+++ Makefile.in Thu Mar 25 13:36:34 2004
X@@ -9,8 +9,8 @@
X MANDIR = $(DESTDIR)@mandir@
X
X # other definitions
X-CC = @CC@
X-CFLAGS = -Iinclude -O2 -Wall # -g -static
X+CC ?= @CC@
X+CFLAGS += -Iinclude -I/usr/local/include
X
X INSTALLCMD = @INSTALL@
X INSTALLMODE_BIN = 0755
X@@ -32,6 +32,9 @@
X $(CC) $(CFLAGS) -o sdig sdig.o common.o snmpget.o \
X $(NETSNMP_LIBS)
X
X+snmpget.o: snmpget.c
X+ $(CC) $(CFLAGS) -c snmpget.c
X+
X clean:
X rm -f $(PROGS) *.o
X
X@@ -49,12 +52,7 @@
X
X install-conf:
X ./install-sh -d $(CONFDIR)
X- @if ( test -f $(CONFDIR)/sdig.conf ) \
X- then \
X- echo Not replacing existing file: $(CONFDIR)/sdig.conf; \
X- else \
X- $(INSTALLCMD) -m $(INSTALLMODE_CONF) sdig.conf $(CONFDIR); \
X- fi
X+ $(INSTALLCMD) -m $(INSTALLMODE_CONF) sdig.conf $(CONFDIR)/sdig.conf-sample
X
X install-man:
X ./install-sh -d $(MANDIR)/man5
END-of-./files/patch-Makefile.in
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for: sdig
X# Date created: 25 May 2004
X# Whom: Russell A. Jackson <rjackson at cserv62.csub.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME= sdig
XPORTVERSION= 0.40
XCATEGORIES= net-mgmt
XMASTER_SITES= http://www.exploits.org/sdig/
X
XMAINTAINER= rjackson at cserv62.csub.edu
XCOMMENT= Find which switch/router port a given host is on
X
XLIB_DEPENDS= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp:install
X
XUSE_GMAKE=yes
XGNU_CONFIGURE=yes
X
XMAN5= sdig.conf.5
XMAN8= sdig.8
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/sdig
Xetc/sdig.conf-sample
END-of-./pkg-plist
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (sdig-0.40.tar.gz) = 60132d49076f0e51d7cccc99cb72b7f4
XSIZE (sdig-0.40.tar.gz) = 72623
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThis program is designed to track down computers to the finest level of
Xinformation available at the moment. Sometimes this can mean an exact
Xdescription of a port in a building anywhere in an enterprise. Other
Xtimes this may just be a vague notion of a faraway network. The results
Xare only as good as the data you feed to it.
X
XWWW: http://www.exploits.org/sdig
X
X- Russell A. Jackson
Xrjackson at cserv62.csub.edu
END-of-./pkg-descr
exit
--
Russell A. Jackson (rjackson at cserv62.csub.edu)
More information about the freebsd-ports-bugs
mailing list