xref: /buildroot/package/monit/monit.mk
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1################################################################################
2#
3# monit
4#
5################################################################################
6
7MONIT_VERSION = 5.33.0
8MONIT_SITE = http://mmonit.com/monit/dist
9MONIT_LICENSE = AGPL-3.0 with OpenSSL exception
10MONIT_LICENSE_FILES = COPYING
11MONIT_CPE_ID_VENDOR = mmonit
12MONIT_SELINUX_MODULES = monit
13
14# Touching Makefile.am:
15# 0001-configure.ac-fixes-missing-config-macro-dir.patch touches configure.ac
16MONIT_AUTORECONF = YES
17
18MONIT_CONF_ENV = \
19	libmonit_cv_setjmp_available=yes \
20	libmonit_cv_vsnprintf_c99_conformant=yes \
21	ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no) \
22	ac_cv_ipv6=yes
23
24MONIT_CONF_OPTS += \
25	--without-pam \
26	--with-largefiles
27
28ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
29MONIT_DEPENDENCIES += libxcrypt
30endif
31
32ifeq ($(BR2_PACKAGE_OPENSSL),y)
33MONIT_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
34ifeq ($(BR2_STATIC_LIBS),y)
35MONIT_CONF_OPTS += --with-ssl-static=$(STAGING_DIR)/usr
36else
37MONIT_CONF_OPTS += --with-ssl --with-ssl-dir=$(STAGING_DIR)/usr
38endif
39MONIT_DEPENDENCIES += host-pkgconf openssl
40else
41MONIT_CONF_OPTS += --without-ssl
42endif
43
44ifeq ($(BR2_PACKAGE_ZLIB),y)
45MONIT_CONF_OPTS += --with-zlib
46MONIT_DEPENDENCIES += zlib
47else
48MONIT_CONF_OPTS += --without-zlib
49endif
50
51$(eval $(autotools-package))
52

Last Index update Fri Aug 22 08:59:00 CST 2025