mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Add port of the 3.00 beta API for Dallas Semiconductors 1-wire lan devices
This commit is contained in:
parent
d46fd5235f
commit
a66eb209ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53169
@ -21,6 +21,7 @@
|
||||
SUBDIR += mgetty+sendfax
|
||||
SUBDIR += minicom
|
||||
SUBDIR += mlan
|
||||
SUBDIR += mlan3
|
||||
SUBDIR += mserver
|
||||
SUBDIR += mwavem
|
||||
SUBDIR += plp
|
||||
|
21
comms/mlan3/Makefile
Normal file
21
comms/mlan3/Makefile
Normal file
@ -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>
|
1
comms/mlan3/distinfo
Normal file
1
comms/mlan3/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (owpd300b.zip) = e4e9c3bafe46cdb67c135dfc1dc7a82a
|
317
comms/mlan3/files/patch-aa
Normal file
317
comms/mlan3/files/patch-aa
Normal file
@ -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>
|
1
comms/mlan3/pkg-comment
Normal file
1
comms/mlan3/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Version 3.00 beta API for Dallas Semiconductors 1-wire lan devices
|
7
comms/mlan3/pkg-descr
Normal file
7
comms/mlan3/pkg-descr
Normal file
@ -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
|
13
comms/mlan3/pkg-plist
Normal file
13
comms/mlan3/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user