mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add new port net/docsis: DOCSIS(tm) binary configuration file encoder/decoder
PR: ports/40233 Submitted by: James E. Flemer <jflemer@acm.jhu.edu>
This commit is contained in:
parent
6d933eea41
commit
eb50c3560f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63167
28
net-mgmt/docsis/Makefile
Normal file
28
net-mgmt/docsis/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: docsis
|
||||
# Date created: Jul 5, 2002
|
||||
# Whom: James Flemer <jflemer@acm.jhu.edu>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= docsis
|
||||
PORTVERSION= 0.7.5
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-RELEASE
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= jflemer@acm.jhu.edu
|
||||
|
||||
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/net-snmp4
|
||||
|
||||
USE_OPENSSL= yes
|
||||
USE_BISON= yes
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/docsis ${PREFIX}/bin
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
1
net-mgmt/docsis/distinfo
Normal file
1
net-mgmt/docsis/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (docsis-0.7.5-RELEASE.tgz) = 9cd8250b2c7e9f764db534e5f7aaca7d
|
20
net-mgmt/docsis/files/patch-Makefile
Normal file
20
net-mgmt/docsis/files/patch-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
--- Makefile.orig Wed Feb 13 14:09:52 2002
|
||||
+++ Makefile Thu Jul 18 00:11:49 2002
|
||||
@@ -1,4 +1,3 @@
|
||||
-CC = gcc
|
||||
DEFS = -DYY_NO_UNPUT -DDEBUG
|
||||
#
|
||||
# We assume ucd-snmp is installed in /opt/ucd-snmp-4.2. If not, replace with
|
||||
@@ -7,8 +6,10 @@
|
||||
# -lcrypto is OpenSSL.
|
||||
#
|
||||
# CFLAGS = -g -Wall -I/usr/local/include
|
||||
-CFLAGS = -g -Wall -I/opt/ucd-snmp-4.2/include
|
||||
-LIBS = -L/opt/ucd-snmp-4.2/lib -lsnmp -lcrypto -lnsl -lfl -lm
|
||||
+CFLAGS += -g -Wall -I${LOCALBASE}/include
|
||||
+LIBS += -L${LOCALBASE}/lib -lsnmp -lcrypto -lfl -lm
|
||||
+
|
||||
+all: docsis
|
||||
|
||||
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
|
||||
$(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)
|
11
net-mgmt/docsis/files/patch-docsis_decode.c
Normal file
11
net-mgmt/docsis/files/patch-docsis_decode.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- docsis_decode.c.orig Fri Jul 5 14:54:11 2002
|
||||
+++ docsis_decode.c Fri Jul 5 14:55:31 2002
|
||||
@@ -47,7 +47,7 @@
|
||||
memset( &helper, 0,sizeof(unsigned int));
|
||||
memcpy( &helper, tlvbuf+2, sizeof(unsigned int));
|
||||
|
||||
- printf ( "%s %u;\n", sym->sym_ident, ntohl(helper));
|
||||
+ printf ( "%s %u;\n", sym->sym_ident, (unsigned int)ntohl(helper));
|
||||
}
|
||||
|
||||
void decode_ushort (unsigned char *tlvbuf, symbol_type *sym)
|
10
net-mgmt/docsis/files/patch-docsis_snmp.c
Normal file
10
net-mgmt/docsis/files/patch-docsis_snmp.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- docsis_snmp.c.orig Fri Jul 5 14:56:11 2002
|
||||
+++ docsis_snmp.c Fri Jul 5 14:56:53 2002
|
||||
@@ -165,6 +165,7 @@
|
||||
if (snmp_set_var_objid(vp, objid, vp->name_length))
|
||||
return -1;
|
||||
|
||||
+ badtype = 0;
|
||||
len = PACKET_LENGTH;
|
||||
switch((short)vp->type){
|
||||
case ASN_INTEGER:
|
1
net-mgmt/docsis/pkg-comment
Normal file
1
net-mgmt/docsis/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
DOCSIS(tm) binary configuration file encoder/decoder
|
6
net-mgmt/docsis/pkg-descr
Normal file
6
net-mgmt/docsis/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
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.
|
||||
|
||||
WWW: http://docsis.sourceforge.net/
|
18
net-mgmt/docsis/pkg-plist
Normal file
18
net-mgmt/docsis/pkg-plist
Normal file
@ -0,0 +1,18 @@
|
||||
bin/docsis
|
||||
share/examples/docsis/docsis20.cfg
|
||||
share/examples/docsis/docsis20_no_snmp.cfg
|
||||
share/examples/docsis/example-non-rfc2669.cfg
|
||||
share/examples/docsis/example.cfg
|
||||
share/examples/docsis/hoof-lab.cfg
|
||||
share/examples/docsis/hoof-lab1.cfg
|
||||
share/examples/docsis/keyfile
|
||||
share/examples/docsis/modem-b.cfg
|
||||
share/examples/docsis/modem-oid.cfg
|
||||
share/examples/docsis/modem-text.cfg
|
||||
share/examples/docsis/modem.cfg
|
||||
share/examples/docsis/modem1.cfg
|
||||
share/examples/docsis/rolab-oid.cfg
|
||||
share/examples/docsis/rolab-text.cfg
|
||||
share/examples/docsis/snmp20.cfg
|
||||
share/examples/docsis/testkey.key
|
||||
@dirrm share/examples/docsis
|
@ -101,6 +101,7 @@
|
||||
SUBDIR += dnsutl
|
||||
SUBDIR += dnswalk
|
||||
SUBDIR += doc
|
||||
SUBDIR += docsis
|
||||
SUBDIR += domtools
|
||||
SUBDIR += driftnet
|
||||
SUBDIR += easysoap
|
||||
|
28
net/docsis/Makefile
Normal file
28
net/docsis/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: docsis
|
||||
# Date created: Jul 5, 2002
|
||||
# Whom: James Flemer <jflemer@acm.jhu.edu>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= docsis
|
||||
PORTVERSION= 0.7.5
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-RELEASE
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= jflemer@acm.jhu.edu
|
||||
|
||||
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/net-snmp4
|
||||
|
||||
USE_OPENSSL= yes
|
||||
USE_BISON= yes
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/docsis ${PREFIX}/bin
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/docsis/distinfo
Normal file
1
net/docsis/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (docsis-0.7.5-RELEASE.tgz) = 9cd8250b2c7e9f764db534e5f7aaca7d
|
20
net/docsis/files/patch-Makefile
Normal file
20
net/docsis/files/patch-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
--- Makefile.orig Wed Feb 13 14:09:52 2002
|
||||
+++ Makefile Thu Jul 18 00:11:49 2002
|
||||
@@ -1,4 +1,3 @@
|
||||
-CC = gcc
|
||||
DEFS = -DYY_NO_UNPUT -DDEBUG
|
||||
#
|
||||
# We assume ucd-snmp is installed in /opt/ucd-snmp-4.2. If not, replace with
|
||||
@@ -7,8 +6,10 @@
|
||||
# -lcrypto is OpenSSL.
|
||||
#
|
||||
# CFLAGS = -g -Wall -I/usr/local/include
|
||||
-CFLAGS = -g -Wall -I/opt/ucd-snmp-4.2/include
|
||||
-LIBS = -L/opt/ucd-snmp-4.2/lib -lsnmp -lcrypto -lnsl -lfl -lm
|
||||
+CFLAGS += -g -Wall -I${LOCALBASE}/include
|
||||
+LIBS += -L${LOCALBASE}/lib -lsnmp -lcrypto -lfl -lm
|
||||
+
|
||||
+all: docsis
|
||||
|
||||
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
|
||||
$(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)
|
11
net/docsis/files/patch-docsis_decode.c
Normal file
11
net/docsis/files/patch-docsis_decode.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- docsis_decode.c.orig Fri Jul 5 14:54:11 2002
|
||||
+++ docsis_decode.c Fri Jul 5 14:55:31 2002
|
||||
@@ -47,7 +47,7 @@
|
||||
memset( &helper, 0,sizeof(unsigned int));
|
||||
memcpy( &helper, tlvbuf+2, sizeof(unsigned int));
|
||||
|
||||
- printf ( "%s %u;\n", sym->sym_ident, ntohl(helper));
|
||||
+ printf ( "%s %u;\n", sym->sym_ident, (unsigned int)ntohl(helper));
|
||||
}
|
||||
|
||||
void decode_ushort (unsigned char *tlvbuf, symbol_type *sym)
|
10
net/docsis/files/patch-docsis_snmp.c
Normal file
10
net/docsis/files/patch-docsis_snmp.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- docsis_snmp.c.orig Fri Jul 5 14:56:11 2002
|
||||
+++ docsis_snmp.c Fri Jul 5 14:56:53 2002
|
||||
@@ -165,6 +165,7 @@
|
||||
if (snmp_set_var_objid(vp, objid, vp->name_length))
|
||||
return -1;
|
||||
|
||||
+ badtype = 0;
|
||||
len = PACKET_LENGTH;
|
||||
switch((short)vp->type){
|
||||
case ASN_INTEGER:
|
1
net/docsis/pkg-comment
Normal file
1
net/docsis/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
DOCSIS(tm) binary configuration file encoder/decoder
|
6
net/docsis/pkg-descr
Normal file
6
net/docsis/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
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.
|
||||
|
||||
WWW: http://docsis.sourceforge.net/
|
18
net/docsis/pkg-plist
Normal file
18
net/docsis/pkg-plist
Normal file
@ -0,0 +1,18 @@
|
||||
bin/docsis
|
||||
share/examples/docsis/docsis20.cfg
|
||||
share/examples/docsis/docsis20_no_snmp.cfg
|
||||
share/examples/docsis/example-non-rfc2669.cfg
|
||||
share/examples/docsis/example.cfg
|
||||
share/examples/docsis/hoof-lab.cfg
|
||||
share/examples/docsis/hoof-lab1.cfg
|
||||
share/examples/docsis/keyfile
|
||||
share/examples/docsis/modem-b.cfg
|
||||
share/examples/docsis/modem-oid.cfg
|
||||
share/examples/docsis/modem-text.cfg
|
||||
share/examples/docsis/modem.cfg
|
||||
share/examples/docsis/modem1.cfg
|
||||
share/examples/docsis/rolab-oid.cfg
|
||||
share/examples/docsis/rolab-text.cfg
|
||||
share/examples/docsis/snmp20.cfg
|
||||
share/examples/docsis/testkey.key
|
||||
@dirrm share/examples/docsis
|
Loading…
Reference in New Issue
Block a user