View | Details | Raw Unified | Return to bug 97047
Collapse All | Expand All

(-)/usr/ports/www/suphp/Makefile (-3 / +15 lines)
Lines 7-18 Link Here
7
7
8
PORTNAME=	suphp
8
PORTNAME=	suphp
9
PORTVERSION=	0.5.2
9
PORTVERSION=	0.5.2
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	www
11
CATEGORIES=	www
12
MASTER_SITES=	http://www.suphp.org/download/
12
MASTER_SITES=	http://www.suphp.org/download/
13
13
14
MAINTAINER=	freebsd@jdc.parodius.com
14
MAINTAINER=	freebsd@jdc.parodius.com
15
COMMENT=	Securely execute ~user PHP scripts
15
COMMENT=	Securely execute PHP scripts
16
16
17
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
18
USE_PHP=	yes
18
USE_PHP=	yes
Lines 20-26 Link Here
20
WANT_PHP_CGI=	yes
20
WANT_PHP_CGI=	yes
21
21
22
WITH_LOGFILE?=	/var/log/suphp.log
22
WITH_LOGFILE?=	/var/log/suphp.log
23
PHP_PATH?=	${LOCALBASE}/bin/php
23
PHP_PATH?=	${LOCALBASE}/bin/php-cgi
24
MIN_UID?=	80
24
MIN_UID?=	80
25
MIN_GID?=	80
25
MIN_GID?=	80
26
WITH_SETID_MODE?=	owner
26
WITH_SETID_MODE?=	owner
Lines 34-39 Link Here
34
			--with-min-uid=${MIN_GID} \
34
			--with-min-uid=${MIN_GID} \
35
			--with-apxs=${APXS}
35
			--with-apxs=${APXS}
36
36
37
# This is the default of the PATH environment variable when scripts
38
# are run under suphp.  This path is normally hard-coded into suphp.c.
39
# Many people prefer to have /usr/local and other utilities available
40
# to php scripts.
41
# Make sure the path is colon-delimited!
42
#
43
SUPHP_PATH?=		/bin:/usr/bin
44
37
## Available knobs:
45
## Available knobs:
38
##   WITHOUT_CHECKPATH:    disable check if script resides in DOCUMENT_ROOT
46
##   WITHOUT_CHECKPATH:    disable check if script resides in DOCUMENT_ROOT
39
.if defined(WITHOUT_CHECKPATH)
47
.if defined(WITHOUT_CHECKPATH)
Lines 57-62 Link Here
57
65
58
pre-everything:: show-options
66
pre-everything:: show-options
59
	@${DO_NADA}
67
	@${DO_NADA}
68
69
post-patch:
70
	@${REINPLACE_CMD} -e 's|%%SUPHP_PATH%%|${SUPHP_PATH}|g' \
71
		${WRKSRC}/src/suphp.c
60
72
61
post-install:
73
post-install:
62
.if !defined(NOPORTDOCS)
74
.if !defined(NOPORTDOCS)
(-)/usr/ports/www/suphp/files/patch-src::suphp.c (+11 lines)
Line 0 Link Here
1
--- src/suphp.c.orig	Tue Jul 13 02:43:41 2004
2
+++ src/suphp.c	Tue May  9 08:59:46 2006
3
@@ -55,7 +55,7 @@
4
  
5
  // Set secure PATH
6
  
7
- suphp_setenv("PATH", "/bin:/usr/bin", 1);
8
+ suphp_setenv("PATH", "%%SUPHP_PATH%%", 1);
9
  
10
  // Check for PHP_CONFIG environment variable
11
  
(-)/usr/ports/www/suphp/pkg-descr (-6 / +7 lines)
Lines 1-8 Link Here
1
suPHP is a combination of an Apache module (mod_suphp) and an executable 
1
suPHP is a combination of an Apache module (mod_suphp) and an
2
which provides a wrapper for PHP. With both together, it is possible to 
2
executable which provides a wrapper for PHP. With both
3
execute PHP scripts with the permissions of their owner without having 
3
together, it is possible to execute PHP scripts with the
4
to place a PHP binary in each user's cgi-bin directory. suPHP doesn't 
4
permissions of their owner without having to place a PHP
5
need Apache's suExec, provides a logging function and support for 
5
binary in each user's cgi-bin directory. suPHP doesn't need
6
Apache's suExec, provides a logging function and support for
6
different php.ini's. 
7
different php.ini's. 
7
8
8
WWW: http://www.suphp.org
9
WWW: http://www.suphp.org/
(-)/usr/ports/www/suphp/pkg-message (-1 / +2 lines)
Lines 3-9 Link Here
3
for PHP for Apache.
3
for PHP for Apache.
4
4
5
For help on using this module, please see the suPHP homepage:
5
For help on using this module, please see the suPHP homepage:
6
    	http://www.suphp.org
6
7
    	http://www.suphp.org/
7
8
8
Important hints:
9
Important hints:
9
Using suPHP can break some PHP-scripts, because of Apache's CGI
10
Using suPHP can break some PHP-scripts, because of Apache's CGI

Return to bug 97047