From rjackson@cserv62.csub.edu  Thu Mar 25 13:06:14 2004
Return-Path: <rjackson@cserv62.csub.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 33AC716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Mar 2004 13:06:14 -0800 (PST)
Received: from cserv62.csub.edu (cserv62.csub.edu [136.168.10.62])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 033B143D31
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Mar 2004 13:06:14 -0800 (PST)
	(envelope-from rjackson@cserv62.csub.edu)
Received: from cserv62.csub.edu (localhost [127.0.0.1])
	by cserv62.csub.edu (8.12.9/8.12.9) with ESMTP id i2PL1QqD030168
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Mar 2004 13:02:30 -0800 (PST)
	(envelope-from rjackson@cserv62.csub.edu)
Received: (from rjackson@localhost)
	by cserv62.csub.edu (8.12.9/8.12.9/Submit) id i2PL1QvO030167;
	Thu, 25 Mar 2004 13:01:26 -0800 (PST)
	(envelope-from rjackson)
Message-Id: <200403252101.i2PL1QvO030167@cserv62.csub.edu>
Date: Thu, 25 Mar 2004 13:01:26 -0800 (PST)
From: Russell Jackson <rjackson@cserv62.csub.edu>
Reply-To: Russell Jackson <rjackson@cserv62.csub.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: net-mgmt/sdig Find which switch/router port a given host is on
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64728
>Category:       ports
>Synopsis:       New port: net-mgmt/sdig Find which switch/router port a given host is on
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 25 13:10:14 PST 2004
>Closed-Date:    Sun Mar 28 05:34:08 PST 2004
>Last-Modified:  Sun Mar 28 05:34:08 PST 2004
>Originator:     Russell Jackson
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD cserv62.csub.edu 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Dec 15 16:35:36 PST 2003 rjackson@cserv62.csub.edu:/usr/obj/usr/src/sys/CSERV62 i386
	
>Description:
Find which switch/router port a given host is on
	
>How-To-Repeat:
	
