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
14 PKG_MD5SUM:=4e53aa44e4ca264e61c7c401cee4e697
16 PKG_SOURCE_URL:=http://www.tildeslash.com/monit/dist/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
26 CATEGORY:=Administration
27 DEPENDS:=+libpthread +libopenssl
28 TITLE:=System services monitoring utility, with SSL support
29 DESCRIPTION:=An utility for monitoring services on a Unix system\\\
30 This package is built with SSL support.\\\
31 URL:=http://www.tildeslash.com/monit
34 define Package/monit/conffiles
38 define Package/monit-nossl
40 CATEGORY:=Administration
41 TITLE:=System services monitoring utility, without SSL support
42 DESCRIPTION:=An utility for monitoring services on a Unix system.\\\
43 This package is built without SSL support.\\\
44 URL:=http://www.tildeslash.com/monit
47 define Package/monit/conffiles
51 define Build/Configure
52 $(call Build/Configure/Default,--with-ssl \
53 --with-ssl-dir="$(STAGING_DIR)/usr" \
55 $(MAKE) -C $(PKG_BUILD_DIR)
56 mv $(PKG_BUILD_DIR)/monit $(PKG_BUILD_DIR)/monit-ssl
57 $(MAKE) -C $(PKG_BUILD_DIR) clean
58 $(call Build/Configure/Default,--without-ssl)
62 $(MAKE) -C $(PKG_BUILD_DIR) \
64 mv $(PKG_BUILD_DIR)/monit $(PKG_BUILD_DIR)/monit-nossl
67 define Package/monit/install
68 install -d -m0755 $(1)/etc
69 install -m0600 $(PKG_BUILD_DIR)/monitrc $(1)/etc/
70 install -d -m0755 $(1)/etc/init.d
71 install -m0755 ./files/monit.init $(1)/etc/init.d/monit
72 install -d -m0755 $(1)/usr/sbin
73 install -m0755 $(PKG_BUILD_DIR)/monit-ssl $(1)/usr/sbin/monit
76 define Package/monit-nossl/install
77 install -d -m0755 $(1)/etc
78 install -m0600 $(PKG_BUILD_DIR)/monitrc $(1)/etc/
79 install -d -m0755 $(1)/etc/init.d
80 install -m0755 ./files/monit.init $(1)/etc/init.d/monit
81 install -d -m0755 $(1)/usr/sbin
82 install -m0755 $(PKG_BUILD_DIR)/monit-nossl $(1)/usr/sbin/monit
85 $(eval $(call BuildPackage,monit))
86 $(eval $(call BuildPackage,monit-nossl))