Makefile 865 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#
## Copyright (C) 2013 CZ.NIC z.s.p.o. (http://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk

PKG_NAME:=watchdog_adjust
11
PKG_VERSION:=3
12
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
13
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
14 15 16 17 18 19 20 21 22 23 24 25
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
	TITLE:=$(PKG_NAME)
endef

define Build/Compile
	echo Building OK
endef

26 27 28 29
define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
/etc/init.d/watchdog_adjust disable
30
/etc/init.d/watchdog_adjust enable || true
31 32 33
}
endef

34 35 36 37 38 39
define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/etc/init.d/watchdog_adjust $(1)/etc/init.d/watchdog_adjust
endef

$(eval $(call BuildPackage,$(PKG_NAME)))