2006-08-05 16:12:53 +00:00
|
|
|
#
|
2013-04-15 10:07:01 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2006-08-05 16:12:53 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=monit
|
2013-04-15 10:07:01 +00:00
|
|
|
PKG_VERSION:=5.5
|
2013-04-28 22:22:25 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-08-05 16:12:53 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-03-04 18:19:54 +00:00
|
|
|
PKG_SOURCE_URL:=http://mmonit.com/monit/dist
|
2013-04-15 10:07:01 +00:00
|
|
|
PKG_MD5SUM:=9b01279316c6492973b224eb95fac687
|
2011-03-04 18:19:54 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL:=1
|
2006-08-05 16:12:53 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
define Package/monit/Default
|
2006-08-05 16:12:53 +00:00
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2007-08-25 19:16:54 +00:00
|
|
|
DEPENDS:= +libpthread
|
|
|
|
TITLE:=System services monitoring utility
|
2009-06-10 13:59:28 +00:00
|
|
|
URL:=http://mmonit.com/monit/
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
define Package/monit/Default/description
|
2007-10-21 15:59:31 +00:00
|
|
|
An utility for monitoring services on a Unix system
|
2007-08-25 19:16:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/monit
|
|
|
|
$(call Package/monit/Default)
|
|
|
|
DEPENDS+= +libopenssl
|
|
|
|
TITLE+= (with SSL support)
|
2011-03-04 18:19:54 +00:00
|
|
|
VARIANT:=ssl
|
2007-08-25 19:16:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/monit/description
|
|
|
|
$(call Package/monit/Default/description)
|
2007-10-21 15:59:31 +00:00
|
|
|
This package is built with SSL support.
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/monit-nossl
|
2007-08-25 19:16:54 +00:00
|
|
|
$(call Package/monit/Default)
|
|
|
|
TITLE+= (without SSL support)
|
2011-03-04 18:19:54 +00:00
|
|
|
VARIANT:=nossl
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
define Package/monit-nossl/description
|
|
|
|
$(call Package/monit/Default/description)
|
2007-10-21 15:59:31 +00:00
|
|
|
This package is built without SSL support.
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2012-07-12 08:09:57 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-pam \
|
|
|
|
libmonit_cv_setjmp_available=yes \
|
|
|
|
libmonit_cv_vsnprintf_c99_conformant=yes
|
|
|
|
|
2011-03-04 18:19:54 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-ssl \
|
|
|
|
--with-ssl-dir="$(STAGING_DIR)/usr"
|
|
|
|
endif
|
2007-08-25 19:16:54 +00:00
|
|
|
|
2011-03-04 18:19:54 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),nossl)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-ssl
|
|
|
|
endif
|
2007-08-25 19:16:54 +00:00
|
|
|
|
2011-03-04 18:19:54 +00:00
|
|
|
define Package/monit/conffiles
|
2007-08-25 19:16:54 +00:00
|
|
|
/etc/monitrc
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2011-03-04 18:19:54 +00:00
|
|
|
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/
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2011-03-04 18:19:54 +00:00
|
|
|
Package/monit-nossl/conffiles = $(Package/monit/conffiles)
|
|
|
|
Package/monit-nossl/install = $(Package/monit/install)
|
2007-08-25 19:16:54 +00:00
|
|
|
|
2006-08-05 16:12:53 +00:00
|
|
|
$(eval $(call BuildPackage,monit))
|
|
|
|
$(eval $(call BuildPackage,monit-nossl))
|