Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 05:00:16 -0800 (PST)
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/42790: New Port - www/suphp : A pretty PHP wrapper (for Apache)
Message-ID:  <200211121300.gACD0GL7041645@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/42790; it has been noted by GNATS.

From: Clement Laforet <sheepkiller@cultdeadsheep.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/42790: New Port - www/suphp : A pretty PHP wrapper (for Apache)
Date: Tue, 12 Nov 2002 14:00:12 +0100

 Update suPHP port.
 
 Changelog :
 	- Update 0.2 -> 0.2.2
 	- Clean PORTSDOCS related problems
 	- Add warning
 
 Have a nice day ;)
 
 clem
 
 diff -Nru suphp-0.2/Makefile suphp/Makefile
 --- suphp-0.2/Makefile	Tue Nov 12 10:59:29 2002
 +++ suphp/Makefile	Tue Nov 12 12:46:48 2002
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=	suphp
 -PORTVERSION=	0.2
 +PORTVERSION=	0.2.2
  CATEGORIES=	www
  MASTER_SITES=	http://www.suphp.org/download/
  
 @@ -15,14 +15,14 @@
  BUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
  RUN_DEPENDS=	${LOCALBASE}/bin/php:${PORTSDIR}/lang/php4
  
 -WRKSRC=		${WRKDIR}/${PORTNAME}
  USE_REINPLACE=	yes
 +HAS_CONFIGURE=	no 
  
  MAKE_ARGS+=	APXS="${APXS}"
  APXS?=		${LOCALBASE}/sbin/apxs
  WWW_USER?=	www
  LOG_PATH?=	/var/log
 -
 +PHP_PATH?=	${LOCALBASE}/bin/php
  pre-configure:
  	@${ECHO}
  	@${ECHO} "*-------------------------------------------------------------*"
 @@ -32,7 +32,8 @@
  	@${ECHO} "     - WWW_USER = Apache's User"
  	@${ECHO} "     - Define CHECK_PATH, to enable or disable suExec-like"
  	@${ECHO} "       path checking (based on DocumentRoot directive)."
 -	@${ECHO} "     - LOG_PATH=/path/to/your/logs . Default /var/log/."
 +	@${ECHO} "     - LOG_PATH=/path/to/your/logs. Default /var/log/."
 +	@${ECHO} "     - PHP_PATH=/path/to/bin/php. Default ${LOCALBASE}/bin/php." 
  	@${ECHO} "*-------------------------------------------------------------*"
  	@${ECHO}
  
 @@ -46,7 +47,8 @@
  	@${ECHO} "Setting logs path"
  	@${REINPLACE_CMD} -e 's,OPT_LOGFILE "/opt/apache/var/logs/suphp_log",OPT_LOGFILE "${LOG_PATH}/suphp_log",' \
  		${WRKSRC}/config.h
 -	@${REINPLACE_CMD} -e 's,OPT_PATH_TO_PHP "/usr/bin/php",OPT_PATH_TO_PHP "${LOCALBASE}/bin/php",' \
 +	 @${ECHO} "Setting php path"
 +	@${REINPLACE_CMD} -e 's,OPT_PATH_TO_PHP "/usr/bin/php",OPT_PATH_TO_PHP "${PHP_PATH}",' \
  		${WRKSRC}/config.h
  
  pre-install:
 @@ -54,7 +56,7 @@
  
  post-install:
  .if !defined(NOPORTDOCS)
 -	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/apache
 +	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/apache ${DOCSDIR}/de-doc ${DOCSDIR}/de-doc/apache
  	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
  	${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
  	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
 @@ -62,8 +64,13 @@
  	${INSTALL_DATA} ${WRKSRC}/apache/README ${DOCSDIR}/apache
  	${INSTALL_DATA} ${WRKSRC}/apache/INSTALL ${DOCSDIR}/apache
  	${INSTALL_DATA} ${WRKSRC}/apache/LICENSE ${DOCSDIR}/apache
 +	${INSTALL_DATA} -d ${WRKSRC}/de-doc/ ${DOCSDIR}
 +	${INSTALL_DATA} ${WRKSRC}/de-doc/README.de ${DOCSDIR}/de-doc/
 +	${INSTALL_DATA} ${WRKSRC}/de-doc/INSTALL.de ${DOCSDIR}/de-doc/
 +	${INSTALL_DATA} ${WRKSRC}/de-doc/apache/README.de ${DOCSDIR}/de-doc/apache
 +	${INSTALL_DATA} ${WRKSRC}/de-doc/apache/INSTALL.de ${DOCSDIR}/de-doc/apache
 +	${INSTALL_DATA} ${WRKSRC}/de-doc/apache/CONFIG.de ${DOCSDIR}/de-doc/apache
  .endif
 -	@${CHMOD} u+s ${PREFIX}/sbin/suphp
  	@${RM} mod_suphp.o
  	@${CAT} ${PKGMESSAGE}
  
 diff -Nru suphp-0.2/distinfo suphp/distinfo
 --- suphp-0.2/distinfo	Tue Nov 12 10:59:29 2002
 +++ suphp/distinfo	Tue Nov 12 11:00:21 2002
 @@ -1 +1 @@
 -MD5 (suphp-0.2.tar.gz) = 7bc75f50a7d6b97554d5c91089d7e089
 +MD5 (suphp-0.2.2.tar.gz) = c035fa4ffc73b3cb037791ab85fe94fa
 diff -Nru suphp-0.2/files/patch-aa suphp/files/patch-aa
 --- suphp-0.2/files/patch-aa	Tue Nov 12 10:59:29 2002
 +++ suphp/files/patch-aa	Tue Nov 12 12:11:16 2002
 @@ -1,14 +1,17 @@
 ---- Makefile.orig	Sun Jun  2 16:07:34 2002
 -+++ Makefile	Sat Sep 14 16:23:40 2002
 -@@ -2,7 +2,7 @@
 +--- Makefile.orig	Wed Oct 23 22:16:50 2002
 ++++ Makefile	Tue Nov 12 12:10:58 2002
 +@@ -2,9 +2,9 @@
   ## Makefile for suPHP                       ##
   ##############################################
   
  -SUPHP_INSTALL = /usr/sbin/suphp
  +SUPHP_INSTALL = $(PREFIX)/sbin/suphp
   
 - CC = gcc
 +-CC = gcc
 ++#CC = gcc
   CFLAGS = -c -Wall
 + LD = gcc
 + LDFLAGS = -o
  @@ -31,11 +31,7 @@
   	touch suphp.h
   
 @@ -18,7 +21,7 @@
  -	else \
  -	 echo -e "You need to be root to install suPHP."; \
  -	fi
 -+	 cp suphp ${SUPHP_INSTALL}
 ++	$(INSTALL) -o root -g wheel -m 4755 suphp ${SUPHP_INSTALL}
   
   clean:
   	rm *.o
 diff -Nru suphp-0.2/pkg-comment suphp/pkg-comment
 --- suphp-0.2/pkg-comment	Tue Nov 12 10:59:29 2002
 +++ suphp/pkg-comment	Tue Nov 12 12:40:12 2002
 @@ -1 +1 @@
 -suPHP is a combination which provides a wrapper for PHP.
 +suPHP is a combination which provides a wrapper for PHP
 diff -Nru suphp-0.2/pkg-message suphp/pkg-message
 --- suphp-0.2/pkg-message	Tue Nov 12 10:59:29 2002
 +++ suphp/pkg-message	Tue Nov 12 12:51:33 2002
 @@ -4,4 +4,8 @@
  
  For help on using this module, please see the suPHP homepage:
      	http://www.suphp.org
 +
 +Important hints:
 +Using suPHP can break some PHP-scripts, because of Apache's CGI 
 +interface.
  -----------------------------------------------------------------
 diff -Nru suphp-0.2/pkg-plist suphp/pkg-plist
 --- suphp-0.2/pkg-plist	Tue Nov 12 10:59:29 2002
 +++ suphp/pkg-plist	Tue Nov 12 12:47:43 2002
 @@ -1,8 +1,20 @@
  sbin/suphp
  libexec/apache/mod_suphp.so
  @exec %D/sbin/apxs -e -a -n suphp %D/%f
 -@unexec echo "===>  If you do not plan on reinstalling suphp, you must manually remove"; echo "===> references to it in httpd.conf."
 -%%PORTDOCS%%share/doc/suphp/README
 +@unexec echo "===>  If you do not plan on reinstalling suphp, you must manually remove"; echo "===>  references to it in httpd.conf."
  %%PORTDOCS%%share/doc/suphp/apache/CONFIG
 +%%PORTDOCS%%share/doc/suphp/apache/README
 +%%PORTDOCS%%share/doc/suphp/apache/INSTALL
 +%%PORTDOCS%%share/doc/suphp/apache/LICENSE
 +%%PORTDOCS%%share/doc/suphp/de-doc/apache/README.de
 +%%PORTDOCS%%share/doc/suphp/de-doc/apache/INSTALL.de
 +%%PORTDOCS%%share/doc/suphp/de-doc/apache/CONFIG.de
 +%%PORTDOCS%%share/doc/suphp/de-doc/README.de
 +%%PORTDOCS%%share/doc/suphp/de-doc/INSTALL.de
 +%%PORTDOCS%%share/doc/suphp/README
 +%%PORTDOCS%%share/doc/suphp/INSTALL
 +%%PORTDOCS%%share/doc/suphp/LICENSE
 +%%PORTDOCS%%@dirrm share/doc/suphp/de-doc/apache
 +%%PORTDOCS%%@dirrm share/doc/suphp/de-doc
  %%PORTDOCS%%@dirrm share/doc/suphp/apache
  %%PORTDOCS%%@dirrm share/doc/suphp/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211121300.gACD0GL7041645>