package/network/utils/rssileds: claim maintainership
[openwrt/staging/yousong.git] / package / network / utils / 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 MAINTAINER:=Daniel Golle <dgolle@allnet.de>
22 endef
23
24 define Package/rssileds/description
25 A small process written in C to update the signal-strength indicator LEDs
26 endef
27
28 define Build/Prepare
29 mkdir -p $(PKG_BUILD_DIR)
30 $(CP) ./src/* $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
38 -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
39 endef
40
41 define Package/rssileds/install
42 $(INSTALL_DIR) $(1)/etc/init.d
43 $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,rssileds))