summaryrefslogtreecommitdiff
path: root/system/monit/monit.SlackBuild
diff options
context:
space:
mode:
authorRicardson Williams <ricardsonwilliams@yahoo.com.br>2010-05-13 00:41:00 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:41:00 +0200
commit5baee68c8ffb4e36c02dafb71f6b640beae8cd9c (patch)
tree8bc3c7c597bb6f5a65792c629dfd6307ded68875 /system/monit/monit.SlackBuild
parent967dd61c946a23ede3c083d39ef1d077daffdbbb (diff)
downloadslackbuilds-5baee68c8ffb4e36c02dafb71f6b640beae8cd9c.tar.gz
system/monit: Updated for version 5.0
Diffstat (limited to 'system/monit/monit.SlackBuild')
-rw-r--r--system/monit/monit.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/system/monit/monit.SlackBuild b/system/monit/monit.SlackBuild
index cb06292f4f..671fd6fbd2 100644
--- a/system/monit/monit.SlackBuild
+++ b/system/monit/monit.SlackBuild
@@ -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}