summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-07-13 16:21:05 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-07-13 16:21:05 +0000
commite3b29c89c8bdd9bc4aecce4b3d63d5c132aaf1bc (patch)
tree88971931c3a7b6803c1e725ec12e36aa1771ae78 /dev-lang/php
parentRemove PHP 5.1.2. (diff)
downloadgentoo-2-e3b29c89c8bdd9bc4aecce4b3d63d5c132aaf1bc.tar.gz
gentoo-2-e3b29c89c8bdd9bc4aecce4b3d63d5c132aaf1bc.tar.bz2
gentoo-2-e3b29c89c8bdd9bc4aecce4b3d63d5c132aaf1bc.zip
Remove PHP 5.1.2.
(Portage version: 2.1.1_pre2-r6) (Unsigned Manifest commit)
Diffstat (limited to 'dev-lang/php')
-rw-r--r--dev-lang/php/Manifest28
-rw-r--r--dev-lang/php/files/digest-php-5.1.29
-rw-r--r--dev-lang/php/php-5.1.2.ebuild288
3 files changed, 4 insertions, 321 deletions
diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest
index 435e11171e2a..0ded33a17cff 100644
--- a/dev-lang/php/Manifest
+++ b/dev-lang/php/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 70_mod_php.conf-apache1 454 RMD160 869b5c225782690889bdfa5227a8f46c33ac71d3 SHA1 27e7fc24e1793bacef9b9735102d335b1a5d21ff SHA256 9e6227e508f0c297f48c667e2135c7692f7943b3d0cd2ffdbdcca0bad5220343
MD5 6171c7aa95f69b8a54b0f29bd1056d2b files/70_mod_php.conf-apache1 454
RMD160 869b5c225782690889bdfa5227a8f46c33ac71d3 files/70_mod_php.conf-apache1 454
@@ -22,20 +19,17 @@ DIST hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715 RMD160 bc1131fbb8d9e53fe
DIST hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792 RMD160 87c5234a6e70b3f24b20227e891e4f878b9e55a8 SHA1 96e2b44f98b178e991bb42f145230c6ac925efed SHA256 31a8aec0f46cd34079179a32e1b8033891d9cb0e5cbd53ef9d56848b48c1f1f9
DIST hardening-patch-4.4.2-0.4.9-gentoo.patch.gz 59219 RMD160 6802aa02189489cf1e713dfde02039f888992507 SHA1 82c98c98536ba0e5a6c8de085de39b20c9e5adc9 SHA256 1a1affd04f234567cf049265fe62e9a2c3bde99193e6e17d5f8c010b04075760
DIST hardening-patch-5.0.5-0.4.8-gentoo.patch.gz 57864 RMD160 f68e2870ef56f005ae062f53053ecffd87b2059d SHA1 3f69694a541c9014c5b52669c4259ce11209da7b SHA256 6d8e61ff1fa10ce238600e936de1eac665c5237482ae6c3b4db05c6b7d684a7c
-DIST hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663 RMD160 2b79a7a367b834fefd1c82268424bee35dd27474 SHA1 de043712efeed1228ae03da1c971536febe50b16 SHA256 7e6453a9b45daf9af9d861b3907349d1d385eed7341f1c5427ab7b2a5f4794f7
DIST hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174 RMD160 afabbf21c5d82a9ead56b1718b4e7e6eda5eb6b6 SHA1 392d6150ae4823977763b43d954f01355c9975ff SHA256 4f0bdc6de6b00333c7678b4bebeb1a9de7f6987413707956b6a7e099ebe1089e
DIST hardening-patch-5.1.4-0.4.9-gentoo.patch.gz 57671 RMD160 c9e16019388d55a17d1c198f24492d7d07d68847 SHA1 260a47db36bdab64f122d6fa67234110047b9341 SHA256 f877989c03d13bb3b51e9af4e9a67d535da35784ceabd19dcd85be64ff6b9efa
DIST php-4.3.11.tar.bz2 4012575 RMD160 fe44f6c2783ddd469b94744e440e836cff3329e5 SHA1 617ce50bb125ee841f71e67638c492999cd3bd18 SHA256 6b133db9ac17d4e1f393003683c1b4d15dff3197559c85fd8dd63ba4868a21c5
DIST php-4.4.2.tar.bz2 4371185 RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e SHA1 88f2e9efff0add8d8e3034d4ce3a948429b88756 SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb
DIST php-5.0.5.tar.bz2 4895556 RMD160 6a9a892affba229770154407860cd1c2a098eaf9 SHA1 ffcc050f879265eb96f2c8dc79fa895047da9d4a SHA256 aa63e769059d2452b153db6d4e6b421228d0606cbe8b11ace00e4c1b5c2cdc4f
-DIST php-5.1.2.tar.bz2 6319905 RMD160 1e21b5ba280b7efc8197802c673bb5d4e9dc9f8e SHA1 f6acc67c293345ad22065768f3049834cb8a912e SHA256 a18399360e1c5dcbdfed4f7215ae8fd2a5e057c24b86392392e832216aa63202
DIST php-5.1.4.tar.bz2 6356171 RMD160 d4ab11884a3a899f21eef777767a553cf81584ce SHA1 83d4c5a4a3e8f3bcb0da841edd8d55893dbf5394 SHA256 b55253e9557eceb901d83217ec192da22c28c7b2fdf714d3f151f1db663b5a32
DIST php-patchset-4.3.11-r2.tar.bz2 27051 RMD160 0c0fa32570cd79eb0ce59b308fdb38c68c58280a SHA1 bff2ed9d03fa257253449d6a7e7d0d8a3bd99fb5 SHA256 4235ac9ac8104fdcd39d11774de6c24493e6e94df7f840f69925430fec3b0d39
DIST php-patchset-4.4.2-r1.tar.bz2 13774 RMD160 95db8755a8d5d8972bc8bf5ecaf8740663f910d5 SHA1 23c63e357ce9e3d5015430da288ce805bff5bee5 SHA256 8106995c3243c604434cb4b4fdafc04db0e3604eccb7ba487724f44b892252e4
DIST php-patchset-4.4.2-r3.tar.bz2 18063 RMD160 d7a06bb5cc4cff88e943c85f73adea92ed7eb4a7 SHA1 855351e32fc972a5585d913e37d98a5a2c653ec4 SHA256 203918cf6e984266196748342cdeaa1d30e1ecb971376e0a5d2aff09428538ac
DIST php-patchset-4.4.2-r6.tar.bz2 20884 RMD160 c8376d9736edb3a59a525022eee9c0a7a5f2a359 SHA1 55571c284015964b80d6d6116e65c7558d91f97b SHA256 4a422da2b609819a8d95b11e2245e9bfa1440d25e481d4808bfc7d270382480e
DIST php-patchset-5.0.5-r2.tar.bz2 20314 RMD160 2a929a6eb9f5e8a9e01c26b6304f7c60e4c1bf7d SHA1 fcd5149a826a04f1df85e2689745a02aa161c350 SHA256 46bfe8d324b28dbfc8c9399bf6c1f2ef3e44cca7b97e08a9083f986002482309
-DIST php-patchset-5.1.2-r1.tar.bz2 6782 RMD160 a0dcf11a29b8a0654ca158532f6865819cb2ef6f SHA1 e271fd164c5aaa23a655ccfa5ccc7ec5c3359f0e SHA256 e171ed1b1dac3571b1c72c3fb48e7d79029a99562c83e1e1242c2589aeff685e
DIST php-patchset-5.1.4-r1.tar.bz2 7330 RMD160 ed33ee236286539a0614709d944ac636b84bca45 SHA1 acf60f1f750cb8c2a42d0b5478cf295c2c5a37ea SHA256 5a780b331343fa1fb6c3c4a76bf87e24e586ca2f41c5cd3824291f1b0037e961
DIST php-patchset-5.1.4-r4.tar.bz2 13600 RMD160 2e47fb1a0d587c3b70f30d44f00ca122a58e1bb9 SHA1 9fad1b706ccf1cbc624594827fdd7a05b3369718 SHA256 4aa7df8cec6067a42a595600f3cef5b82e2bc1c7ab5999f9bca65d37ea1934a9
DIST php-pcrelib-new-secpatch.tar.bz2 357619 RMD160 1748ef9837f3f5ce7ad81f0dd751b430c8c2c6f6 SHA1 040bf3344d68fff3eb1829a2a02586499de5c2ee SHA256 7c49aa2c6be704b576720673fa123febdddc541d8152ccacea5cb2c9d1560a19
@@ -59,10 +53,6 @@ EBUILD php-5.0.5-r5.ebuild 4749 RMD160 aa88aa4ab830a5020e0768e3dfd78655c44acc56
MD5 46a04ed25ecd9fd3893a08b42c11a04f php-5.0.5-r5.ebuild 4749
RMD160 aa88aa4ab830a5020e0768e3dfd78655c44acc56 php-5.0.5-r5.ebuild 4749
SHA256 c585546685722ce6c76d1257cf8fb5a066c04f8d7d3e88382d78d9c3d754bc3c php-5.0.5-r5.ebuild 4749
-EBUILD php-5.1.2.ebuild 7941 RMD160 ca893e8e99d26ace3c0c49a70c252422ae387d73 SHA1 4f4fd60446cb19d28c97736e214def0e10ce4998 SHA256 11bafdf5f54be4e9f9f5fc8a6a787752fb3b4478552bec8494754314afa4a071
-MD5 133bfa02abd39422a466bb2519bcb564 php-5.1.2.ebuild 7941
-RMD160 ca893e8e99d26ace3c0c49a70c252422ae387d73 php-5.1.2.ebuild 7941
-SHA256 11bafdf5f54be4e9f9f5fc8a6a787752fb3b4478552bec8494754314afa4a071 php-5.1.2.ebuild 7941
EBUILD php-5.1.4-r3.ebuild 8097 RMD160 00926fc15145e37168f0a139e67e89b3d947adab SHA1 61c44856411bd06fe153d57a0136c2eb982f5944 SHA256 83559613bbb95752d6123c900622cabe5c11d854734f7ab3d93f9ab6f8e1016c
MD5 1600ad9936c253d9184a100bf8fe7ece php-5.1.4-r3.ebuild 8097
RMD160 00926fc15145e37168f0a139e67e89b3d947adab php-5.1.4-r3.ebuild 8097
@@ -71,10 +61,10 @@ EBUILD php-5.1.4.ebuild 7951 RMD160 10922d2e8ce9c7811f466d39dd88ae0f858917b4 SHA
MD5 5b77b677d05490e25b33227632a1df9b php-5.1.4.ebuild 7951
RMD160 10922d2e8ce9c7811f466d39dd88ae0f858917b4 php-5.1.4.ebuild 7951
SHA256 2b4f88fd08a27b43487983988ca2dd2d920afa2e893c517a368b621877e4be2a php-5.1.4.ebuild 7951
-MISC ChangeLog 22225 RMD160 27673da476e74b889033f26351874b00b333e094 SHA1 ad9d200197f77e409681028536609e48c77f2b7c SHA256 962d230a4a972ab3de5cf2d5ba125421f32f7ab54feb1ba95e1fb3c294da4b18
-MD5 52b87839a7a4efb9cfee34d41a1901a7 ChangeLog 22225
-RMD160 27673da476e74b889033f26351874b00b333e094 ChangeLog 22225
-SHA256 962d230a4a972ab3de5cf2d5ba125421f32f7ab54feb1ba95e1fb3c294da4b18 ChangeLog 22225
+MISC ChangeLog 22316 RMD160 30072b9638678bde22b9dc6227ace29b4db384b4 SHA1 a1c6cc191257c89c41f00b24711ecf8964900ebb SHA256 683456130c1752d28c5567f1662b9cd2c84e7b956caea1e30fc074ff1a9acc1d
+MD5 959da530119a0f9605f0c3b15212f969 ChangeLog 22316
+RMD160 30072b9638678bde22b9dc6227ace29b4db384b4 ChangeLog 22316
+SHA256 683456130c1752d28c5567f1662b9cd2c84e7b956caea1e30fc074ff1a9acc1d ChangeLog 22316
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157
RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157
@@ -94,19 +84,9 @@ SHA256 d11aabd0fcd9a7a4b2a0682b6a44f43a4773fb9affbc05206fe35e0793928031 files/di
MD5 deaf81609cd783b916a274c8d9e2c8d9 files/digest-php-5.0.5-r5 807
RMD160 903c019620d92706e67f94a9fa313bfcdbd0c89f files/digest-php-5.0.5-r5 807
SHA256 0581c6a261821444df13abb32b05a42a3de01bb45d8d51a4c8f12cc0f4fd0551 files/digest-php-5.0.5-r5 807
-MD5 ff8e7b70d7eb49eb7b0e6cc65d9dc6f4 files/digest-php-5.1.2 804
-RMD160 eb0553851c98b72a5b76c854255b42f6268cba96 files/digest-php-5.1.2 804
-SHA256 c5796a8c5be891a50b66433f00df75607a22c5155bfae2527f657cc870f433e4 files/digest-php-5.1.2 804
MD5 78fdb982f372be33b5285f276e01f126 files/digest-php-5.1.4 804
RMD160 f37e782353d9fa85c24e11abdd9e476c3327cd24 files/digest-php-5.1.4 804
SHA256 5d45c4a6e90865308f6b39b50351c7c216bc961aaa19ed1b448ac193c2fe7104 files/digest-php-5.1.4 804
MD5 abc000c4d4d1c1a44ef51d2b73a76e12 files/digest-php-5.1.4-r3 810
RMD160 8096efc6d349c4c45836cf211be223a21404502b files/digest-php-5.1.4-r3 810
SHA256 9b640470dedff35ff74a8b40122ae33b7a35463e5f046109b3584f11199ae6d0 files/digest-php-5.1.4-r3 810
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.4 (GNU/Linux)
-
-iD8DBQFEqCUGamhnQswr0vIRAhnQAJ4ymOhtxQ+KPosykF8meZfBMw0HhACeKHcB
-aQ9E/jSeV0UMGYSFZ3VEbh0=
-=vMqK
------END PGP SIGNATURE-----
diff --git a/dev-lang/php/files/digest-php-5.1.2 b/dev-lang/php/files/digest-php-5.1.2
deleted file mode 100644
index 5925d4a49c3d..000000000000
--- a/dev-lang/php/files/digest-php-5.1.2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 61d534c04399b5fa1f167ec2d86351a3 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-RMD160 2b79a7a367b834fefd1c82268424bee35dd27474 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-SHA256 7e6453a9b45daf9af9d861b3907349d1d385eed7341f1c5427ab7b2a5f4794f7 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-MD5 79cee17e9db85be878000a2a4198378e php-5.1.2.tar.bz2 6319905
-RMD160 1e21b5ba280b7efc8197802c673bb5d4e9dc9f8e php-5.1.2.tar.bz2 6319905
-SHA256 a18399360e1c5dcbdfed4f7215ae8fd2a5e057c24b86392392e832216aa63202 php-5.1.2.tar.bz2 6319905
-MD5 2a99a8cd646da25e92d10b3ce91cceb4 php-patchset-5.1.2-r1.tar.bz2 6782
-RMD160 a0dcf11a29b8a0654ca158532f6865819cb2ef6f php-patchset-5.1.2-r1.tar.bz2 6782
-SHA256 e171ed1b1dac3571b1c72c3fb48e7d79029a99562c83e1e1242c2589aeff685e php-patchset-5.1.2-r1.tar.bz2 6782
diff --git a/dev-lang/php/php-5.1.2.ebuild b/dev-lang/php/php-5.1.2.ebuild
deleted file mode 100644
index 66ed5f9c90d2..000000000000
--- a/dev-lang/php/php-5.1.2.ebuild
+++ /dev/null
@@ -1,288 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.1.2.ebuild,v 1.11 2006/04/20 12:35:09 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.8-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- else
- einfo "Installing Apache config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}