summaryrefslogtreecommitdiff
path: root/www/ap-php
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-11-04 18:42:03 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-11-04 18:42:03 +0000
commit7a98b8644092dbf370aa800374003fed927d4447 (patch)
treeb9c481eadcc69053da2e6d2faaebcd05fbe511e4 /www/ap-php
parent783c8ebeba80e72925cb7ea3cf72c54f771a787b (diff)
downloadpkgsrc-7a98b8644092dbf370aa800374003fed927d4447.tar.gz
new package ap-php - it merges ap-php4 and ap-php5 and allows to build either
Diffstat (limited to 'www/ap-php')
-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