summaryrefslogtreecommitdiff
path: root/libraries/eaccelerator/eaccelerator.SlackBuild
diff options
context:
space:
mode:
authorStephan Lucas <sl@not-only-pixel.de>2010-06-29 23:43:42 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-07-08 00:13:25 -0500
commit93965aa270507aab209453415aae69ea443cc8e8 (patch)
tree0ad6bdb0e1b658b048b2016774aa26731efc99b5 /libraries/eaccelerator/eaccelerator.SlackBuild
parentf962e486fabf8626af999b131ff9fd2feef092a3 (diff)
downloadslackbuilds-93965aa270507aab209453415aae69ea443cc8e8.tar.gz
libraries/eaccelerator: Updated for version 0.9.6.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/eaccelerator/eaccelerator.SlackBuild')
-rw-r--r--libraries/eaccelerator/eaccelerator.SlackBuild57
1 files changed, 30 insertions, 27 deletions
diff --git a/libraries/eaccelerator/eaccelerator.SlackBuild b/libraries/eaccelerator/eaccelerator.SlackBuild
index 49aa29065e..0052d6788c 100644
--- a/libraries/eaccelerator/eaccelerator.SlackBuild
+++ b/libraries/eaccelerator/eaccelerator.SlackBuild
@@ -1,35 +1,32 @@
#!/bin/sh
# Slackware build script for eaccelerator
-# Written by javivf@gmail.com 2008/07/27
+# Originally written by javivf@gmail.com 2008/07/27
+# Updated by sl@not-only-pixel.de 2010/06/24
-APP=eaccelerator
-VERSION=0.9.5.3
+PRGNAM=eaccelerator
+VERSION=${VERSION:-0.9.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$APP
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING NEWS README"
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
@@ -39,14 +36,22 @@ else
LIBDIRSUFFIX=""
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$APP-$VERSION
-cd $TMP || exit 1
-tar -xjvf $CWD/$APP-$VERSION.tar.bz2 || exit 1
-cd $APP-$VERSION
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+phpize
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -55,23 +60,21 @@ CFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--build=$ARCH-slackware-linux \
- || exit 1
+ --enable-eaccelerator=shared \
+ --with-php-config=/usr/bin/php-config
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make test
-install -D -m 755 modules/eaccelerator.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/eaccelerator.so || exit 1
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/extensions
+cp -a modules/$PRGNAM.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions
-mkdir -p $PKG/usr/doc/$APP-$VERSION
-cp -a $DOCS $PKG/usr/doc/$APP-$VERSION
-find $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \;
-cat $CWD/$APP.SlackBuild > $PKG/usr/doc/$APP-$VERSION/$APP-SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING NEWS README eaccelerator.ini $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$APP-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}