Merge pull request #416 from fededim/master
[feed/packages.git] / utils / wifitoggle / Makefile
1 #
2 # Copyright (C) 2010-2014 OpenWrt.org
3 # Copyright (C) 2010 segal.di.ubi.pt
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wifitoggle
12 PKG_VERSION:=1
13 PKG_RELEASE:=4
14 PKG_LICENSE:=GPL-2.0+
15
16 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/wifitoggle
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Script to toggle Wi-Fi with a button and UCI config
24 endef
25
26 define Package/wifitoggle/description
27 Very versatile script to toggle Wi-Fi with a button. Allows to set
28 timeouts, persist changes after boot, and set LEDs according to the state.
29 endef
30
31 define Package/wifitoggle/conffiles
32 /etc/config/wifitoggle
33 endef
34
35 define Build/Compile
36 endef
37
38 define Package/wifitoggle/install
39 $(INSTALL_DIR) $(1)/etc/hotplug.d/button
40 $(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle
41 $(INSTALL_DIR) $(1)/etc/config
42 $(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle
43 endef
44
45 $(eval $(call BuildPackage,wifitoggle))