diff options
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} |