diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2016-02-06 23:11:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-07 15:06:56 +0700 |
commit | bf88e104d3a328d1c3f335dec2ec7a361495967d (patch) | |
tree | 26645f7ccf0a7ad06e5f479d2bf72911ffe5b657 /libraries/php-memcached/php-memcached.SlackBuild | |
parent | efe1f0a791d065e840f826761ddb0225db0972f7 (diff) |
libraries/php-memcached: Fix php ini file location.
Also added missing pecl registration.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/php-memcached/php-memcached.SlackBuild')
-rw-r--r-- | libraries/php-memcached/php-memcached.SlackBuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libraries/php-memcached/php-memcached.SlackBuild b/libraries/php-memcached/php-memcached.SlackBuild index 9be3f5183b717..590012d6a10c9 100644 --- a/libraries/php-memcached/php-memcached.SlackBuild +++ b/libraries/php-memcached/php-memcached.SlackBuild @@ -24,9 +24,10 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +SRCNAM=memcached PRGNAM=php-memcached VERSION=${VERSION:-2.2.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -59,11 +60,11 @@ fi set -e rm -rf $PKG -rm -rf $TMP/$PRGNAM-$VERSION mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION package.xml +tar xvf $CWD/$SRCNAM-$VERSION.tgz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -85,8 +86,12 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make install-modules INSTALL_ROOT=$PKG -mkdir -p $PKG/etc/php/ -install -m 644 memcached.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/memcached.xml + +mkdir -p $PKG/etc/php.d/ +install -m 644 memcached.ini $PKG/etc/php.d/memcached.ini.new find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -97,6 +102,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +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} |