View | Details | Raw Unified | Return to bug 145617
Collapse All | Expand All

(-)/usr/ports/sunpoet/eaccelerator/Makefile (-18 / +6 lines)
Lines 6-26 Link Here
6
#
6
#
7
7
8
PORTNAME=	eaccelerator
8
PORTNAME=	eaccelerator
9
PORTVERSION=	0.9.5.3
9
PORTVERSION=	0.9.6
10
CATEGORIES=	www
10
CATEGORIES=	www
11
MASTER_SITES=	http://bart.eaccelerator.net/source/${PORTVERSION}/
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/eAccelerator%20${PORTVERSION}/ \
12
		http://bart.eaccelerator.net/source/${PORTVERSION}/
12
13
13
MAINTAINER=	ale@FreeBSD.org
14
MAINTAINER=	ale@FreeBSD.org
14
COMMENT=	An opcode cache for PHP with encoder and loader
15
COMMENT=	A free open-source PHP accelerator & optimizer
15
16
17
IGNORE_WITH_PHP=4
16
USE_PHP=	session
18
USE_PHP=	session
17
USE_PHPIZE=	yes
19
USE_PHPIZE=	yes
18
USE_PHP_BUILD=	yes
20
USE_PHP_BUILD=	yes
19
21
20
CONFIGURE_ARGS=	--enable-eaccelerator=shared \
22
CONFIGURE_ARGS=	--enable-eaccelerator=shared \
23
		--with-eaccelerator-content-caching \
21
		--with-eaccelerator-shared-memory \
24
		--with-eaccelerator-shared-memory \
22
		--with-eaccelerator-sessions \
25
		--with-eaccelerator-sessions \
23
		--with-eaccelerator-content-caching \
24
		--with-eaccelerator-userid=80
26
		--with-eaccelerator-userid=80
25
27
26
USE_BZIP2=	yes
28
USE_BZIP2=	yes
Lines 31-54 Link Here
31
33
32
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
33
35
34
.if ${PHP_VER} == 5
35
CONFIGURE_ARGS+=	--without-eaccelerator-encoder
36
PLIST_SUB+=		ENCODER="@comment "
37
.else
38
PLIST_SUB+=		ENCODER=""
39
40
post-build:
41
	@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \
42
		${WRKSRC}/encoder.php > ${WRKSRC}/encoder
43
.endif
44
45
do-install:
36
do-install:
46
	@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
37
	@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
47
	${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
38
	${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
48
	       ${PREFIX}/lib/php/${PHP_EXT_DIR}
39
	       ${PREFIX}/lib/php/${PHP_EXT_DIR}
49
.if ${PHP_VER} == 4
50
	${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
51
.endif
52
40
53
post-install:
41
post-install:
54
.if !defined(NOPORTDOCS)
42
.if !defined(NOPORTDOCS)
(-)/usr/ports/sunpoet/eaccelerator/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (eaccelerator-0.9.5.3.tar.bz2) = caf797223739516882f870342f74b935
1
MD5 (eaccelerator-0.9.6.tar.bz2) = 85fa6150265a81f0cea852bc973382b9
2
SHA256 (eaccelerator-0.9.5.3.tar.bz2) = aa4f0e7817e0193d698db71cc858f45461c2820266941ae2034eb1b82c379e45
2
SHA256 (eaccelerator-0.9.6.tar.bz2) = ab1f309078d04ede3297b96f6c2689104e349e11e61376866f59c983ddde9a56
3
SIZE (eaccelerator-0.9.5.3.tar.bz2) = 555631
3
SIZE (eaccelerator-0.9.6.tar.bz2) = 105833
(-)/usr/ports/sunpoet/eaccelerator/files/patch-encoder.php (-33 lines)
Lines 1-33 Link Here
1
--- encoder.php.orig	Fri May  6 10:26:43 2005
2
+++ encoder.php	Thu Feb  2 09:39:47 2006
3
@@ -1,10 +1,12 @@
4
+#!%%LOCALBASE%%/bin/php -f
5
+
6
 <?php
7
 $web_error = "";
8
 
9
 function eaccelerator_encoder_usage() {
10
-  echo "Usage:\tphp -q encoder.php [options] source_file_name\n";
11
-  echo       "\tphp -q encoder.php [options] source_file_name...\n";
12
-  echo       "\tphp -q encoder.php [options] source_directory_name...\n\n";
13
+  echo "Usage:\tencoder [options] source_file_name\n";
14
+  echo       "\tencoder [options] source_file_name...\n";
15
+  echo       "\tencoder [options] source_directory_name...\n\n";
16
   echo "Options:\n";
17
   echo "\t-s suffix\n\t\tencode files only with following suffix (default is \"php\")\n";
18
   echo "\t-a\n\t\tencode all files (no by default)\n";
19
@@ -17,10 +19,10 @@
20
   echo               "\t\tfile name. If you encode directory or several files at once\n";
21
   echo               "\t\tthen 'target' specifyes an output directory name.\n";
22
   echo "\nExamples:\n";
23
-  echo "\tphp -q encoder.php some_file.php\n";
24
-  echo "\tphp -q encoder.php some_file.php -o some_encoded_file.php\n";
25
-  echo "\tphp -q encoder.php *.php -o some_dir\n";
26
-  echo "\tphp -q encoder.php ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
27
+  echo "\tencoder some_file.php\n";
28
+  echo "\tencoder some_file.php -o some_encoded_file.php\n";
29
+  echo "\tencoder *.php -o some_dir\n";
30
+  echo "\tencoder ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
31
   echo "\n";
32
   exit();
33
 }
(-)/usr/ports/sunpoet/eaccelerator/pkg-descr (-13 / +6 lines)
Lines 1-17 Link Here
1
eAccelerator is a opcode cache for PHP. It increases
1
eAccelerator is a free open-source PHP accelerator & optimizer. It increases
2
performance of PHP scripts by caching them in compiled state,
2
the performance of PHP scripts by caching them in their compiled state, so
3
so that the overhead of compiling is almost completely eliminated.
3
that the overhead of compiling is almost completely eliminated. It also
4
Also it uses some optimizations for speed up of PHP scripts execution.
4
optimizes scripts to speed up their execution. eAccelerator typically reduces
5
eAccelerator typically reduces server load and increases
5
server load and increases the speed of your PHP code by 1-10 times.
6
the speed of your PHP code by 1-10 times.
7
6
8
eAccelerator contains PHP encoder and loader. You can encode any PHP
7
WWW:	http://eaccelerator.net/
9
scripts with encoder to distribute them without sources. Encoded files
10
can be run on any site which runs PHP with eAccelerator. The sources
11
of encoded script can't be restored because they are stored in a compiled
12
form and the encoded version doesn't contain the source. 
13
14
WWW: http://eaccelerator.net/
15
8
16
- Alex Dupre
9
- Alex Dupre
17
ale@FreeBSD.org
10
ale@FreeBSD.org
(-)/usr/ports/sunpoet/eaccelerator/pkg-plist (-1 lines)
Lines 1-4 Link Here
1
%%ENCODER%%bin/encoder
2
lib/php/%%PHP_EXT_DIR%%/eaccelerator.so
1
lib/php/%%PHP_EXT_DIR%%/eaccelerator.so
3
@dirrmtry lib/php/%%PHP_EXT_DIR%%
2
@dirrmtry lib/php/%%PHP_EXT_DIR%%
4
%%EXAMPLESDIR%%/control.php
3
%%EXAMPLESDIR%%/control.php

Return to bug 145617