mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
libraries/php-ssh2: Fix php ini file location.
Also added missing pecl registration. Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
4bbd289c7c
commit
ee09f3f1aa
3 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue