Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23509 - new build: turck-mmcache-2.3.17.ebuild
Summary: new build: turck-mmcache-2.3.17.ebuild
Status: RESOLVED DUPLICATE of bug 23360
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-26 00:56 UTC by S.Caglar Onur
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
turck-mmcache-2.3.17.ebuild (turck-mmcache-2.3.17.ebuild,2.47 KB, text/plain)
2003-06-26 00:58 UTC, S.Caglar Onur
Details
ChangeLog (ChangeLog,492 bytes, text/plain)
2003-06-26 00:58 UTC, S.Caglar Onur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S.Caglar Onur 2003-06-26 00:56:39 UTC
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Turck MMCache is a free open source PHP accelerator, optimizer,
encoder and dynamic content cache for PHP"
HOMEPAGE="http://www.turcksoft.ru"
SRC_URI="mirror://sourceforge/turck-mmcache/turck-mmcache-${PV}.tar.gz"

LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="=mod_php-4.3.2"
RDEPEND="=mod_php-4.3.2"

S=${WORKDIR}/${P}

src_compile() {
	phpize
	./configure --enable-mmcache=shared
	emake
}

src_install () {
	exeinto /etc/php4/lib
	doexe modules/mmcache.so

	dodoc CREDITS EXPERIMENTAL README TODO 
	dodoc encoder.php mmcache.php mmcache.gif
}

pkg_postinst() {
	echo "Performing post-installation routines for ${P}."

	cp /etc/php4/php.ini /etc/php4/php.ini.mmcache

	echo " extension=\"/etc/php4/lib/mmcache.so\"" >> /etc/php4/php.ini
	echo " mmcache.shm_size=\"16\"" >> /etc/php4/php.ini
	echo " mmcache.cache_dir=\"/tmp/mmcache\"" >> /etc/php4/php.ini
	echo " mmcache.enable=\"1\"" >> /etc/php4/php.ini
	echo " mmcache.optimizer=\"1\"" >> /etc/php4/php.ini
	echo " mmcache.check_mtime=\"1\"" >> /etc/php4/php.ini
	echo " mmcache.debug=\"0\"" >> /etc/php4/php.ini
	echo " mmcache.filter=\"\"" >> /etc/php4/php.ini
	echo " mmcache.shm_max=\"0\"" >> /etc/php4/php.ini
	echo " mmcache.shm_ttl=\"0\"" >> /etc/php4/php.ini
	echo " mmcache.shm_prune_period=\"0\"" >> /etc/php4/php.ini

	mkdir /tmp/mmcache
	chmod 0777 /tmp/mmcache

	einfo THE TURCK MMCACHE EXTENSION IS EXPERIMENTAL!
	einfo USE IT AT YOUR OWN RISK YOU HAVE BEEN WARNED!
	einfo
	einfo Turck MMCache can be managed through web interface script mmcache.php
	einfo So you need to put this file on your web site. For security reasons it is
	einfo recommended to restrict the usage of this script by your local IP.
	einfo mmcache.php can be found in /usr/share/doc/turck-mmcache-${PV}

	einfo
	einfo Please don\'t use Turck MMCache Encoder for commercial purpose until Turck
	einfo MMCache version 2.4.0 is out. The format of encoded files may be changed
	einfo and it is possible that the old formats will not be supported.
	einfo encoder.php can be found in /usr/share/doc/turck-mmcache-${PV}

	einfo
	einfo Please reload Apache to activate the changes
	einfo
}

pkg_prerm() {
	echo "Performing pre-removal routines for ${P}."
	mv -f  /etc/php4/php.ini.mmcache /etc/php4/php.ini
	rm -f  /etc/php4/lib/mmcache.so
	rm -rf /tmp/mmcache
}

pkg_postrm() {
	einfo
	einfo Please reload Apache to activate the changes
	einfo
}


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
İ tested several times that seems there is no problem and its quite stable


# ChangeLog for dev-php/turck-mmcache
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
# $Header: $

*turck-mmcache-2.3.17 (25 June 2003)

  25 June 2003; S.Caglar Onur <caglar.onur@tubitak.gov.tr> 
  turck-mmcache-2.3.17.ebuild :

	Please don't use Turck MMCache Encoder for commercial purpose until Turck
	MMCache version 2.4.0 is out. The format of encoded files may be changed
	and it is possible that the old formats will not be supported.

	ebuild created
Comment 1 S.Caglar Onur 2003-06-26 00:58:00 UTC
Created attachment 13875 [details]
turck-mmcache-2.3.17.ebuild
Comment 2 S.Caglar Onur 2003-06-26 00:58:43 UTC
Created attachment 13876 [details]
ChangeLog
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-26 02:08:19 UTC
This seems to be a duplicate of bug #23360.
Would the two of you please work to merge your changes together and create a single superior ebuild and then post it under bug #23360.

*** This bug has been marked as a duplicate of 23360 ***