2 # Copyright (C) 2011-2012 Daniel Golle <dgolle@allnet.de>
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 include $(INCLUDE_DIR)/package.mk
16 define Package/rssileds
19 TITLE:=RSSI real-time LED indicator
20 DEPENDS:=+libiwinfo +libnl-tiny +libubox +libuci
21 MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
24 define Package/rssileds/description
25 A small process written in C to update the signal-strength indicator LEDs
28 define Build/Configure
31 TARGET_LDFLAGS += -liwinfo -luci -lubox -lnl-tiny
34 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall \
35 -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c $(TARGET_LDFLAGS)
38 define Package/rssileds/install
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/usr/libexec/led-trigger
44 $(INSTALL_BIN) ./files/rssi $(1)/usr/libexec/led-trigger/
47 $(eval $(call BuildPackage,rssileds))