2 # Copyright (C) 2006-2011 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
:=http
://mmonit.com
/monit
/dist
16 PKG_MD5SUM
:=862fb7939ad6f73fc0cc82096c2309c7
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/monit
/Default
25 CATEGORY
:=Administration
27 TITLE
:=System services monitoring utility
28 URL
:=http
://mmonit.com
/monit
/
31 define Package
/monit
/Default
/description
32 An utility for monitoring services on a Unix system
36 $(call Package
/monit
/Default
)
38 TITLE
+= (with SSL support
)
42 define Package
/monit
/description
43 $(call Package
/monit
/Default
/description
)
44 This package is built with SSL support.
47 define Package
/monit-nossl
48 $(call Package
/monit
/Default
)
49 TITLE
+= (without SSL support
)
53 define Package
/monit-nossl
/description
54 $(call Package
/monit
/Default
/description
)
55 This package is built without SSL support.
58 ifeq ($(BUILD_VARIANT
),ssl
)
61 --with-ssl-dir
="$(STAGING_DIR)/usr"
64 ifeq ($(BUILD_VARIANT
),nossl
)
69 define Package
/monit
/conffiles
73 define Package
/monit
/install
74 $(INSTALL_DIR
) $(1)/etc
75 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/monitrc
$(1)/etc
/
76 $(INSTALL_DIR
) $(1)/etc
/init.d
77 $(INSTALL_BIN
) .
/files
/monit.init
$(1)/etc
/init.d
/monit
78 $(INSTALL_DIR
) $(1)/usr
/bin
79 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/monit
$(1)/usr
/bin
/
82 Package
/monit-nossl
/conffiles
= $(Package
/monit
/conffiles
)
83 Package
/monit-nossl
/install = $(Package
/monit
/install)
85 $(eval
$(call BuildPackage
,monit
))
86 $(eval
$(call BuildPackage
,monit-nossl
))