2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://bitbucket.org
/tildeslash
/monit
/downloads
/
16 PKG_HASH
:=1ace889c0183473a9d70160df6533bb6e1338dc1354f5928507803e1e2a863b5
18 PKG_MAINTAINER
:=Yaroslav Petrov
<info@lank.me
>
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:tildeslash
:monit
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/monit
/Default
30 CATEGORY
:=Administration
31 DEPENDS
:= +libpthread
+zlib
32 TITLE
:=System services monitoring utility
33 URL
:=https
://mmonit.com
/monit
/
36 define Package
/monit
/Default
/description
37 An utility for monitoring services on a Unix system
41 $(call Package
/monit
/Default
)
43 TITLE
+= (with SSL support
)
47 define Package
/monit
/description
48 $(call Package
/monit
/Default
/description
)
49 This package is built with SSL support.
52 define Package
/monit-nossl
53 $(call Package
/monit
/Default
)
54 TITLE
+= (without SSL support
)
58 define Package
/monit-nossl
/description
59 $(call Package
/monit
/Default
/description
)
60 This package is built without SSL support.
65 ac_cv_ipv6
=$(if
$(CONFIG_IPV6
),yes
,no
) \
66 libmonit_cv_setjmp_available
=yes \
67 libmonit_cv_vsnprintf_c99_conformant
=yes
69 ifeq ($(BUILD_VARIANT
),ssl
)
72 --with-ssl-dir
="$(STAGING_DIR)/usr"
75 ifeq ($(BUILD_VARIANT
),nossl
)
81 $(Build
/Prepare
/Default
)
82 (cd
$(PKG_BUILD_DIR
) && .
/bootstrap
)
85 define Package
/monit
/conffiles
89 define Package
/monit
/install
90 $(INSTALL_DIR
) $(1)/etc
91 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/monitrc
$(1)/etc
/
92 $(INSTALL_DIR
) $(1)/etc
/init.d
93 $(INSTALL_BIN
) .
/files
/monit.init
$(1)/etc
/init.d
/monit
94 $(INSTALL_DIR
) $(1)/usr
/bin
95 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/monit
$(1)/usr
/bin
/
98 Package
/monit-nossl
/conffiles
= $(Package
/monit
/conffiles
)
99 Package
/monit-nossl
/install = $(Package
/monit
/install)
101 $(eval
$(call BuildPackage
,monit
))
102 $(eval
$(call BuildPackage
,monit-nossl
))