initial import of digitemp 3.5.0
DigiTemp is a simple to use program for reading values from 1-wire devices. Its main use is for reading temperature sensors, but it also reads counters, and understands the 1-wire hubs with devices on different branches of the network. DigiTemp now supports the following 1-wire temperature sensors: DS18S20 (and DS1820), DS18B20, DS1822, the DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters, DS2409 MicroLAN Coupler (used in 1-wire hubs), and the AAG TAI-8540 humidity sensor. based on a submission of Julien TOUCHE
This commit is contained in:
parent
4c70477321
commit
f0da9c74d5
41
misc/digitemp/Makefile
Normal file
41
misc/digitemp/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/07 09:42:03 sturm Exp $
|
||||
|
||||
COMMENT= program for reading values from 1-wire devices
|
||||
|
||||
DISTNAME= digitemp-3.5.0
|
||||
CATEGORIES= misc
|
||||
|
||||
HOMEPAGE= http://www.digitemp.com/
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c m
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/software/linux/
|
||||
|
||||
LIB_DEPENDS= usb::devel/libusb
|
||||
|
||||
NO_CONFIGURE= Yes
|
||||
USE_GMAKE= Yes
|
||||
ALL_TARGET= ds9097 ds9097u ds2490
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
MAKE_ENV= LDFLAGS=-L${LOCALBASE}/lib
|
||||
MAKE_FLAGS= CC=${CC}
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-install:
|
||||
$(INSTALL_DATA_DIR) ${PREFIX}/share/doc/digitemp
|
||||
$(INSTALL_DATA) $(WRKSRC)/README ${PREFIX}/share/doc/digitemp
|
||||
$(INSTALL_DATA) $(WRKSRC)/FAQ ${PREFIX}/share/doc/digitemp
|
||||
$(INSTALL_PROGRAM) $(WRKSRC)/digitemp_DS2490 ${PREFIX}/bin
|
||||
$(INSTALL_PROGRAM) $(WRKSRC)/digitemp_DS9097 ${PREFIX}/bin
|
||||
$(INSTALL_PROGRAM) $(WRKSRC)/digitemp_DS9097U ${PREFIX}/bin
|
||||
$(INSTALL_MAN) $(WRKSRC)/digitemp.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
5
misc/digitemp/distinfo
Normal file
5
misc/digitemp/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (digitemp-3.5.0.tar.gz) = 72bda9c8a66b017aa969c19dedb3225b
|
||||
RMD160 (digitemp-3.5.0.tar.gz) = 12270200a1820690160a8281f3e95e0e2683f9dc
|
||||
SHA1 (digitemp-3.5.0.tar.gz) = e9cd878514fe6b8d0aa2f8d0fa943d19836dc347
|
||||
SHA256 (digitemp-3.5.0.tar.gz) = e185ef9b84501b28568160eb5a5cc3b98b72c0791aff9c128ff6d0cd23b711e8
|
||||
SIZE (digitemp-3.5.0.tar.gz) = 267947
|
14
misc/digitemp/patches/patch-Makefile
Normal file
14
misc/digitemp/patches/patch-Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2007/10/07 09:42:03 sturm Exp $
|
||||
--- Makefile.orig Mon Jan 1 19:47:02 2007
|
||||
+++ Makefile Thu Sep 27 16:52:49 2007
|
||||
@@ -13,8 +13,8 @@ VERSION = 3.5.0
|
||||
|
||||
|
||||
CC = gcc
|
||||
-CFLAGS = -I./src -I./userial -O2 # -g -Wall
|
||||
-LIBS = -lm
|
||||
+CFLAGS += -I./src -I./userial
|
||||
+LIBS = -lm ${LDFLAGS}
|
||||
|
||||
OBJS = src/digitemp.o src/device_name.o
|
||||
HDRS = src/digitemp.h src/device_name.h
|
15
misc/digitemp/patches/patch-src_digitemp_c
Normal file
15
misc/digitemp/patches/patch-src_digitemp_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_digitemp_c,v 1.1.1.1 2007/10/07 09:42:03 sturm Exp $
|
||||
--- src/digitemp.c.orig Sat Mar 17 16:49:27 2007
|
||||
+++ src/digitemp.c Sat Mar 17 16:49:40 2007
|
||||
@@ -73,7 +73,11 @@
|
||||
#include <fcntl.h>
|
||||
#include <strings.h>
|
||||
#include <stdint.h>
|
||||
+#ifdef OPENBSD
|
||||
+#include <sys/endian.h>
|
||||
+#else
|
||||
#include <endian.h>
|
||||
+#endif
|
||||
|
||||
#ifdef LINUX
|
||||
#ifndef OWUSB
|
8
misc/digitemp/pkg/DESCR
Normal file
8
misc/digitemp/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
DigiTemp is a simple to use program for reading values from 1-wire
|
||||
devices. Its main use is for reading temperature sensors, but it
|
||||
also reads counters, and understands the 1-wire hubs with devices
|
||||
on different branches of the network. DigiTemp now supports the
|
||||
following 1-wire temperature sensors: DS18S20 (and DS1820), DS18B20,
|
||||
DS1822, the DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters,
|
||||
DS2409 MicroLAN Coupler (used in 1-wire hubs), and the AAG TAI-8540
|
||||
humidity sensor.
|
8
misc/digitemp/pkg/PLIST
Normal file
8
misc/digitemp/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/07 09:42:03 sturm Exp $
|
||||
bin/digitemp_DS2490
|
||||
bin/digitemp_DS9097
|
||||
bin/digitemp_DS9097U
|
||||
@man man/man1/digitemp.1
|
||||
share/doc/digitemp/
|
||||
share/doc/digitemp/FAQ
|
||||
share/doc/digitemp/README
|
Loading…
Reference in New Issue
Block a user