aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/docsis/files
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-04-15 08:18:30 +0800
committerleeym <leeym@FreeBSD.org>2003-04-15 08:18:30 +0800
commit94004e7d6e23c3b5fd5eb3b6c94c44210ed4fda0 (patch)
tree9f7a3a9296e197385059fc02fd0c95bfe6b54a81 /net-mgmt/docsis/files
parent1fd7600b6f6fbb790b8bbb70dc4e4b34d9c2ad5a (diff)
downloadfreebsd-ports-gnome-94004e7d6e23c3b5fd5eb3b6c94c44210ed4fda0.tar.gz
freebsd-ports-gnome-94004e7d6e23c3b5fd5eb3b6c94c44210ed4fda0.tar.zst
freebsd-ports-gnome-94004e7d6e23c3b5fd5eb3b6c94c44210ed4fda0.zip
update to 0.8.2
PR: 48763 Submitted by: James E. Flemer <jflemer@alum.rpi.edu>
Diffstat (limited to 'net-mgmt/docsis/files')
-rw-r--r--net-mgmt/docsis/files/patch-Makefile32
-rw-r--r--net-mgmt/docsis/files/patch-docsis_decode.c11
-rw-r--r--net-mgmt/docsis/files/patch-docsis_snmp.c19
3 files changed, 29 insertions, 33 deletions
diff --git a/net-mgmt/docsis/files/patch-Makefile b/net-mgmt/docsis/files/patch-Makefile
index b57482e32afc..986b74873507 100644
--- a/net-mgmt/docsis/files/patch-Makefile
+++ b/net-mgmt/docsis/files/patch-Makefile
@@ -1,20 +1,24 @@
---- Makefile.orig Wed Feb 13 14:09:52 2002
-+++ Makefile Thu Jul 18 00:11:49 2002
-@@ -1,4 +1,3 @@
+
+$FreeBSD$
+
+--- Makefile.orig Tue Feb 11 15:36:39 2003
++++ Makefile Thu Feb 27 19:16:03 2003
+@@ -1,6 +1,6 @@
+ # Makefile for "docsis" program.
+ #
-CC = gcc
++#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 @@
+ # We assume net-snmp is installed in /opt/net-snmp. If not, replace with
+@@ -8,8 +8,8 @@
+ # -lnetsnmp is NET-SNMP
# -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
+-CFLAGS = -g -Wall -I/opt/net-snmp/include
+-LIBS = -L/opt/net-snmp/lib -lnetsnmp -lcrypto -lnsl -lfl -lm
++CFLAGS += -I${PREFIX}/include -I${OPENSSLINC}
++LIBS = -L${PREFIX}/lib -L${OPENSSLLIB} -lnetsnmp -lcrypto -lfl -lm
- 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)
+ # If you installed NET-SNMP in /usr/local, uncomment the following two lines:
+ # CFLAGS = -g -Wall -I/usr/local/include
diff --git a/net-mgmt/docsis/files/patch-docsis_decode.c b/net-mgmt/docsis/files/patch-docsis_decode.c
deleted file mode 100644
index ea2184c0fa84..000000000000
--- a/net-mgmt/docsis/files/patch-docsis_decode.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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)
diff --git a/net-mgmt/docsis/files/patch-docsis_snmp.c b/net-mgmt/docsis/files/patch-docsis_snmp.c
index d7c6b08942fc..bbf8b1e8877b 100644
--- a/net-mgmt/docsis/files/patch-docsis_snmp.c
+++ b/net-mgmt/docsis/files/patch-docsis_snmp.c
@@ -1,10 +1,13 @@
---- 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;
+
+$FreeBSD$
+
+--- docsis_snmp.c.orig Tue Feb 11 16:36:30 2003
++++ docsis_snmp.c Thu Feb 27 19:17:23 2003
+@@ -206,6 +206,7 @@
+ static char outbuf[1024];
+ char *cp;
+ badtype = 0;
- len = PACKET_LENGTH;
- switch((short)vp->type){
- case ASN_INTEGER:
+ memset (outbuf, 0, 1024);
+
+ vp = (struct variable_list *) malloc (sizeof (struct variable_list));