2006-08-05 16:12:53 +00:00
|
|
|
#
|
2009-05-28 09:13:23 +00:00
|
|
|
# Copyright (C) 2006-2009 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
|
2010-10-24 20:44:51 +00:00
|
|
|
PKG_VERSION:=5.1.1
|
2006-08-05 16:12:53 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-06-10 13:59:28 +00:00
|
|
|
PKG_SOURCE_URL:=http://mmonit.com/monit/dist/
|
2010-10-24 20:44:51 +00:00
|
|
|
PKG_MD5SUM:=4bbd3845ae1cbab13ec211824e0486dc
|
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)
|
|
|
|
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)
|
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
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
define Build/Template
|
|
|
|
|
|
|
|
$(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
|
|
|
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
|
|
$(call Build/Configure/Default,$(3))
|
2006-08-05 16:12:53 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
2007-08-25 19:16:54 +00:00
|
|
|
( cd $(PKG_BUILD_DIR); mv -f monit monit-$(2) )
|
|
|
|
touch $$@
|
|
|
|
|
|
|
|
$(STAMP_BUILT): $(STAMP_BUILT)-$(2)
|
|
|
|
|
2007-08-25 19:20:15 +00:00
|
|
|
define Package/$(1)/conffiles
|
2007-08-25 19:16:54 +00:00
|
|
|
/etc/monitrc
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
define Package/$(1)/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/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/monit-$(2) $$(1)/usr/sbin/monit
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-08-05 16:12:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-25 19:16:54 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_monit),)
|
|
|
|
define Build/with-ssl
|
|
|
|
$(call Build/Template,monit,with-ssl, \
|
|
|
|
--with-ssl \
|
|
|
|
--with-ssl-dir="$(STAGING_DIR)/usr" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
$(eval $(Build/with-ssl))
|
|
|
|
|
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_monit-nossl),)
|
|
|
|
define Build/without-ssl
|
|
|
|
$(call Build/Template,monit-nossl,without-ssl, \
|
|
|
|
--without-ssl \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
$(eval $(Build/without-ssl))
|
|
|
|
|
2006-08-05 16:12:53 +00:00
|
|
|
$(eval $(call BuildPackage,monit))
|
|
|
|
$(eval $(call BuildPackage,monit-nossl))
|