Makefile (1100B)
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:=6 13 14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com> 15 PKG_LICENSE:=GPL-2.0 16 17 include $(INCLUDE_DIR)/package.mk 18 19 define Package/watchcat 20 SECTION:=utils 21 CATEGORY:=Utilities 22 TITLE:=Enable the configuration of programed reboots 23 endef 24 25 define Package/watchcat/description 26 Allows to configure a periodically reboot, or after losing internet connectivity. Configured trough UCI /etc/config/system. 27 endef 28 29 define Package/watchcat/conffiles 30 /etc/config/system 31 endef 32 33 define Build/Compile 34 endef 35 36 define Package/watchcat/install 37 $(INSTALL_DIR) $(1)/etc/init.d 38 $(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat 39 $(INSTALL_DIR) $(1)/usr/bin 40 $(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh 41 $(INSTALL_DIR) $(1)/etc/uci-defaults 42 $(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat 43 endef 44 45 $(eval $(call BuildPackage,watchcat))