You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  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. include $(TOPDIR)/rules.mk
  15. PKG_NAME:=wifischedule
  16. PKG_VERSION:=1
  17. PKG_RELEASE:=2
  18. PKG_LICENSE:=PRPL
  19. PKG_MAINTAINER:=Nils Koenig <openwrt@newk.it>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/wifischedule
  22. SUBMENU:=wireless
  23. TITLE:=Turns WiFi on and off according to a schedule
  24. SECTION:=net
  25. CATEGORY:=Network
  26. PKGARCH:=all
  27. endef
  28. define Package/wifischedule/description
  29. Turns WiFi on and off according to a schedule defined in UCI.
  30. endef
  31. define Package/wifischedule/conffiles
  32. /etc/config/wifi_schedule
  33. endef
  34. define Build/Prepare
  35. endef
  36. define Build/Configure
  37. endef
  38. define Build/Compile
  39. endef
  40. define Package/wifischedule/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) ./net/usr/bin/wifi_schedule.sh $(1)/usr/bin/wifi_schedule.sh
  43. $(INSTALL_DIR) $(1)/etc/config
  44. $(INSTALL_DATA) ./net/etc/config/wifi_schedule $(1)/etc/config/wifi_schedule
  45. endef
  46. $(eval $(call BuildPackage,wifischedule))