diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 2001-02-25 21:22:04 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 2001-02-25 21:22:04 +0000 |
commit | 24c9b530802059ff5cd106ad07790054dfb4a2dc (patch) | |
tree | 6fc078f6b064b060890f1ae8a4f772acff4db6f2 /www | |
parent | ac6018bd208eb9629965a1133800842f27400a22 (diff) | |
download | ports-24c9b530802059ff5cd106ad07790054dfb4a2dc.tar.gz ports-24c9b530802059ff5cd106ad07790054dfb4a2dc.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_php4/Makefile | 29 | ||||
-rw-r--r-- | www/mod_php4/pkg-comment.standalone | 1 | ||||
-rw-r--r-- | www/mod_php4/pkg-plist.standalone | 3 | ||||
-rw-r--r-- | www/mod_php4/scripts/configure.php | 12 | ||||
-rw-r--r-- | www/mod_php5/Makefile | 29 | ||||
-rw-r--r-- | www/mod_php5/pkg-comment.standalone | 1 | ||||
-rw-r--r-- | www/mod_php5/pkg-plist.standalone | 3 | ||||
-rw-r--r-- | www/mod_php5/scripts/configure.php | 12 |
8 files changed, 68 insertions, 22 deletions
diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile index ed43ee9b41cd..376210d4d38d 100644 --- a/www/mod_php4/Makefile +++ b/www/mod_php4/Makefile @@ -5,9 +5,9 @@ # $FreeBSD$ # -PORTNAME= mod_php4 +PORTNAME?= mod_php4 PORTVERSION= 4.0.4pl1 -CATEGORIES= www +CATEGORIES?= www MASTER_SITES= http://us.php.net/${PHP_DISTDIR}/ \ http://php.he.net/${PHP_DISTDIR}/ \ http://www.php3.de/${PHP_DISTDIR}/ \ @@ -21,16 +21,26 @@ DISTNAME= php-${PORTVERSION} MAINTAINER= dirk@FreeBSD.org +.if !defined(STANDALONE) BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 +.endif PHP_DISTDIR= distributions +SLAVEDIRS= lang/php4 + USE_LIBTOOL= yes + +.if defined(STANDALONE) +CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone +.else CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \ - --enable-versioning \ + --with-config-file-path=${PREFIX}/etc +.endif + +CONFIGURE_ARGS+=--enable-versioning \ --with-system-regex \ - --with-config-file-path=${PREFIX}/etc \ --disable-debug \ --enable-track-vars \ --without-gd \ @@ -40,7 +50,8 @@ CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ TOUCH="${TOUCH}" \ MKDIR="${MKDIR}" \ - CAT="${CAT}" + CAT="${CAT}" \ + REALCURDIR="${.CURDIR}" AP_LIBEXEC= ${PREFIX}/libexec/apache @@ -52,9 +63,14 @@ pre-fetch: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php post-install: +.if !defined(STANDALONE) @${ECHO} "Restarting Apache..." @${PREFIX}/sbin/apachectl restart @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc +.else + @${MKDIR} ${PREFIX}/etc/php.standalone + @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/php.standalone/php.ini-dist +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${PHPDOCDIR} @@ -62,6 +78,8 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/$i ${PHPDOCDIR} .endfor .endif + +.if !defined(STANDALONE) @${ECHO} "*****************************************************************************" @${ECHO} "Make sure the mime.types are connected to the php module properly and" @${ECHO} "index.php is part of your DirectoryIndex." @@ -74,6 +92,7 @@ post-install: @${ECHO} "AddType application/x-httpd-php-source .phps" @${ECHO} "[...]" @${ECHO} "*****************************************************************************" +.endif post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc diff --git a/www/mod_php4/pkg-comment.standalone b/www/mod_php4/pkg-comment.standalone new file mode 100644 index 000000000000..77073177dd09 --- /dev/null +++ b/www/mod_php4/pkg-comment.standalone @@ -0,0 +1 @@ +PHP4 commandline interpreter diff --git a/www/mod_php4/pkg-plist.standalone b/www/mod_php4/pkg-plist.standalone new file mode 100644 index 000000000000..7155bb6d12b0 --- /dev/null +++ b/www/mod_php4/pkg-plist.standalone @@ -0,0 +1,3 @@ +bin/php +etc/php.standalone/php.ini-dist +@dirrm etc/php.standalone diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php index 71bfa77ee3af..b1a185328e8b 100644 --- a/www/mod_php4/scripts/configure.php +++ b/www/mod_php4/scripts/configure.php @@ -1,7 +1,7 @@ #!/bin/sh # $FreeBSD$ -if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then +if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then exit fi @@ -51,8 +51,8 @@ BCMath "BCMath support" OFF \ esac fi -${MKDIR} ${WRKDIRPREFIX}${CURDIR} -exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc +${MKDIR} ${WRKDIRPREFIX}${REALCURDIR} +exec > ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc while [ "$1" ]; do case $1 in @@ -115,7 +115,7 @@ while [ "$1" ]; do echo "CONFIGURE_ARGS+=--with-sybase=\${PREFIX}" if [ "$SYBASECT" ]; then echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr - rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc exit 1 fi SYBASEDB=1 @@ -125,7 +125,7 @@ while [ "$1" ]; do 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 + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc exit 1 fi SYBASECT=1 @@ -185,7 +185,7 @@ EOF ;; *) echo "Invalid option(s): $*" > /dev/stderr - rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc exit 1 ;; esac diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile index ed43ee9b41cd..376210d4d38d 100644 --- a/www/mod_php5/Makefile +++ b/www/mod_php5/Makefile @@ -5,9 +5,9 @@ # $FreeBSD$ # -PORTNAME= mod_php4 +PORTNAME?= mod_php4 PORTVERSION= 4.0.4pl1 -CATEGORIES= www +CATEGORIES?= www MASTER_SITES= http://us.php.net/${PHP_DISTDIR}/ \ http://php.he.net/${PHP_DISTDIR}/ \ http://www.php3.de/${PHP_DISTDIR}/ \ @@ -21,16 +21,26 @@ DISTNAME= php-${PORTVERSION} MAINTAINER= dirk@FreeBSD.org +.if !defined(STANDALONE) BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 +.endif PHP_DISTDIR= distributions +SLAVEDIRS= lang/php4 + USE_LIBTOOL= yes + +.if defined(STANDALONE) +CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone +.else CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \ - --enable-versioning \ + --with-config-file-path=${PREFIX}/etc +.endif + +CONFIGURE_ARGS+=--enable-versioning \ --with-system-regex \ - --with-config-file-path=${PREFIX}/etc \ --disable-debug \ --enable-track-vars \ --without-gd \ @@ -40,7 +50,8 @@ CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ TOUCH="${TOUCH}" \ MKDIR="${MKDIR}" \ - CAT="${CAT}" + CAT="${CAT}" \ + REALCURDIR="${.CURDIR}" AP_LIBEXEC= ${PREFIX}/libexec/apache @@ -52,9 +63,14 @@ pre-fetch: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php post-install: +.if !defined(STANDALONE) @${ECHO} "Restarting Apache..." @${PREFIX}/sbin/apachectl restart @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc +.else + @${MKDIR} ${PREFIX}/etc/php.standalone + @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/php.standalone/php.ini-dist +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${PHPDOCDIR} @@ -62,6 +78,8 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/$i ${PHPDOCDIR} .endfor .endif + +.if !defined(STANDALONE) @${ECHO} "*****************************************************************************" @${ECHO} "Make sure the mime.types are connected to the php module properly and" @${ECHO} "index.php is part of your DirectoryIndex." @@ -74,6 +92,7 @@ post-install: @${ECHO} "AddType application/x-httpd-php-source .phps" @${ECHO} "[...]" @${ECHO} "*****************************************************************************" +.endif post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc diff --git a/www/mod_php5/pkg-comment.standalone b/www/mod_php5/pkg-comment.standalone new file mode 100644 index 000000000000..77073177dd09 --- /dev/null +++ b/www/mod_php5/pkg-comment.standalone @@ -0,0 +1 @@ +PHP4 commandline interpreter diff --git a/www/mod_php5/pkg-plist.standalone b/www/mod_php5/pkg-plist.standalone new file mode 100644 index 000000000000..7155bb6d12b0 --- /dev/null +++ b/www/mod_php5/pkg-plist.standalone @@ -0,0 +1,3 @@ +bin/php +etc/php.standalone/php.ini-dist +@dirrm etc/php.standalone diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php index 71bfa77ee3af..b1a185328e8b 100644 --- a/www/mod_php5/scripts/configure.php +++ b/www/mod_php5/scripts/configure.php @@ -1,7 +1,7 @@ #!/bin/sh # $FreeBSD$ -if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then +if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then exit fi @@ -51,8 +51,8 @@ BCMath "BCMath support" OFF \ esac fi -${MKDIR} ${WRKDIRPREFIX}${CURDIR} -exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc +${MKDIR} ${WRKDIRPREFIX}${REALCURDIR} +exec > ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc while [ "$1" ]; do case $1 in @@ -115,7 +115,7 @@ while [ "$1" ]; do echo "CONFIGURE_ARGS+=--with-sybase=\${PREFIX}" if [ "$SYBASECT" ]; then echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr - rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc exit 1 fi SYBASEDB=1 @@ -125,7 +125,7 @@ while [ "$1" ]; do 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 + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc exit 1 fi SYBASECT=1 @@ -185,7 +185,7 @@ EOF ;; *) echo "Invalid option(s): $*" > /dev/stderr - rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc exit 1 ;; esac |