/[gentoo-alt]/trunk/prefix/eclass/php5-sapi-r3.eclass
Gentoo

Contents of /trunk/prefix/eclass/php5-sapi-r3.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 19735 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/php5-sapi-r3.eclass,v 1.23 2006/01/26 06:06:40 robbat2 Exp $
4 #
5 # ########################################################################
6 #
7 # eclass/php5-sapi-r3.eclass
8 # Eclass for building different php5 SAPI instances
9 #
10 # USE THIS ECLASS FOR PHP 5.1.x
11 # USE php5-sapi-r2 FOR PHP 5.0.x
12 #
13 # Based on robbat2's work on the php4 sapi eclass
14 #
15 # Author(s) Stuart Herbert
16 # <stuart@gentoo.org>
17 #
18 # ========================================================================
19
20 CONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob frontbase hyperwave-api informix msession msql oci8 oracle7 ovrimos pfpro sapdb solid sybase sybase-ct"
21
22 inherit flag-o-matic eutils confutils libtool
23
24
25 # set MY_PHP_P in the ebuild
26
27 # we only set these variables if we're building a copy of php which can be
28 # installed as a package in its own right
29 #
30 # copies of php which are compiled into other packages (e.g. php support
31 # for the thttpd web server) don't need these variables
32
33 if [ "${PHP_PACKAGE}" = 1 ]; then
34 HOMEPAGE="http://www.php.net/"
35 LICENSE="PHP-3"
36 SRC_URI="http://www.php.net/distributions/${MY_PHP_P}.tar.bz2"
37 S="${WORKDIR}/${MY_PHP_P}"
38 fi
39
40 IUSE="adabas bcmath berkdb birdstep bzip2 calendar cdb crypt ctype curl
41 curlwrappers db2 dba dbase dbm dbmaker dbx debug empress empress-bcs esoob exif
42 frontbase fdftk flatfile filepro firebird ftp gd gd-external gdbm gmp hardenedphp hyperwave-api imap inifile iconv informix interbase iodbc jpeg kerberos ldap libedit mcve memlimit mhash mime ming mkconfig msession msql mssql mysql mysqli ncurses nls oci8 odbc oracle7 ovrimos pcntl pcre pfpro png postgres posix qdbm readline recode sapdb sasl session sharedext sharedmem simplexml snmp soap sockets solid spell spl sqlite ssl sybase sybase-ct sysvipc threads tidy tiff tokenizer truetype wddx xsl xml2 xmlrpc xpm zlib"
43
44 # these USE flags should have the correct dependencies
45 DEPEND="$DEPEND
46 !<=dev-php/php-4.99.99
47 berkdb? ( =sys-libs/db-4* )
48 bzip2? ( app-arch/bzip2 )
49 crypt? ( >=dev-libs/libmcrypt-2.4 )
50 curl? ( >=net-misc/curl-7.10.5 )
51 fdftk? ( app-text/fdftk )
52 firebird? ( dev-db/firebird )
53 gd-external? ( media-libs/gd )
54 gdbm? ( >=sys-libs/gdbm-1.8.0 )
55 gmp? ( dev-libs/gmp )
56 imap? ( virtual/imap-c-client )
57 iodbc? ( dev-db/libiodbc )
58 jpeg? ( >=media-libs/jpeg-6b )
59 kerberos? ( virtual/krb5 )
60 ldap? ( >=net-nds/openldap-1.2.11 )
61 libedit? ( dev-libs/libedit )
62 mcve? ( net-libs/libmonetra )
63 mhash? ( app-crypt/mhash )
64 mime? ( sys-apps/file )
65 ming? ( media-libs/ming )
66 mssql? ( dev-db/freetds )
67 mysql? ( dev-db/mysql )
68 mysqli? ( >=dev-db/mysql-4.1 )
69 ncurses? ( sys-libs/ncurses )
70 nls? ( sys-devel/gettext )
71 odbc? ( >=dev-db/unixODBC-1.8.13 )
72 postgres? ( >=dev-db/postgresql-7.1 )
73 png? ( media-libs/libpng )
74 qdbm? ( dev-db/qdbm )
75 readline? ( sys-libs/readline )
76 recode? ( app-text/recode )
77 sharedmem? ( dev-libs/mm )
78 simplexml? ( dev-libs/libxml2 )
79 snmp? ( >=net-analyzer/net-snmp-5.2 )
80 soap? ( dev-libs/libxml2 )
81 spell? ( app-text/aspell )
82 sqlite? ( =dev-db/sqlite-2* )
83 ssl? ( >=dev-libs/openssl-0.9.7 )
84 sybase? ( dev-db/freetds )
85 tidy? ( app-text/htmltidy )
86 tiff? ( media-libs/tiff )
87 truetype? ( =media-libs/freetype-2* >=media-libs/t1lib-5.0.0 )
88 wddx? ( dev-libs/expat )
89 xpm? ( || ( x11-libs/libXpm virtual/x11 ) )
90 xsl? ( dev-libs/libxslt )
91 zlib? ( sys-libs/zlib ) "
92
93 # this would be xml2?, but PEAR requires XML support
94 # this can become a USE flag when Gentoo bug #2272 has been resolved
95 DEPEND="$DEPEND
96 dev-libs/libxml2"
97
98 # ========================================================================
99
100 PHP_BUILDTARGETS="${PHP_BUILDTARGETS} build-modules"
101 PHP_INSTALLTARGETS="${PHP_INSTALLTARGETS} install"
102
103 # ========================================================================
104
105 PHP_INI_DIR="/etc/php/${PHPSAPI}-php5"
106 PHP_INI_FILE="php.ini"
107
108 # ========================================================================
109 # Hardened-PHP Support
110 # ========================================================================
111 #
112 # I've done it like this so that we can support different versions of
113 # the patch for different versions of PHP
114
115 case "$PV" in
116 5.0.4) HARDENEDPHP_PATCH="hardening-patch-$PV-0.3.2.patch.gz" ;;
117 esac
118
119 [ -n "$HARDENEDPHP_PATCH" ] && SRC_URI="${SRC_URI} hardenedphp? ( http://www.hardened-php.net/$HARDENEDPHP_PATCH )"
120
121 # ========================================================================
122
123 EXPORT_FUNCTIONS pkg_setup src_compile src_install src_unpack pkg_postinst
124
125 # ========================================================================
126 # INTERNAL FUNCTIONS
127 # ========================================================================
128
129 php5-sapi-r3_check_awkward_uses() {
130
131 # unfortunately, libedit support is broken atm
132
133 if useq libedit ; then
134 eerror
135 eerror "php-5.1-beta doesn't link successfully if you use libedit"
136 eerror "Please switch to using readline instead for now."
137 die "libedit support broken"
138 fi
139
140 # disabled hardenedphp after many reports of problems w/ apache
141 # need to look into this at some point
142
143 if useq hardenedphp ; then
144 eerror
145 eerror "hardenedphp is reported to break php for some users."
146 eerror "We've disabled this feature for now until it has been"
147 eerror "thoroughly investigated."
148 eerror
149 eerror "Please disable the hardenedphp USE flag"
150 die "hardenedphp support disabled"
151 fi
152
153 # snmp support seems broken, haven't looked into a fix for it yet
154
155 if useq snmp && [ "$PHP_PV" = "5.0.3" ] ; then
156 eerror
157 eerror "The snmp support in PHP 5 is currently broken."
158 eerror "Please disable the snmp USE flag"
159 eerror
160 die "snmp support doesn't compile"
161 fi
162
163 # mysqli support is disabled; see bug #53886
164 #
165 # if useq mysqli ; then
166 # eerror
167 # eerror "We currently do not support the mysqli extension"
168 # eerror "Support will be added once MySQL 4.1 is no longer package-masked"
169 # eerror
170 # die "mysqli not supported yet"
171 # fi
172
173 # recode not available in 5.0.0; upstream bug
174 if useq recode && [ "$PHP_PV" == "5.0.0" ]; then
175 eerror
176 eerror "Support for the 'recode' extension is currently broken UPSTREAM"
177 eerror "See http://bugs.php.net/bug.php?id=28700 for details"
178 eerror
179 die "recode broken, upstream bug"
180 fi
181
182 # Sanity check for Oracle
183 if useq oci8 && [ -z "${ORACLE_HOME}" ]; then
184 eerror
185 eerror "You must have the ORACLE_HOME variable in your environment!"
186 eerror
187 die "Oracle configuration incorrect; user error"
188 fi
189
190 if useq oci8 || useq oracle7; then
191 if has_version 'dev-db/oracle-instantclient-basic'; then
192 ewarn "Please ensure you have a full install of the Oracle client."
193 ewarn "dev-db/oracle-instantclient* is NOT sufficent."
194 fi
195 fi
196
197 if useq dba ; then
198 # extension USE flag shared support?
199 enable_extension_with "cdb" "cdb" 1
200 enable_extension_with "db4" "berkdb" 1
201 enable_extension_with "dbm" "dbm" 1
202 enable_extension_with "flatfile" "flatfile" 1
203 enable_extension_with "gdbm" "gdbm" 1
204 enable_extension_with "inifile" "inifile" 1
205 enable_extension_with "qdbm" "qdbm" 1
206 fi
207
208 if useq dbx ; then
209 confutils_use_depend_any "dbx" "frontbase" "mssql" "odbc" "postgres" "sybase-ct" "oci8" "sqlite"
210 enable_extension_enable "dbx" "dbx" 1
211 fi
212
213 enable_extension_with "jpeg-dir" "jpeg" 0 "/usr"
214 if useq gd-external ; then
215 enable_extension_with "freetype-dir" "truetype" 0 "/usr"
216 enable_extension_with "t1lib" "truetype" 0 "/usr"
217 enable_extension_enable "gd-native-ttf" "truetype" 0
218 enable_extension_enable "gd-jis-conf" "nls" 0
219 enable_extension_enable "gd-native-ttf" "truetype" 0
220 enable_extension_with "gd" "gd-external" 1 "/usr"
221 else
222 enable_extension_with "freetype-dir" "truetype" 0 "/usr"
223 enable_extension_with "t1lib" "truetype" 0 "/usr"
224 enable_extension_enable "gd-jis-conf" "nls" 0
225 enable_extension_enable "gd-native-ttf" "truetype" 0
226 enable_extension_with "png-dir" "png" 0 "/usr"
227 enable_extension_with "tiff-dir" "tiff" 0 "/usr"
228 enable_extension_with "xpm-dir" "xpm" 0 "/usr/X11R6"
229 # enable gd last, so configure can pick up the previous settings
230 enable_extension_with "gd" "gd" 0
231 fi
232
233 confutils_use_depend_any "jpeg" "gd" "gd-external"
234 confutils_use_depend_any "png" "gd" "gd-external"
235 confutils_use_depend_any "tiff" "gd" "gd-external"
236 confutils_use_depend_any "xpm" "gd" "gd-external"
237 confutils_use_depend_all "png" "zlib"
238
239 if useq imap ; then
240 enable_extension_with "imap" "imap" 1
241 # this is a PITA to deal with
242 if useq ssl ; then
243 #if [ -n "`strings ${ROOT}/usr/$(get_libdir)/c-client.* 2>/dev/null | grep ssl_onceonlyinit`" ]; then
244 if built_with_use virtual/imap-c-client ssl ; then
245 # the IMAP-SSL arg doesn't parse 'shared,/usr/lib' right
246 enable_extension_with "imap-ssl" "ssl" 0
247 else
248 msg="IMAP+SSL requested, but your IMAP libraries are built without SSL!"
249 eerror "${msg}"
250 die "${msg}"
251 fi
252 fi
253 fi
254
255 if useq ldap ; then
256 enable_extension_with "ldap" "ldap" 1
257 enable_extension_with "ldap-sasl" "sasl" 0
258 fi
259
260 if useq odbc ; then
261 enable_extension_with "unixODBC" "odbc" 1 "/usr"
262
263 enable_extension_with "adabas" "adabas" 1
264 enable_extension_with "birdstep" "birdstep" 1
265 enable_extension_with "dbmaker" "dbmaker" 1
266 enable_extension_with "empress" "empress" 1
267 if useq empress ; then
268 enable_extension_with "empress-bcs" "empress-bcs" 0
269 fi
270 enable_extension_with "esoob" "esoob" 1
271 enable_extension_with "ibm-db2" "db2" 1
272 enable_extension_with "iodbc" "iodbc" 1 "/usr"
273 enable_extension_with "sapdb" "sapdb" 1
274 enable_extension_with "solid" "solid" 1
275 fi
276
277 if useq mysql; then
278 enable_extension_with "mysql" "mysql" 1 "/usr/lib/mysql"
279 enable_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock"
280 fi
281 enable_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config"
282
283 # QDBM doesn't play nicely with GDBM _or_ DBM
284 confutils_use_conflict "qdbm" "gdbm" "dbm"
285 # both provide the same functionality
286 confutils_use_conflict "readline" "libedit"
287 # Recode is not liked.
288 confutils_use_conflict "recode" "mysql" "imap" "nis" #"yaz"
289
290 if ! useq session ; then
291 enable_extension_disable "session" "session" 1
292 else
293 enable_extension_with "mm" "sharedmem" 0
294 enable_extension_with "msession" "msession" 1
295 fi
296
297 if ! useq sqlite ; then
298 enable_extension_without "sqlite" "sqlite" 0
299 else
300 enable_extension_enable "sqlite-utf8" "nls" 0
301 fi
302
303 # MCVE needs openSSL
304 confutils_use_depend_all "mcve" "ssl"
305 # A variety of extensions need DBA
306 confutils_use_depend_all "cdb" "dba"
307 confutils_use_depend_all "berkdb" "dba"
308 confutils_use_depend_all "flatfile" "dba"
309 confutils_use_depend_all "gdbm" "dba"
310 confutils_use_depend_all "inifile" "dba"
311 confutils_use_depend_all "qdbm" "dba"
312
313 # build EXIF support if we support a file format that uses it
314 confutils_use_depend_any "exif" "jpeg" "tiff"
315
316 # GD library support
317 confutils_use_depend_any "truetype" "gd" "gd-external"
318
319 # ldap support
320 confutils_use_depend_all "sasl" "ldap"
321
322 # mysql support
323 # This shouldn't conflict actually
324 #confutils_use_conflict "mysqli" "mysql"
325
326 # odbc support
327 confutils_use_depend_all "adabas" "odbc"
328 confutils_use_depend_all "birdstep" "odbc"
329 confutils_use_depend_all "dbmaker" "odbc"
330 confutils_use_depend_all "empress" "odbc"
331 confutils_use_depend_all "empress-bcs" "odbc" "empress"
332 confutils_use_depend_all "esoob" "odbc"
333 confutils_use_depend_all "db2" "odbc"
334 confutils_use_depend_all "sapdb" "odbc"
335 confutils_use_depend_all "solid" "odbc"
336
337 # session support
338 confutils_use_depend_all "msession" "session"
339
340 confutils_warn_about_missing_deps
341 }
342
343 # ========================================================================
344 # EXPORTED FUNCTIONS
345 # ========================================================================
346
347 php5-sapi-r3_pkg_setup() {
348 # let's do all the USE flag testing before we do anything else
349 # this way saves a lot of time
350
351 php5-sapi-r3_check_awkward_uses
352 }
353
354 php5-sapi-r3_src_unpack() {
355 if [ "${PHP_PACKAGE}" == 1 ]; then
356 unpack ${A}
357 fi
358
359 cd ${PHP_S}
360
361 # Patch PHP to show Gentoo as the server platform
362 sed -i "s/PHP_UNAME=\`uname -a\`/PHP_UNAME=\`uname -s -n -r -v\`/g" configure
363 # Patch for PostgreSQL support
364 sed -e 's|include/postgresql|include/postgresql include/postgresql/pgsql|g' -i configure
365
366 # Patch for session persistence bug
367 epatch ${FILESDIR}/php5_soap_persistence_session.diff
368
369 # stop php from activating the apache config, as we will do that ourselves
370 for i in configure sapi/apache/config.m4 sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 ; do
371 sed -i.orig -e 's,-i -a -n php5,-i -n php5,g' $i
372 done
373
374 # hardenedphp support
375
376 use hardenedphp && [ -n "$HARDENEDPHP_PATCH" ] && epatch ${DISTDIR}/${HARDENEDPHP_PATCH}
377
378 # iodbc support
379 use iodbc && epatch ${FILESDIR}/with-iodbc.diff
380
381 # fix configure scripts to recognize uClibc
382 uclibctoolize
383
384 # Just in case ;-)
385 chmod 755 configure
386
387 # [ "${ARCH}" == "sparc" ] && epatch ${FILESDIR}/php-5.0-stdint.diff
388 # epatch ${FILESDIR}/${MY_PHP_P}-missing-arches.patch
389 }
390
391 php5-sapi-r3_src_compile() {
392 cd ${PHP_S}
393 confutils_init
394
395 my_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}"
396 my_conf="${my_conf} --without-pear"
397
398 # extension USE flag shared support?
399 enable_extension_enable "bcmath" "bcmath" 1
400 enable_extension_with "bz2" "bzip2" 1
401 enable_extension_enable "calendar" "calendar" 1
402 enable_extension_disable "ctype" "ctype" 0
403 enable_extension_with "curl" "curl" 1
404 enable_extension_with "curlwrappers" "curlwrappers" 1
405 enable_extension_enable "dbase" "dbase" 1
406 enable_extension_disable "dom" "xml2" 0
407 enable_extension_enable "exif" "exif" 1
408 enable_extension_with "fbsql" "frontbase" 1
409 enable_extension_with "fdftk" "fdftk" 1 "/opt/fdftk-6.0"
410 enable_extension_enable "filepro" "filepro" 1
411 enable_extension_enable "ftp" "ftp" 1
412 enable_extension_with "gettext" "nls" 1
413 enable_extension_with "gmp" "gmp" 1
414 enable_extension_with "hwapi" "hyperwave-api" 1
415 enable_extension_with "iconv" "iconv" 1
416 enable_extension_with "informix" "informix" 1
417 enable_extension_with "interbase" "firebird" 1
418 # iodbc support added by Tim Haynes <gentoo@stirfried.vegetable.org.uk>
419 enable_extension_with "iodbc" "iodbc" 0 "/usr"
420 # ircg extension not supported on Gentoo at this time
421 enable_extension_with "kerberos" "kerberos" 0
422 enable_extension_disable "libxml" "xml2" 0
423 enable_extension_enable "mbstring" "nls" 1
424 enable_extension_with "mcrypt" "crypt" 1
425 enable_extension_with "mcve" "mcve" 1
426 enable_extension_enable "memory-limit" "memlimit" 0
427 enable_extension_with "mhash" "mhash" 1
428 enable_extension_with "mime-magic" "mime" 0 "/usr/share/misc/file/magic.mime"
429 enable_extension_with "ming" "ming" 1
430 enable_extension_with "msql" "msql" 1
431 enable_extension_with "mssql" "mssql" 1
432 enable_extension_with "ncurses" "ncurses" 1
433 enable_extension_with "oci8" "oci8" 1
434 enable_extension_with "oracle" "oracle7" 1
435 enable_extension_with "openssl" "ssl" 1
436 enable_extension_with "openssl-dir" "ssl" 0 "/usr"
437 enable_extension_with "ovrimos" "ovrimos" 1
438 enable_extension_enable "pcntl" "pcntl" 1
439 enable_extension_without "pcre-regx" "pcre" 1
440 enable_extension_with "pfpro" "pfpro" 1
441 enable_extension_with "pgsql" "postgres" 1
442 enable_extension_disable "posix" "posix" 1
443 enable_extension_with "pspell" "spell" 1
444 enable_extension_with "recode" "recode" 1
445 enable_extension_disable "simplexml" "simplexml" 1
446 enable_extension_enable "shmop" "sharedmem" 0
447 enable_extension_with "snmp" "snmp" 1
448 enable_extension_enable "soap" "soap" 1
449 enable_extension_enable "sockets" "sockets" 1
450 enable_extension_disable "spl" "spl" 1
451 enable_extension_with "sybase" "sybase" 1
452 enable_extension_with "sybase-ct" "sybase-ct" 1
453 enable_extension_enable "sysvmsg" "sysvipc" 1
454 enable_extension_enable "sysvsem" "sysvipc" 1
455 enable_extension_enable "sysvshm" "sysvipc" 1
456 enable_extension_with "tidy" "tidy" 1
457 enable_extension_disable "tokenizer" "tokenizer" 1
458 enable_extension_enable "wddx" "wddx" 1
459 enable_extension_with "xsl" "xsl" 1
460 #enable_extension_disable "xml" "xml2" 1 # PEAR needs --enable-xml
461 enable_extension_with "xmlrpc" "xmlrpc" 1
462 enable_extension_with "zlib" "zlib" 1
463 enable_extension_enable "debug" "debug" 0
464
465 php5-sapi-r3_check_awkward_uses
466
467 # DBA support
468 enable_extension_enable "dba" "dba" 1
469
470 # readline support
471 #
472 # you can use readline or libedit, but you can't use both
473 enable_extension_with "readline" "readline" 0
474 enable_extension_with "libedit" "libedit" 1
475
476 # fix ELF-related problems
477 if has_pic ; then
478 einfo "Enabling PIC support"
479 my_conf="${my_conf} --with-pic"
480 fi
481
482 if [ "${PHPSAPI}" != "cli" ]; then
483 my_conf="${my_conf} --disable-cli"
484 fi
485
486 # Bug 98694
487 addpredict /etc/krb5.conf
488
489 # all done
490
491 econf ${my_conf} || die "configure failed"
492 emake || die "make failed"
493 }
494
495 php5-sapi-r3_src_install() {
496 cd ${PHP_S}
497 addpredict /usr/share/snmp/mibs/.index
498
499 useq sharedext && PHP_INSTALLTARGETS="${PHP_INSTALLTARGETS} install-modules"
500 make INSTALL_ROOT=${D} $PHP_INSTALLTARGETS || die "install failed"
501
502 # get the extension dir
503 PHPEXTDIR="`${D}/usr/bin/php-config --extension-dir`"
504
505 # don't forget the php.ini file
506 local phpinisrc=php.ini-dist
507 einfo "Setting extension_dir in php.ini"
508 sed -e "s|^extension_dir .*$|extension_dir = ${PHPEXTDIR}|g" -i ${phpinisrc}
509
510 # A patch for PHP for security. PHP-CLI interface is exempt, as it cannot be
511 # fed bad data from outside.
512 if [ "${PHPSAPI}" != "cli" ]; then
513 einfo "Securing fopen wrappers"
514 sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i ${phpinisrc}
515 fi
516
517 einfo "Setting correct include_path"
518 sed -e 's|^;include_path .*|include_path = ".:/usr/share/php"|' -i ${phpinisrc}
519
520 if useq sharedext; then
521 for x in `ls ${D}${PHPEXTDIR}/*.so | sort`; do
522 echo "extension=`basename ${x}`" >> ${phpinisrc}
523 done;
524 fi
525
526 dodir ${PHP_INI_DIR}
527 insinto ${PHP_INI_DIR}
528 newins ${phpinisrc} ${PHP_INI_FILE}
529
530 # PEAR-Installer and phpconfig install the following, so we
531 # don't have to
532 #
533 # if 'mkconfig' USE flag is set, we create the phpconfig source
534 # tarball ... this makes it easy for us to bump the phpconfig
535 # package whenever we bump php
536
537 if useq mkconfig ; then
538 CONFIG_NAME=phpconfig-$PV
539 CONFIG_DESTDIR=${T}/${CONFIG_NAME}
540
541 einfo "Building source tarball for ${CONFIG_NAME}"
542
543 mkdir -p ${CONFIG_DESTDIR}/usr/bin
544 cp ${D}/usr/bin/{phpize,php-config} ${CONFIG_DESTDIR}/usr/bin/
545 cp scripts/dev/phpextdist ${CONFIG_DESTDIR}/usr/bin/
546
547 mkdir -p ${CONFIG_DESTDIR}/usr/lib/php
548 cp -r ${D}/usr/lib/php/build ${CONFIG_DESTDIR}/usr/lib/php
549
550 mkdir -p ${CONFIG_DESTDIR}/usr/include
551 cp -r ${D}/usr/include/php ${CONFIG_DESTDIR}/usr/include
552
553 cd ${T}
554 tar -cf - ${CONFIG_NAME} | bzip2 -9 > ${CONFIG_NAME}.tar.bz2
555 cd -
556
557 einfo "Done; tarball is ${T}/${CONFIG_NAME}.tar.bz"
558 fi
559
560 rm -rf ${D}/usr/bin/{phpize,php-config,pear}
561 rm -rf ${D}/usr/lib/php/build
562 rm -rf ${D}/usr/include/php
563
564 # we let each SAPI install the man page
565 # this does mean that the packages are in conflict for now
566 }
567
568 php5-sapi-r3_pkg_postinst() {
569 ewarn "If you have additional third party PHP extensions (such as"
570 ewarn "dev-php/eaccelerator) you may need to recompile them now."
571
572 if useq curl; then
573 ewarn "Please be aware that CURL can allow the bypass of open_basedir restrictions."
574 fi
575 }
576

  ViewVC Help
Powered by ViewVC 1.1.20