pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ap-php5 Add ap-php5 package - Apache module for PH...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4a4dac1e44c
branches:  trunk
changeset: 482662:a4a4dac1e44c
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sun Oct 31 21:51:07 2004 +0000

description:
Add ap-php5 package - Apache module for PHP 5.x. Based on one from pkgsrc-wip.
Correct directory this time.

diffstat:

 www/ap-php5/DESCR    |   7 +++++++
 www/ap-php5/MESSAGE  |  23 +++++++++++++++++++++++
 www/ap-php5/Makefile |  25 +++++++++++++++++++++++++
 www/ap-php5/PLIST    |   2 ++
 4 files changed, 57 insertions(+), 0 deletions(-)

diffs (73 lines):

diff -r 23d17d7150ed -r a4a4dac1e44c www/ap-php5/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php5/DESCR Sun Oct 31 21:51:07 2004 +0000
@@ -0,0 +1,7 @@
+PHP is an HTML-embedded scripting language. It is modular, with
+some object-oriented features. Much of its syntax is borrowed from
+C, Java and Perl with a couple of unique PHP-specific features
+thrown in.  The language is designed to allow web developers to
+write dynamically generated pages quickly.
+
+This package contains the dynamically loadable PHP5 Apache module.
diff -r 23d17d7150ed -r a4a4dac1e44c www/ap-php5/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php5/MESSAGE       Sun Oct 31 21:51:07 2004 +0000
@@ -0,0 +1,23 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/10/31 21:51:07 jdolecek Exp $
+
+In order to use this module in your Apache 1.x installation, you need to
+add the following to your httpd.conf file:
+
+  LoadModule php5_module lib/httpd/mod_php5.so
+  AddType application/x-httpd-php .php
+
+You may also add following if you still use .php3 files:
+
+  AddType application/x-httpd-php .php3
+
+For Apache 2.x installation, you need following:
+
+  LoadModule php5_module lib/httpd/mod_php5.so
+  AddHandler application/x-httpd-php .php
+
+You may also add following if you still use .php3 files:
+
+  AddHandler application/x-httpd-php .php3
+
+===========================================================================
diff -r 23d17d7150ed -r a4a4dac1e44c www/ap-php5/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php5/Makefile      Sun Oct 31 21:51:07 2004 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 21:51:07 jdolecek Exp $
+#
+
+PKGNAME=               ap-php-${PHP5_VERSION}
+PKGREVISION=           # empty
+COMMENT=               Apache (${PKG_APACHE}) module for PHP5
+
+USE_BUILDLINK3=                YES
+APACHE_MODULE=         YES
+SHLIBTOOL_OVERRIDE=    libtool
+
+.include "../../lang/php5/Makefile.common"
+
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+=              ${EXPORT_SYMBOLS_LDFLAGS}
+
+do-install:
+       if [ -f ${WRKSRC}/libs/libphp5.so ]; then               \
+               ${INSTALL_LIB} ${WRKSRC}/libs/libphp5.so        \
+                       ${PREFIX}/lib/httpd/mod_php5.so;        \
+       fi
+
+.include "../../lang/php5/buildlink3.mk"
+.include "../../mk/apache.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 23d17d7150ed -r a4a4dac1e44c www/ap-php5/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php5/PLIST Sun Oct 31 21:51:07 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/31 21:51:07 jdolecek Exp $
+lib/httpd/mod_php5.so



Home | Main Index | Thread Index | Old Index