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.

46 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:=8
  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. PKGARCH:=all
  19. endef
  20. define Package/watchcat/description
  21. Allows to configure a periodically reboot, or after losing internet connectivity. Configured trough UCI /etc/config/system.
  22. endef
  23. define Package/watchcat/conffiles
  24. /etc/config/system
  25. endef
  26. define Build/Compile
  27. endef
  28. define Package/watchcat/install
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
  33. $(INSTALL_DIR) $(1)/etc/uci-defaults
  34. $(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
  35. endef
  36. $(eval $(call BuildPackage,watchcat))