[packages] dosfstools: update to 3.0.12, add fsck script (#10697)
[openwrt/svn-archive/archive.git] / utils / bluelog / Makefile
1 #
2 # Copyright (C) 2012 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.0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.digifail.com/downloads/software/bluelog
16 PKG_MD5SUM:=f406d47ec94970be219cbb38f49402f9
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 bluelog live output files for use with an SSI
54 capable web server.
55 endef
56
57 TARGET_CFLAGS += -DOPENWRT
58
59 MAKE_FLAGS += \
60 LIBS="$(TARGET_LDFLAGS) -lbluetooth"
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
71 $(CP) $(PKG_INSTALL_DIR)/var/lib/bluelog $(1)/www/
72 endef
73
74 $(eval $(call BuildPackage,bluelog))
75 $(eval $(call BuildPackage,bluelog-live))