summaryrefslogtreecommitdiff
path: root/comms/mlan3
diff options
context:
space:
mode:
authorHellmuth Michaelis <hm@FreeBSD.org>2002-01-16 13:05:42 +0000
committerHellmuth Michaelis <hm@FreeBSD.org>2002-01-16 13:05:42 +0000
commita66eb209ab0097aa8277e0e2b6d2babcbd282a98 (patch)
treed36c17c1c4b8794a640e91ce1ea3e88ef483a534 /comms/mlan3
parentUpdate to 1.0.2. (diff)
Add port of the 3.00 beta API for Dallas Semiconductors 1-wire lan devices
Notes
Notes: svn path=/head/; revision=53169
Diffstat (limited to 'comms/mlan3')
-rw-r--r--comms/mlan3/Makefile21
-rw-r--r--comms/mlan3/distinfo1
-rw-r--r--comms/mlan3/files/patch-aa317
-rw-r--r--comms/mlan3/pkg-comment1
-rw-r--r--comms/mlan3/pkg-descr7
-rw-r--r--comms/mlan3/pkg-plist13
6 files changed, 360 insertions, 0 deletions
diff --git a/comms/mlan3/Makefile b/comms/mlan3/Makefile
new file mode 100644
index 000000000000..7a3f4b5901f2
--- /dev/null
+++ b/comms/mlan3/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: mlan3
+# Date created: January 16, 2002
+# Whom: hm
+#
+# $FreeBSD$
+#
+
+PORTNAME= mlan3
+PORTVERSION= 1.00
+CATEGORIES= comms
+MASTER_SITES= ftp://ftp.dalsemi.com/pub/auto_id/public/
+DISTNAME= owpd300b
+
+MAINTAINER= hm@FreeBSD.org
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+
+NO_WRKSUBDIR= yes
+USE_ZIP= yes
+
+.include <bsd.port.mk>
diff --git a/comms/mlan3/distinfo b/comms/mlan3/distinfo
new file mode 100644
index 000000000000..3a96f60c3c37
--- /dev/null
+++ b/comms/mlan3/distinfo
@@ -0,0 +1 @@
+MD5 (owpd300b.zip) = e4e9c3bafe46cdb67c135dfc1dc7a82a
diff --git a/comms/mlan3/files/patch-aa b/comms/mlan3/files/patch-aa
new file mode 100644
index 000000000000..8918dd1f9974
--- /dev/null
+++ b/comms/mlan3/files/patch-aa
@@ -0,0 +1,317 @@
+diff -u -r --new-file ../mlan-dist/Makefile ./Makefile
+--- ../mlan-dist/Makefile Thu Jan 1 01:00:00 1970
++++ ./Makefile Tue Jan 15 16:26:17 2002
+@@ -0,0 +1,4 @@
++
++SUBDIR= lib apps
++
++.include <bsd.subdir.mk>
+diff -u -r --new-file ../mlan-dist/apps/Makefile ./apps/Makefile
+--- ../mlan-dist/apps/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/Makefile Wed Jan 16 10:38:52 2002
+@@ -0,0 +1,6 @@
++
++SUBDIR= atodtst counter coupler fish gethumd memutil mweather shaapp \
++ swtsngl temp tstfind
++
++.include <bsd.subdir.mk>
++
+diff -u -r --new-file ../mlan-dist/apps/atodtst/Makefile ./apps/atodtst/Makefile
+--- ../mlan-dist/apps/atodtst/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/atodtst/Makefile Wed Jan 16 11:13:57 2002
+@@ -0,0 +1,15 @@
++PROG= atodtst
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/counter/Makefile ./apps/counter/Makefile
+--- ../mlan-dist/apps/counter/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/counter/Makefile Wed Jan 16 11:08:03 2002
+@@ -0,0 +1,15 @@
++PROG= counter
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/coupler/Makefile ./apps/coupler/Makefile
+--- ../mlan-dist/apps/coupler/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/coupler/Makefile Wed Jan 16 11:09:03 2002
+@@ -0,0 +1,15 @@
++PROG= coupler
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/fish/Makefile ./apps/fish/Makefile
+--- ../mlan-dist/apps/fish/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/fish/Makefile Wed Jan 16 11:09:19 2002
+@@ -0,0 +1,15 @@
++PROG= fish
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/gethumd/Makefile ./apps/gethumd/Makefile
+--- ../mlan-dist/apps/gethumd/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/gethumd/Makefile Wed Jan 16 11:09:41 2002
+@@ -0,0 +1,15 @@
++PROG= gethumd
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/memutil/Makefile ./apps/memutil/Makefile
+--- ../mlan-dist/apps/memutil/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/memutil/Makefile Wed Jan 16 11:10:00 2002
+@@ -0,0 +1,15 @@
++PROG= memutil
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/mweather/Makefile ./apps/mweather/Makefile
+--- ../mlan-dist/apps/mweather/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/mweather/Makefile Wed Jan 16 11:10:19 2002
+@@ -0,0 +1,15 @@
++PROG= mweather
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/shaapp/Makefile ./apps/shaapp/Makefile
+--- ../mlan-dist/apps/shaapp/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/shaapp/Makefile Wed Jan 16 11:10:39 2002
+@@ -0,0 +1,15 @@
++PROG= shaapp
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/swtloop/Makefile.app ./apps/swtloop/Makefile.app
+--- ../mlan-dist/apps/swtloop/Makefile.app Thu Jan 1 01:00:00 1970
++++ ./apps/swtloop/Makefile.app Tue Jan 15 16:09:46 2002
+@@ -0,0 +1,8 @@
++PROG= tstfind
++CFLAGS= -I. -Wall -I ../../common
++LDFLAGS= -L ../../common -L ../../lib/userial
++LDADD= -lmlanser -lmlancom
++NOMAN= true
++SRCS= tstfind.c
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/swtsngl/Makefile ./apps/swtsngl/Makefile
+--- ../mlan-dist/apps/swtsngl/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/swtsngl/Makefile Wed Jan 16 11:11:24 2002
+@@ -0,0 +1,15 @@
++PROG= swtsngl
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/temp/Makefile ./apps/temp/Makefile
+--- ../mlan-dist/apps/temp/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/temp/Makefile Wed Jan 16 11:11:59 2002
+@@ -0,0 +1,15 @@
++PROG= temp
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/thermo/Makefile.app ./apps/thermo/Makefile.app
+--- ../mlan-dist/apps/thermo/Makefile.app Thu Jan 1 01:00:00 1970
++++ ./apps/thermo/Makefile.app Tue Jan 15 16:09:57 2002
+@@ -0,0 +1,8 @@
++PROG= tstfind
++CFLAGS= -I. -Wall -I ../../common
++LDFLAGS= -L ../../common -L ../../lib/userial
++LDADD= -lmlanser -lmlancom
++NOMAN= true
++SRCS= tstfind.c
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/apps/tstfind/Makefile ./apps/tstfind/Makefile
+--- ../mlan-dist/apps/tstfind/Makefile Thu Jan 1 01:00:00 1970
++++ ./apps/tstfind/Makefile Wed Jan 16 11:12:51 2002
+@@ -0,0 +1,15 @@
++PROG= tstfind
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MLANCOM= ${.CURDIR}/../../common
++MLANLIB= ${.CURDIR}/../../lib/userial
++CFLAGS= -I. -Wall -I${MLANCOM}
++LDADD= -L${MLANLIB} -lmlan
++DPADD= ${MLANLIB}/libmlan.a
++NOMAN= 1
++SRCS= ${PROG}.c
++
++test: ${PROG}
++ ./${PROG} /dev/cuaa0
++
++.include <bsd.prog.mk>
+diff -u -r --new-file ../mlan-dist/common/ownet.h ./common/ownet.h
+--- ../mlan-dist/common/ownet.h Fri Sep 28 21:42:02 2001
++++ ./common/ownet.h Tue Jan 15 17:59:50 2002
+@@ -133,6 +133,10 @@
+ typedef unsigned short ushort;
+ typedef unsigned long ulong;
+ #endif
++ #if (__FreeBSD__)
++ #include <sys/types.h>
++ typedef unsigned long ulong;
++ #endif
+ #endif
+ #ifdef SDCC
+ //intent of ushort is 2 bytes unsigned.
+diff -u -r --new-file ../mlan-dist/lib/Makefile ./lib/Makefile
+--- ../mlan-dist/lib/Makefile Thu Jan 1 01:00:00 1970
++++ ./lib/Makefile Wed Jan 16 11:15:52 2002
+@@ -0,0 +1,3 @@
++SUBDIR= userial
++
++.include <bsd.subdir.mk>
+diff -u -r --new-file ../mlan-dist/lib/userial/Link/linuxlnk.c ./lib/userial/Link/linuxlnk.c
+--- ../mlan-dist/lib/userial/Link/linuxlnk.c Fri Sep 28 21:42:14 2001
++++ ./lib/userial/Link/linuxlnk.c Wed Jan 16 11:29:22 2002
+@@ -93,6 +93,7 @@
+ #include <termios.h>
+ #include <errno.h>
+ #include <sys/time.h>
++#include <string.h>
+
+ #include "ds2480.h"
+ #include "ownet.h"
+diff -u -r --new-file ../mlan-dist/lib/userial/Makefile ./lib/userial/Makefile
+--- ../mlan-dist/lib/userial/Makefile Thu Jan 1 01:00:00 1970
++++ ./lib/userial/Makefile Wed Jan 16 11:34:34 2002
+@@ -0,0 +1,30 @@
++MLANCOM= ${.CURDIR}/../../common
++MLANLNK= ${.CURDIR}/Link
++LIB= mlan
++CFLAGS= -I. -Wall -I${MLANCOM}
++NOPROFILE= yes
++PREFIX?= /usr/local
++LIBDIR= ${PREFIX}/lib
++
++SRCS= ds2480ut.c owllu.c ownetu.c owsesu.c owtrnu.c
++
++SRCS+= ${MLANLNK}/linuxlnk.c
++
++SRCS+= ${MLANCOM}/ad26.c ${MLANCOM}/atod20.c ${MLANCOM}/cnt1d.c \
++ ${MLANCOM}/crcutil.c ${MLANCOM}/findtype.c ${MLANCOM}/ibsha33o.c \
++ ${MLANCOM}/ioutil.c ${MLANCOM}/mbappreg.c ${MLANCOM}/mbee.c \
++ ${MLANCOM}/mbeprom.c ${MLANCOM}/mbnv.c ${MLANCOM}/mbnvcrc.c \
++ ${MLANCOM}/mbscr.c ${MLANCOM}/mbscrcrc.c ${MLANCOM}/mbscree.c \
++ ${MLANCOM}/mbscrex.c ${MLANCOM}/mbsha.c ${MLANCOM}/mbshaee.c \
++ ${MLANCOM}/owcache.c ${MLANCOM}/owerr.c ${MLANCOM}/owfile.c \
++ ${MLANCOM}/owpgrw.c ${MLANCOM}/owprgm.c ${MLANCOM}/rawmem.c \
++ ${MLANCOM}/screenio.c ${MLANCOM}/sha18.c ${MLANCOM}/sha33.c \
++ ${MLANCOM}/shadebit.c ${MLANCOM}/shadebitvm.c ${MLANCOM}/shaibutton.c \
++ ${MLANCOM}/swt05.c ${MLANCOM}/swt12.c ${MLANCOM}/swt1f.c \
++ ${MLANCOM}/temp10.c ${MLANCOM}/thermo21.c ${MLANCOM}/weather.c
++
++beforeinstall:
++ ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
++ ${_INSTALLFLAGS} ${MLANCOM}/ownet.h ${DESTDIR}/${PREFIX}/include
++
++.include <bsd.lib.mk>
diff --git a/comms/mlan3/pkg-comment b/comms/mlan3/pkg-comment
new file mode 100644
index 000000000000..aba1131ceb2f
--- /dev/null
+++ b/comms/mlan3/pkg-comment
@@ -0,0 +1 @@
+Version 3.00 beta API for Dallas Semiconductors 1-wire lan devices
diff --git a/comms/mlan3/pkg-descr b/comms/mlan3/pkg-descr
new file mode 100644
index 000000000000..05d319356568
--- /dev/null
+++ b/comms/mlan3/pkg-descr
@@ -0,0 +1,7 @@
+A port of Dallas Semiconductors 3.00 beta API for accessing 1-wire LAN
+devices. Only DS2480 serial port adapters are supported by this port.
+
+More doc & src at: ftp://ftp.dalsemi.com/pub/auto_id/softdev/softdev.html
+and http://www.ibutton.com/
+
+WWW: http://www.ibutton.com/software/1wire/wirekit.html
diff --git a/comms/mlan3/pkg-plist b/comms/mlan3/pkg-plist
new file mode 100644
index 000000000000..9a26e6c4001b
--- /dev/null
+++ b/comms/mlan3/pkg-plist
@@ -0,0 +1,13 @@
+lib/libmlan.a
+include/ownet.h
+bin/atodtst
+bin/counter
+bin/coupler
+bin/fish
+bin/gethumd
+bin/memutil
+bin/mweather
+bin/shaapp
+bin/swtsngl
+bin/temp
+bin/tstfind