[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[openwrt/svn-archive/archive.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 include $(INCLUDE_DIR)/package.mk
15
16 define Package/watchcat
17 SECTION:=utils
18 CATEGORY:=Utilities
19 TITLE:=Enable the configuration of programed reboots
20 MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
21 endef
22
23 define Package/watchcat/description
24 Allows to configure a periodically reboot, or after loosing internet connectivity. Configured trough UCI /etc/config/system.
25 endef
26
27 define Package/watchcat/conffiles
28 /etc/config/system
29 endef
30
31 define Build/Compile
32 endef
33
34 define Package/watchcat/install
35 $(INSTALL_DIR) $(1)/etc/init.d
36 $(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
39 $(INSTALL_DIR) $(1)/etc/uci-defaults
40 $(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
41 endef
42
43 $(eval $(call BuildPackage,watchcat))