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.

45 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2010 segal.di.ubi.pt
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=watchcat
  9. PKG_VERSION:=1
  10. PKG_RELEASE:=5
  11. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  12. PKG_LICENSE:=GPL-2.0
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/watchcat
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=Enable the configuration of programed reboots
  18. endef
  19. define Package/watchcat/description
  20. Allows to configure a periodically reboot, or after losing internet connectivity. Configured trough UCI /etc/config/system.
  21. endef
  22. define Package/watchcat/conffiles
  23. /etc/config/system
  24. endef
  25. define Build/Compile
  26. endef
  27. define Package/watchcat/install
  28. $(INSTALL_DIR) $(1)/etc/init.d
  29. $(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
  32. $(INSTALL_DIR) $(1)/etc/uci-defaults
  33. $(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
  34. endef
  35. $(eval $(call BuildPackage,watchcat))