system/monit: Updated for version 5.0

This commit is contained in:
Ricardson Williams 2010-05-13 00:41:00 +02:00 committed by Robby Workman
parent 967dd61c94
commit 5baee68c8f
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# Slackware build script of monit
# Slackware build script of monit
# Copyright 2006 Ricardson Williams <ricardsonwilliams at yahoo.com.br>
# All rights reserved.
@ -24,7 +24,7 @@
PRGNAM=monit
VERSION=5.0
ARCH=${ARCH:-i486}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -56,6 +59,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
@ -86,4 +90,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -c n -l y -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -c n -l y -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="monit"
VERSION="5.0"
HOMEPAGE="http://mmonit.com/monit/"
DOWNLOAD="http://mmonit.com/monit/dist/monit-5.0.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="61e13c0c6f5ad396e12a7692135d8737"
MD5SUM_x86_64=""
MAINTAINER="Ricardson Williams"
EMAIL="ricardsonwilliams@yahoo.com.br"
APPROVED="rworkman"