summaryrefslogtreecommitdiff
path: root/libraries/php-memcache/php-memcache.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2016-02-06 23:00:55 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-07 15:06:56 +0700
commitefe1f0a791d065e840f826761ddb0225db0972f7 (patch)
treead869bedac7f1c93e3a1c1a86cea13a985f111de /libraries/php-memcache/php-memcache.SlackBuild
parent2bbc12521017aa78be5170ee4a47d418d2f4f81e (diff)
downloadslackbuilds-efe1f0a791d065e840f826761ddb0225db0972f7.tar.gz
libraries/php-memcache: Fix php ini file location.
Also added missing pecl registration. Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/php-memcache/php-memcache.SlackBuild')
-rw-r--r--libraries/php-memcache/php-memcache.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/php-memcache/php-memcache.SlackBuild b/libraries/php-memcache/php-memcache.SlackBuild
index a63b9c7b97..b59144e219 100644
--- a/libraries/php-memcache/php-memcache.SlackBuild
+++ b/libraries/php-memcache/php-memcache.SlackBuild
@@ -25,7 +25,7 @@
SRCNAM=memcache
PRGNAM=php-memcache
VERSION=${VERSION:-3.0.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -89,11 +89,14 @@ CXXFLAGS="$SLKCFLAGS" \
make
EXTENSION_DIR="$PKG/$($PHP_CONFIG --extension-dir)"
-mkdir -p $EXTENSION_DIR $PKG/etc/php
+mkdir -p $EXTENSION_DIR $PKG/etc/php.d
make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR
-install -m 644 $CWD/memcache.ini $PKG/etc/php/memcache.ini.new
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml
+install -m 644 $TMP/package.xml $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml/memcache.xml
+
+install -m 644 $CWD/memcache.ini $PKG/etc/php.d/memcache.ini.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -105,7 +108,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+sed "s|LIBDIRSUFFIX|$LIBDIRSUFFIX|" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}