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.

48 lines
1.2 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:=14
  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 programmed reboots or network interface restarts
  18. PKGARCH:=all
  19. endef
  20. define Package/watchcat/description
  21. Restart network interfaces or reboot if pings to hosts fail, or set up periodic reboots. Configured via UCI /etc/config/watchcat
  22. endef
  23. define Package/watchcat/conffiles
  24. /etc/config/watchcat
  25. endef
  26. define Build/Compile
  27. endef
  28. define Package/watchcat/install
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/watchcat.init $(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/config
  34. $(INSTALL_DATA) ./files/watchcat.config $(1)/etc/config/watchcat
  35. $(INSTALL_DIR) $(1)/etc/uci-defaults
  36. $(INSTALL_BIN) ./files/migrate-watchcat $(1)/etc/uci-defaults/migrate-watchcat
  37. endef
  38. $(eval $(call BuildPackage,watchcat))