ports/158290: [NEW PORT] misc/digitemp: Dallas Semiconductor 1-wire device reading console application

Evaldas Auryla ea at zaib.as
Sat Jun 25 11:30:07 UTC 2011


>Number:         158290
>Category:       ports
>Synopsis:       [NEW PORT] misc/digitemp: Dallas Semiconductor 1-wire device reading console application
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 25 11:30:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Evaldas Auryla
>Release:        FreeBSD 8.2-RC1 amd64
>Organization:
>Environment:
System: FreeBSD bu.zaib.as 8.2-RC1 FreeBSD 8.2-RC1 #0: Mon Apr 11 00:25:53 CEST 2011 evaldas at freebsd8.zaib.as:/usr/obj/usr/src/sys/BOO64v8 amd64
>Description:
DigiTemp is a simple to use console application for reading values from
Dallas Semiconductor 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.

WWW: http://www.digitemp.com/software.shtml
>How-To-Repeat:
>Fix:
--- digitemp.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	digitemp
#	digitemp/pkg-descr
#	digitemp/distinfo
#	digitemp/Makefile
#	digitemp/files
#	digitemp/files/patch-digitemp.h
#	digitemp/files/digitemp.conf.sample
#	digitemp/pkg-message
#
echo c - digitemp
mkdir -p digitemp > /dev/null 2>&1
echo x - digitemp/pkg-descr
sed 's/^X//' >digitemp/pkg-descr << 'f43cc7bb14b9a8c35fdb7889281f88c8'
XDigiTemp is a simple to use console application for reading values from
XDallas Semiconductor 1-wire devices. Its main use is for reading temperature
Xsensors, but it also reads counters and understands the 1-wire hubs with
Xdevices on different branches of the network. DigiTemp now supports the
Xfollowing 1-wire temperature sensors: DS18S20 (and DS1820), DS18B20, DS1822,
Xthe DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters, DS2409
XMicroLAN Coupler (used in 1-wire hubs) and the AAG TAI-8540 humidity sensor.
X
XWWW: http://www.digitemp.com/software.shtml
f43cc7bb14b9a8c35fdb7889281f88c8
echo x - digitemp/distinfo
sed 's/^X//' >digitemp/distinfo << 'fbe877b9c18406e0a4d7e3dd5cf855ad'
XSHA256 (digitemp-3.6.0.tar.gz) = 14cfc584cd3714fe8c9a2cdc8388be49e08b5e395d95e6bcd11d4410e2505ca2
XSIZE (digitemp-3.6.0.tar.gz) = 290107
fbe877b9c18406e0a4d7e3dd5cf855ad
echo x - digitemp/Makefile
sed 's/^X//' >digitemp/Makefile << '6baf0a123e224985f4edd348cb525470'
X# New ports collection makefile for:	digitemp
X# Date created:        25 June 2011
X# Whom:                Evaldas Auryla <ea at zaib.as>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	digitemp
XPORTVERSION=	3.6.0
XCATEGORIES=	misc
XMASTER_SITES=	http://www.digitemp.com/software/linux/
X
XMAINTAINER=	ea at zaib.as
XCOMMENT=	Dallas Semiconductor 1-wire device reading console application
X
XLICENSE=	GPLv2
XLICENSE_FILE=	${WRKSRC}/COPYRIGHT
X
XUSE_GMAKE=	yes
X
XMAN1=		digitemp.1
XPLIST_FILES=	bin/digitemp_DS9097 bin/digitemp_DS9097U etc/digitemp.conf.sample
X
XPORTDOCS=	ChangeLog COPYING COPYRIGHT CREDITS FAQ README TODO dthowto.txt DS9097_Schematic.gif \
X		perl python rrdb
X
XALL_TARGET=	ds9097 ds9097u
X
Xpre-install:
X	${CP} ${WRKSRC}/${MAN1} ${WRKSRC}/digitemp.1.M
X	${CAT} ${WRKSRC}/digitemp.1.M | ${SED} -e "s/dev\/ttyS/dev\/cuau/g" > ${WRKSRC}/${MAN1}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/digitemp_DS9097 ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/digitemp_DS9097U ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/COPYING ${WRKSRC}/COPYRIGHT ${WRKSRC}/CREDITS ${WRKSRC}/FAQ \
X		${WRKSRC}/README ${WRKSRC}/TODO ${WRKSRC}/dthowto.txt ${WRKSRC}/DS9097_Schematic.gif ${DOCSDIR}
X.for dir in perl python/gui python/mysql rrdb
X	${INSTALL} -d ${DOCSDIR}/${dir}
X	${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_DATA} \{\} ${DOCSDIR}/${dir} \;
X.endfor
X.endif
X	${CAT} ${PKGMESSAGE}
X	${INSTALL_DATA} ${FILESDIR}/digitemp.conf.sample ${PREFIX}/etc/
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "Sample config installed at ${PREFIX}/etc/digitemp.conf.sample"
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
6baf0a123e224985f4edd348cb525470
echo c - digitemp/files
mkdir -p digitemp/files > /dev/null 2>&1
echo x - digitemp/files/patch-digitemp.h
sed 's/^X//' >digitemp/files/patch-digitemp.h << '5297269a4ef08485a9f90ab3c5bef042'
X--- src/digitemp.h.orig	2008-08-28 06:34:17.000000000 +0200
X+++ src/digitemp.h	2011-06-25 12:52:19.000000000 +0200
X@@ -18,7 +18,7 @@
X    with this program; if not, write to the Free Software Foundation, Inc.,
X    59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
X    ----------------------------------------------------------------------- */
X-#define BANNER_1     "DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane\n"
X+#define BANNER_1     "DigiTemp v3.6.0 Copyright 1996-2007 by Brian C. Lane\n"
X #define BANNER_2     "GNU Public License v2.0 - http://www.digitemp.com\n"
X #define BANNER_3     "Compiled for %s\n\n"
X 
5297269a4ef08485a9f90ab3c5bef042
echo x - digitemp/files/digitemp.conf.sample
sed 's/^X//' >digitemp/files/digitemp.conf.sample << '6867c113986cb6a8c0cc617a95613007'
XTTY /dev/cuau0
XREAD_TIME 1000
XLOG_TYPE 1
XLOG_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F"
XCNT_FORMAT "%b %d %H:%M:%S Sensor %s #%n %C"
XHUM_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%"
XSENSORS 3
XROM 0 0x10 0x68 0x46 0x4A 0x01 0x08 0x00 0xCA
XROM 1 0x10 0x02 0xFF 0x4D 0x01 0x08 0x00 0xFC
XROM 2 0x10 0x78 0x94 0x72 0x01 0x08 0x00 0x18
6867c113986cb6a8c0cc617a95613007
echo x - digitemp/pkg-message
sed 's/^X//' >digitemp/pkg-message << '2c58abf546b508764cb8195808b82d44'
X*******************************************************************
X
X  NOTE: on FreeBSD Digitemp should use /dev/cuau* serial devices,
X  so if running as non-root user, please tune your devfs rules or
X  add running user to "dialer" group which is the default owner
X  of /dev/cuau* devices !
X
X*******************************************************************
2c58abf546b508764cb8195808b82d44
exit
--- digitemp.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list