Branch oldpackages for 14.07
[14.07/packages.git] / utils / watchcat / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=watchcat
11 PKG_VERSION:=1
12 PKG_RELEASE:=5
13
14 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/watchcat
19   SECTION:=utils
20   CATEGORY:=Utilities
21   TITLE:=Enable the configuration of programed reboots
22 endef
23
24 define Package/watchcat/description
25 Allows to configure a periodically reboot, or after loosing internet connectivity. Configured trough UCI /etc/config/system.
26 endef
27
28 define Package/watchcat/conffiles
29 /etc/config/system
30 endef
31
32 define Build/Compile
33 endef
34
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
42 endef
43
44 $(eval $(call BuildPackage,watchcat))