summaryrefslogtreecommitdiff
path: root/system/monit
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-20 00:18:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-20 00:18:51 +0700
commit6c9e39f8c15daf0fa5caa731850fc5f21f17cd1b (patch)
tree3b0e970a453ff5de26ccfd890826cde4851cfc11 /system/monit
parent7359576c971fa7905337f08160effcb8dc254b5e (diff)
downloadslackbuilds-6c9e39f8c15daf0fa5caa731850fc5f21f17cd1b.tar.gz
system/monit: Updated for version 5.16.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/monit')
-rw-r--r--system/monit/doinst.sh19
-rw-r--r--system/monit/monit.SlackBuild6
-rw-r--r--system/monit/monit.info6
3 files changed, 19 insertions, 12 deletions
diff --git a/system/monit/doinst.sh b/system/monit/doinst.sh
index 1a24db5994..293507cbb1 100644
--- a/system/monit/doinst.sh
+++ b/system/monit/doinst.sh
@@ -11,12 +11,17 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-# Keep same perms on rc.monit.new:
-if [ -e etc/rc.d/rc.monit ]; then
- cp -a etc/rc.d/rc.monit etc/rc.d/rc.monit.new.incoming
- cat etc/rc.d/rc.monit.new > etc/rc.d/rc.monit.new.incoming
- mv etc/rc.d/rc.monit.new.incoming etc/rc.d/rc.monit.new
-fi
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
-config etc/rc.d/rc.monit.new
+preserve_perms etc/rc.d/rc.monit.new
+config etc/monit.conf.new
diff --git a/system/monit/monit.SlackBuild b/system/monit/monit.SlackBuild
index 5381604f23..252e798821 100644
--- a/system/monit/monit.SlackBuild
+++ b/system/monit/monit.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=monit
-VERSION=${VERSION:-5.15}
+VERSION=${VERSION:-5.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -84,7 +84,7 @@ make install DESTDIR=$PKG
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.monit > $PKG/etc/rc.d/rc.monit.new
-chmod 0755 $PKG/etc/rc.d/rc.monit.new
+chmod 0644 $PKG/etc/rc.d/rc.monit.new
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -92,6 +92,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+cp monitrc $PKG/etc/monit.conf.new
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING CONTRIBUTORS README $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/system/monit/monit.info b/system/monit/monit.info
index 6e2861a794..1cc4156095 100644
--- a/system/monit/monit.info
+++ b/system/monit/monit.info
@@ -1,8 +1,8 @@
PRGNAM="monit"
-VERSION="5.15"
+VERSION="5.16"
HOMEPAGE="http://mmonit.com/monit/"
-DOWNLOAD="http://mmonit.com/monit/dist/monit-5.15.tar.gz"
-MD5SUM="c723745298d7ba6d28194b9f25eba6fe"
+DOWNLOAD="http://mmonit.com/monit/dist/monit-5.16.tar.gz"
+MD5SUM="d9e1b2392b1f737178543f54e3ea9488"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""