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
/software
/bluelog
16 PKG_HASH
:=9750b007daffaffecea3b8dd2332bf74cc24955c307861197a20d04d845bc412
18 OUI_SOURCE
:=oui-2016-05-30.txt.gz
19 OUI_URL
:=http
://sources.lede-project.org
/
20 OUI_MD5SUM
:=38048729fdb5a7a7e0c5db6a51dc2dd1
23 PKG_LICENSE_FILES
:=COPYING
24 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/bluelog
/Default
33 TITLE
:=Bluetooth scanner and logger
34 URL
:=http
://www.digifail.com
/software
/bluelog.shtml
35 DEPENDS
:=+bluez-libs
+kmod-bluetooth
38 define Package
/bluelog
/Default
/description
39 Bluelog is a simple Bluetooth scanner designed to tell you how many
40 discoverable devices there are in an area
as quickly
as possible. It is
41 intended to be used
as a site survey tool
, identifying the number of possible
42 Bluetooth targets there are in the surrounding environment.
45 define Package
/bluelog
46 $(call Package
/bluelog
/Default
)
49 define Package
/bluelog
/description
50 $(call Package
/bluelog
/Default
/description
)
53 define Package
/bluelog-live
54 $(call Package
/bluelog
/Default
)
59 define Package
/bluelog-live
/description
60 $(call Package
/bluelog
/Default
/description
)
61 This package contains the files for
"Bluelog Live", an optional mode of
62 Bluelog which creates a real-time webpage of discovered Bluetooth devices.
65 define Download
/oui.txt
71 TARGET_CFLAGS
+= -DOPENWRT
74 LIBS
="$(TARGET_LDFLAGS) -lbluetooth -lm"
77 $(eval
$(call Download
,oui.txt
))
78 $(Build
/Prepare
/Default
)
79 zcat
$(DL_DIR
)/$(OUI_SOURCE
) > $(PKG_BUILD_DIR
)/oui.tmp
82 define Package
/bluelog
/install
83 $(INSTALL_DIR
) $(1)/usr
/bin
84 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/bluelog
$(1)/usr
/bin
/
85 $(INSTALL_DIR
) $(1)/etc
/init.d
86 $(INSTALL_BIN
) .
/files
/bluelog.init
$(1)/etc
/init.d
/bluelog
89 define Package
/bluelog-live
/install
90 $(INSTALL_DIR
) $(1)/www
/bluelog
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/*.html
$(1)/www
/bluelog
/
93 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/openwrt.css \
94 $(1)/www
/bluelog
/style.css
95 $(INSTALL_DIR
) $(1)/www
/bluelog
/images
97 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/digifail_logo.png \
98 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/email.png \
99 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/favicon.png \
100 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/openwrt_logo.png \
101 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/qrcontact.png \
102 $(1)/www
/bluelog
/images
/
103 $(INSTALL_DIR
) $(1)/www
/cgi-bin
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/cgi-bin
/* $(1)/www
/cgi-bin
/
107 $(eval
$(call BuildPackage
,bluelog
))
108 $(eval
$(call BuildPackage
,bluelog-live
))