diff options
Diffstat (limited to 'libraries/php-ssh2')
-rw-r--r-- | libraries/php-ssh2/README | 2 | ||||
-rw-r--r-- | libraries/php-ssh2/doinst.sh | 5 | ||||
-rw-r--r-- | libraries/php-ssh2/php-ssh2.SlackBuild | 11 |
3 files changed, 12 insertions, 6 deletions
diff --git a/libraries/php-ssh2/README b/libraries/php-ssh2/README index cc353431e0..ed24317286 100644 --- a/libraries/php-ssh2/README +++ b/libraries/php-ssh2/README @@ -1,5 +1,5 @@ This extension enables PHP to connect to and use SSH2 servers. -To enable the pgsql extension for php, go to /etc/php/ssh2.ini +To enable the pgsql extension for php, go to /etc/php.d/ssh2.ini and uncomment the line: ; extension=ssh2.so diff --git a/libraries/php-ssh2/doinst.sh b/libraries/php-ssh2/doinst.sh index e5760e7218..34e7d19b76 100644 --- a/libraries/php-ssh2/doinst.sh +++ b/libraries/php-ssh2/doinst.sh @@ -11,5 +11,8 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -config etc/php/ssh2.ini.new +config etc/php.d/ssh2.ini.new + +/usr/bin/pecl install --nodeps --soft --force --register-only --nobuild \ + usr/libLIBDIRSUFFIX/php/.pkgxml/ssh2.xml > /dev/null diff --git a/libraries/php-ssh2/php-ssh2.SlackBuild b/libraries/php-ssh2/php-ssh2.SlackBuild index 9d7396544b..238f232ad1 100644 --- a/libraries/php-ssh2/php-ssh2.SlackBuild +++ b/libraries/php-ssh2/php-ssh2.SlackBuild @@ -25,7 +25,7 @@ SRCNAM=ssh2 PRGNAM=php-ssh2 VERSION=${VERSION:-0.12} -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/ssh2.ini $PKG/etc/php/ssh2.ini.new +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml +install -m 644 $TMP/package.xml $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml/ssh2.xml + +install -m 644 $CWD/ssh2.ini $PKG/etc/php.d/ssh2.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 @@ -104,7 +107,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} |