diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2000-10-25 13:28:41 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2000-10-25 13:28:41 +0000 |
commit | 5999169cc8853a0b2f6c7bdfcb8733628ebc8397 (patch) | |
tree | a17618aed627fd7c6db432b74e720101f4cbf01c /www | |
parent | ccd0e9161db0473043d88e3a30a9d6df6e84ddd6 (diff) | |
download | pkgsrc-5999169cc8853a0b2f6c7bdfcb8733628ebc8397.tar.gz |
PHP4 (Apache module) package. Based upon www/php3 package a lot.
Diffstat (limited to 'www')
-rw-r--r-- | www/ap-php4/Makefile | 54 | ||||
-rw-r--r-- | www/ap-php4/files/md5 | 3 | ||||
-rw-r--r-- | www/ap-php4/pkg/COMMENT | 1 | ||||
-rw-r--r-- | www/ap-php4/pkg/DESCR | 4 | ||||
-rw-r--r-- | www/ap-php4/pkg/MESSAGE | 20 | ||||
-rw-r--r-- | www/ap-php4/pkg/PLIST | 6 |
6 files changed, 88 insertions, 0 deletions
diff --git a/www/ap-php4/Makefile b/www/ap-php4/Makefile new file mode 100644 index 00000000000..ed6252b29cf --- /dev/null +++ b/www/ap-php4/Makefile @@ -0,0 +1,54 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/10/25 13:28:41 jdolecek Exp $ +# + +DISTNAME= php-4.0.1pl2 +PKGNAME= ap-${DISTNAME} +CATEGORIES= www lang +# Note the http address is written this way by purpose, so that bsd.pkg.mk DTRT +MASTER_SITES= http://www.php.net/do_download.php?source_site=www.php.net&download_file= \ + ftp://ftp.php.net/pub/distributions/ + +MAINTAINER= jdolecek@netbsd.org +HOMEPAGE= http://www.php.net/ + +DEPENDS+= apache-1.3.*:../../www/apache +DEPENDS+= gdbm>=1.7.3:../../databases/gdbm + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +DEPENDS+= zlib-*:../../devel/zlib +.endif + +USE_PERL5= yes +USE_LIBTOOL= yes +LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig + +# Here we configure only for what NetBSD ships. We add the rest via modules. +# The --without-mysql is there to avoid using the bundled MySQL client library. +GNU_CONFIGURE= # defined +CONFIGURE_ARGS+=--with-system-regex --without-gd \ + --with-gdbm=${PREFIX} \ + --with-yp --with-zlib --with-dbase --with-filepro \ + --with-config-file-path=${PREFIX}/etc \ + --with-exec-dir=${PREFIX}/libexec/php4 \ + --enable-track-vars --enable-force-cgi-redirect \ + --enable-discard-path --enable-memory-limit \ + --enable-sysvsem --enable-sysvshm \ + --enable-wddx --without-mysql \ + --with-apxs=${LOCALBASE}/sbin/apxs +CONFIGURE_ENV+= PERL_PATH=${PERL5} + +MESSAGE_FILE=${WRKDIR}/.MESSAGE +pre-install: + ${SED} -e "s^%PREFIX%^$$PREFIX^" ${PKGDIR}/MESSAGE > ${MESSAGE_FILE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/.libs/libphp4.so \ + ${PREFIX}/lib/httpd/mod_php4.so + ${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/ + ${INSTALL_DATA} ${WRKSRC}/php.ini-optimized ${PREFIX}/etc/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/php4 + ${INSTALL_DATA} ${WRKSRC}/php4.gif ${PREFIX}/share/php4/ + +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap-php4/files/md5 b/www/ap-php4/files/md5 new file mode 100644 index 00000000000..030aec3e259 --- /dev/null +++ b/www/ap-php4/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/10/25 13:28:41 jdolecek Exp $ + +MD5 (php-4.0.1pl2.tar.gz) = 124ef02aa3304f8b0c883e83f60d17e5 diff --git a/www/ap-php4/pkg/COMMENT b/www/ap-php4/pkg/COMMENT new file mode 100644 index 00000000000..b46bb6120cc --- /dev/null +++ b/www/ap-php4/pkg/COMMENT @@ -0,0 +1 @@ +PHP4: Hypertext Preprocessor (Apache module) diff --git a/www/ap-php4/pkg/DESCR b/www/ap-php4/pkg/DESCR new file mode 100644 index 00000000000..14527807a53 --- /dev/null +++ b/www/ap-php4/pkg/DESCR @@ -0,0 +1,4 @@ +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. diff --git a/www/ap-php4/pkg/MESSAGE b/www/ap-php4/pkg/MESSAGE new file mode 100644 index 00000000000..53a713f4f2d --- /dev/null +++ b/www/ap-php4/pkg/MESSAGE @@ -0,0 +1,20 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2000/10/25 13:28:41 jdolecek 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_php3.so + + AddModule mod_php4.c + AddType application/x-httpd-php .php + +You may also add following if you still use .php3 files: + + AddType application/x-httpd-php .php3 + +Example configuration files suitable to be a basis for custom php.ini are +at: + %PREFIX%/etc/php.ini-dist + %PREFIX%/etc/php.ini-optimized +=========================================================================== diff --git a/www/ap-php4/pkg/PLIST b/www/ap-php4/pkg/PLIST new file mode 100644 index 00000000000..ce448dfaa4e --- /dev/null +++ b/www/ap-php4/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/25 13:28:41 jdolecek Exp $ +lib/httpd/mod_php4.so +etc/php.ini-dist +etc/php.ini-optimized +share/php4/php4.gif +@dirrm share/php4 |