diff options
Diffstat (limited to 'www')
-rw-r--r-- | www/ap-php5/DESCR | 7 | ||||
-rw-r--r-- | www/ap-php5/MESSAGE | 23 | ||||
-rw-r--r-- | www/ap-php5/Makefile | 25 | ||||
-rw-r--r-- | www/ap-php5/PLIST | 2 |
4 files changed, 57 insertions, 0 deletions
diff --git a/www/ap-php5/DESCR b/www/ap-php5/DESCR new file mode 100644 index 00000000000..f82b82ad5bc --- /dev/null +++ b/www/ap-php5/DESCR @@ -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 --git a/www/ap-php5/MESSAGE b/www/ap-php5/MESSAGE new file mode 100644 index 00000000000..28ee1e29036 --- /dev/null +++ b/www/ap-php5/MESSAGE @@ -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 --git a/www/ap-php5/Makefile b/www/ap-php5/Makefile new file mode 100644 index 00000000000..ca2d2aff6f7 --- /dev/null +++ b/www/ap-php5/Makefile @@ -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 --git a/www/ap-php5/PLIST b/www/ap-php5/PLIST new file mode 100644 index 00000000000..cb5d73515f2 --- /dev/null +++ b/www/ap-php5/PLIST @@ -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 |