mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Update to 2.3.10.
PR: 51976 Submitted by: maintainer
This commit is contained in:
parent
f903d995be
commit
62806b628a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80634
@ -6,13 +6,13 @@
|
||||
#
|
||||
|
||||
PORTNAME= turck-mmcache
|
||||
PORTVERSION= 2.3.9
|
||||
PORTVERSION= 2.3.10
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= sysadmin@alexdupre.com
|
||||
COMMENT= An opcode cache for PHP
|
||||
COMMENT= An opcode cache for PHP with encoder and loader
|
||||
|
||||
EXTRACT_DEPENDS=phpize:${PORTSDIR}/www/mod_php4
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/php/Zend/zend.h:${PORTSDIR}/www/mod_php4
|
||||
@ -45,11 +45,11 @@ APACHE_PORT?= ${PORTSDIR}/www/apache13
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/config.m4
|
||||
@${REINPLACE_CMD} -e 's,[[:cntrl:]]$$,,g' ${WRKSRC}/mmcache.c
|
||||
@${ECHO_MSG} "===> PHPizing for ${DISTNAME}"
|
||||
@cd ${WRKSRC} && ${LOCALBASE}/bin/phpize
|
||||
|
||||
post-build:
|
||||
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/encoder.php > ${WRKSRC}/encoder
|
||||
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%EXT_DIR%%|${EXT_DIR}|g" \
|
||||
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||
|
||||
@ -57,6 +57,9 @@ do-install:
|
||||
@${MKDIR} ${PREFIX}/lib/php/${EXT_DIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/modules/mmcache.so \
|
||||
${PREFIX}/lib/php/${EXT_DIR}
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/mmcache.php ${EXAMPLESDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (turck-mmcache-2.3.9.tar.gz) = d578827ef7914f6c9d7920ad0e27727d
|
||||
MD5 (turck-mmcache-2.3.10.tar.gz) = 6dd12cd6c122a821af1aa872b808704e
|
||||
|
37
www/eaccelerator/files/patch-encoder.php
Normal file
37
www/eaccelerator/files/patch-encoder.php
Normal file
@ -0,0 +1,37 @@
|
||||
--- encoder.php.orig Thu May 8 16:58:25 2003
|
||||
+++ encoder.php Thu May 8 17:00:00 2003
|
||||
@@ -1,25 +1,25 @@
|
||||
-#! /usr/bin/php -f
|
||||
+#! %%LOCALBASE%%/bin/php -f
|
||||
|
||||
<?php
|
||||
function mmcache_encoder_usage() {
|
||||
- echo "Usage:\tphp -q encoder.php [options] source_file_name\n";
|
||||
- echo "\tphp -q encoder.php [options] source_file_name...\n";
|
||||
- echo "\tphp -q encoder.php [options] source_directory_name...\n\n";
|
||||
+ echo "Usage:\tencoder [options] source_file_name\n";
|
||||
+ echo "\tencoder [options] source_file_name...\n";
|
||||
+ echo "\tencoder [options] source_directory_name...\n\n";
|
||||
echo "Options:\n";
|
||||
echo "\t-s suffix\n\t\tencode files only with following suffix (default is \"php\")\n";
|
||||
echo "\t-a\n\t\tencode all files (no by default)\n";
|
||||
echo "\t-l\n\t\tfollow symbolic links (no by default)\n";
|
||||
echo "\t-r\n\t\tencode directories recursively (no by default)\n";
|
||||
echo "\t-c\n\t\tcopy files those shouldn't be encoded (no by default)\n";
|
||||
- echo "\t-f\n\t\toverfrite existing files (no by default)\n";
|
||||
+ echo "\t-f\n\t\toverwrite existing files (no by default)\n";
|
||||
echo "\t-o target\n\t\tIf you encode only one script then 'target' specifyes an output\n";
|
||||
echo "\t\tfile name. If you encode directory or several files at once\n";
|
||||
echo "\t\tthen 'target' specifyes an output directory name.\n";
|
||||
echo "\nExamples:\n";
|
||||
- echo "\tphp -q encoder.php some_file.php\n";
|
||||
- echo "\tphp -q encoder.php some_file.php -o some_encoded_file.php\n";
|
||||
- echo "\tphp -q encoder.php *.php -o some_dir\n";
|
||||
- echo "\tphp -q encoder.php ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
|
||||
+ echo "\tencoder some_file.php\n";
|
||||
+ echo "\tencoder some_file.php -o some_encoded_file.php\n";
|
||||
+ echo "\tencoder *.php -o some_dir\n";
|
||||
+ echo "\tencoder ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
|
||||
echo "\n";
|
||||
exit();
|
||||
}
|
@ -5,6 +5,12 @@ Also it uses some optimizations for speed up of PHP scripts execution.
|
||||
Turck MMCache typically reduces server load and increases
|
||||
the speed of your PHP code by 1-10 times.
|
||||
|
||||
Turck MMCache contains PHP encoder and loader. You can encode any PHP
|
||||
scripts with encoder to distribute them without sources. Encoded files
|
||||
can be run on any site which runs PHP with Turck MMCache. The sources
|
||||
of encoded script can't be restored because they are stored in a compiled
|
||||
form and the encoded version doesn't contain the source.
|
||||
|
||||
WWW: http://www.turcksoft.com/en/e_mmc.htm
|
||||
|
||||
- Alex Dupre
|
||||
|
@ -1,4 +1,7 @@
|
||||
bin/encoder
|
||||
lib/php/%%EXT_DIR%%/mmcache.so
|
||||
%%PORTDOCS%%share/doc/turck-mmcache/README
|
||||
@unexec rmdir %D/lib/php/%%EXT_DIR%% 2> /dev/null || true
|
||||
share/examples/turck-mmcache/mmcache.php
|
||||
%%PORTDOCS%%@dirrm share/doc/turck-mmcache
|
||||
@dirrm share/examples/turck-mmcache
|
||||
|
@ -6,13 +6,13 @@
|
||||
#
|
||||
|
||||
PORTNAME= turck-mmcache
|
||||
PORTVERSION= 2.3.9
|
||||
PORTVERSION= 2.3.10
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= sysadmin@alexdupre.com
|
||||
COMMENT= An opcode cache for PHP
|
||||
COMMENT= An opcode cache for PHP with encoder and loader
|
||||
|
||||
EXTRACT_DEPENDS=phpize:${PORTSDIR}/www/mod_php4
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/php/Zend/zend.h:${PORTSDIR}/www/mod_php4
|
||||
@ -45,11 +45,11 @@ APACHE_PORT?= ${PORTSDIR}/www/apache13
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/config.m4
|
||||
@${REINPLACE_CMD} -e 's,[[:cntrl:]]$$,,g' ${WRKSRC}/mmcache.c
|
||||
@${ECHO_MSG} "===> PHPizing for ${DISTNAME}"
|
||||
@cd ${WRKSRC} && ${LOCALBASE}/bin/phpize
|
||||
|
||||
post-build:
|
||||
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/encoder.php > ${WRKSRC}/encoder
|
||||
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%EXT_DIR%%|${EXT_DIR}|g" \
|
||||
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||
|
||||
@ -57,6 +57,9 @@ do-install:
|
||||
@${MKDIR} ${PREFIX}/lib/php/${EXT_DIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/modules/mmcache.so \
|
||||
${PREFIX}/lib/php/${EXT_DIR}
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/mmcache.php ${EXAMPLESDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (turck-mmcache-2.3.9.tar.gz) = d578827ef7914f6c9d7920ad0e27727d
|
||||
MD5 (turck-mmcache-2.3.10.tar.gz) = 6dd12cd6c122a821af1aa872b808704e
|
||||
|
37
www/turck-mmcache/files/patch-encoder.php
Normal file
37
www/turck-mmcache/files/patch-encoder.php
Normal file
@ -0,0 +1,37 @@
|
||||
--- encoder.php.orig Thu May 8 16:58:25 2003
|
||||
+++ encoder.php Thu May 8 17:00:00 2003
|
||||
@@ -1,25 +1,25 @@
|
||||
-#! /usr/bin/php -f
|
||||
+#! %%LOCALBASE%%/bin/php -f
|
||||
|
||||
<?php
|
||||
function mmcache_encoder_usage() {
|
||||
- echo "Usage:\tphp -q encoder.php [options] source_file_name\n";
|
||||
- echo "\tphp -q encoder.php [options] source_file_name...\n";
|
||||
- echo "\tphp -q encoder.php [options] source_directory_name...\n\n";
|
||||
+ echo "Usage:\tencoder [options] source_file_name\n";
|
||||
+ echo "\tencoder [options] source_file_name...\n";
|
||||
+ echo "\tencoder [options] source_directory_name...\n\n";
|
||||
echo "Options:\n";
|
||||
echo "\t-s suffix\n\t\tencode files only with following suffix (default is \"php\")\n";
|
||||
echo "\t-a\n\t\tencode all files (no by default)\n";
|
||||
echo "\t-l\n\t\tfollow symbolic links (no by default)\n";
|
||||
echo "\t-r\n\t\tencode directories recursively (no by default)\n";
|
||||
echo "\t-c\n\t\tcopy files those shouldn't be encoded (no by default)\n";
|
||||
- echo "\t-f\n\t\toverfrite existing files (no by default)\n";
|
||||
+ echo "\t-f\n\t\toverwrite existing files (no by default)\n";
|
||||
echo "\t-o target\n\t\tIf you encode only one script then 'target' specifyes an output\n";
|
||||
echo "\t\tfile name. If you encode directory or several files at once\n";
|
||||
echo "\t\tthen 'target' specifyes an output directory name.\n";
|
||||
echo "\nExamples:\n";
|
||||
- echo "\tphp -q encoder.php some_file.php\n";
|
||||
- echo "\tphp -q encoder.php some_file.php -o some_encoded_file.php\n";
|
||||
- echo "\tphp -q encoder.php *.php -o some_dir\n";
|
||||
- echo "\tphp -q encoder.php ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
|
||||
+ echo "\tencoder some_file.php\n";
|
||||
+ echo "\tencoder some_file.php -o some_encoded_file.php\n";
|
||||
+ echo "\tencoder *.php -o some_dir\n";
|
||||
+ echo "\tencoder ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
|
||||
echo "\n";
|
||||
exit();
|
||||
}
|
@ -5,6 +5,12 @@ Also it uses some optimizations for speed up of PHP scripts execution.
|
||||
Turck MMCache typically reduces server load and increases
|
||||
the speed of your PHP code by 1-10 times.
|
||||
|
||||
Turck MMCache contains PHP encoder and loader. You can encode any PHP
|
||||
scripts with encoder to distribute them without sources. Encoded files
|
||||
can be run on any site which runs PHP with Turck MMCache. The sources
|
||||
of encoded script can't be restored because they are stored in a compiled
|
||||
form and the encoded version doesn't contain the source.
|
||||
|
||||
WWW: http://www.turcksoft.com/en/e_mmc.htm
|
||||
|
||||
- Alex Dupre
|
||||
|
@ -1,4 +1,7 @@
|
||||
bin/encoder
|
||||
lib/php/%%EXT_DIR%%/mmcache.so
|
||||
%%PORTDOCS%%share/doc/turck-mmcache/README
|
||||
@unexec rmdir %D/lib/php/%%EXT_DIR%% 2> /dev/null || true
|
||||
share/examples/turck-mmcache/mmcache.php
|
||||
%%PORTDOCS%%@dirrm share/doc/turck-mmcache
|
||||
@dirrm share/examples/turck-mmcache
|
||||
|
Loading…
Reference in New Issue
Block a user