diff --git a/misc/digitemp/Makefile b/misc/digitemp/Makefile new file mode 100644 index 00000000000..b9224b1245f --- /dev/null +++ b/misc/digitemp/Makefile @@ -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 diff --git a/misc/digitemp/distinfo b/misc/digitemp/distinfo new file mode 100644 index 00000000000..9657d715f05 --- /dev/null +++ b/misc/digitemp/distinfo @@ -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 diff --git a/misc/digitemp/patches/patch-Makefile b/misc/digitemp/patches/patch-Makefile new file mode 100644 index 00000000000..ef96dfc77c7 --- /dev/null +++ b/misc/digitemp/patches/patch-Makefile @@ -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 diff --git a/misc/digitemp/patches/patch-src_digitemp_c b/misc/digitemp/patches/patch-src_digitemp_c new file mode 100644 index 00000000000..b2f400da420 --- /dev/null +++ b/misc/digitemp/patches/patch-src_digitemp_c @@ -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 + #include + #include ++#ifdef OPENBSD ++#include ++#else + #include ++#endif + + #ifdef LINUX + #ifndef OWUSB diff --git a/misc/digitemp/pkg/DESCR b/misc/digitemp/pkg/DESCR new file mode 100644 index 00000000000..ff11045e631 --- /dev/null +++ b/misc/digitemp/pkg/DESCR @@ -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. diff --git a/misc/digitemp/pkg/PLIST b/misc/digitemp/pkg/PLIST new file mode 100644 index 00000000000..93ebc85aeed --- /dev/null +++ b/misc/digitemp/pkg/PLIST @@ -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