5315e05698
Hi this patch update monit from 5.2.5 to 5.4, this add cool feature like "check program", to execute a script and send email/do action depending on the return code, and many bugfixes (http://mmonit.com/monit/dist/CHANGES.txt) I've modified the init script because "-d 60" overide the conf file and the stat command doesn't seem to exist, so either we just chmod each time or we let the people RTFM and the syslog (i prefer the latter) For now i've tested only the ssl version with backfire (r31676) on x86 and ar71xx (tplink wr1043nd) (it send mail via google, ping, watch load average and cpu ...) It compile (monit and monit-nossl) for x86 and ar71xx for backfire & trunk (trunk x86 mount the ext4 partition readonly so i haven't tested) Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> SVN-Revision: 32674
92 lines
2.1 KiB
Makefile
92 lines
2.1 KiB
Makefile
#
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=monit
|
|
PKG_VERSION:=5.4
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://mmonit.com/monit/dist
|
|
PKG_MD5SUM:=f1f391241d44059d0d3e5d26f4ec5ddf
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/monit/Default
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
DEPENDS:= +libpthread
|
|
TITLE:=System services monitoring utility
|
|
URL:=http://mmonit.com/monit/
|
|
endef
|
|
|
|
define Package/monit/Default/description
|
|
An utility for monitoring services on a Unix system
|
|
endef
|
|
|
|
define Package/monit
|
|
$(call Package/monit/Default)
|
|
DEPENDS+= +libopenssl
|
|
TITLE+= (with SSL support)
|
|
VARIANT:=ssl
|
|
endef
|
|
|
|
define Package/monit/description
|
|
$(call Package/monit/Default/description)
|
|
This package is built with SSL support.
|
|
endef
|
|
|
|
define Package/monit-nossl
|
|
$(call Package/monit/Default)
|
|
TITLE+= (without SSL support)
|
|
VARIANT:=nossl
|
|
endef
|
|
|
|
define Package/monit-nossl/description
|
|
$(call Package/monit/Default/description)
|
|
This package is built without SSL support.
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--without-pam \
|
|
libmonit_cv_setjmp_available=yes \
|
|
libmonit_cv_vsnprintf_c99_conformant=yes
|
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
CONFIGURE_ARGS += \
|
|
--with-ssl \
|
|
--with-ssl-dir="$(STAGING_DIR)/usr"
|
|
endif
|
|
|
|
ifeq ($(BUILD_VARIANT),nossl)
|
|
CONFIGURE_ARGS += \
|
|
--without-ssl
|
|
endif
|
|
|
|
define Package/monit/conffiles
|
|
/etc/monitrc
|
|
endef
|
|
|
|
define Package/monit/install
|
|
$(INSTALL_DIR) $(1)/etc
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/monitrc $(1)/etc/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/monit.init $(1)/etc/init.d/monit
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/monit $(1)/usr/bin/
|
|
endef
|
|
|
|
Package/monit-nossl/conffiles = $(Package/monit/conffiles)
|
|
Package/monit-nossl/install = $(Package/monit/install)
|
|
|
|
$(eval $(call BuildPackage,monit))
|
|
$(eval $(call BuildPackage,monit-nossl))
|