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