summaryrefslogtreecommitdiff
path: root/misc/ibutton-pdkit
diff options
context:
space:
mode:
authortsarna <tsarna>2000-12-18 23:33:32 +0000
committertsarna <tsarna>2000-12-18 23:33:32 +0000
commit9006841e6feccf6ce940cd4387f810845f4d81b3 (patch)
tree2ea04df9cb3a2edd6937c8bc36c9f98be2fdbaeb /misc/ibutton-pdkit
parentfaaacc59c4f148e687714f769185efb37b67b779 (diff)
downloadpkgsrc-9006841e6feccf6ce940cd4387f810845f4d81b3.tar.gz
ibutton-pdkit from Damon Brodie in PR#11641
public domain kit for Dallas Semiconductor ibuttons
Diffstat (limited to 'misc/ibutton-pdkit')
-rw-r--r--misc/ibutton-pdkit/Makefile39
-rw-r--r--misc/ibutton-pdkit/files/md53
-rw-r--r--misc/ibutton-pdkit/files/patch-sum3
-rw-r--r--misc/ibutton-pdkit/patches/patch-aa22
-rw-r--r--misc/ibutton-pdkit/pkg/COMMENT1
-rw-r--r--misc/ibutton-pdkit/pkg/DESCR4
-rw-r--r--misc/ibutton-pdkit/pkg/PLIST20
-rw-r--r--misc/ibutton-pdkit/scripts/post-patch21
8 files changed, 113 insertions, 0 deletions
diff --git a/misc/ibutton-pdkit/Makefile b/misc/ibutton-pdkit/Makefile
new file mode 100644
index 00000000000..1db63174841
--- /dev/null
+++ b/misc/ibutton-pdkit/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
+#
+
+DISTNAME= ulinuxgnu
+PKGNAME= ibutton-pdkit-2.00
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.dalsemi.com/pub/auto_id/public/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= damon@brodiefamily.org
+HOMEPAGE= http://ibutton.com
+
+NO_WRKSUBDIR= yes
+MAKEFILE= makefile
+
+SCRIPTS_ENV+= SED=${SED}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/atod ${PREFIX}/bin/atod
+ ${INSTALL_PROGRAM} ${WRKSRC}/count ${PREFIX}/bin/count
+ ${INSTALL_PROGRAM} ${WRKSRC}/coupler ${PREFIX}/bin/coupler
+ ${INSTALL_PROGRAM} ${WRKSRC}/debit ${PREFIX}/bin/debit
+ ${INSTALL_PROGRAM} ${WRKSRC}/initcopr ${PREFIX}/bin/initcopr
+ ${INSTALL_PROGRAM} ${WRKSRC}/initrov ${PREFIX}/bin/initrov
+ ${INSTALL_PROGRAM} ${WRKSRC}/list2tag ${PREFIX}/bin/list2tag
+ ${INSTALL_PROGRAM} ${WRKSRC}/mktag ${PREFIX}/bin/mktag
+ ${INSTALL_PROGRAM} ${WRKSRC}/mweather ${PREFIX}/bin/mweather
+ ${INSTALL_PROGRAM} ${WRKSRC}/owsensor ${PREFIX}/bin/owsensor
+ ${INSTALL_PROGRAM} ${WRKSRC}/swtloop ${PREFIX}/bin/swtloop
+ ${INSTALL_PROGRAM} ${WRKSRC}/swtoper ${PREFIX}/bin/swtoper
+ ${INSTALL_PROGRAM} ${WRKSRC}/swtsngl ${PREFIX}/bin/swtsngl
+ ${INSTALL_PROGRAM} ${WRKSRC}/temp ${PREFIX}/bin/temp
+ ${INSTALL_PROGRAM} ${WRKSRC}/thermodl ${PREFIX}/bin/thermodl
+ ${INSTALL_PROGRAM} ${WRKSRC}/thermoms ${PREFIX}/bin/thermoms
+ ${INSTALL_PROGRAM} ${WRKSRC}/tstfind ${PREFIX}/bin/tstfind
+ ${INSTALL_PROGRAM} ${WRKSRC}/tstow ${PREFIX}/bin/tstow
+ ${INSTALL_PROGRAM} ${WRKSRC}/tstowe ${PREFIX}/bin/tstowe
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/ibutton-pdkit/files/md5 b/misc/ibutton-pdkit/files/md5
new file mode 100644
index 00000000000..dbc7945873c
--- /dev/null
+++ b/misc/ibutton-pdkit/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
+
+MD5 (ulinuxgnu.zip) = 777286567bf2786599dfe6a2b116c929
diff --git a/misc/ibutton-pdkit/files/patch-sum b/misc/ibutton-pdkit/files/patch-sum
new file mode 100644
index 00000000000..69d9f85d9f0
--- /dev/null
+++ b/misc/ibutton-pdkit/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
+
+MD5 (patch-aa) = c5397a9d59150593b91902fa33a46913
diff --git a/misc/ibutton-pdkit/patches/patch-aa b/misc/ibutton-pdkit/patches/patch-aa
new file mode 100644
index 00000000000..d14ef0dbe1d
--- /dev/null
+++ b/misc/ibutton-pdkit/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
+
+--- makefile.orig Tue Dec 5 00:25:51 2000
++++ makefile
+@@ -57,15 +57,5 @@
+ tstowe: tstowe.c crcutil.c ds2480ut.c owfile.c owllu.c ownetu.c owsesu.c owtrnu.c linuxlnk.c
+ gcc -g -o tstowe tstowe.c crcutil.c ds2480ut.c owfile.c owllu.c ownetu.c owsesu.c owtrnu.c linuxlnk.c
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
++clean:
++ rm -f atod count coupler debit initcopr initrov list2tag mktag mweather owsensor swtloop swtoper swtsngl temp thermodl thermoms tstfind tstow tstowe
diff --git a/misc/ibutton-pdkit/pkg/COMMENT b/misc/ibutton-pdkit/pkg/COMMENT
new file mode 100644
index 00000000000..aa37789444d
--- /dev/null
+++ b/misc/ibutton-pdkit/pkg/COMMENT
@@ -0,0 +1 @@
+1-Wire Public Domain Kit Version 2.00
diff --git a/misc/ibutton-pdkit/pkg/DESCR b/misc/ibutton-pdkit/pkg/DESCR
new file mode 100644
index 00000000000..7db659192a5
--- /dev/null
+++ b/misc/ibutton-pdkit/pkg/DESCR
@@ -0,0 +1,4 @@
+Portable C source code to support platforms not covered by
+iButton-TMEX. Example implementations include Linux, BeOS and
+Win32 for the serial port adapter DS9097U utilizing the
+DS2480 Serial 1-Wire Line Driver.
diff --git a/misc/ibutton-pdkit/pkg/PLIST b/misc/ibutton-pdkit/pkg/PLIST
new file mode 100644
index 00000000000..f6d26351b88
--- /dev/null
+++ b/misc/ibutton-pdkit/pkg/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
+bin/atod
+bin/count
+bin/coupler
+bin/debit
+bin/initcopr
+bin/initrov
+bin/list2tag
+bin/mktag
+bin/mweather
+bin/owsensor
+bin/swtloop
+bin/swtoper
+bin/swtsngl
+bin/temp
+bin/thermodl
+bin/thermoms
+bin/tstfind
+bin/tstow
+bin/tstowe
diff --git a/misc/ibutton-pdkit/scripts/post-patch b/misc/ibutton-pdkit/scripts/post-patch
new file mode 100644
index 00000000000..97088ecbd20
--- /dev/null
+++ b/misc/ibutton-pdkit/scripts/post-patch
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $Id: post-patch,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
+#
+# This script cleans out the pre-made binaries and patches the
+# com port to /dev/tty00
+
+cd ${WRKSRC}
+make clean
+
+echo s@/dev/cua0@/dev/tty00@ > sedcmd
+echo s@Linux DS2480@NetBSD DS2480@ >> sedcmd
+
+for file in `ls *.c`
+do
+ sed -f sedcmd < $file > $file.new
+ rm $file
+ mv $file.new $file
+done
+
+rm sedcmd