[Lunar-commits] CVS: moonbase/zbeta/turck-mmcache BUILD, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1 POST_REMOVE, NONE, 1.1

Jon South striker at lunar-linux.org
Thu Apr 22 22:11:29 GMT 2004


Update of /var/cvs/lunar/moonbase/zbeta/turck-mmcache
In directory dbguin.lunar-linux.org:/tmp/cvs-serv13141

Added Files:
	BUILD DEPENDS DETAILS POST_INSTALL POST_REMOVE 
Log Message:
Open source PHP accelerator


--- NEW FILE: BUILD ---
(

  /usr/bin/phpize					&&
  PHP_EXT_DIR="/usr/lib/php/extensions"			&&

  ./configure	--enable-mmcache=shared			\
		--with-php-config=/usr/bin/php-config	\
		$OPTS					&&

  make							&&

  # This should not be in the install log
  mkdir -p /usr/lib/php/extensions			&&
  mkdir -p /var/cache/mmcache				&&
  chmod 1777 /var/cache/mmcache				&&

  prepare_install					&&

  install -m 0755 modules/mmcache.so /usr/lib/php/extensions/turck-mmcache.so

) > $C_FIFO 2>&1

--- NEW FILE: DEPENDS ---
depends		php

--- NEW FILE: DETAILS ---
          MODULE=turck-mmcache
         VERSION=2.4.6
          SOURCE=$MODULE-$VERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
      SOURCE_URL=$SFORGE_URL/$MODULE/$SOURCE
      SOURCE_VFY=md5:8edaf6cd647e7c521b5360f4e2d4ee6f
        WEB_SITE=http://turck-mmcache.sourceforge.net/
         ENTERED=20040422
         UPDATED=20040422
           SHORT="Open source PHP accelerator"
cat << EOF
Turck MMCache is a free open source PHP accelerator, optimizer, encoder and
dynamic content cache for PHP. It increases performance of PHP scripts by
caching them in compiled state, so that the overhead of compiling is almost
completely eliminated. Also it uses some optimizations to speed up execution
of PHP scripts. Turck MMCache typically reduces server load and increases the
speed of your PHP code by 1-10 times. 
EOF

--- NEW FILE: POST_INSTALL ---

if [ -f /etc/php.ini ] ; then
  if ! grep -q "turck-mmcache\.so" /etc/php.ini ; then
    cat >> /etc/php.ini << EOF
extension="/usr/lib/php/extensions/turck-mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/var/cache/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"
EOF
  fi
fi

# Restart apache (if it actually exists)
/usr/sbin/apachectl graceful 2>/dev/null

--- NEW FILE: POST_REMOVE ---

cp -f /etc/php.ini /tmp/php.ini

grep -v "^mmcache\..*" /tmp/php.ini | grep -v "^extension.*turck-mmcache\.so.*" >/etc/php.ini
rm   -f /tmp/php.ini

/usr/sbin/apachectl graceful 2>/dev/null



More information about the Lunar-commits mailing list