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) |