Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jul 2002 15:46:27 -0400 (EDT)
From:      "James E. Flemer" <jflemer@acm.jhu.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40233: new port: docsis
Message-ID:  <200207051946.g65JkRBB014389@psi.speednaked.com>

next in thread | raw e-mail | index | archive | help

>Number:         40233
>Category:       ports
>Synopsis:       new port: docsis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 05 12:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     James E. Flemer
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD psi.speednaked.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Wed Jun 26 22:08:26 EDT 2002 root@psi.speednaked.com:/usr/obj/usr/src/sys/PSI i386

>Description:
docsis is a small program that can be used to generate binary 
configuration files for DOCSIS-compliant cable modems. DOCSIS 
stands for Data over Cable Service Interface Specification and 
is a standard developed by Cablelabs. 
http://docsis.sourceforge.net/

>How-To-Repeat:
>Fix:

--- docsis.shar begins here ---
# 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:
#
#	net/docsis
#	net/docsis/files
#	net/docsis/files/patch-aa
#	net/docsis/files/patch-ab
#	net/docsis/files/patch-ac
#	net/docsis/Makefile
#	net/docsis/distinfo
#	net/docsis/pkg-comment
#	net/docsis/pkg-descr
#	net/docsis/pkg-plist
#
echo c - net/docsis
mkdir -p net/docsis > /dev/null 2>&1
echo c - net/docsis/files
mkdir -p net/docsis/files > /dev/null 2>&1
echo x - net/docsis/files/patch-aa
sed 's/^X//' >net/docsis/files/patch-aa << 'END-of-net/docsis/files/patch-aa'
X--- Makefile.orig	Wed Feb 13 14:09:52 2002
X+++ Makefile	Fri Jul  5 14:52:35 2002
X@@ -1,4 +1,4 @@
X-CC 	=  gcc 
X+#CC 	=  gcc 
X DEFS	= -DYY_NO_UNPUT  -DDEBUG
X #
X # We assume ucd-snmp is installed in /opt/ucd-snmp-4.2. If not, replace with 
X@@ -7,8 +7,10 @@
X # -lcrypto is OpenSSL. 
X # 
X # CFLAGS	= -g -Wall -I/usr/local/include
X-CFLAGS	= -g -Wall -I/opt/ucd-snmp-4.2/include
X-LIBS  	= -L/opt/ucd-snmp-4.2/lib -lsnmp -lcrypto -lnsl -lfl -lm
X+CFLAGS	+= -g -Wall -I$(PREFIX)/include
X+LIBS  	+= -L$(PREFIX)/lib -lsnmp -lcrypto -lfl -lm
X+
X+all: docsis
X 
X docsis: Makefile docsis_decode.o docsis_yy.o docsis_main.o md5.o hmac_md5.o docsis_snmp.o ethermac.h ethermac.o version.h docsis_encode.o 
X 	$(CC) $(CFLAGS) $(DEFS) -g -o docsis docsis_main.o docsis_encode.o docsis_decode.o docsis_yy.o md5.o hmac_md5.o docsis_snmp.o ethermac.o $(LIBS)
END-of-net/docsis/files/patch-aa
echo x - net/docsis/files/patch-ab
sed 's/^X//' >net/docsis/files/patch-ab << 'END-of-net/docsis/files/patch-ab'
X--- docsis_decode.c.orig	Fri Jul  5 14:54:11 2002
X+++ docsis_decode.c	Fri Jul  5 14:55:31 2002
X@@ -47,7 +47,7 @@
X   memset( &helper, 0,sizeof(unsigned int));
X   memcpy( &helper, tlvbuf+2, sizeof(unsigned int));
X 
X-  printf ( "%s %u;\n", sym->sym_ident, ntohl(helper));
X+  printf ( "%s %u;\n", sym->sym_ident, (unsigned int)ntohl(helper));
X }
X 
X void decode_ushort (unsigned char *tlvbuf, symbol_type *sym)
END-of-net/docsis/files/patch-ab
echo x - net/docsis/files/patch-ac
sed 's/^X//' >net/docsis/files/patch-ac << 'END-of-net/docsis/files/patch-ac'
X--- docsis_snmp.c.orig	Fri Jul  5 14:56:11 2002
X+++ docsis_snmp.c	Fri Jul  5 14:56:53 2002
X@@ -165,6 +165,7 @@
X     if (snmp_set_var_objid(vp, objid, vp->name_length))
X         return -1;
X 
X+    badtype = 0;
X     len = PACKET_LENGTH;
X     switch((short)vp->type){
X     case ASN_INTEGER:
END-of-net/docsis/files/patch-ac
echo x - net/docsis/Makefile
sed 's/^X//' >net/docsis/Makefile << 'END-of-net/docsis/Makefile'
X# New ports collection makefile for:	docsis
X# Date created:			Jul 5, 2002
X# Whom:				James Flemer <jflemer@acm.jhu.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	docsis
XPORTVERSION=	0.7.5
XCATEGORIES=	net
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=		${PORTNAME}
XDISTNAME=	${PORTNAME}-${PORTVERSION}-RELEASE
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	jflemer@acm.jhu.edu
X
XLIB_DEPENDS=	snmp.4:${PORTSDIR}/net/net-snmp4
X
XUSE_OPENSSL=	yes
XUSE_BISON=	yes
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/docsis ${PREFIX}/bin
X	@${MKDIR} ${PREFIX}/share/examples/docsis
X	for ex in ${WRKSRC}/examples/*; do \
X		${INSTALL_DATA} $$ex ${PREFIX}/share/examples/docsis/ ; \
X	done
X
X.include <bsd.port.mk>
END-of-net/docsis/Makefile
echo x - net/docsis/distinfo
sed 's/^X//' >net/docsis/distinfo << 'END-of-net/docsis/distinfo'
XMD5 (docsis-0.7.5-RELEASE.tgz) = 9cd8250b2c7e9f764db534e5f7aaca7d
END-of-net/docsis/distinfo
echo x - net/docsis/pkg-comment
sed 's/^X//' >net/docsis/pkg-comment << 'END-of-net/docsis/pkg-comment'
XDOCSIS(tm) binary configuration file encoder/decoder
END-of-net/docsis/pkg-comment
echo x - net/docsis/pkg-descr
sed 's/^X//' >net/docsis/pkg-descr << 'END-of-net/docsis/pkg-descr'
XDocsis is a small program that can be used to generate binary configuration
Xfiles for DOCSIS-compliant cable modems. DOCSIS stands for Data over Cable 
XService Interface Specification and is a standard developed by Cablelabs. 
X
XWWW: http://docsis.sourceforge.net/
END-of-net/docsis/pkg-descr
echo x - net/docsis/pkg-plist
sed 's/^X//' >net/docsis/pkg-plist << 'END-of-net/docsis/pkg-plist'
Xbin/docsis
Xshare/examples/docsis/docsis20.cfg
Xshare/examples/docsis/docsis20_no_snmp.cfg
Xshare/examples/docsis/example-non-rfc2669.cfg
Xshare/examples/docsis/example.cfg
Xshare/examples/docsis/hoof-lab.cfg
Xshare/examples/docsis/hoof-lab1.cfg
Xshare/examples/docsis/keyfile
Xshare/examples/docsis/modem-b.cfg
Xshare/examples/docsis/modem-oid.cfg
Xshare/examples/docsis/modem-text.cfg
Xshare/examples/docsis/modem.cfg
Xshare/examples/docsis/modem1.cfg
Xshare/examples/docsis/rolab-oid.cfg
Xshare/examples/docsis/rolab-text.cfg
Xshare/examples/docsis/snmp20.cfg
Xshare/examples/docsis/testkey.key
X@dirrm share/examples/docsis
END-of-net/docsis/pkg-plist
exit
--- docsis.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207051946.g65JkRBB014389>