2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.tildeslash.com
/monit
/dist/
17 PKG_MD5SUM
:=bcbaab776a54d1e34e3a057c925de9ca
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/monit
/Default
23 CATEGORY
:=Administration
25 TITLE
:=System services monitoring utility
26 URL
:=http
://www.tildeslash.com
/monit
29 define Package
/monit
/Default
/description
30 An utility for monitoring services on a Unix system
34 $(call Package
/monit
/Default
)
36 TITLE
+= (with SSL support
)
39 define Package
/monit
/description
40 $(call Package
/monit
/Default
/description
)
41 This package is built with SSL support.
44 define Package
/monit-nossl
45 $(call Package
/monit
/Default
)
46 TITLE
+= (without SSL support
)
49 define Package
/monit-nossl
/description
50 $(call Package
/monit
/Default
/description
)
51 This package is built without SSL support.
56 $(STAMP_BUILT
)-$(2): $(STAMP_PREPARED
)
57 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
58 $(call Build
/Configure
/Default
,$(3))
59 $(MAKE
) -C
$(PKG_BUILD_DIR
)
60 ( cd
$(PKG_BUILD_DIR
); mv
-f monit monit-
$(2) )
63 $(STAMP_BUILT
): $(STAMP_BUILT
)-$(2)
65 define Package
/$(1)/conffiles
69 define Package
/$(1)/install
70 $(INSTALL_DIR
) $$(1)/etc
71 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/monitrc
$$(1)/etc
/
72 $(INSTALL_DIR
) $$(1)/etc
/init.d
73 $(INSTALL_BIN
) .
/files
/monit.init
$$(1)/etc
/init.d
/monit
74 $(INSTALL_DIR
) $$(1)/usr
/sbin
75 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/monit-
$(2) $$(1)/usr
/sbin
/monit
80 define Build
/Configure
86 ifneq ($(SDK
)$(CONFIG_PACKAGE_monit
),)
88 $(call Build
/Template
,monit
,with-ssl
, \
90 --with-ssl-dir
="$(STAGING_DIR)/usr" \
94 $(eval
$(Build
/with-ssl
))
96 ifneq ($(SDK
)$(CONFIG_PACKAGE_monit-nossl
),)
97 define Build
/without-ssl
98 $(call Build
/Template
,monit-nossl
,without-ssl
, \
103 $(eval
$(Build
/without-ssl
))
105 $(eval
$(call BuildPackage
,monit
))
106 $(eval
$(call BuildPackage
,monit-nossl
))