new package: rssileds daemon
[openwrt/openwrt.git] / package / rssileds / Makefile
1 #
2 # Copyright (C) 2011-2012 Daniel Golle <dgolle@allnet.de>
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:=rssileds
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/rssileds
17 SECTION:=net
18 CATEGORY:=Network
19 TITLE:=RSSI real-time LED indicator
20 DEPENDS:=libiwinfo
21 endef
22
23 define Package/rssileds/description
24 A small process written in C to update the signal-strength indicator LEDs
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
37 -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
38 endef
39
40 define Package/rssileds/install
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,rssileds))