From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/monit/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++ community/monit/monit.changelog | 19 ++++++++++++++++++ community/monit/monitd | 43 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 community/monit/PKGBUILD create mode 100644 community/monit/monit.changelog create mode 100644 community/monit/monitd (limited to 'community/monit') diff --git a/community/monit/PKGBUILD b/community/monit/PKGBUILD new file mode 100644 index 000000000..c38ca3931 --- /dev/null +++ b/community/monit/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 42862 2011-03-21 21:28:35Z jlichtblau $ +# Maintainer: Jaroslav Lichtblau +# Contributor: Geoffroy Carrier +# Contributor: Marco Bartholomew + +pkgname=monit +pkgver=5.2.4 +pkgrel=1 +pkgdesc="Utility for managing and monitoring, processes, files, directories and devices on a *NIX system" +arch=('i686' 'x86_64') +url="http://mmonit.com/monit/" +license=('GPL3') +depends=('openssl') +backup=('etc/monitrc') +changelog=$pkgname.changelog +source=(http://mmonit.com/$pkgname/dist/$pkgname-$pkgver.tar.gz \ + monitd) +sha256sums=('feabdd2c0e3263eadaf5359841b92a9e6d4824819b1df7b2b49d9727a849b4cf' + 'b235b2fdeec49015d6b74f028d161b289663692f9ee2d2d78cf52d8db87ca496') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + ./configure --prefix=/usr + + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make DESTDIR=${pkgdir} install + + install -D -m755 ${srcdir}/monitd ${pkgdir}/etc/rc.d/monitd + install -D -m700 monitrc ${pkgdir}/etc/monitrc +} diff --git a/community/monit/monit.changelog b/community/monit/monit.changelog new file mode 100644 index 000000000..c0a09fd7d --- /dev/null +++ b/community/monit/monit.changelog @@ -0,0 +1,19 @@ +2011-03-21 Jaroslav Lichtblau + * monit 5.2.4-1 + +2010-11-24 Jaroslav Lichtblau + * monit 5.2.3-1 + +2010-09-26 Jaroslav Lichtblau + * monit 5.2-1 + +2010-08-30 Jaroslav Lichtblau + * monit 5.1.1-2 + * fixed FS#20666 + +2010-08-29 Jaroslav Lichtblau + * monit 5.1.1-1 + * fixed FS#20559 + +2009-12-21 Jaroslav Lichtblau + * monit 5.0.3-1 diff --git a/community/monit/monitd b/community/monit/monitd new file mode 100644 index 000000000..61a359702 --- /dev/null +++ b/community/monit/monitd @@ -0,0 +1,43 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +start() { + stat_busy "Starting Monit" + /usr/bin/monit &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon monitd + stat_done + fi +} + +stop() { + stat_busy "Stopping Monit" + /usr/bin/monit quit &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon monitd + stat_done + fi +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 -- cgit v1.2.3-54-g00ecf