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_MD5SUM
:=614d0fe65bae68acff1d33d9f86e4805
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/bluelog
/Default
29 TITLE
:=Bluetooth scanner and logger
30 URL
:=http
://www.digifail.com
/software
/bluelog.shtml
31 DEPENDS
:=+bluez-libs
+kmod-bluetooth
34 define Package
/bluelog
/Default
/description
35 Bluelog is a simple Bluetooth scanner designed to tell you how many
36 discoverable devices there are in an area
as quickly
as possible. It is
37 intended to be used
as a site survey tool
, identifying the number of possible
38 Bluetooth targets there are in the surrounding environment.
41 define Package
/bluelog
42 $(call Package
/bluelog
/Default
)
45 define Package
/bluelog
/description
46 $(call Package
/bluelog
/Default
/description
)
49 define Package
/bluelog-live
50 $(call Package
/bluelog
/Default
)
55 define Package
/bluelog-live
/description
56 $(call Package
/bluelog
/Default
/description
)
57 This package contains the files for
"Bluelog Live", an optional mode of
58 Bluelog which creates a real-time webpage of discovered Bluetooth devices.
61 TARGET_CFLAGS
+= -DOPENWRT
64 LIBS
="$(TARGET_LDFLAGS) -lbluetooth -lm"
66 define Package
/bluelog
/install
67 $(INSTALL_DIR
) $(1)/usr
/bin
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/bluelog
$(1)/usr
/bin
/
69 $(INSTALL_DIR
) $(1)/etc
/init.d
70 $(INSTALL_BIN
) .
/files
/bluelog.init
$(1)/etc
/init.d
/bluelog
73 define Package
/bluelog-live
/install
74 $(INSTALL_DIR
) $(1)/www
/bluelog
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/*.html
$(1)/www
/bluelog
/
77 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/openwrt.css \
78 $(1)/www
/bluelog
/style.css
79 $(INSTALL_DIR
) $(1)/www
/bluelog
/images
81 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/digifail_logo.png \
82 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/email.png \
83 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/favicon.png \
84 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/openwrt_logo.png \
85 $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/images
/qrcontact.png \
86 $(1)/www
/bluelog
/images
/
87 $(INSTALL_DIR
) $(1)/www
/cgi-bin
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/bluelog
/cgi-bin
/* $(1)/www
/cgi-bin
/
91 $(eval
$(call BuildPackage
,bluelog
))
92 $(eval
$(call BuildPackage
,bluelog-live
))