mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
system/monit: Updated for version 5.0
This commit is contained in:
parent
bcd2d19d54
commit
8850ea1106
5 changed files with 36 additions and 32 deletions
|
@ -1,6 +1,3 @@
|
|||
monit - Unix System Management
|
||||
|
||||
Monit is a utility for managing and monitoring processes,
|
||||
files, directories and devices on a Unix system. Monit conducts
|
||||
automatic maintenance and repair and can execute meaningful causal
|
||||
actions in error situations.
|
||||
Monit is a utility for managing and monitoring processes, files, directories,
|
||||
and devices on a Unix system. Monit conducts automatic maintenance and repair
|
||||
and can execute meaningful causal actions in error situations.
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=monit
|
||||
VERSION=4.9
|
||||
VERSION=5.0
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -37,14 +37,18 @@ if [ "$ARCH" = "i486" ]; then
|
|||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP || exit 1
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
|
@ -53,10 +57,18 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
|| exit 1
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
make
|
||||
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
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" \
|
||||
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
|
@ -66,15 +78,12 @@ if [ -d $PKG/usr/man ]; then
|
|||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CHANGES.txt CONTRIBUTORS COPYING doc FAQ.txt LICENSE PLATAFORMS \
|
||||
README README.ssl STATUS UPGRADE.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CHANGES.txt CONTRIBUTORS COPYING FAQ.txt LICENSE PACKAGES PLATFORMS \
|
||||
README* doc/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
cat $CWD/rc.monit > $PKG/etc/rc.d/rc.monit.new
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -c n -l y -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="monit"
|
||||
VERSION="4.9"
|
||||
HOMEPAGE="http://www.tildeslash.com/monit/index.php"
|
||||
DOWNLOAD="http://www.tildeslash.com/monit/dist/monit-4.9.tar.gz"
|
||||
MD5SUM="bcbaab776a54d1e34e3a057c925de9ca"
|
||||
VERSION="5.0"
|
||||
HOMEPAGE="http://mmonit.com/monit/"
|
||||
DOWNLOAD="http://mmonit.com/monit/dist/monit-5.0.tar.gz"
|
||||
MD5SUM="61e13c0c6f5ad396e12a7692135d8737"
|
||||
MAINTAINER="Ricardson Williams"
|
||||
EMAIL="ricardsonwilliams@yahoo.com.br"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
|-----handy-ruler-------------------------------------------------------|
|
||||
monit: monit (Unix System Management)
|
||||
monit:
|
||||
monit:
|
||||
monit: Monit is a utility for managing and monitoring processes,
|
||||
monit: files, directories and devices on a Unix system. Monit conducts
|
||||
monit: automatic maintenance and repair and can execute meaningful causal
|
||||
monit: actions in error situations.
|
||||
monit:
|
||||
monit: Homepage: http://www.tildeslash.com/monit/index.php
|
||||
monit:
|
||||
monit:
|
||||
monit:
|
||||
monit:
|
||||
monit: Homepage: http://mmonit.com/monit/
|
||||
monit:
|
||||
monit:
|
||||
monit:
|
||||
|
|
Loading…
Reference in a new issue