packages/wifitoggle: rename hotplug & uci config files
[openwrt/svn-archive/archive.git] / utils / wifitoggle / Makefile
1 #
2 # Copyright (C) 2010-2011 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:=2
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/wifitoggle
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=Script to toogle WiFi with a button and UCI config
21 MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
22 endef
23
24 define Package/wifitoggle/description
25 Very versatile script to toogle WiFi with a button. Allows to set
26 timeouts, persist changes after boot, and set leds acording to the state.
27 endef
28
29 define Package/wifitoggle/conffiles
30 /etc/config/wifitoggle
31 endef
32
33 define Build/Compile
34 endef
35
36 define Package/wifitoggle/install
37 $(INSTALL_DIR) $(1)/etc/hotplug.d/button
38 $(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle
39 $(INSTALL_DIR) $(1)/etc/config
40 $(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle
41 endef
42
43 $(eval $(call BuildPackage,wifitoggle))