2 # Copyright (C) 2012-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.digifail.com
/downloads
/software
/bluelog
16 PKG_MD5SUM
:=a5327d64731cd45debb57ab1edbe6e43
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/bluelog
/Default
25 TITLE
:=Bluetooth scanner and logger
26 URL
:=http
://www.digifail.com
/software
/bluelog.shtml
27 DEPENDS
:=+bluez-utils
+kmod-bluetooth
30 define Package
/bluelog
/Default
/description
31 Bluelog is a simple Bluetooth scanner designed to tell you how many
32 discoverable devices there are in an area
as quickly
as possible. It is
33 intended to be used
as a site survey tool
, identifying the number of possible
34 Bluetooth targets there are in the surrounding environment.
37 define Package
/bluelog
38 $(call Package
/bluelog
/Default
)
41 define Package
/bluelog
/description
42 $(call Package
/bluelog
/Default
/description
)
45 define Package
/bluelog-live
46 $(call Package
/bluelog
/Default
)
51 define Package
/bluelog-live
/description
52 $(call Package
/bluelog
/Default
/description
)
53 This package contains the files for
"Bluelog Live", an optional mode of
54 Bluelog which creates a real-time webpage of discovered Bluetooth devices.
57 TARGET_CFLAGS
+= -DOPENWRT
60 LIBS
="$(TARGET_LDFLAGS) -lbluetooth -lm"
62 define Package
/bluelog
/install
63 $(INSTALL_DIR
) $(1)/usr
/bin
64 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/bluelog
$(1)/usr
/bin
/
65 $(INSTALL_DIR
) $(1)/etc
/init.d
66 $(INSTALL_BIN
) .
/files
/bluelog.init
$(1)/etc
/init.d
/bluelog
69 define Package
/bluelog-live
/install
70 $(INSTALL_DIR
) $(1)/www
/bluelog
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/*.html
$(1)/www
/bluelog
/
73 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/openwrt.css \
74 $(1)/www
/bluelog
/style.css
75 $(INSTALL_DIR
) $(1)/www
/bluelog
/images
77 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/digifail_logo.png \
78 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/email.png \
79 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/favicon.png \
80 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/openwrt_logo.png \
81 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/qrcontact.png \
82 $(1)/www
/bluelog
/images
/
83 $(INSTALL_DIR
) $(1)/www
/cgi-bin
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/cgi-bin
/* $(1)/www
/cgi-bin
/
87 $(eval
$(call BuildPackage
,bluelog
))
88 $(eval
$(call BuildPackage
,bluelog-live
))