You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2010 segal.ubi.pt
  3. # Copyright (C) 2014 nunojpg@gmail.com
  4. # Copyright (C) 2015 dev@localnet.hu
  5. #
  6. # This is free software, licensed under the GNU General Public License v2.
  7. # See /LICENSE for more information.
  8. #
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=open2300
  11. PKG_SOURCE_DATE:=2014-03-04
  12. PKG_SOURCE_VERSION:=1af8ae609da66f8e1b745533c19095c9758bfb0b
  13. PKG_RELEASE:=2
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/wezm/open2300
  16. PKG_MIRROR_HASH:=3287ca1c70e736dd1c6c3abb01e0d986f91573c7c54b9adabdc437309dc4fd56
  17. PKG_MAINTAINER:=Gabor SZOLLOSI <dev@localnet.hu>
  18. PKG_LICENSE:=GPL-2.0-or-later
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/open2300
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=WS23XX weather station utilities
  25. URL:=http://www.lavrsen.dk/foswiki/bin/view/Open2300
  26. endef
  27. define Package/open2300/description
  28. This is an utility suite used to communicate with and collect data from a WS23XX wheather station.
  29. endef
  30. define Package/open2300/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin2300 $(1)/usr/bin/
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cw2300 $(1)/usr/bin/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump2300 $(1)/usr/bin/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fetch2300 $(1)/usr/bin/
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/histlog2300 $(1)/usr/bin/
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/history2300 $(1)/usr/bin/
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/interval2300 $(1)/usr/bin/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/light2300 $(1)/usr/bin/
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/log2300 $(1)/usr/bin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minmax2300 $(1)/usr/bin/
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/open2300 $(1)/usr/bin/
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/wu2300 $(1)/usr/bin/
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/xml2300 $(1)/usr/bin/
  45. $(INSTALL_DIR) $(1)/etc
  46. $(INSTALL_DATA) ./files/open2300.conf $(1)/etc/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(INSTALL_DATA) $(PKG_BUILD_DIR)/lib2300.so.1.11 $(1)/usr/lib/
  49. $(LN) lib2300.so.1.11 $(1)/usr/lib/lib2300.so
  50. endef
  51. $(eval $(call BuildPackage,open2300))