/[gentoo-x86]/dev-php5/eaccelerator/eaccelerator-0.9.5_rc1.ebuild
Gentoo

Contents of /dev-php5/eaccelerator/eaccelerator-0.9.5_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 11 13:59:02 2006 UTC (11 years, 3 months ago) by sebastian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, remove release candidate.
(Portage version: 2.1.2_pre2-r8)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.5_rc1.ebuild,v 1.2 2006/08/21 17:52:20 chtekk Exp $
4
5 PHP_EXT_NAME="eaccelerator"
6 PHP_EXT_INI="yes"
7 PHP_EXT_ZENDEXT="yes"
8
9 [[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator"
10
11 inherit php-ext-source-r1
12
13 MY_P="${P/_/-}"
14 S="${WORKDIR}/${MY_P}"
15
16 KEYWORDS="~amd64 ~x86"
17 DESCRIPTION="A PHP Accelerator & Encoder."
18 HOMEPAGE="http://www.eaccelerator.net/"
19 SRC_URI="mirror://sourceforge/eaccelerator/${MY_P}.tar.bz2"
20 LICENSE="GPL-2"
21 SLOT="0"
22 IUSE="contentcache disassembler inode session sharedmem"
23
24 DEPEND="${DEPEND}
25 !dev-php5/pecl-apc"
26
27 # Webserver user and group, here for Apache.
28 HTTPD_USER="apache"
29 HTTPD_GROUP="apache"
30
31 need_php_by_category
32
33 pkg_setup() {
34 has_php
35
36 require_php_sapi_from cgi apache apache2
37
38 if use session ; then
39 require_php_with_use session zlib
40 else
41 require_php_with_use zlib
42 fi
43 }
44
45 src_compile() {
46 has_php
47
48 my_conf="--enable-eaccelerator=shared"
49
50 use contentcache && my_conf="${my_conf} --with-eaccelerator-content-caching"
51 use disassembler && my_conf="${my_conf} --with-eaccelerator-disassembler"
52 use session && my_conf="${my_conf} --with-eaccelerator-sessions"
53 use sharedmem && my_conf="${my_conf} --with-eaccelerator-shared-memory"
54 use !inode && my_conf="${my_conf} --without-eaccelerator-use-inode"
55
56 php-ext-source-r1_src_compile
57 }
58
59 src_install() {
60 php-ext-source-r1_src_install
61
62 keepdir "${EACCELERATOR_CACHEDIR}"
63 fowners ${HTTPD_USER}:${HTTPD_GROUP} "${EACCELERATOR_CACHEDIR}"
64 fperms 750 "${EACCELERATOR_CACHEDIR}"
65
66 insinto "/usr/share/${PN}"
67 doins doc/php/*
68 dodoc-php AUTHORS ChangeLog COPYING NEWS README README.eLoader
69
70 php-ext-base-r1_addtoinifiles "eaccelerator.shm_size" '"28"'
71 php-ext-base-r1_addtoinifiles "eaccelerator.cache_dir" "\"${EACCELERATOR_CACHEDIR}\""
72 php-ext-base-r1_addtoinifiles "eaccelerator.enable" '"1"'
73 php-ext-base-r1_addtoinifiles "eaccelerator.optimizer" '"1"'
74 php-ext-base-r1_addtoinifiles "eaccelerator.check_mtime" '"1"'
75 php-ext-base-r1_addtoinifiles "eaccelerator.debug" '"0"'
76 php-ext-base-r1_addtoinifiles "eaccelerator.filter" '""'
77 php-ext-base-r1_addtoinifiles "eaccelerator.shm_max" '"0"'
78 php-ext-base-r1_addtoinifiles "eaccelerator.shm_ttl" '"0"'
79 php-ext-base-r1_addtoinifiles "eaccelerator.shm_prune_period" '"0"'
80 php-ext-base-r1_addtoinifiles "eaccelerator.shm_only" '"0"'
81 php-ext-base-r1_addtoinifiles "eaccelerator.compress" '"1"'
82 php-ext-base-r1_addtoinifiles "eaccelerator.compress_level" '"9"'
83 php-ext-base-r1_addtoinifiles "eaccelerator.keys" '"shm_and_disk"'
84 php-ext-base-r1_addtoinifiles "eaccelerator.sessions" '"shm_and_disk"'
85 php-ext-base-r1_addtoinifiles "eaccelerator.content" '"shm_and_disk"'
86 php-ext-base-r1_addtoinifiles ";eaccelerator.allowed_admin_path" '"/path/where/admin/files/shall/be/allowed"'
87 }
88
89 pkg_postinst() {
90 has_php
91
92 # You only need to restart the webserver if you're using mod_php.
93 if built_with_use =${PHP_PKG} apache || built_with_use =${PHP_PKG} apache2 ; then
94 einfo
95 einfo "You need to restart your Apache webserver to activate eAccelerator."
96 einfo
97 fi
98
99 einfo
100 einfo "A series of PHP function is available to manage eAccelerator."
101 einfo "Please see the files in /usr/share/${PN} for some examples"
102 einfo "and informations on those functions and how to use them."
103 einfo
104 }

  ViewVC Help
Powered by ViewVC 1.1.20