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