From owner-freebsd-ports Fri Jul 5 12:50:23 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 031B837B400 for ; Fri, 5 Jul 2002 12:50:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEDE643E4A for ; Fri, 5 Jul 2002 12:50:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g65Jo7JU085403 for ; Fri, 5 Jul 2002 12:50:07 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g65Jo73q085402; Fri, 5 Jul 2002 12:50:07 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22E9D37B400 for ; Fri, 5 Jul 2002 12:46:31 -0700 (PDT) Received: from psi.speednaked.com (syr-24-58-34-117.twcny.rr.com [24.58.34.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DA3443E09 for ; Fri, 5 Jul 2002 12:46:30 -0700 (PDT) (envelope-from jflemer@psi.speednaked.com) Received: from psi.speednaked.com (localhost.speednaked.com [127.0.0.1]) by psi.speednaked.com (8.12.4/8.12.3) with ESMTP id g65JkS87014390 for ; Fri, 5 Jul 2002 15:46:28 -0400 (EDT) (envelope-from jflemer@psi.speednaked.com) Received: (from jflemer@localhost) by psi.speednaked.com (8.12.4/8.12.4/Submit) id g65JkRBB014389; Fri, 5 Jul 2002 15:46:27 -0400 (EDT) Message-Id: <200207051946.g65JkRBB014389@psi.speednaked.com> Date: Fri, 5 Jul 2002 15:46:27 -0400 (EDT) From: "James E. Flemer" Reply-To: "James E. Flemer" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/40233: new port: docsis Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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 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