summaryrefslogtreecommitdiff
path: root/system/cfengine/cfengine.SlackBuild
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 00:39:50 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:39:50 +0200
commit8cff5da6f72d5fa2cf1dd92c5203e917b3351df4 (patch)
tree1360c076737af87d3f6ba7705057ff08a7cfca36 /system/cfengine/cfengine.SlackBuild
parent6b1ad0b11dbc90348450a83543a9361c9c41582d (diff)
downloadslackbuilds-8cff5da6f72d5fa2cf1dd92c5203e917b3351df4.tar.gz
system/cfengine: Updated for version 2.2.10
Diffstat (limited to 'system/cfengine/cfengine.SlackBuild')
-rw-r--r--system/cfengine/cfengine.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/cfengine/cfengine.SlackBuild b/system/cfengine/cfengine.SlackBuild
index 9bc0b73977..62e37582b1 100644
--- a/system/cfengine/cfengine.SlackBuild
+++ b/system/cfengine/cfengine.SlackBuild
@@ -8,7 +8,7 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=cfengine
-VERSION=2.2.9
+VERSION=2.2.10
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -20,10 +20,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 # Exit on most errors
@@ -51,9 +54,10 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--infodir=/usr/info \
--datadir=/usr/doc \
- --libdir=/usr/lib \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-shared=yes \
- --enable-static=no
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -122,4 +126,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}