From c994d550f7bb503bcb806ba7b85ffa429ed58c17 Mon Sep 17 00:00:00 2001 From: cjs Date: Fri, 24 Jul 1998 00:18:03 +0000 Subject: Initial go at a package for a php3 apache module. --- www/php3/Makefile | 28 ++++++++++++++++++++++++++++ www/php3/files/md5 | 1 + www/php3/patches/patch-aa | 19 +++++++++++++++++++ www/php3/pkg/COMMENT | 1 + www/php3/pkg/DESCR | 3 +++ www/php3/pkg/MESSAGE | 7 +++++++ www/php3/pkg/PLIST | 2 ++ 7 files changed, 61 insertions(+) create mode 100644 www/php3/Makefile create mode 100644 www/php3/files/md5 create mode 100644 www/php3/patches/patch-aa create mode 100644 www/php3/pkg/COMMENT create mode 100644 www/php3/pkg/DESCR create mode 100644 www/php3/pkg/MESSAGE create mode 100644 www/php3/pkg/PLIST (limited to 'www') diff --git a/www/php3/Makefile b/www/php3/Makefile new file mode 100644 index 00000000000..1e5aaf42a0b --- /dev/null +++ b/www/php3/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 1998/07/24 00:18:03 cjs Exp $ +# +# Notes: +# +# This package is configured to work with the NetBSD apache-1.3 package +# And the NetBSD mysql package. +# +# 1. Downloading the distribution from http://ca.php.net/distributions/ +# works with netscape, but not with our FTP client or when done by +# hand. I've sent a message to webmaster@php.org about this. +# +# 2. The DEPENDS line still needs to be done. I (cjs) am not entirely +# certain of how to go about this. +# + +DISTNAME= php-3.0.2a +PKGNAME= php-3.0.2a +CATEGORIES= www +MASTER_SITES= http://ca.php.net/distributions/ + +MAINTAINER= cjs@netbsd.org + +#DEPENDS+= perl,apache1.3,mysql + +CONFIGURE_ARGS+=--with-apxs --with-mysql=/usr/pkg --with-system-regex --enable-track-vars +GNU_CONFIGURE= YES + +.include "../../mk/bsd.pkg.mk" diff --git a/www/php3/files/md5 b/www/php3/files/md5 new file mode 100644 index 00000000000..25d69bd5e74 --- /dev/null +++ b/www/php3/files/md5 @@ -0,0 +1 @@ +MD5 (php-3.0.2a.tar.gz) = b6dcf0abbb28fa67bbebb5919b4ebcef diff --git a/www/php3/patches/patch-aa b/www/php3/patches/patch-aa new file mode 100644 index 00000000000..de6432f848d --- /dev/null +++ b/www/php3/patches/patch-aa @@ -0,0 +1,19 @@ +*** configure~ Sun Jul 19 14:59:40 1998 +--- configure Thu Jul 23 16:49:12 1998 +*************** +*** 3352,3358 **** + EOF + + cat >> confdefs.h <<\EOF +! #define HAVE_AP_COMPAT_H 1 + EOF + + echo "$ac_t""yes" 1>&6 +--- 3352,3358 ---- + EOF + + cat >> confdefs.h <<\EOF +! #define HAVE_OLD_COMPAT_H 1 + EOF + + echo "$ac_t""yes" 1>&6 diff --git a/www/php3/pkg/COMMENT b/www/php3/pkg/COMMENT new file mode 100644 index 00000000000..a7b5b45bd0d --- /dev/null +++ b/www/php3/pkg/COMMENT @@ -0,0 +1 @@ +php3 HTML-embedded programming language with database connectivity diff --git a/www/php3/pkg/DESCR b/www/php3/pkg/DESCR new file mode 100644 index 00000000000..35598111d6e --- /dev/null +++ b/www/php3/pkg/DESCR @@ -0,0 +1,3 @@ +PHP is a programming language designed to be embedded into web pages. +This version is compiled with MySQL database connectivity. +Further information is available at http://www.php.org. diff --git a/www/php3/pkg/MESSAGE b/www/php3/pkg/MESSAGE new file mode 100644 index 00000000000..a3e1e33c610 --- /dev/null +++ b/www/php3/pkg/MESSAGE @@ -0,0 +1,7 @@ +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 php3_module /usr/pkg/lib/apache/libphp3.so + + AddModule mod_php3.c + AddType application/x-httpd-php3 .php3 diff --git a/www/php3/pkg/PLIST b/www/php3/pkg/PLIST new file mode 100644 index 00000000000..afa4d9ee292 --- /dev/null +++ b/www/php3/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 1998/07/24 00:18:04 cjs Exp $ +lib/apache/libphp3.so -- cgit v1.2.3