Skip to contentSkip to conversation

Add package for open2300

PATCH New Alexandre Belloni 2 participants 2 messages Jan 12, 2012 – Jan 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add package for open2300

Open2300 is a package of software tools that reads (and writes) data from a Lacrosse WS2300/WS2305/WS2310/WS2315 Weather Station.

This package will install all the binaries on the target.

---
 package/Config.in            |    1 +
 package/open2300/Config.in   |    7 +++++++
 package/open2300/open2300.mk |   29 +++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 package/open2300/Config.in
 create mode 100644 package/open2300/open2300.mk
package/Config.in +1 -0
index 1042d95..63ceb49 100644
@@ -195,6 +195,7 @@ source "package/memtester/Config.in"
 source "package/mtd/Config.in"
 source "package/ntfs-3g/Config.in"
 source "package/ntfsprogs/Config.in"
+source "package/open2300/Config.in"
 source "package/openocd/Config.in"
 source "package/pciutils/Config.in"
 source "package/picocom/Config.in"
package/open2300/Config.in new file +7 -0
new file mode 100644
index 0000000..df0a969
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_OPEN2300
+	bool "open2300"
+	help
+	  open2300 reads (and writes) data from a Lacrosse
+	  WS2300/WS2305/WS2310/WS2315 Weather Station
+
+	  http://www.lavrsen.dk/foswiki/bin/view/Open2300/WebHome
package/open2300/open2300.mk new file +29 -0
new file mode 100644
index 0000000..78784fa
@@ -0,0 +1,29 @@
+############################################################
+#
+# Open2300
+#
+############################################################
+
+OPEN2300_SITE        = http://www.lavrsen.dk/svn/open2300/trunk/
+OPEN2300_SITE_METHOD = svn
+OPEN2300_VERSION     = 12
+
+OPEN2300_BINS = open2300 dump2300 log2300 fetch2300 wu2300 cw2300 history2300 \
+				histlog2300 bin2300 xml2300 light2300 interval2300 minmax2300
+
+ifeq ($(BR2_PACKAGE_MYSQL),y)
+	OPEN2300_DEPENDENCIES += mysql_client
+	OPEN2300_BINS         += mysql2300 mysqlhistlog2300
+endif
+
+define OPEN2300_BUILD_CMDS
+	$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(@D) $(OPEN2300_BINS)
+endef
+
+define OPEN2300_INSTALL_TARGET_CMDS
+	for prog in $(OPEN2300_BINS); do \
+		$(INSTALL) -D -m 0755 $(@D)/$$prog $(TARGET_DIR)/usr/bin/$$prog ; \
+	done                                                          
+endef
+
+$(eval $(call GENTARGETS))
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH v2 1/1 Add package for open2300

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexandre" == Alexandre Belloni <[email protected]> writes:

Alexandre> Open2300 is a package of software tools that reads (and writes) data Alexandre> from a Lacrosse WS2300/WS2305/WS2310/WS2315 Weather Station.

Alexandre> This package will install all the binaries on the target.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard