60f9ba80bb
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6494 3c298f89-4303-0410-b956-a3cf2f4a3e73
87 lines
2.2 KiB
Makefile
87 lines
2.2 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=monit
|
|
PKG_VERSION:=4.9
|
|
PKG_RELEASE:=1
|
|
PKG_MD5SUM:=bcbaab776a54d1e34e3a057c925de9ca
|
|
|
|
PKG_SOURCE_URL:=http://www.tildeslash.com/monit/dist/
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_CAT:=zcat
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/monit
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
DEPENDS:=+libpthread +libopenssl
|
|
TITLE:=System services monitoring utility, with SSL support
|
|
DESCRIPTION:=An utility for monitoring services on a Unix system\\\
|
|
This package is built with SSL support.\\\
|
|
URL:=http://www.tildeslash.com/monit
|
|
endef
|
|
|
|
define Package/monit/conffiles
|
|
/etc/monitrc
|
|
endef
|
|
|
|
define Package/monit-nossl
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
TITLE:=System services monitoring utility, without SSL support
|
|
DESCRIPTION:=An utility for monitoring services on a Unix system.\\\
|
|
This package is built without SSL support.\\\
|
|
URL:=http://www.tildeslash.com/monit
|
|
endef
|
|
|
|
define Package/monit/conffiles
|
|
/etc/monitrc
|
|
endef
|
|
|
|
define Build/Configure
|
|
$(call Build/Configure/Default,--with-ssl \
|
|
--with-ssl-dir="$(STAGING_DIR)/usr" \
|
|
)
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
mv $(PKG_BUILD_DIR)/monit $(PKG_BUILD_DIR)/monit-ssl
|
|
$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
$(call Build/Configure/Default,--without-ssl)
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
clean all
|
|
mv $(PKG_BUILD_DIR)/monit $(PKG_BUILD_DIR)/monit-nossl
|
|
endef
|
|
|
|
define Package/monit/install
|
|
$(INSTALL_DIR) $(1)/etc
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/monitrc $(1)/etc/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/monit.init $(1)/etc/init.d/monit
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/monit-ssl $(1)/usr/sbin/monit
|
|
endef
|
|
|
|
define Package/monit-nossl/install
|
|
$(INSTALL_DIR) $(1)/etc
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/monitrc $(1)/etc/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/monit.init $(1)/etc/init.d/monit
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/monit-nossl $(1)/usr/sbin/monit
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,monit))
|
|
$(eval $(call BuildPackage,monit-nossl))
|