diff options
author | Alexander Dahl <post@lespocky.de> | 2014-01-27 14:44:05 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-01-29 20:43:31 +0100 |
commit | f15a552596aac0df52f36ca02df393a0995ecd31 (patch) | |
tree | f0097102af90b2ada84db565153e1bff99e7da31 /rules/monit.make | |
parent | 088331df47a0bfdb52336b24e5c19e1074982e84 (diff) | |
download | ptxdist-f15a552596aac0df52f36ca02df393a0995ecd31.tar.gz ptxdist-f15a552596aac0df52f36ca02df393a0995ecd31.tar.xz |
monit: add new package
This adds the system monitoring daemon 'monit'. An init script for
busybox init method is included and a generic config file to start with.
Signed-off-by: Alexander Dahl <post@lespocky.de>
[mol: use GLOBAL_LARGE_FILE_OPTION]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/monit.make')
-rw-r--r-- | rules/monit.make | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/rules/monit.make b/rules/monit.make new file mode 100644 index 000000000..241dba8a5 --- /dev/null +++ b/rules/monit.make @@ -0,0 +1,76 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Alexander Dahl <post@lespocky.de> +# +# 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_MONIT) += monit + +# +# Paths and names +# +MONIT_VERSION := 5.6 +MONIT_MD5 := 19dfc1ce8512e832134d06eedd96ba50 +MONIT := monit-$(MONIT_VERSION) +MONIT_SUFFIX := tar.gz +MONIT_URL := http://mmonit.com/monit/dist/$(MONIT).$(MONIT_SUFFIX) +MONIT_SOURCE := $(SRCDIR)/$(MONIT).$(MONIT_SUFFIX) +MONIT_DIR := $(BUILDDIR)/$(MONIT) +MONIT_LICENSE := AGPLv3 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +MONIT_CONF_ENV := $(CROSS_ENV) \ + libmonit_cv_setjmp_available=yes \ + libmonit_cv_vsnprintf_c99_conformant=yes + +MONIT_CONF_TOOL := autoconf +MONIT_CONF_OPT := $(CROSS_AUTOCONF_USR) \ + --enable-optimized \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --without-pam \ + --$(call ptx/wwo, PTXCONF_MONIT_SSL)-ssl \ + --with-ssl-dir=$(SYSROOT)/usr + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/monit.targetinstall: + @$(call targetinfo) + + @$(call install_init, monit) + @$(call install_fixup, monit,PRIORITY,optional) + @$(call install_fixup, monit,SECTION,base) + @$(call install_fixup, monit,AUTHOR,"Alexander Dahl <post@lespocky.de>") + @$(call install_fixup, monit,DESCRIPTION,missing) + + @$(call install_copy, monit, 0, 0, 0755, -, /usr/bin/monit) + @$(call install_copy, monit, 0, 0, 0755, /var/lib/monit) + @$(call install_copy, monit, 0, 0, 0755, /var/lib/monit/events) + @$(call install_alternative, monit, 0, 0, 0600, /etc/monitrc) + +ifdef PTXCONF_INITMETHOD_BBINIT +ifdef PTXCONF_MONIT_STARTSCRIPT + @$(call install_alternative, monit, 0, 0, 0755, /etc/init.d/monit) +ifneq ($(call remove_quotes,$(PTXCONF_MONIT_BBINIT_LINK)),) + @$(call install_link, monit, ../init.d/monit, \ + /etc/rc.d/$(PTXCONF_MONIT_BBINIT_LINK)) +endif +endif +endif + + @$(call install_finish, monit) + + @$(call touch) + +# vim: ft=make noet |