diff options
author | Jon Ringle <jon@ringle.org> | 2010-03-06 10:30:47 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-10 00:09:33 +0100 |
commit | a1918d8e730902f8b678ffb58235a0ce03e39214 (patch) | |
tree | 7d02938e44a6a5e506ad26f8496d8c849749cd13 /rules/watchdog.make | |
parent | 3c5cec0f85fc1eb23a037f051902e0c699551da7 (diff) | |
download | ptxdist-a1918d8e730902f8b678ffb58235a0ce03e39214.tar.gz ptxdist-a1918d8e730902f8b678ffb58235a0ce03e39214.tar.xz |
[watchdog] new package
Signed-off-by: Jon Ringle <jon@ringle.org>
[mkl: cleanups, remove unneeded stages, make use of "-" src pattern]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/watchdog.make')
-rw-r--r-- | rules/watchdog.make | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/rules/watchdog.make b/rules/watchdog.make new file mode 100644 index 000000000..23ceba825 --- /dev/null +++ b/rules/watchdog.make @@ -0,0 +1,64 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Jon Ringle +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_WATCHDOG) += watchdog + +# +# Paths and names +# +WATCHDOG_VERSION := 5.7 +WATCHDOG := watchdog-$(WATCHDOG_VERSION) +WATCHDOG_SUFFIX := tar.gz +WATCHDOG_URL := $(PTXCONF_SETUP_SFMIRROR)/watchdog/$(WATCHDOG).$(WATCHDOG_SUFFIX) +WATCHDOG_SOURCE := $(SRCDIR)/$(WATCHDOG).$(WATCHDOG_SUFFIX) +WATCHDOG_DIR := $(BUILDDIR)/$(WATCHDOG) +WATCHDOG_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(WATCHDOG_SOURCE): + @$(call targetinfo) + @$(call get, WATCHDOG) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +WATCHDOG_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/watchdog.targetinstall: + @$(call targetinfo) + + @$(call install_init, watchdog) + @$(call install_fixup, watchdog,PACKAGE,watchdog) + @$(call install_fixup, watchdog,PRIORITY,optional) + @$(call install_fixup, watchdog,VERSION,$(WATCHDOG_VERSION)) + @$(call install_fixup, watchdog,SECTION,base) + @$(call install_fixup, watchdog,AUTHOR,"Jon Ringle") + @$(call install_fixup, watchdog,DEPENDS,) + @$(call install_fixup, watchdog,DESCRIPTION,missing) + + @$(call install_alternative, watchdog, 0, 0, 0644, /etc/watchdog.conf) + @$(call install_copy, watchdog, 0, 0, 0755, -, /usr/sbin/watchdog) + + @$(call install_finish, watchdog) + + @$(call touch) + +# vim: syntax=make |