diff options
Diffstat (limited to 'package/monit')
-rw-r--r-- | package/monit/Config.in | 17 | ||||
-rw-r--r-- | package/monit/Makefile | 40 | ||||
-rw-r--r-- | package/monit/files/monit.init | 20 | ||||
-rw-r--r-- | package/monit/ipkg/monit-nossl.conffiles | 1 | ||||
-rw-r--r-- | package/monit/ipkg/monit-nossl.control | 5 | ||||
-rw-r--r-- | package/monit/ipkg/monit.conffiles | 1 | ||||
-rw-r--r-- | package/monit/ipkg/monit.control | 4 |
7 files changed, 88 insertions, 0 deletions
diff --git a/package/monit/Config.in b/package/monit/Config.in new file mode 100644 index 000000000..b8d1eec59 --- /dev/null +++ b/package/monit/Config.in @@ -0,0 +1,17 @@ +config ADK_PACKAGE_MONIT + prompt "monit............................. System services monitoring utility" + tristate + select ADK_PACKAGE_LIBPTHREAD + default n + help + An utility for monitoring services on a Unix system + http://www.tildeslash.com/monit/ + +config ADK_COMPILE_MONIT_WITH_SSL + prompt "Compile with SSL support" + tristate + select ADK_PACKAGE_LIBOPENSSL + depends on ADK_PACKAGE_MONIT + default n + help + Enable SSL diff --git a/package/monit/Makefile b/package/monit/Makefile new file mode 100644 index 000000000..7b41c5367 --- /dev/null +++ b/package/monit/Makefile @@ -0,0 +1,40 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= monit +PKG_VERSION:= 4.10.1 +PKG_RELEASE:= 1 +PKG_MD5SUM:= d3143b0bbd79b53f1b019d2fc1dae656 +MASTER_SITES:= http://www.tildeslash.com/monit/dist/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,MONIT,monit,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +PKG_DEPENDS:= libpthread, + +ifeq ($(ADK_COMPILE_MONIT_WITH_SSL),y) +PKG_DEPENDS+= libopenssl +CONFIGURE_ARGS+= --with-ssl --with-ssl-dir="${STAGING_DIR}/usr" +else +CONFIGURE_ARGS+= --without-ssl +endif + +CONFIGURE_STYLE:= gnu +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_MONIT}/etc + install -m0600 ${WRKBUILD}/monitrc ${IDIR_MONIT}/etc/ + ${INSTALL_DIR} ${IDIR_MONIT}/etc/init.d + ${INSTALL_BIN} ./files/monit.init ${IDIR_MONIT}/etc/init.d/monit + ${INSTALL_DIR} ${IDIR_MONIT}/usr/sbin + ${INSTALL_BIN} ${WRKBUILD}/monit ${IDIR_MONIT}/usr/sbin/monit + echo 'Depends: ${PKG_DEPENDS}' >>${IDIR_MONIT}/CONTROL/control + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/monit/files/monit.init b/package/monit/files/monit.init new file mode 100644 index 000000000..fd552b95e --- /dev/null +++ b/package/monit/files/monit.init @@ -0,0 +1,20 @@ +#!/bin/sh +#FWINIT 10 + +case $1 in +autostop) ;; +autostart|start) + monit $monit_flags + ;; +stop) + killall monit + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 (start|stop|restart)" + exit 1 +esac +exit $? diff --git a/package/monit/ipkg/monit-nossl.conffiles b/package/monit/ipkg/monit-nossl.conffiles new file mode 100644 index 000000000..365679c6e --- /dev/null +++ b/package/monit/ipkg/monit-nossl.conffiles @@ -0,0 +1 @@ +/etc/monitrc diff --git a/package/monit/ipkg/monit-nossl.control b/package/monit/ipkg/monit-nossl.control new file mode 100644 index 000000000..d10b711da --- /dev/null +++ b/package/monit/ipkg/monit-nossl.control @@ -0,0 +1,5 @@ +Package: monit-nossl +Priority: optional +Section: admin +Description: An utility for system services monitoring, without SSL support. +Depends: libpthread diff --git a/package/monit/ipkg/monit.conffiles b/package/monit/ipkg/monit.conffiles new file mode 100644 index 000000000..365679c6e --- /dev/null +++ b/package/monit/ipkg/monit.conffiles @@ -0,0 +1 @@ +/etc/monitrc diff --git a/package/monit/ipkg/monit.control b/package/monit/ipkg/monit.control new file mode 100644 index 000000000..0c564a675 --- /dev/null +++ b/package/monit/ipkg/monit.control @@ -0,0 +1,4 @@ +Package: monit +Priority: optional +Section: admin +Description: An utility for system services monitoring. |