From 18bd532b3a0c22f8a0d8f4a23a02d998c1a33650 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Thu, 15 May 2008 00:22:49 +0200 Subject: [PATCH] monit: Cleanup and updated 4.10.1 -> 5.0-beta1 --- monit/.md5sum | 4 ++-- monit/Pkgfile | 12 ++++++------ monit/monitd | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/monit/.md5sum b/monit/.md5sum index 217fc4ce1..34248311c 100644 --- a/monit/.md5sum +++ b/monit/.md5sum @@ -1,2 +1,2 @@ -d3143b0bbd79b53f1b019d2fc1dae656 monit-4.10.1.tar.gz -e6af101cfa3a89b325dda13b9efa238a monitd +afd3beb99cd421ada8e90c5affc9b106 monit-5.0-beta1.tar.gz +df9b36446f5ee63f67c1f9bdfebbbbc7 monitd diff --git a/monit/Pkgfile b/monit/Pkgfile index 4879aab89..0027664ac 100644 --- a/monit/Pkgfile +++ b/monit/Pkgfile @@ -5,18 +5,18 @@ # Depends on: openssl name=monit -version=4.10.1 +version=5.0-beta1 release=1 -source=(http://www.tildeslash.com/${name}/dist/${name}-${version}.tar.gz \ +source=(http://www.tildeslash.com/$name/dist/beta/$name-$version.tar.gz \ monitd) build() { - cd ${name}-${version} + cd $name-$version ./configure --prefix=/usr \ --mandir=/usr/man \ --sysconfdir=/usr/etc make - make DESTDIR=${PKG} install - install -D -m 0755 ${SRC}/monitd ${PKG}/etc/rc.d/monitd - install -D -m 0700 ${SRC}/${name}-${version}/monitrc ${PKG}/usr/etc/monitrc + make DESTDIR=$PKG install + install -D -m 0755 $SRC/monitd $PKG/etc/rc.d/monitd + install -D -m 0700 $SRC/$name-$version/monitrc $PKG/usr/etc/monitrc } diff --git a/monit/monitd b/monit/monitd index 867fc813a..a5c6f5b43 100644 --- a/monit/monitd +++ b/monit/monitd @@ -3,26 +3,26 @@ # /etc/rc.d/monitd: start/stop monit daemon # -config_file=/etc/monitrc +CONFIG=/usr/etc/monitrc case $1 in start) - /usr/bin/monit -c ${config_file} - ;; + /usr/bin/monit -c $CONFIG + ;; stop) - killall -q /usr/bin/monit + /usr/bin/killall -q /usr/bin/monit ;; reload) - /usr/bin/monit -c ${config_file} reload + /usr/bin/monit -c $CONFIG reload ;; restart) $0 stop sleep 1 $0 start - ;; + ;; *) - echo "usage: $0 [start|stop|reload|restart]" - ;; + echo "usage: $0 [start|stop|reload|restart]" + ;; esac # End of File