2010-12-18 23:56:42 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 segal.di.ubi.pt
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=watchcat
|
|
|
|
PKG_VERSION:=1
|
2011-01-05 15:33:39 +00:00
|
|
|
PKG_RELEASE:=5
|
2010-12-18 23:56:42 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/watchcat
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Enable the configuration of programed reboots
|
|
|
|
MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/watchcat/description
|
2011-01-04 15:09:29 +00:00
|
|
|
Allows to configure a periodically reboot, or after loosing internet connectivity. Configured trough UCI /etc/config/system.
|
2010-12-18 23:56:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/watchcat/conffiles
|
|
|
|
/etc/config/system
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/watchcat/install
|
2010-12-19 01:11:15 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
|
2010-12-22 23:14:56 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
|
2011-01-04 17:20:37 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
2011-01-04 15:09:29 +00:00
|
|
|
$(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
|
2010-12-18 23:56:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,watchcat))
|