>Fix:
# 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:
#
#	sdig
#	sdig/Makefile
#	sdig/pkg-plist
#	sdig/distinfo
#	sdig/files
#	sdig/files/patch-snmpget.c
#	sdig/files/patch-Makefile
#	sdig/files/patch-sdig.c
#	sdig/pkg-descr
#
echo c - sdig
mkdir -p sdig > /dev/null 2>&1
echo x - sdig/Makefile
sed 's/^X//' >sdig/Makefile << 'END-of-sdig/Makefile'
X# New ports collection makefile for: sdig
X# Date created: 25 May 2004
X# Whom: Russell A. Jackson <rjackson@cserv62.csub.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sdig
XPORTVERSION=	0.30
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://www.exploits.org/sdig/
X
XMAINTAINER=	rjackson@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
XMAN8=		sdig.8
X
X.include <bsd.port.mk>
END-of-sdig/Makefile
echo x - sdig/pkg-plist
sed 's/^X//' >sdig/pkg-plist << 'END-of-sdig/pkg-plist'
Xbin/sdig
Xbin/nbname
Xbin/swc
Xetc/sdig.conf-sample
END-of-sdig/pkg-plist
echo x - sdig/distinfo
sed 's/^X//' >sdig/distinfo << 'END-of-sdig/distinfo'
XMD5 (sdig-0.30.tar.gz) = 4424502de8ee2ac8ee6d599e0f16e3b2
XSIZE (sdig-0.30.tar.gz) = 25301
END-of-sdig/distinfo
echo c - sdig/files
mkdir -p sdig/files > /dev/null 2>&1
echo x - sdig/files/patch-snmpget.c
sed 's/^X//' >sdig/files/patch-snmpget.c << 'END-of-sdig/files/patch-snmpget.c'
X--- snmpget.c.orig	Thu Mar 25 10:35:19 2004
X+++ snmpget.c	Thu Mar 25 11:12:40 2004
X@@ -27,9 +27,9 @@
X #include <stdarg.h>
X #include <string.h>
X 
X-#include <ucd-snmp/ucd-snmp-config.h>
X-#include <ucd-snmp/ucd-snmp-includes.h>
X-#include <ucd-snmp/system.h>
X+#include <net-snmp/net-snmp-config.h>
X+#include <net-snmp/net-snmp-includes.h>
X+#include <net-snmp/system/freebsd4.h>
X 
X #include "common.h"
END-of-sdig/files/patch-snmpget.c
echo x - sdig/files/patch-Makefile
sed 's/^X//' >sdig/files/patch-Makefile << 'END-of-sdig/files/patch-Makefile'
X--- Makefile.orig	Thu Mar 25 10:42:04 2004
X+++ Makefile	Thu Mar 25 12:45:08 2004
X@@ -1,21 +1,23 @@
X # sdig/Makefile: non-autoconf hack, for now
X #
X 
X-CC	= gcc
X-CFLAGS	= -O2 -Wall # -g -static
X+CC	?= gcc
X+CFLAGS	+= -Wall -I/usr/local/include# -g -static
X+
X PROGS   = sdig nbname swc
X 
X # change this to whatever it takes to make these things link on your system
X 
X-UCDSNMP_CFLAGS = -lsnmp
X-OPENSSL_CFLAGS = -L/usr/local/ssl/lib -lcrypto
X+UCDSNMP_LDFLAGS= -L/usr/local/lib -lnetsnmp
X+OPENSSL_LDFLAGS= -L/usr/local/ssl/lib -lcrypto
X 
X all: $(PROGS)
X 
X-sdig: sdig.c common.o snmpget.o 
X-	$(CC) $(CFLAGS) -o sdig sdig.c common.o snmpget.o $(UCDSNMP_CFLAGS) $(OPENSSL_CFLAGS)
X+sdig: sdig.o common.o snmpget.o 
X+	$(CC) $(CFLAGS) -o sdig sdig.o common.o snmpget.o $(UCDSNMP_LDFLAGS) $(OPENSSL_LDFLAGS)
X 
X-swc: swc.c common.o
X+swc: swc.o common.o
X+	$(CC) $(CFLAGS) -o swc swc.o common.o
X 
X clean:
X 	rm -f $(PROGS) *.o
X@@ -23,9 +25,6 @@
X install: all
X 	cp sdig /usr/local/bin
X 	cp nbname /usr/local/bin
X-	@if ( test -f /etc/sdig.conf ) \
X-	then \
X-		echo Not replacing existing file: /etc/sdig.conf; \
X-	else \
X-		cp sdig.conf /etc; \
X-	fi
X+	cp swc /usr/local/bin
X+	cp sdig.8 /usr/local/man/man8
X+	cp sdig.conf /usr/local/etc/sdig.conf-sample
END-of-sdig/files/patch-Makefile
echo x - sdig/files/patch-sdig.c
sed 's/^X//' >sdig/files/patch-sdig.c << 'END-of-sdig/files/patch-sdig.c'
X--- sdig.c.orig	Thu Mar 25 11:31:51 2004
X+++ sdig.c	Thu Mar 25 11:32:04 2004
X@@ -34,7 +34,7 @@
X #include "snmpget.h"
X #include "version.h"
X 
X-#define CONFIGFILE "/etc/sdig.conf"
X+#define CONFIGFILE "/usr/local/etc/sdig.conf"
X 
X 	stype	*firstsw = NULL;
X 	rtype	*firstrt = NULL;
END-of-sdig/files/patch-sdig.c
echo x - sdig/pkg-descr
sed 's/^X//' >sdig/pkg-descr << 'END-of-sdig/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@cserv62.csub.edu
END-of-sdig/pkg-descr
exit

	


>Release-Note:
>Audit-Trail:

