[Midnightbsd-cvs] mports: lang/php5: This is a very ugly hack, but it allows one to use
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Jul 1 16:21:57 EDT 2008
Log Message:
-----------
This is a very ugly hack, but it allows one to use the apache module again.
Modified Files:
--------------
mports/lang/php5:
Makefile (r1.16 -> r1.17)
pkg-message.mod (r1.1 -> r1.2)
-------------- next part --------------
Index: pkg-message.mod
===================================================================
RCS file: /home/cvs/mports/lang/php5/pkg-message.mod,v
retrieving revision 1.1
retrieving revision 1.2
diff -L lang/php5/pkg-message.mod -L lang/php5/pkg-message.mod -u -r1.1 -r1.2
--- lang/php5/pkg-message.mod
+++ lang/php5/pkg-message.mod
@@ -1,10 +1,6 @@
-***************************************************************
-
Make sure index.php is part of your DirectoryIndex.
You should add the following to your Apache configuration file:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
-
-***************************************************************
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/lang/php5/Makefile,v
retrieving revision 1.16
retrieving revision 1.17
diff -L lang/php5/Makefile -L lang/php5/Makefile -u -r1.16 -r1.17
--- lang/php5/Makefile
+++ lang/php5/Makefile
@@ -8,7 +8,7 @@
PORTNAME= php5
PORTVERSION= 5.2.6
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP:S,$,:release,} \
http://downloads.php.net/ilia/:rc \
@@ -148,6 +148,10 @@
pre-configure:
@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4
+.if defined(WITH_APACHE)
+ ${MKDIR} ${FAKE_DESTDIR}${LOCALBASE}/${APACHEETCDIR}
+ ${CP} ${LOCALBASE}/${APACHEETCDIR}/httpd.conf ${FAKE_DESTDIR}${LOCALBASE}/${APACHEETCDIR}
+.endif
post-build:
@${ECHO_CMD} "PHP_VER=5" > ${WRKDIR}/php.conf
More information about the Midnightbsd-cvs
mailing list