aboutsummaryrefslogtreecommitdiff
path: root/utils/watchcat/Makefile
blob: 8153e617870ca1133738af0f46f5f3587d60c326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# 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
PKG_RELEASE:=7

PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
PKG_LICENSE:=GPL-2.0

include $(INCLUDE_DIR)/package.mk

define Package/watchcat
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Enable the configuration of programed reboots
  PKGARCH:=all
endef

define Package/watchcat/description
Allows to configure a periodically reboot, or after losing internet connectivity. Configured trough UCI /etc/config/system.
endef

define Package/watchcat/conffiles
/etc/config/system
endef

define Build/Compile
endef

define Package/watchcat/install
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
	$(INSTALL_DIR) $(1)/etc/uci-defaults
	$(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
endef

$(eval $(call BuildPackage,watchcat))