mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: [ptxdist] [PATCH] monit: add new package
Date: Mon, 20 Jan 2014 20:30:56 +0100	[thread overview]
Message-ID: <1390246256-2746-1-git-send-email-r.schwebel@pengutronix.de> (raw)
In-Reply-To: <e2344e7cfc22d1fb132ed15005d4398c@idefix.lespocky.dyndns.org>

This adds the system monitoring daemon 'monit'.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 rules/monit.in   | 20 ++++++++++++++++
 rules/monit.make | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 rules/monit.in
 create mode 100644 rules/monit.make

diff --git a/rules/monit.in b/rules/monit.in
new file mode 100644
index 0000000..281ab21
--- /dev/null
+++ b/rules/monit.in
@@ -0,0 +1,20 @@
+## SECTION=networking
+
+menuconfig MONIT
+	tristate
+	prompt "monit                         "
+	select OPENSSL if MONIT_SSL
+	help
+	  Monit is a tool for managing and monitoring processes, files,
+	  programs, directories and filesystems.
+
+if MONIT
+
+config MONIT_SSL
+
+	bool
+	prompt "SSL support"
+	help
+	  Enable Secure Socket Layer support, using OpenSSL.
+
+endif
diff --git a/rules/monit.make b/rules/monit.make
new file mode 100644
index 0000000..3430b0e
--- /dev/null
+++ b/rules/monit.make
@@ -0,0 +1,70 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Robert Schwebel <r.schwebel@pengutronix.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 with OpenSSL exception
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+MONIT_CONF_ENV	:= $(CROSS_ENV) \
+	libmonit_cv_setjmp_available=yes \
+	libmonit_cv_vsnprintf_c99_conformant=yes
+
+#
+# autoconf
+#
+MONIT_CONF_TOOL	:= autoconf
+MONIT_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
+	--enable-optimized \
+	--without-pam \
+	--enable-largefile
+
+ifdef PTXCONF_MONIT_SSL
+MONIT_CONF_OPT += --with-ssl-dir=$(SYSROOT)/usr
+else
+MONIT_CONF_OPT += --without-ssl
+endif
+
+# ----------------------------------------------------------------------------
+# 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,"Robert Schwebel <r.schwebel@pengutronix.de>")
+	@$(call install_fixup, monit,DESCRIPTION,missing)
+
+	@$(call install_copy, monit, 0, 0, 0755, /usr/bin/monit)
+
+	@$(call install_finish, monit)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.8.5.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-01-20 19:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 16:17 [ptxdist] determining compiler/libc/target capabilities for monit Alexander Dahl
2014-01-20 19:30 ` Robert Schwebel [this message]
2014-01-21  8:51   ` [ptxdist] [PATCH] monit: add new package Alexander Dahl
2014-01-21  9:31     ` Michael Olbrich
2014-01-20 19:37 ` [ptxdist] determining compiler/libc/target capabilities for monit Robert Schwebel
2014-01-27 10:27 [ptxdist] [PATCH] monit: add new package Alexander Dahl
2014-01-27 12:55 ` Alexander Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1390246256-2746-1-git-send-email-r.schwebel@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox