From ff6e4ba8c99ffd8a55941f2a52aa096f6e653a3b Mon Sep 17 00:00:00 2001 From: martti Date: Thu, 17 Oct 2002 09:56:52 +0000 Subject: This is the php4 module for apache2 users (provided by Dawid Szymanski in PR#17085, minor fixes by me). --- www/ap2-php4/DESCR | 6 ++++++ www/ap2-php4/MESSAGE | 15 +++++++++++++++ www/ap2-php4/Makefile | 25 +++++++++++++++++++++++++ www/ap2-php4/PLIST | 2 ++ 4 files changed, 48 insertions(+) create mode 100644 www/ap2-php4/DESCR create mode 100644 www/ap2-php4/MESSAGE create mode 100644 www/ap2-php4/Makefile create mode 100644 www/ap2-php4/PLIST (limited to 'www/ap2-php4') 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 -- cgit v1.2.3