mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 01:27:31 +04:00
* New release, see the changelog [1] for what's new. * Switch the download source from Bitbucket to the official release page (https://mmonit.com/monit/dist/). The source code archives on Bitbucket no longer use clear naming conventions like "monit-x.y.z". The Monit team has confirmed that downloading directly from their official distribution site is the recommended approach going forward. [1] https://mmonit.com/monit/changes/ Signed-off-by: Yaroslav Petrov <info@lank.me>
104 lines
2.3 KiB
Makefile
104 lines
2.3 KiB
Makefile
#
|
|
# Copyright (C) 2006-2014 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:=6.0.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://mmonit.com/monit/dist/
|
|
PKG_HASH:=ddacd2a8120aeb2351e4486ee04a17782b5004aee99f2041d829bc4dcf2a5b3b
|
|
|
|
PKG_MAINTAINER:=Yaroslav Petrov <info@lank.me>
|
|
PKG_LICENSE:=AGPL-3.0
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:tildeslash:monit
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/monit/Default
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
DEPENDS:= +libpthread +zlib
|
|
TITLE:=System services monitoring utility
|
|
URL:=https://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 += \
|
|
--with-piddir="/var/run" \
|
|
--without-pam \
|
|
ac_cv_ipv6=$(if $(CONFIG_IPV6),yes,no) \
|
|
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 Build/Prepare
|
|
$(Build/Prepare/Default)
|
|
(cd $(PKG_BUILD_DIR) && ./bootstrap)
|
|
endef
|
|
|
|
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))
|