[Lunar-commits] <moonbase> php5: add mod_php and fix php.ini install.

Florin Braescu florin at lunar-linux.org
Mon May 14 21:40:10 CEST 2012


commit 423993fa82ce2de58396785613a11589c78e91eb
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Mon May 14 21:40:10 2012 +0200

    php5: add mod_php and fix php.ini install.
    
    Thanks to Richard Nespithal for the submission.
---
 compilers/php5/DEPENDS      |    5 +++++
 compilers/php5/POST_INSTALL |    3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/compilers/php5/DEPENDS b/compilers/php5/DEPENDS
index 8c1b374..ae19179 100644
--- a/compilers/php5/DEPENDS
+++ b/compilers/php5/DEPENDS
@@ -1,6 +1,11 @@
 depends readline
 depends libxml2
 
+optional_depends "httpd" \
+		 "--with-apxs2 --disable-cli" \
+		 "" \
+		 "build httpd handler module"
+
 optional_depends "lighttpd" \
                  "--enable-fastcgi" \
                  "" \
diff --git a/compilers/php5/POST_INSTALL b/compilers/php5/POST_INSTALL
index ac7ac3d..4496f86 100644
--- a/compilers/php5/POST_INSTALL
+++ b/compilers/php5/POST_INSTALL
@@ -1,4 +1,3 @@
-
 # prototype AddType definition for apache2
 if [ -f /etc/httpd/conf/httpd.conf ] ; then
   if ! grep -q "x-httpd-php" /etc/httpd/conf/httpd.conf ; then
@@ -13,7 +12,7 @@ EOF
 fi
 
 if [ ! -e /etc/php.ini ] ; then
-  cp $SOURCE_DIRECTORY/php.ini-dist /etc/php.ini
+  cp $SOURCE_DIRECTORY/php.ini-production /etc/php.ini
 fi
 
 case  $REGGLOBALS  in


More information about the Lunar-commits mailing list