aboutsummaryrefslogtreecommitdiff
path: root/libraries/php-redis
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/php-redis')
-rw-r--r--libraries/php-redis/doinst.sh4
-rw-r--r--libraries/php-redis/php-redis.SlackBuild7
2 files changed, 9 insertions, 2 deletions
diff --git a/libraries/php-redis/doinst.sh b/libraries/php-redis/doinst.sh
index 3f7d33d7436e..df404cf70558 100644
--- a/libraries/php-redis/doinst.sh
+++ b/libraries/php-redis/doinst.sh
@@ -12,3 +12,7 @@ config() {
}
config etc/php.d/redis.ini.new
+
+/usr/bin/pecl install --nodeps --soft --force --register-only --nobuild \
+ usr/libLIBDIRSUFFIX/php/.pkgxml/redis.xml > /dev/null
+
diff --git a/libraries/php-redis/php-redis.SlackBuild b/libraries/php-redis/php-redis.SlackBuild
index 311b91086912..261415886fb3 100644
--- a/libraries/php-redis/php-redis.SlackBuild
+++ b/libraries/php-redis/php-redis.SlackBuild
@@ -25,7 +25,7 @@
SRCNAM=redis
PRGNAM=php-redis
VERSION=${VERSION:-2.2.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -94,6 +94,9 @@ mkdir -p $EXTENSION_DIR $PKG/etc/php.d
make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml
+install -m 644 $TMP/package.xml $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml/redis.xml
+
install -m 644 $CWD/redis.ini $PKG/etc/php.d/redis.ini.new
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -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}