From: Russell Jackson <rjackson@cserv62.csub.edu>
To: freebsd-gnats-submit@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 18:51:32 -0800

 --7JfCtLOvnd9MIVvH
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 I realized there was a new version out soon after subitting the port
 
 New shar included.
 
 -- 
 Russell A. Jackson (rjackson@cserv62.csub.edu)
 
 --7JfCtLOvnd9MIVvH
 Content-Type: application/x-shar
 Content-Disposition: attachment; filename="sdig.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # This is a shell archive.  Save it in a file, remove anything before=0A# t=
 his line, and then unpack it by entering "sh file".  Note, it may=0A# creat=
 e directories; files and directories will be owned by you and=0A# have defa=
 ult permissions.=0A#=0A# This archive contains:=0A#=0A#	.=0A#	./files=0A#	.=
 /files/patch-Makefile.in=0A#	./Makefile=0A#	./pkg-plist=0A#	./distinfo=0A#	=
 ./pkg-descr=0A#=0Aecho c - .=0Amkdir -p . > /dev/null 2>&1=0Aecho c - ./fil=
 es=0Amkdir -p ./files > /dev/null 2>&1=0Aecho x - ./files/patch-Makefile.in=
 =0Ased 's/^X//' >./files/patch-Makefile.in << 'END-of-./files/patch-Makefil=
 e.in'=0AX--- Makefile.in.orig	Fri Apr  4 08:35:54 2003=0AX+++ Makefile.in	T=
 hu Mar 25 13:36:34 2004=0AX@@ -9,8 +9,8 @@=0AX MANDIR	=3D $(DESTDIR)@mandir=
 @=0AX =0AX # other definitions=0AX-CC	=3D @CC@=0AX-CFLAGS	=3D -Iinclude -O2=
  -Wall # -g -static=0AX+CC	?=3D @CC@=0AX+CFLAGS	+=3D -Iinclude -I/usr/local=
 /include =0AX =0AX INSTALLCMD       =3D @INSTALL@=0AX INSTALLMODE_BIN	 =3D =
 0755=0AX@@ -32,6 +32,9 @@=0AX 	$(CC) $(CFLAGS) -o sdig sdig.o common.o snmp=
 get.o \=0AX 	$(NETSNMP_LIBS)=0AX =0AX+snmpget.o: snmpget.c=0AX+	$(CC) $(CFL=
 AGS) -c snmpget.c=0AX+=0AX clean:=0AX 	rm -f $(PROGS) *.o=0AX =0AX@@ -49,12=
  +52,7 @@=0AX =0AX install-conf:=0AX 	./install-sh -d $(CONFDIR)=0AX-	@if (=
  test -f $(CONFDIR)/sdig.conf ) \=0AX-	then \=0AX-		echo Not replacing exis=
 ting file: $(CONFDIR)/sdig.conf; \=0AX-	else \=0AX-		$(INSTALLCMD) -m $(INS=
 TALLMODE_CONF) sdig.conf $(CONFDIR); \=0AX-	fi=0AX+	$(INSTALLCMD) -m $(INST=
 ALLMODE_CONF) sdig.conf $(CONFDIR)/sdig.conf-sample=0AX =0AX install-man:=
 =0AX 	./install-sh -d $(MANDIR)/man5=0AEND-of-./files/patch-Makefile.in=0Ae=
 cho x - ./Makefile=0Ased 's/^X//' >./Makefile << 'END-of-./Makefile'=0AX# N=
 ew ports collection makefile for: sdig=0AX# Date created: 25 May 2004=0AX# =
 Whom: Russell A. Jackson <rjackson@cserv62.csub.edu>=0AX#=0AX# $FreeBSD$=0A=
 X#=0AX=0AXPORTNAME=3D	sdig=0AXPORTVERSION=3D	0.40=0AXCATEGORIES=3D	net-mgmt=
 =0AXMASTER_SITES=3D	http://www.exploits.org/sdig/=0AX=0AXMAINTAINER=3D	rjac=
 kson@cserv62.csub.edu=0AXCOMMENT=3D	Find which switch/router port a given h=
 ost is on=0AX=0AXLIB_DEPENDS=3D	netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp:ins=
 tall=0AX=0AXUSE_GMAKE=3Dyes=0AXGNU_CONFIGURE=3Dyes=0AX=0AXMAN5=3D		sdig.con=
 f.5=0AXMAN8=3D		sdig.8=0AX=0AX.include <bsd.port.mk>=0AEND-of-./Makefile=0A=
 echo x - ./pkg-plist=0Ased 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'=0A=
 Xbin/sdig=0AXetc/sdig.conf-sample=0AEND-of-./pkg-plist=0Aecho x - ./distinf=
 o=0Ased 's/^X//' >./distinfo << 'END-of-./distinfo'=0AXMD5 (sdig-0.40.tar.g=
 z) =3D 60132d49076f0e51d7cccc99cb72b7f4=0AXSIZE (sdig-0.40.tar.gz) =3D 7262=
 3=0AEND-of-./distinfo=0Aecho x - ./pkg-descr=0Ased 's/^X//' >./pkg-descr <<=
  'END-of-./pkg-descr'=0AXThis program is designed to track down computers t=
 o the finest level of=0AXinformation available at the moment. Sometimes thi=
 s can mean an exact=0AXdescription of a port in a building anywhere in an e=
 nterprise. Other=0AXtimes this may just be a vague notion of a faraway netw=
 ork. The results=0AXare only as good as the data you feed to it.=0AX=0AXWWW=
 : http://www.exploits.org/sdig=0AX=0AX- Russell A. Jackson=0AXrjackson@cser=
 v62.csub.edu=0AEND-of-./pkg-descr=0Aexit=0A=0A
 --7JfCtLOvnd9MIVvH--

From: Russell Jackson <rjackson@cserv62.csub.edu>
To: freebsd-gnats-submit@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@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@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@cserv62.csub.edu
 END-of-./pkg-descr
 exit
 
 -- 
 Russell A. Jackson (rjackson@cserv62.csub.edu)
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Mar 28 05:33:56 PST 2004 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64728 
>Unformatted:
