diff options
author | dirk <dirk@FreeBSD.org> | 2000-05-29 19:24:19 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2000-05-29 19:24:19 +0000 |
commit | a3b2335ce7721331a4dd33cd5d945761093d7202 (patch) | |
tree | fe91d6efadd3e55cded35f7303e5899b22371ad7 | |
parent | 6e4ee0c79fae9c5d7cb1891778e05cde8ae9680c (diff) | |
download | FreeBSD-ports-a3b2335ce7721331a4dd33cd5d945761093d7202.zip FreeBSD-ports-a3b2335ce7721331a4dd33cd5d945761093d7202.tar.gz |
Add mod_php3 after repository copy from apache13-php3.
-rw-r--r-- | www/mod_php3/Makefile | 159 | ||||
-rw-r--r-- | www/mod_php3/distinfo | 2 | ||||
-rw-r--r-- | www/mod_php3/files/patch-aq | 32 | ||||
-rw-r--r-- | www/mod_php3/files/patch-ar | 4 | ||||
-rw-r--r-- | www/mod_php3/pkg-comment | 2 | ||||
-rw-r--r-- | www/mod_php3/pkg-descr | 22 | ||||
-rw-r--r-- | www/mod_php3/pkg-message | 19 | ||||
-rw-r--r-- | www/mod_php3/pkg-plist | 382 | ||||
-rw-r--r-- | www/mod_php3/scripts/configure.php | 131 |
9 files changed, 111 insertions, 642 deletions
diff --git a/www/mod_php3/Makefile b/www/mod_php3/Makefile index 9780772..5802b74 100644 --- a/www/mod_php3/Makefile +++ b/www/mod_php3/Makefile @@ -1,150 +1,84 @@ -# New ports collection makefile for: Apache / PHP -# Date created: So 21 Jun 1998 16:09:39 CEST -# Whom: Stefan Herrmann <stefan@asterix.webaffairs.net> +# New ports collection makefile for: mod_php3 +# Date created: Wed Feb 23 11:28:12 CEST 2000 +# Whom: Dirk Froemberg <dirk@FreeBSD.org> # # $FreeBSD$ # -PORTNAME= apache+php -PORTVERSION= ${VERSION_APACHE}+${VERSION_PHP} +PORTNAME= mod_php +PORTVERSION= 3.0.16 CATEGORIES= www -MASTER_SITES= http://www.apache.org/dist/ \ - http://www.rge.com/pub/infosystems/apache/dist/ \ - ftp://ftp.php.net/pub/${PHP_DISTDIR}/ \ +MASTER_SITES= ftp://ftp.php.net/pub/${PHP_DISTDIR}/ \ http://us.php.net/${PHP_DISTDIR}/ \ - http://www.modssl.org/source/ \ - ftp://ftp.modssl.org/source/ \ - http://www.apache.de/dist/ \ - ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/ \ http://php.he.net/${PHP_DISTDIR}/ \ http://www.php3.de/${PHP_DISTDIR}/ \ - ftp://ftp.ecrc.net/pub/security/mod_ssl/ \ - ftp://ftp.nvg.ntnu.no/pub/unix/mod_ssl/ \ - ftp://apache.compuex.com/pub/apache/dist/ \ - ftp://apache.arctic.org/pub/apache/dist/ \ http://au.php.net:81/${PHP_DISTDIR}/ \ http://at.php.net/${PHP_DISTDIR}/ \ - ftp://ftp.ulpgc.es/pub/mod_ssl/ \ - ftp://glock.missouri.edu/pub/mod_ssl/ \ - ftp://ftp.epix.net/pub/apache/dist/ \ - ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/ \ http://br.php.net/${PHP_DISTDIR}/ \ http://php.easydns.com/${PHP_DISTDIR}/ \ - ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/mod_ssl/ \ - ftp://ftp.uni-trier.de/pub/unix/security/mod_ssl/ \ - ftp://ftp.connectnet.com/pub/www/apache/ \ - ftp://apache.technomancer.com/mirrors/apache/dist/ \ http://www.php.cz/${PHP_DISTDIR}/ \ - http://php3.globe.de/${PHP_DISTDIR}/ \ - ftp://ftp.blatzheim.com/pub/mod_ssl/ \ - ftp://ftp.fu-berlin.de/unix/security/mod_ssl/ -DISTNAME= apache_${VERSION_APACHE} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} php-${VERSION_PHP}${EXTRACT_SUFX} + http://php3.globe.de/${PHP_DISTDIR}/ +DISTNAME= php-${PORTVERSION} MAINTAINER= dirk@FreeBSD.org -FORBIDDEN= "awaiting update" +BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 Y2K= http://www.php.net/y2k.php3 PHP_DISTDIR= distributions -VERSION_APACHE= 1.3.12 -VERSION_PHP= 3.0.16 - -USE_PERL5= yes -HAS_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX} \ - --target=apache \ - --with-layout=GNU \ - --with-perl=${PERL} \ - --bindir=${PREFIX}/bin \ - --sbindir=${PREFIX}/sbin \ - --libexecdir=${PREFIX}/libexec/apache \ - --mandir=${PREFIX}/man \ - --sysconfdir=${PREFIX}/etc/apache \ - --datadir=${PREFIX}/share/apache \ - --includedir=${PREFIX}/include/apache \ - --localstatedir=/var \ - --runtimedir=/var/run \ - --logfiledir=/var/log \ - --proxycachedir=/var/spool/apache \ - --without-confadjust \ - --enable-module=most \ - --enable-module=auth_db \ - --disable-module=auth_dbm \ - --enable-shared=max \ - --activate-module=src/modules/php3/libphp3.a - -OPTIM= -DHARD_SERVER_LIMIT=512 \ - -DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\" - -CONFIGURE_ENV= OPTIM='${OPTIM}' LIBS='-L${PREFIX}/lib' -SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ - TOUCH="${TOUCH}" \ - MKDIR="${MKDIR}" - -INSTALL_TARGET= install-quiet - -MAN1= dbmmanage.1 htdigest.1 htpasswd.1 -MAN8= ab.8 apache.8 apachectl.8 apxs.8 logresolve.8 rotatelogs.8 +APXS= ${PREFIX}/sbin/apxs -APACHEDOCDIR= ${PREFIX}/share/doc/apache -PHPDOCDIR= ${PREFIX}/share/doc/php - -PHP_CONF_ARGS= --prefix=${PREFIX} \ - ${CONFIGURE_TARGET} \ +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-apxs=${APXS} \ --with-system-regex \ - --with-apache=${WRKSRC} \ --with-config-file-path=${PREFIX}/etc \ --disable-debug \ --enable-track-vars \ --without-gd +SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ + TOUCH="${TOUCH}" \ + MKDIR="${MKDIR}" + +.if exists(${APXS}) +AP_LIBEXEC!= ${APXS} -q LIBEXEC +.else +AP_LIBEXEC= ${PREFIX}/libexec/apache +.endif + +PHPDOCDIR= ${PREFIX}/share/doc/php3 +PLIST_SUB= PHPDOCDIR=${PHPDOCDIR:S/^${PREFIX}\///} \ + AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///} + pre-fetch: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php -post-extract: - @${LN} -s php-${VERSION_PHP} ${WRKDIR}/php - -pre-configure: - @cd ${WRKSRC} \ - && CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \ - && cd ${WRKDIR}/php-${VERSION_PHP} \ - && ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \ - && CC="${CC}" \ - CFLAGS="${CFLAGS}" \ - CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/include/gd" \ - LDFLAGS=-L${PREFIX}/lib \ - ./configure ${PHP_CONF_ARGS} \ - && ${ECHO_MSG} "===> Building for PHP-${VERSION_PHP}" \ - && ${MAKE} install \ - && ${ECHO_MSG} "===> Configuring for Apache-${VERSION_APACHE}" - post-install: - @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ - ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -d ${PREFIX}/pgsql/lib ] && ${LDCONFIG} -m ${PREFIX}/pgsql/lib" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ - fi - ${INSTALL_DATA} ${WRKDIR}/php-${VERSION_PHP}/php3.ini-dist ${PREFIX}/etc -.for i in php2 php3 phpi phps - ${INSTALL_DATA} ${WRKDIR}/php-${VERSION_PHP}/extra/icons/$i.gif ${PREFIX}/share/apache/icons -.endfor + @${ECHO} "Restarting Apache..." + @${PREFIX}/sbin/apachectl restart + @${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/etc .if !defined(NOPORTDOCS) - ${MKDIR} ${APACHEDOCDIR} ${PHPDOCDIR} -.for i in README LICENSE ABOUT_APACHE - ${INSTALL_DATA} ${WRKSRC}/$i ${APACHEDOCDIR} -.endfor + @${MKDIR} ${PHPDOCDIR} .for i in CODING_STANDARDS LICENSE - ${INSTALL_DATA} ${WRKDIR}/php-${VERSION_PHP}/$i ${PHPDOCDIR} + @${INSTALL_DATA} ${WRKSRC}/$i ${PHPDOCDIR} .endfor - @${ECHO} "Docs reside in ${APACHEDOCDIR}" - @${ECHO} "and in ${PHPDOCDIR}" .endif + @${ECHO} "*****************************************************************************" + @${ECHO} "Make sure the mime.types are connected to the php module properly and" + @${ECHO} "index.php3 is part of your DirectoryIndex." + @${ECHO} "" + @${ECHO} "The following should be in your Apache configuration file:" + @${ECHO} "[...]" + @${ECHO} "DirectoryIndex index.php3 index.html" + @${ECHO} "[...]" + @${ECHO} "AddType application/x-httpd-php3 .php3" + @${ECHO} "AddType application/x-httpd-php3-source .php3s" + @${ECHO} "[...]" + @${ECHO} "*****************************************************************************" post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc @@ -153,9 +87,4 @@ post-clean: .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif -# Modssl needs to include bsd.port.pre.mk, so correct for this situation. -.if defined(_PREMKINCLUDED) -.include <bsd.port.post.mk> -.else .include <bsd.port.mk> -.endif diff --git a/www/mod_php3/distinfo b/www/mod_php3/distinfo index f3a9914..01111e8 100644 --- a/www/mod_php3/distinfo +++ b/www/mod_php3/distinfo @@ -1,3 +1 @@ -MD5 (apache_1.3.12.tar.gz) = de3ccff384b0d4ab94c3251cb85d49d2 MD5 (php-3.0.16.tar.gz) = 0dc379181f625c30f635c2cf3080acb1 -MD5 (mod_ssl-2.6.4-1.3.12.tar.gz) = 364cde55554e29ad72a531370f52d83e diff --git a/www/mod_php3/files/patch-aq b/www/mod_php3/files/patch-aq index 466156f..dad7927 100644 --- a/www/mod_php3/files/patch-aq +++ b/www/mod_php3/files/patch-aq @@ -1,33 +1,5 @@ ---- ../php/configure.orig Fri Feb 25 21:49:48 2000 -+++ ../php/configure Tue Feb 29 22:29:05 2000 -@@ -5214,26 +5214,10 @@ - if test -n "$unique" && test "`eval $cmd`" = "" ; then - eval "LIBPATH$unique=set" - -- EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" -- if test -n "$APXS" ; then -- RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'" -- else -- RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" -- fi -- -- fi -+ EXTRA_LIBS="$EXTRA_LIBS $ai_p/libc-client4.a" - - fi - -- -- -- unique=`echo $ac_n "c-client4$ac_c" | tr -c -d a-zA-Z0-9` -- cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\"" -- if test -n "$unique" && test "`eval $cmd`" = "" ; then -- eval "LIBRARY$unique=set" -- -- EXTRA_LIBS="$EXTRA_LIBS -lc-client4" -- - fi - - +--- configure.orig Fri Feb 25 21:49:48 2000 ++++ configure Tue Feb 29 22:29:05 2000 @@ -8961,7 +8945,7 @@ fi SYBASE_CT_INCLUDE=-I$SYBASE_CT_INCDIR diff --git a/www/mod_php3/files/patch-ar b/www/mod_php3/files/patch-ar index 7019b32..32fca3c 100644 --- a/www/mod_php3/files/patch-ar +++ b/www/mod_php3/files/patch-ar @@ -1,5 +1,5 @@ ---- ../php/functions/sybase.c.orig Tue Feb 8 00:54:51 2000 -+++ ../php/functions/sybase.c Tue Feb 29 22:01:07 2000 +--- functions/sybase.c.orig Tue Feb 8 00:54:51 2000 ++++ functions/sybase.c Tue Feb 29 22:01:07 2000 @@ -366,7 +366,7 @@ RETURN_FALSE; } diff --git a/www/mod_php3/pkg-comment b/www/mod_php3/pkg-comment index e43bd8f..926a075 100644 --- a/www/mod_php3/pkg-comment +++ b/www/mod_php3/pkg-comment @@ -1 +1 @@ -Apache http server with compiled in PHP module +PHP3 module for Apache diff --git a/www/mod_php3/pkg-descr b/www/mod_php3/pkg-descr index 77d7140..cea408b 100644 --- a/www/mod_php3/pkg-descr +++ b/www/mod_php3/pkg-descr @@ -1,20 +1,4 @@ -Apache 1.3 + PHP -================ +Server-side, cross-platform, HTML embedded scripting language which +offers easy database integration. -Apache is an HTTP server designed as a plug-in replacement for the -NCSA server version 1.3 (or 1.4). It fixes numerous bugs in the -NCSA server and includes many frequently requested new features, -and has an API which allows it to be extended to meet users' needs -more easily. - -This version has PHP compiled in. PHP is a server-side, cross-platform, -HTML embedded scripting language which offers easy database integration. -SSL support (mod_ssl + OpenSSL) is available as an option. - -Documentation -============= - -Apache: http://www.apache.org/ -PHP: http://www.php.net/ -mod_ssl: http://www.modssl.org/ -OpenSSL: http://www.openssl.org/ +WWW: http://www.php.net/ diff --git a/www/mod_php3/pkg-message b/www/mod_php3/pkg-message index 03d6311..8741171 100644 --- a/www/mod_php3/pkg-message +++ b/www/mod_php3/pkg-message @@ -1,9 +1,20 @@ ***************************************************************************** -You have just installed the apache13-php3 package. +You have installed the mod_php3 package. -Have a look at the apache13-php3 port if you need additional support for -databases or SSL. +Have a look at the mod_php3 _port_ if you need additional support for +databases other than MySQL, e. g. You can find it at -ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/www/apache13-php3.tar +ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/www/mod_php3.tar + +Make sure the mime.types are connected to the php module properly and +index.php3 is part of your DirectoryIndex. + +The following should be in your Apache configuration file: +[...] +DirectoryIndex index.php3 index.html +[...] +AddType application/x-httpd-php3 .php3 +AddType application/x-httpd-php3-source .php3s +[...] ***************************************************************************** diff --git a/www/mod_php3/pkg-plist b/www/mod_php3/pkg-plist index 3d75706..cf394cf 100644 --- a/www/mod_php3/pkg-plist +++ b/www/mod_php3/pkg-plist @@ -1,376 +1,8 @@ -bin/dbmmanage -bin/htdigest -bin/htpasswd -etc/apache/apache.conf.default -@exec [ ! -f %B/apache.conf ] && cp %B/%f %B/apache.conf -etc/apache/magic.default -@exec [ ! -f %B/magic ] && cp %B/%f %B/magic -etc/apache/mime.types.default -@exec [ ! -f %B/mime.types ] && cp %B/%f %B/mime.types etc/php3.ini-dist -etc/rc.d/apache.sh -include/apache/alloc.h -include/apache/ap.h -include/apache/ap_compat.h -include/apache/ap_config.h -include/apache/ap_config_auto.h -include/apache/ap_ctype.h -include/apache/ap_md5.h -include/apache/ap_mmn.h -include/apache/ap_sha1.h -include/apache/buff.h -include/apache/compat.h -include/apache/conf.h -include/apache/explain.h -include/apache/fnmatch.h -include/apache/hsregex.h -include/apache/http_conf_globals.h -include/apache/http_config.h -include/apache/http_core.h -include/apache/http_log.h -include/apache/http_main.h -include/apache/http_protocol.h -include/apache/http_request.h -include/apache/http_vhost.h -include/apache/httpd.h -include/apache/multithread.h -include/apache/os-inline.c -include/apache/os.h -include/apache/rfc1413.h -include/apache/scoreboard.h -include/apache/util_date.h -include/apache/util_md5.h -include/apache/util_script.h -include/apache/util_uri.h -include/apache/xml/asciitab.h -include/apache/xml/hashtable.h -include/apache/xml/iasciitab.h -include/apache/xml/latin1tab.h -include/apache/xml/nametab.h -include/apache/xml/utf8tab.h -include/apache/xml/xmldef.h -include/apache/xml/xmlparse.h -include/apache/xml/xmlrole.h -include/apache/xml/xmltok.h -include/apache/xml/xmltok_impl.h -libexec/apache/httpd.exp -libexec/apache/libproxy.so -libexec/apache/mod_access.so -libexec/apache/mod_actions.so -libexec/apache/mod_alias.so -libexec/apache/mod_asis.so -libexec/apache/mod_auth.so -libexec/apache/mod_auth_anon.so -libexec/apache/mod_auth_db.so -libexec/apache/mod_autoindex.so -libexec/apache/mod_cern_meta.so -libexec/apache/mod_cgi.so -libexec/apache/mod_digest.so -libexec/apache/mod_dir.so -libexec/apache/mod_env.so -libexec/apache/mod_expires.so -libexec/apache/mod_headers.so -libexec/apache/mod_imap.so -libexec/apache/mod_include.so -libexec/apache/mod_info.so -libexec/apache/mod_log_config.so -libexec/apache/mod_mime.so -libexec/apache/mod_mime_magic.so -libexec/apache/mod_negotiation.so -libexec/apache/mod_rewrite.so -libexec/apache/mod_setenvif.so -libexec/apache/mod_speling.so -libexec/apache/mod_status.so -libexec/apache/mod_unique_id.so -libexec/apache/mod_userdir.so -libexec/apache/mod_usertrack.so -libexec/apache/mod_vhost_alias.so -sbin/ab -sbin/apache -sbin/apachectl -sbin/apxs -sbin/logresolve -sbin/rotatelogs -share/apache/cgi-bin/printenv -share/apache/cgi-bin/test-cgi -share/apache/htdocs/apache_pb.gif -share/apache/htdocs/index.html.ca -share/apache/htdocs/index.html.cz -share/apache/htdocs/index.html.de -share/apache/htdocs/index.html.dk -share/apache/htdocs/index.html.ee -share/apache/htdocs/index.html.en -share/apache/htdocs/index.html.es -share/apache/htdocs/index.html.fr -share/apache/htdocs/index.html.it -share/apache/htdocs/index.html.ja.jis -share/apache/htdocs/index.html.lu -share/apache/htdocs/index.html.nl -share/apache/htdocs/index.html.po.iso-pl -share/apache/htdocs/index.html.pt -share/apache/htdocs/index.html.pt-br -share/apache/htdocs/index.html.se -share/apache/htdocs/manual/LICENSE -share/apache/htdocs/manual/bind.html -share/apache/htdocs/manual/cgi_path.html -share/apache/htdocs/manual/content-negotiation.html -share/apache/htdocs/manual/custom-error.html -share/apache/htdocs/manual/dns-caveats.html -share/apache/htdocs/manual/dso.html -share/apache/htdocs/manual/ebcdic.html -share/apache/htdocs/manual/env.html -share/apache/htdocs/manual/footer.html -share/apache/htdocs/manual/handler.html -share/apache/htdocs/manual/header.html -share/apache/htdocs/manual/images/custom_errordocs.gif -share/apache/htdocs/manual/images/home.gif -share/apache/htdocs/manual/images/index.gif -share/apache/htdocs/manual/images/mod_rewrite_fig1.fig -share/apache/htdocs/manual/images/mod_rewrite_fig1.gif -share/apache/htdocs/manual/images/mod_rewrite_fig2.fig -share/apache/htdocs/manual/images/mod_rewrite_fig2.gif -share/apache/htdocs/manual/images/sub.gif -share/apache/htdocs/manual/index.html -share/apache/htdocs/manual/install-tpf.html -share/apache/htdocs/manual/install.html -share/apache/htdocs/manual/invoking.html -share/apache/htdocs/manual/keepalive.html -share/apache/htdocs/manual/location.html -share/apache/htdocs/manual/man-template.html -share/apache/htdocs/manual/misc/API.html -share/apache/htdocs/manual/misc/FAQ.html -share/apache/htdocs/manual/misc/HTTP_Features.tsv -share/apache/htdocs/manual/misc/client_block_api.html -share/apache/htdocs/manual/misc/compat_notes.html -share/apache/htdocs/manual/misc/custom_errordocs.html -share/apache/htdocs/manual/misc/descriptors.html -share/apache/htdocs/manual/misc/fin_wait_2.html -share/apache/htdocs/manual/misc/footer.html -share/apache/htdocs/manual/misc/header.html -share/apache/htdocs/manual/misc/howto.html -share/apache/htdocs/manual/misc/index.html -share/apache/htdocs/manual/misc/known_client_problems.html -share/apache/htdocs/manual/misc/nopgp.html -share/apache/htdocs/manual/misc/perf-bsd44.html -share/apache/htdocs/manual/misc/perf-dec.html -share/apache/htdocs/manual/misc/perf-hp.html -share/apache/htdocs/manual/misc/perf-tuning.html -share/apache/htdocs/manual/misc/perf.html -share/apache/htdocs/manual/misc/rewriteguide.html -share/apache/htdocs/manual/misc/security_tips.html -share/apache/htdocs/manual/misc/vif-info.html -share/apache/htdocs/manual/misc/windoz_keepalive.html -share/apache/htdocs/manual/mod/core.html -share/apache/htdocs/manual/mod/directive-dict.html -share/apache/htdocs/manual/mod/directives.html -share/apache/htdocs/manual/mod/footer.html -share/apache/htdocs/manual/mod/header.html -share/apache/htdocs/manual/mod/index.html -share/apache/htdocs/manual/mod/mod_access.html -share/apache/htdocs/manual/mod/mod_actions.html -share/apache/htdocs/manual/mod/mod_alias.html -share/apache/htdocs/manual/mod/mod_asis.html -share/apache/htdocs/manual/mod/mod_auth.html -share/apache/htdocs/manual/mod/mod_auth_anon.html -share/apache/htdocs/manual/mod/mod_auth_db.html -share/apache/htdocs/manual/mod/mod_auth_dbm.html -share/apache/htdocs/manual/mod/mod_auth_digest.html -share/apache/htdocs/manual/mod/mod_autoindex.html -share/apache/htdocs/manual/mod/mod_browser.html -share/apache/htdocs/manual/mod/mod_cern_meta.html -share/apache/htdocs/manual/mod/mod_cgi.html -share/apache/htdocs/manual/mod/mod_cookies.html -share/apache/htdocs/manual/mod/mod_digest.html -share/apache/htdocs/manual/mod/mod_dir.html -share/apache/htdocs/manual/mod/mod_dld.html -share/apache/htdocs/manual/mod/mod_dll.html -share/apache/htdocs/manual/mod/mod_env.html -share/apache/htdocs/manual/mod/mod_example.html -share/apache/htdocs/manual/mod/mod_expires.html -share/apache/htdocs/manual/mod/mod_headers.html -share/apache/htdocs/manual/mod/mod_imap.html -share/apache/htdocs/manual/mod/mod_include.html -share/apache/htdocs/manual/mod/mod_info.html -share/apache/htdocs/manual/mod/mod_isapi.html -share/apache/htdocs/manual/mod/mod_log_agent.html -share/apache/htdocs/manual/mod/mod_log_common.html -share/apache/htdocs/manual/mod/mod_log_config.html -share/apache/htdocs/manual/mod/mod_log_referer.html -share/apache/htdocs/manual/mod/mod_mime.html -share/apache/htdocs/manual/mod/mod_mime_magic.html -share/apache/htdocs/manual/mod/mod_mmap_static.html -share/apache/htdocs/manual/mod/mod_negotiation.html -share/apache/htdocs/manual/mod/mod_proxy.html -share/apache/htdocs/manual/mod/mod_rewrite.html -share/apache/htdocs/manual/mod/mod_setenvif.html -share/apache/htdocs/manual/mod/mod_so.html -share/apache/htdocs/manual/mod/mod_speling.html -share/apache/htdocs/manual/mod/mod_status.html -share/apache/htdocs/manual/mod/mod_unique_id.html -share/apache/htdocs/manual/mod/mod_userdir.html -share/apache/htdocs/manual/mod/mod_usertrack.html -share/apache/htdocs/manual/mod/mod_vhost_alias.html -share/apache/htdocs/manual/multilogs.html -share/apache/htdocs/manual/netware.html -share/apache/htdocs/manual/new_features_1_0.html -share/apache/htdocs/manual/new_features_1_1.html -share/apache/htdocs/manual/new_features_1_2.html -share/apache/htdocs/manual/new_features_1_3.html -share/apache/htdocs/manual/process-model.html -share/apache/htdocs/manual/readme-tpf.html -share/apache/htdocs/manual/search/manual-index.cgi -share/apache/htdocs/manual/sections.html -share/apache/htdocs/manual/sourcereorg.html -share/apache/htdocs/manual/stopping.html -share/apache/htdocs/manual/suexec.html -share/apache/htdocs/manual/suexec_1_2.html -share/apache/htdocs/manual/unixware.html -share/apache/htdocs/manual/upgrading_to_1_3.html -share/apache/htdocs/manual/vhosts/details.html -share/apache/htdocs/manual/vhosts/details_1_2.html -share/apache/htdocs/manual/vhosts/examples.html -share/apache/htdocs/manual/vhosts/fd-limits.html -share/apache/htdocs/manual/vhosts/footer.html -share/apache/htdocs/manual/vhosts/header.html -share/apache/htdocs/manual/vhosts/host.html -share/apache/htdocs/manual/vhosts/index.html -share/apache/htdocs/manual/vhosts/ip-based.html -share/apache/htdocs/manual/vhosts/mass.html -share/apache/htdocs/manual/vhosts/name-based.html -share/apache/htdocs/manual/vhosts/vhosts-in-depth.html -share/apache/htdocs/manual/vhosts/virtual-host.html -share/apache/htdocs/manual/windows.html -share/apache/icons/README -share/apache/icons/a.gif -share/apache/icons/alert.black.gif -share/apache/icons/alert.red.gif -share/apache/icons/apache_pb.gif -share/apache/icons/back.gif -share/apache/icons/ball.gray.gif -share/apache/icons/ball.red.gif -share/apache/icons/binary.gif -share/apache/icons/binhex.gif -share/apache/icons/blank.gif -share/apache/icons/bomb.gif -share/apache/icons/box1.gif -share/apache/icons/box2.gif -share/apache/icons/broken.gif -share/apache/icons/burst.gif -share/apache/icons/c.gif -share/apache/icons/comp.blue.gif -share/apache/icons/comp.gray.gif -share/apache/icons/compressed.gif -share/apache/icons/continued.gif -share/apache/icons/dir.gif -share/apache/icons/down.gif -share/apache/icons/dvi.gif -share/apache/icons/f.gif -share/apache/icons/folder.gif -share/apache/icons/folder.open.gif -share/apache/icons/folder.sec.gif -share/apache/icons/forward.gif -share/apache/icons/generic.gif -share/apache/icons/generic.red.gif -share/apache/icons/generic.sec.gif -share/apache/icons/hand.right.gif -share/apache/icons/hand.up.gif -share/apache/icons/icon.sheet.gif -share/apache/icons/image1.gif -share/apache/icons/image2.gif -share/apache/icons/image3.gif -share/apache/icons/index.gif -share/apache/icons/layout.gif -share/apache/icons/left.gif -share/apache/icons/link.gif -share/apache/icons/movie.gif -share/apache/icons/p.gif -share/apache/icons/patch.gif -share/apache/icons/pdf.gif -share/apache/icons/php2.gif -share/apache/icons/php3.gif -share/apache/icons/phpi.gif -share/apache/icons/phps.gif -share/apache/icons/pie0.gif -share/apache/icons/pie1.gif -share/apache/icons/pie2.gif -share/apache/icons/pie3.gif -share/apache/icons/pie4.gif -share/apache/icons/pie5.gif -share/apache/icons/pie6.gif -share/apache/icons/pie7.gif -share/apache/icons/pie8.gif -share/apache/icons/portal.gif -share/apache/icons/ps.gif -share/apache/icons/quill.gif -share/apache/icons/right.gif -share/apache/icons/screw1.gif -share/apache/icons/screw2.gif -share/apache/icons/script.gif -share/apache/icons/small/README.txt -share/apache/icons/small/back.gif -share/apache/icons/small/binary.gif -share/apache/icons/small/binhex.gif -share/apache/icons/small/blank.gif -share/apache/icons/small/broken.gif -share/apache/icons/small/burst.gif -share/apache/icons/small/comp1.gif -share/apache/icons/small/comp2.gif -share/apache/icons/small/compressed.gif -share/apache/icons/small/continued.gif -share/apache/icons/small/dir.gif -share/apache/icons/small/dir2.gif -share/apache/icons/small/doc.gif -share/apache/icons/small/forward.gif -share/apache/icons/small/generic.gif -share/apache/icons/small/generic2.gif -share/apache/icons/small/generic3.gif -share/apache/icons/small/image.gif -share/apache/icons/small/image2.gif -share/apache/icons/small/index.gif -share/apache/icons/small/key.gif -share/apache/icons/small/movie.gif -share/apache/icons/small/patch.gif -share/apache/icons/small/ps.gif -share/apache/icons/small/rainbow.gif -share/apache/icons/small/sound.gif -share/apache/icons/small/sound2.gif -share/apache/icons/small/tar.gif -share/apache/icons/small/text.gif -share/apache/icons/small/transfer.gif -share/apache/icons/small/unknown.gif -share/apache/icons/small/uu.gif -share/apache/icons/sound1.gif -share/apache/icons/sound2.gif -share/apache/icons/sphere1.gif -share/apache/icons/sphere2.gif -share/apache/icons/tar.gif -share/apache/icons/tex.gif -share/apache/icons/text.gif -share/apache/icons/transfer.gif -share/apache/icons/unknown.gif -share/apache/icons/up.gif -share/apache/icons/uu.gif -share/apache/icons/uuencoded.gif -share/apache/icons/world1.gif -share/apache/icons/world2.gif -share/doc/apache/ABOUT_APACHE -share/doc/apache/LICENSE -share/doc/apache/README -share/doc/php/CODING_STANDARDS -share/doc/php/LICENSE -@dirrm include/apache/xml -@dirrm include/apache -@dirrm libexec/apache -@dirrm share/apache/cgi-bin -@dirrm share/apache/htdocs/manual/images -@dirrm share/apache/htdocs/manual/misc -@dirrm share/apache/htdocs/manual/mod -@dirrm share/apache/htdocs/manual/search -@dirrm share/apache/htdocs/manual/vhosts -@dirrm share/apache/htdocs/manual -@dirrm share/apache/htdocs -@dirrm share/apache/icons/small -@dirrm share/apache/icons -@dirrm share/apache -@dirrm share/doc/apache -@dirrm share/doc/php +%%AP_LIBEXEC%%/libphp3.so +@exec %D/sbin/apxs -e -a -n php3 %f +@unexec %D/sbin/apxs -e -A -n php3 %f +%%PHPDOCDIR%%/CODING_STANDARDS +%%PHPDOCDIR%%/LICENSE +@exec %D/sbin/apachectl restart +@unexec %D/sbin/apachectl restart diff --git a/www/mod_php3/scripts/configure.php b/www/mod_php3/scripts/configure.php index c9e9360..64a397c 100644 --- a/www/mod_php3/scripts/configure.php +++ b/www/mod_php3/scripts/configure.php @@ -10,26 +10,24 @@ if [ "${BATCH}" ]; then else /usr/bin/dialog --title "configuration options" --clear \ --checklist "\n\ -Please select desired options:" -1 -1 14 \ -tuning "Apache: performance tuning" OFF \ -modssl "Apache: SSL support" OFF \ -GD "PHP: GD library support" OFF \ -FreeType "PHP: TrueType font rendering (implies GD)" OFF \ -zlib "PHP: zlib library support" ON \ -mcrypt "PHP: Encryption support" OFF \ -mhash "PHP: Crypto-hashing support" OFF \ -pdflib "PHP: pdflib support (implies zlib)" OFF \ -IMAP "PHP: IMAP support" OFF \ -MySQL "PHP: MySQL database support" ON \ -PostgreSQL "PHP: PostgreSQL database support" OFF \ -mSQL "PHP: mSQL database support" OFF \ -SybaseDB "PHP: Sybase/MS-SQL database support (DB-lib)" OFF \ -SybaseCT "PHP: Sybase/MS-SQL database support (CT-lib)" OFF \ -dBase "PHP: dBase database support" OFF \ -OpenLDAP "PHP: OpenLDAP support" OFF \ -SNMP "PHP: SNMP support" OFF \ -XML "PHP: XML support" OFF \ -FTP "PHP: File Transfer Protocol support" OFF \ +Please select desired options:" -1 -1 16 \ +GD "GD library support" OFF \ +FreeType "TrueType font rendering (implies GD)" OFF \ +zlib "zlib library support" ON \ +mcrypt "Encryption support" OFF \ +mhash "Crypto-hashing support" OFF \ +pdflib "pdflib support (implies zlib)" OFF \ +IMAP "IMAP support" OFF \ +MySQL "MySQL database support" ON \ +PostgreSQL "PostgreSQL database support" OFF \ +mSQL "mSQL database support" OFF \ +SybaseDB "Sybase/MS-SQL database support (DB-lib)" OFF \ +SybaseCT "Sybase/MS-SQL database support (CT-lib)" OFF \ +dBase "dBase database support" OFF \ +OpenLDAP "OpenLDAP support" OFF \ +SNMP "SNMP support" OFF \ +XML "XML support" OFF \ +FTP "File Transfer Protocol support" OFF \ 2> /tmp/checklist.tmp.$$ retval=$? @@ -55,41 +53,36 @@ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc while [ "$1" ]; do case $1 in - \"tuning\") - echo "CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer -fexpensive-optimizations -ffast-math" - echo "OPTIM+= -DBUFFERED_LOGS -DFD_SETSIZE=1024" - echo "CONFIGURE_ENV+= OPTIM='\${OPTIM}'" - ;; \"GD\") echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd" - echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-gd=\${PREFIX}" GD=1 ;; \"FreeType\") echo "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype" - echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-ttf=\${PREFIX}" if [ -z "$GD" ]; then set $* \"GD\" fi ;; \"zlib\") - echo "PHP_CONF_ARGS+= --with-zlib" + echo "CONFIGURE_ARGS+=--with-zlib" ZLIB=1 ;; \"mcrypt\") echo "LIB_DEPENDS+= mcrypt-2.2.2:\${PORTSDIR}/security/libmcrypt" - echo "PHP_CONF_ARGS+= --with-mcrypt=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-mcrypt=\${PREFIX}" ;; \"mhash\") echo "mhash is DISABLED for now. Ignoring." > /dev/stderr ;; \"nothing\") echo "LIB_DEPENDS+= mhash.1:\${PORTSDIR}/security/mhash" - echo "PHP_CONF_ARGS+= --with-mhash=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-mhash=\${PREFIX}" ;; \"pdflib\") echo "LIB_DEPENDS+= pdf.2:\${PORTSDIR}/print/pdflib" - echo "PHP_CONF_ARGS+= --with-pdflib=\${PREFIX} \\" + echo "CONFIGURE_ARGS+=--with-pdflib=\${PREFIX} \\" echo " --with-jpeg-dir=\${PREFIX} \\" echo " --with-tiff-dir=\${PREFIX}" if [ -z "$ZLIB" ]; then @@ -97,24 +90,24 @@ while [ "$1" ]; do fi ;; \"IMAP\") - echo "BUILD_DEPENDS+= \${PREFIX}/lib/libc-client4.a:\${PORTSDIR}/mail/imap-uw" - echo "PHP_CONF_ARGS+= --with-imap=\${PREFIX}" + echo "LIB_DEPENDS+= c-client4.7:\${PORTSDIR}/mail/imap-uw" + echo "CONFIGURE_ARGS+=--with-imap=\${PREFIX}" ;; \"MySQL\") echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322-client" - echo "PHP_CONF_ARGS+= --with-mysql=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}" ;; \"PostgreSQL\") echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql" - echo "PHP_CONF_ARGS+= --with-pgsql=\${PREFIX}/pgsql" + echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql" ;; \"mSQL\") echo "BUILD_DEPENDS+= msql:\${PORTSDIR}/databases/msql" - echo "PHP_CONF_ARGS+= --with-msql=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-msql=\${PREFIX}" ;; \"SybaseDB\") echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds" - echo "PHP_CONF_ARGS+= --with-sybase=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-sybase=\${PREFIX}" if [ "$SYBASECT" ]; then echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc @@ -124,7 +117,7 @@ while [ "$1" ]; do ;; \"SybaseCT\") echo "LIB_DEPENDS+= ct.0:\${PORTSDIR}/databases/freetds" - echo "PHP_CONF_ARGS+= --with-sybase-ct=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-sybase-ct=\${PREFIX}" if [ "$SYBASEDB" ]; then echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc @@ -133,80 +126,30 @@ while [ "$1" ]; do SYBASECT=1 ;; \"dBase\") - echo "PHP_CONF_ARGS+= --with-dbase" + echo "CONFIGURE_ARGS+=--with-dbase" ;; \"OpenLDAP\") echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap" echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap" - echo "PHP_CONF_ARGS+= --with-ldap=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}" if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a ]; then echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'" fi ;; \"SNMP\") echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/ucd-snmp" - echo "PHP_CONF_ARGS+= --with-snmp=\${PREFIX} --enable-ucd-snmp-hack" + echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack" ;; \"XML\") echo "BUILD_DEPENDS+= \${PREFIX}/lib/libexpat.a:\${PORTSDIR}/textproc/expat" echo "BUILD_DEPENDS+= \${PREFIX}/include/xml/xmlparse.h:\${PORTSDIR}/textproc/expat" echo "BUILD_DEPENDS+= \${PREFIX}/include/xml/xmltok.h:\${PORTSDIR}/textproc/expat" - echo "PHP_CONF_ARGS+= --with-xml=\${PREFIX}" + echo "CONFIGURE_ARGS+=--with-xml=\${PREFIX}" ;; \"FTP\") - echo "PHP_CONF_ARGS+= --with-ftp" - ;; - \"modssl\") - cat << EOF -PORTNAME= apache+php+mod_ssl -PORTVERSION= \${VERSION_APACHE}+\${VERSION_PHP}+\${VERSION_MODSSL} -DISTFILES+= mod_ssl-\${VERSION_MODSSL}-\${VERSION_APACHE}\${EXTRACT_SUFX} - -USE_OPENSSL= RSA - -.include <bsd.port.pre.mk> - -BUILD_DEPENDS+= mm-config:\${PORTSDIR}/devel/mm \\ - \${PREFIX}/lib/libmm.a:\${PORTSDIR}/devel/mm - -VERSION_MODSSL= 2.6.4 - -CONFIGURE_ARGS+=--enable-module=ssl \\ - --enable-module=define -CONFIGURE_ENV+= SSL_BASE='SYSTEM' EAPI_MM='SYSTEM' PATH="\${PREFIX}/bin:\${PATH}" - -EXTRA_PATCHES+= \${PATCHDIR}/ssl_patch-aa - -PLIST= \${PKGDIR}/PLIST.modssl -SSL= ssl - -TYPE= test -CRT= -KEY= - -pre-patch: - @cd \${WRKDIR}/mod_ssl-\${VERSION_MODSSL}-\${VERSION_APACHE} \\ - && \${ECHO_MSG} "===> Applying mod_ssl-\${VERSION_MODSSL} extension" \\ - && ./configure --with-apache=../\${DISTNAME} --expert - -post-patch: - @cd \${WRKSRC} \\ - && find . -type f -name "*.orig" -print | xargs \${RM} -f - -post-build: - @cd \${WRKSRC} \\ - && \${ECHO_MSG} "===> Creating Dummy Certificate for Server (SnakeOil)" \\ - && \${ECHO_MSG} " [use 'make certificate' to create a real one]" \\ - && \${MAKE} certificate TYPE=dummy >/dev/null 2>&1 - -certificate: - @cd \${WRKSRC} \\ - && \${ECHO_MSG} "===> Creating Test Certificate for Server" \\ - && \${MAKE} certificate TYPE=\$(TYPE) CRT=\$(CRT) KEY=\$(KEY) - -EOF + echo "CONFIGURE_ARGS+=--with-ftp" ;; - *) + *) echo "Invalid option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 |