summaryrefslogtreecommitdiff
path: root/package/digitemp
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/digitemp
Initial import
Diffstat (limited to 'package/digitemp')
-rw-r--r--package/digitemp/Config.in17
-rw-r--r--package/digitemp/Makefile26
-rw-r--r--package/digitemp/ipkg/digitemp.control5
-rw-r--r--package/digitemp/patches/001-Makefile.patch29
4 files changed, 77 insertions, 0 deletions
diff --git a/package/digitemp/Config.in b/package/digitemp/Config.in
new file mode 100644
index 000000000..2c1152661
--- /dev/null
+++ b/package/digitemp/Config.in
@@ -0,0 +1,17 @@
+config ADK_PACKAGE_DIGITEMP
+ prompt "digitemp.......................... Simple Tool to read 1-wire temperature sensors"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBUSB
+ help
+ 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.
+
+ http://www.digitemp.com/
diff --git a/package/digitemp/Makefile b/package/digitemp/Makefile
new file mode 100644
index 000000000..841fa06e9
--- /dev/null
+++ b/package/digitemp/Makefile
@@ -0,0 +1,26 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= digitemp
+PKG_VERSION:= 3.3.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 0b6cfb36d198767836de54d9fb11bbdb
+MASTER_SITES:= http://www.digitemp.com/software/linux/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,DIGITEMP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+ALL_TARGET= ds2490
+BUILD_STYLE= auto
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_DIGITEMP}/usr/sbin
+ ${INSTALL_BIN} ${WRKBUILD}/digitemp_DS2490 \
+ ${IDIR_DIGITEMP}/usr/sbin/digitemp_DS2490
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/digitemp/ipkg/digitemp.control b/package/digitemp/ipkg/digitemp.control
new file mode 100644
index 000000000..a1aff9b2c
--- /dev/null
+++ b/package/digitemp/ipkg/digitemp.control
@@ -0,0 +1,5 @@
+Package: digitemp
+Priority: optional
+Section: app
+Depends: libusb
+Description: DigiTemp is a simple to use program for reading values from 1-wire devices.
diff --git a/package/digitemp/patches/001-Makefile.patch b/package/digitemp/patches/001-Makefile.patch
new file mode 100644
index 000000000..a08164b86
--- /dev/null
+++ b/package/digitemp/patches/001-Makefile.patch
@@ -0,0 +1,29 @@
+--- digitemp-3.3.2.orig/Makefile 2004-02-04 15:17:10.000000000 +0100
++++ digitemp-3.3.2/Makefile 2006-08-16 20:17:27.000000000 +0200
+@@ -15,8 +15,6 @@
+
+ VERSION = 3.3.2
+
+-
+-CC = gcc
+ CFLAGS = -I./src -I./userial -O2 # -g -Wall
+ LIBS = -lm
+
+@@ -57,7 +55,7 @@
+ CFLAGS += -DLINUX
+
+ # Set LOCK to yes for serial port locking support
+- LOCK = yes
++ #LOCK = yes
+
+ endif
+
+@@ -123,7 +121,7 @@
+ $(CC) $(OBJS) $(ONEWIREOBJS) $(DS9097UOBJS) -o digitemp_DS9097U $(LIBS)
+
+ ds2490: $(OBJS) $(HDRS) $(ONEWIREOBJS) $(ONEWIREHDRS) $(DS2490OBJS)
+- $(CC) $(OBJS) $(ONEWIREOBJS) $(DS2490OBJS) -o digitemp_DS2490 $(LIBS)
++ $(CC) $(LDFLAGS) $(OBJS) $(ONEWIREOBJS) $(DS2490OBJS) -o digitemp_DS2490 $(LIBS)
+
+
+ # Clean up the object files and the sub-directory for distributions