summaryrefslogtreecommitdiffstats
path: root/libraries/eaccelerator/eaccelerator.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/eaccelerator/eaccelerator.SlackBuild')
-rw-r--r--libraries/eaccelerator/eaccelerator.SlackBuild33
1 files changed, 29 insertions, 4 deletions
diff --git a/libraries/eaccelerator/eaccelerator.SlackBuild b/libraries/eaccelerator/eaccelerator.SlackBuild
index 0052d6788c..b56d4d38b5 100644
--- a/libraries/eaccelerator/eaccelerator.SlackBuild
+++ b/libraries/eaccelerator/eaccelerator.SlackBuild
@@ -1,11 +1,33 @@
#!/bin/sh
# Slackware build script for eaccelerator
+
+# Copyright 2012 Willy Sudiarto Raharjo <willysr@slackware-id.org>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
# Originally written by javivf@gmail.com 2008/07/27
# Updated by sl@not-only-pixel.de 2010/06/24
+# Updated by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=eaccelerator
-VERSION=${VERSION:-0.9.6.1}
+VERSION=${VERSION:-42067ac}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,8 +64,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -53,6 +75,9 @@ find . \
phpize
+# locate the php-config installation directory dynamically
+phpconf=$(php-config --prefix)
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -61,7 +86,7 @@ CFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--build=$ARCH-slackware-linux \
--enable-eaccelerator=shared \
- --with-php-config=/usr/bin/php-config
+ --with-php-config=$phpconf/bin/php-config
make
make test