summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2016-02-06 23:30:42 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-07 15:06:56 +0700
commit4bbd289c7c30a1df0d640f16658dca7c0cc69f59 (patch)
treeab8246acfea5568081f21396ce8a387e349f8c5a /libraries
parent3236f58d492043f86216cfacc31b5ca7afa81f9c (diff)
downloadslackbuilds-4bbd289c7c30a1df0d640f16658dca7c0cc69f59.tar.gz
libraries/php-redis: Add missing pecl registration.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries')
-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 3f7d33d743..df404cf705 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 311b910869..261415886f 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}