summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/ap-php/DESCR7
-rw-r--r--www/ap-php/MESSAGE23
-rw-r--r--www/ap-php/Makefile28
-rw-r--r--www/ap-php/PLIST2
4 files changed, 60 insertions, 0 deletions
diff --git a/www/ap-php/DESCR b/www/ap-php/DESCR
new file mode 100644
index 00000000000..69ca5fd1a26
--- /dev/null
+++ b/www/ap-php/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 PHP Apache module.
diff --git a/www/ap-php/MESSAGE b/www/ap-php/MESSAGE
new file mode 100644
index 00000000000..dc74cef5830
--- /dev/null
+++ b/www/ap-php/MESSAGE
@@ -0,0 +1,23 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/11/04 18:42:03 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 php4_module lib/httpd/mod_php${PKG_PHP_VERSION}.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 php4_module lib/httpd/mod_php${PKG_PHP_VERSION}.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-php/Makefile b/www/ap-php/Makefile
new file mode 100644
index 00000000000..7641f5b9c8b
--- /dev/null
+++ b/www/ap-php/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/04 18:42:03 jdolecek Exp $
+#
+
+PKGNAME= ap-php-${PHP_BASE_VERS}
+COMMENT= Apache (${PKG_APACHE}) module for ${PKG_PHP}
+
+USE_BUILDLINK3= YES
+APACHE_MODULE= YES
+SHLIBTOOL_OVERRIDE= libtool
+
+.include "../../lang/php/phpversion.mk"
+.include "${PHPPKGSRCDIR}/Makefile.php"
+
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+
+do-install:
+ if [ -f ${WRKSRC}/.libs/libphp${PKG_PHP_VERSION}.so ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/.libs/libphp${PKG_PHP_VERSION}.so \
+ ${PREFIX}/lib/httpd/mod_php${PKG_PHP_VERSION}.so; \
+ elif [ -f ${WRKSRC}/libs/libphp${PKG_PHP_VERSION}.so ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/libs/libphp${PKG_PHP_VERSION}.so \
+ ${PREFIX}/lib/httpd/mod_php${PKG_PHP_VERSION}.so; \
+ fi
+
+.include "${PHPPKGSRCDIR}/buildlink3.mk"
+.include "../../mk/apache.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap-php/PLIST b/www/ap-php/PLIST
new file mode 100644
index 00000000000..053745936cf
--- /dev/null
+++ b/www/ap-php/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/04 18:42:03 jdolecek Exp $
+lib/httpd/mod_php${PKG_PHP_VERSION}.so