diff options
author | martti <martti@pkgsrc.org> | 2002-10-17 09:56:52 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2002-10-17 09:56:52 +0000 |
commit | ff6e4ba8c99ffd8a55941f2a52aa096f6e653a3b (patch) | |
tree | 067882312535e765205a4a8a6a4aa8aae45d79b1 /www | |
parent | 8e228472e82c5a3f4dff9fe39c82a1b8db4a6399 (diff) | |
download | pkgsrc-ff6e4ba8c99ffd8a55941f2a52aa096f6e653a3b.tar.gz |
This is the php4 module for apache2 users (provided by Dawid Szymanski
in PR#17085, minor fixes by me).
Diffstat (limited to 'www')
-rw-r--r-- | www/ap2-php4/DESCR | 6 | ||||
-rw-r--r-- | www/ap2-php4/MESSAGE | 15 | ||||
-rw-r--r-- | www/ap2-php4/Makefile | 25 | ||||
-rw-r--r-- | www/ap2-php4/PLIST | 2 |
4 files changed, 48 insertions, 0 deletions
diff --git a/www/ap2-php4/DESCR b/www/ap2-php4/DESCR new file mode 100644 index 00000000000..98b126e653d --- /dev/null +++ b/www/ap2-php4/DESCR @@ -0,0 +1,6 @@ +PHP is an HTML-embedded scripting language. Much of its syntax is borrowed +from C, Java and Perl with a couple of unique PHP-specific features thrown +in. The goal of the language is to allow web developers to write +dynamically generated pages quickly. + +This package contains the dynamically loadable PHP4 Apache module. diff --git a/www/ap2-php4/MESSAGE b/www/ap2-php4/MESSAGE new file mode 100644 index 00000000000..669d264d2e4 --- /dev/null +++ b/www/ap2-php4/MESSAGE @@ -0,0 +1,15 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2002/10/17 09:56:52 martti Exp $ + +To add this to your Apache server, you will need to add the following +lines to the appropriate place in your httpd.conf file: + + LoadModule php4_module lib/httpd/mod_php4.so + + AddType application/x-httpd-php .php + +You may also add following if you still use .php3 files: + + AddType application/x-httpd-php .php3 + +=========================================================================== diff --git a/www/ap2-php4/Makefile b/www/ap2-php4/Makefile new file mode 100644 index 00000000000..c376d0d6107 --- /dev/null +++ b/www/ap2-php4/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/17 09:56:52 martti Exp $ + +PKGNAME= ap2-php-${PHP_BASE_VERS} +PKGREVISION= # empty +COMMENT= Apache module for PHP4 + +DEPENDS+= php>=${PHP_BASE_VERS}:../../www/php4 + +USE_BUILDLINK2= YES +APACHE_MODULE= YES + +CONFIGURE_ARGS+= --with-tsrm-pth + +.include "../../www/php4/Makefile.php" + +# Ensure we export symbols in the linked shared object. +LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so \ + ${PREFIX}/lib/httpd/mod_php4.so + +.include "../../www/apache2/buildlink2.mk" +.include "../../devel/pth/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap2-php4/PLIST b/www/ap2-php4/PLIST new file mode 100644 index 00000000000..480b58b33be --- /dev/null +++ b/www/ap2-php4/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/17 09:56:52 martti Exp $ +lib/httpd/mod_php4.so |