[Frugalware-darcs] frugalware-current: monit-4.8.2-1-x86_64

AlexExtreme alex at alex-smith.me.uk
Wed Nov 15 08:50:51 CET 2006


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=darcs_commitdiff;h=20061115074644-46e39-852c1b50623a056b3a3c31bcfd66acb618efa105.gz;

[monit-4.8.2-1-x86_64
AlexExtreme <alex at alex-smith.me.uk>**20061115074644
  * New package
] {
adddir ./source/apps-extra/monit
addfile ./source/apps-extra/monit/FrugalBuild
hunk ./source/apps-extra/monit/FrugalBuild 1
+# Compiling Time: 0.17 SBU
+# Maintainer: AlexExtreme <alex at alex-smith.me.uk>
+
+pkgname=monit
+pkgver=4.8.2
+pkgrel=1
+pkgdesc="monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system"
+url="http://www.tildeslash.com/monit"
+depends=('glibc' 'openssl')
+groups=('apps-extra')
+archs=('i686' 'x86_64')
+up2date="lynx -dump 'http://www.tildeslash.com/monit/dist/?C=M;O=A' | Flasttar"
+source=(http://www.tildeslash.com/monit/dist/$pkgname-$pkgver.tar.gz \
+	monit-4.8.1-change-conf-file-path.patch monit-4.8.1-fix-man-page-paths.patch \
+	README.Frugalware)
+sha1sums=('e15756c40a9b5e2de2dabdd2c39bb4f4be219e8d' \
+	  '84361e2f83c1e1d2b931f3e2093ce30af216ab6e' \
+	  '238ab46b032b9dd4060f11ca719885ff053542c4' \
+	  '76994337c404da1bf74bcbe2d55c8341ca6d6c34')
+Fconfopts="$Fconfopts --bindir=/usr/sbin"
+
+build() {
+	Fbuild
+	Fdoc README.Frugalware
+}
+
+# optimization OK
addfile ./source/apps-extra/monit/README.Frugalware
hunk ./source/apps-extra/monit/README.Frugalware 1
+You can set up Monit by adding these lines to /etc/inittab:
+
+# Run monit in standard run-levels
+mo:2345:respawn:/usr/sbin/monit -Ic /etc/monit/monitrc
addfile ./source/apps-extra/monit/monit-4.8.1-change-conf-file-path.patch
hunk ./source/apps-extra/monit/monit-4.8.1-change-conf-file-path.patch 1
+--- file-orig.c	Tue Apr  5 16:56:26 2005
++++ file.c	Tue Apr  5 16:58:55 2005
+@@ -155,6 +155,11 @@
+     return (rcfile);
+   }
+   memset(rcfile, 0, STRLEN);
++  snprintf(rcfile, STRLEN, "/etc/monit/%s", MONITRC);
++  if(File_exist(rcfile)) {
++    return (rcfile);
++  }
++  memset(rcfile, 0, STRLEN);
+   snprintf(rcfile, STRLEN, "/etc/%s", MONITRC);
+   if(File_exist(rcfile)) {
+     return (rcfile);
+@@ -170,8 +175,8 @@
+     return (rcfile);
+   }
+   LogError("%s: Cannot find the control file at "
+-      "~/.%s, /etc/%s, /usr/local/etc/%s or at ./%s \n",
+-      prog, MONITRC, MONITRC, MONITRC, MONITRC);
++      "~/.%s, /etc/monit/%s, /etc/%s, /usr/local/etc/%s or at ./%s \n",
++      prog, MONITRC, MONITRC, MONITRC, MONITRC, MONITRC);
+   exit(1);
+   
+ }
addfile ./source/apps-extra/monit/monit-4.8.1-fix-man-page-paths.patch
hunk ./source/apps-extra/monit/monit-4.8.1-fix-man-page-paths.patch 1
+--- monit-orig.1	Tue Apr  5 17:01:31 2005
++++ monit.1	Tue Apr  5 17:06:07 2005
+@@ -301,8 +301,8 @@
+ .IX Header "HOW TO MONITOR"
+ monit is configured and controlled via a control file called
+ \&\fBmonitrc\fR. The default location for this file is ~/.monitrc. If
+-this file does not exist, monit will try /etc/monitrc, then
+-/usr/local/etc/monitrc and finally ./monitrc.
++this file does not exist, monit will try /etc/monit/monitrc, then
++/etc/monitrc, then /usr/local/etc/monitrc and finally ./monitrc.
+ .PP
+ A monit control file consists of a series of service entries and
+ global option statements in a free\-format, token-oriented syntax.
+@@ -445,7 +445,7 @@
+ .PP
+ .Vb 2
+ \&  # Run monit in standard run\-levels
+-\&  mo:2345:respawn:/usr/local/bin/monit \-Ic /etc/monitrc
++\&  mo:2345:respawn:/usr/sbin/monit \-Ic /etc/monit/monitrc
+ .Ve
+ .PP
+ After you have modified init's configuration file, you can run
+@@ -1414,7 +1414,7 @@
+ script. Example:
+ .PP
+ .Vb 3
+-\& check file monit.bin with path "/usr/local/bin/monit"
++\& check file monit.bin with path "/usr/sbin/monit"
+ \&       if failed permission 0555 then unmonitor
+ \&       alert foo at bar
+ .Ve
+@@ -3219,7 +3219,7 @@
+ .IX Item "4. monit starts the node group"
+ .PD
+ .PP
+-\&\fBMonit: \f(BI/etc/monitrc\fB\fR
++\&\fBMonit: \f(BI/etc/monit/monitrc\fB\fR
+ .PP
+ This example describes a cluster with 2 nodes. Services running
+ on Node 1 are in the group \fInode1\fR and Node 2 services are in
+@@ -3310,7 +3310,7 @@
+ .PP
+ .Vb 2
+ \& #/etc/inittab
+-\& mo:2345:respawn:/usr/local/bin/monit \-d 10 \-c /etc/monitrc \-g local
++\& mo:2345:respawn:/usr/sbin/monit \-d 10 \-c /etc/monit/monitrc \-g local
+ .Ve
+ .PP
+ \&\fBheartbeat:  \f(BI/etc/ha.d/haresources\fB\fR
+@@ -3333,7 +3333,7 @@
+ \& #
+ \& # sample script for starting/stopping all services on node1
+ \& #
+-\& prog="/usr/local/bin/monit \-g node1"
++\& prog="/usr/sbin/monit \-g node1"
+ \& start()
+ \& {
+ \&       echo \-n $"Starting $prog:"
+@@ -3386,9 +3386,9 @@
+ \&\fI~/.monitrc\fR  
+    Default run control file
+ .PP
+-\&\fI/etc/monitrc\fR
++\&\fI/etc/monit/monitrc\fR
+    If the control file is not found in the default 
+-   location and /etc contains a \fImonitrc\fR file, this
++   location and /etc/monit contains a \fImonitrc\fR file, this
+    file will be used instead.
+ .PP
+ \&\fI./monitrc\fR  
+@@ -3493,6 +3493,8 @@
+ Rory Toma <rory at digeo.com>
+ .PP
+ See also http://www.tildeslash.com/monit/who.html
+++.PP
+++Edited by Stefan Alfredsson <alfs at debian.org> for the Debian project.
+ .SH "COPYRIGHT"
+ .IX Header "COPYRIGHT"
+ Copyright (C) 2000\-2005 by the monit project group. All Rights
}


More information about the Frugalware-darcs mailing list