2 # Copyright (C) 2010 segal.di.ubi.pt
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
16 include $(INCLUDE_DIR)/package.mk
18 define Package/watchcat
21 TITLE:=Enable the configuration of programed reboots
24 define Package/watchcat/description
25 Allows to configure a periodically reboot, or after loosing internet connectivity. Configured trough UCI /etc/config/system.
28 define Package/watchcat/conffiles
35 define Package/watchcat/install
36 $(INSTALL_DIR) $(1)/etc/init.d
37 $(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
40 $(INSTALL_DIR) $(1)/etc/uci-defaults
41 $(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
44 $(eval $(call BuildPackage,watchcat))