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.

92 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2012-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=bluelog
  9. PKG_VERSION:=1.1.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.digifail.com/software/bluelog
  13. PKG_MD5SUM:=614d0fe65bae68acff1d33d9f86e4805
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/bluelog/Default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Bluetooth scanner and logger
  23. URL:=http://www.digifail.com/software/bluelog.shtml
  24. DEPENDS:=+bluez-libs +kmod-bluetooth
  25. endef
  26. define Package/bluelog/Default/description
  27. Bluelog is a simple Bluetooth scanner designed to tell you how many
  28. discoverable devices there are in an area as quickly as possible. It is
  29. intended to be used as a site survey tool, identifying the number of possible
  30. Bluetooth targets there are in the surrounding environment.
  31. endef
  32. define Package/bluelog
  33. $(call Package/bluelog/Default)
  34. endef
  35. define Package/bluelog/description
  36. $(call Package/bluelog/Default/description)
  37. endef
  38. define Package/bluelog-live
  39. $(call Package/bluelog/Default)
  40. TITLE+= (live output)
  41. DEPENDS+= bluelog
  42. endef
  43. define Package/bluelog-live/description
  44. $(call Package/bluelog/Default/description)
  45. This package contains the files for "Bluelog Live", an optional mode of
  46. Bluelog which creates a real-time webpage of discovered Bluetooth devices.
  47. endef
  48. TARGET_CFLAGS += -DOPENWRT
  49. MAKE_FLAGS += \
  50. LIBS="$(TARGET_LDFLAGS) -lbluetooth -lm"
  51. define Package/bluelog/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bluelog $(1)/usr/bin/
  54. $(INSTALL_DIR) $(1)/etc/init.d
  55. $(INSTALL_BIN) ./files/bluelog.init $(1)/etc/init.d/bluelog
  56. endef
  57. define Package/bluelog-live/install
  58. $(INSTALL_DIR) $(1)/www/bluelog
  59. $(CP) $(PKG_INSTALL_DIR)/usr/share/bluelog/*.html $(1)/www/bluelog/
  60. $(CP) \
  61. $(PKG_INSTALL_DIR)/usr/share/bluelog/openwrt.css \
  62. $(1)/www/bluelog/style.css
  63. $(INSTALL_DIR) $(1)/www/bluelog/images
  64. $(CP) \
  65. $(PKG_INSTALL_DIR)/usr/share/bluelog/images/digifail_logo.png \
  66. $(PKG_INSTALL_DIR)/usr/share/bluelog/images/email.png \
  67. $(PKG_INSTALL_DIR)/usr/share/bluelog/images/favicon.png \
  68. $(PKG_INSTALL_DIR)/usr/share/bluelog/images/openwrt_logo.png \
  69. $(PKG_INSTALL_DIR)/usr/share/bluelog/images/qrcontact.png \
  70. $(1)/www/bluelog/images/
  71. $(INSTALL_DIR) $(1)/www/cgi-bin
  72. $(CP) $(PKG_INSTALL_DIR)/usr/share/bluelog/cgi-bin/* $(1)/www/cgi-bin/
  73. endef
  74. $(eval $(call BuildPackage,bluelog))
  75. $(eval $(call BuildPackage,bluelog-live))