Makefile (1635B)
1 # Copyright (c) 2016, prpl Foundation 2 # 3 # Permission to use, copy, modify, and/or distribute this software for any purpose with or without 4 # fee is hereby granted, provided that the above copyright notice and this permission notice appear 5 # in all copies. 6 # 7 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 8 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE 9 # FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 10 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 11 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 12 # 13 # Author: Nils Koenig <openwrt@newk.it> 14 15 include $(TOPDIR)/rules.mk 16 17 PKG_NAME:=wifischedule 18 PKG_VERSION:=1 19 PKG_RELEASE:=1 20 PKG_LICENSE:=PRPL 21 22 PKG_MAINTAINER:=Nils Koenig <openwrt@newk.it> 23 24 include $(INCLUDE_DIR)/package.mk 25 26 define Package/wifischedule 27 SUBMENU:=wireless 28 TITLE:=Turns WiFi on and off according to a schedule 29 SECTION:=net 30 CATEGORY:=Network 31 endef 32 33 define Package/wifischedule/description 34 Turns WiFi on and off according to a schedule defined in UCI. 35 endef 36 37 define Package/wifischedule/conffiles 38 /etc/config/wifi_schedule 39 endef 40 41 define Build/Compile 42 endef 43 44 define Package/wifischedule/install 45 $(INSTALL_DIR) $(1)/usr/bin 46 $(INSTALL_BIN) ./net/usr/bin/wifi_schedule.sh $(1)/usr/bin/wifi_schedule.sh 47 $(INSTALL_DIR) $(1)/etc/config 48 $(INSTALL_DATA) ./net/etc/config/wifi_schedule $(1)/etc/config/wifi_schedule 49 endef 50 51 $(eval $(call BuildPackage,wifischedule))