msmtp: moved to github
[openwrt/svn-archive/packages.git] / utils / bluelog / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bluelog
11 PKG_VERSION:=1.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.digifail.com/software/bluelog
16 PKG_MD5SUM:=a5327d64731cd45debb57ab1edbe6e43
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bluelog/Default
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=Bluetooth scanner and logger
26 URL:=http://www.digifail.com/software/bluelog.shtml
27 DEPENDS:=+bluez-utils +kmod-bluetooth
28 endef
29
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.
35 endef
36
37 define Package/bluelog
38 $(call Package/bluelog/Default)
39 endef
40
41 define Package/bluelog/description
42 $(call Package/bluelog/Default/description)
43 endef
44
45 define Package/bluelog-live
46 $(call Package/bluelog/Default)
47 TITLE+= (live output)
48 DEPENDS+= bluelog
49 endef
50
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.
55 endef
56
57 TARGET_CFLAGS += -DOPENWRT
58
59 MAKE_FLAGS += \
60 LIBS="$(TARGET_LDFLAGS) -lbluetooth -lm"
61
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
67 endef
68
69 define Package/bluelog-live/install
70 $(INSTALL_DIR) $(1)/www/bluelog
71 $(CP) $(PKG_INSTALL_DIR)/usr/share/bluelog/*.html $(1)/www/bluelog/
72 $(CP) \
73 $(PKG_INSTALL_DIR)/usr/share/bluelog/openwrt.css \
74 $(1)/www/bluelog/style.css
75 $(INSTALL_DIR) $(1)/www/bluelog/images
76 $(CP) \
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/
85 endef
86
87 $(eval $(call BuildPackage,bluelog))
88 $(eval $(call BuildPackage,bluelog-live))