pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/ap-php new package ap-php - it merges ap-php4 and ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/01aa5ad50e0b
branches: trunk
changeset: 482888:01aa5ad50e0b
user: jdolecek <jdolecek%pkgsrc.org@localhost>
date: Thu Nov 04 18:42:03 2004 +0000
description:
new package ap-php - it merges ap-php4 and ap-php5 and allows to build either
diffstat:
www/ap-php/DESCR | 7 +++++++
www/ap-php/MESSAGE | 23 +++++++++++++++++++++++
www/ap-php/Makefile | 28 ++++++++++++++++++++++++++++
www/ap-php/PLIST | 2 ++
4 files changed, 60 insertions(+), 0 deletions(-)
diffs (76 lines):
diff -r c661c75bdcbb -r 01aa5ad50e0b www/ap-php/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php/DESCR Thu Nov 04 18:42:03 2004 +0000
@@ -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 -r c661c75bdcbb -r 01aa5ad50e0b www/ap-php/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php/MESSAGE Thu Nov 04 18:42:03 2004 +0000
@@ -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 -r c661c75bdcbb -r 01aa5ad50e0b www/ap-php/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php/Makefile Thu Nov 04 18:42:03 2004 +0000
@@ -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 -r c661c75bdcbb -r 01aa5ad50e0b www/ap-php/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-php/PLIST Thu Nov 04 18:42:03 2004 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index