2003-06-25 08:50:53 +02:00
|
|
|
# New ports collection makefile for: suphp
|
|
|
|
# Date created: 15 September 2002
|
|
|
|
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= suphp
|
2004-07-16 00:13:36 +02:00
|
|
|
PORTVERSION= 0.5.2
|
2004-08-12 11:31:51 +02:00
|
|
|
PORTREVISION= 1
|
2003-06-25 08:50:53 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.suphp.org/download/
|
|
|
|
|
2004-07-16 00:13:36 +02:00
|
|
|
MAINTAINER= freebsd@jdc.parodius.com
|
2004-08-12 11:31:51 +02:00
|
|
|
COMMENT= Securely execute ~user PHP scripts
|
2003-06-25 08:50:53 +02:00
|
|
|
|
2004-01-11 16:53:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-07-16 00:13:36 +02:00
|
|
|
USE_PHP= yes
|
2006-04-08 14:56:16 +02:00
|
|
|
USE_APACHE= 1.3+
|
2004-08-12 11:31:51 +02:00
|
|
|
WANT_PHP_CGI= yes
|
2003-06-25 08:50:53 +02:00
|
|
|
|
2004-08-12 11:31:51 +02:00
|
|
|
WITH_LOGFILE?= /var/log/suphp.log
|
2003-06-25 08:50:53 +02:00
|
|
|
PHP_PATH?= ${LOCALBASE}/bin/php
|
2004-01-14 21:28:58 +01:00
|
|
|
MIN_UID?= 80
|
|
|
|
MIN_GID?= 80
|
2004-01-11 16:53:56 +01:00
|
|
|
WITH_SETID_MODE?= owner
|
2004-10-28 20:29:16 +02:00
|
|
|
MYPORTDOCS= apache/CONFIG apache/INSTALL apache/README apache/LICENSE LICENSE INSTALL README
|
2004-02-25 12:47:24 +01:00
|
|
|
LANG= en de
|
2003-06-25 08:50:53 +02:00
|
|
|
|
2003-08-25 14:13:36 +02:00
|
|
|
CONFIGURE_ARGS+= --with-php=${PHP_PATH} \
|
2004-08-12 11:31:51 +02:00
|
|
|
--with-logfile=${WITH_LOGFILE} \
|
|
|
|
--with-apache-user=${WWWOWN} \
|
2004-01-11 16:53:56 +01:00
|
|
|
--with-min-gid=${MIN_UID} \
|
|
|
|
--with-min-uid=${MIN_GID} \
|
2003-08-25 14:13:36 +02:00
|
|
|
--with-apxs=${APXS}
|
2003-06-30 06:56:55 +02:00
|
|
|
|
2003-08-25 14:13:36 +02:00
|
|
|
## Available knobs:
|
2004-08-12 11:31:51 +02:00
|
|
|
## WITHOUT_CHECKPATH: disable check if script resides in DOCUMENT_ROOT
|
2003-08-25 14:13:36 +02:00
|
|
|
.if defined(WITHOUT_CHECKPATH)
|
|
|
|
CONFIGURE_ARGS+= --disable-checkpath
|
|
|
|
.endif
|
2004-08-12 11:31:51 +02:00
|
|
|
## WITHOUT_CHECKUID: accept UIDs that are not listed in /etc/passwd
|
2003-08-25 14:13:36 +02:00
|
|
|
.if defined(WITHOUT_CHECKUID)
|
|
|
|
CONFIGURE_ARGS+= --disable-checkuid
|
|
|
|
.endif
|
2004-08-12 11:31:51 +02:00
|
|
|
## WITHOUT_CHECKGID: accept GIDs that are not listed in /etc/group
|
2003-08-25 14:13:36 +02:00
|
|
|
.if defined(WITHOUT_CHECKGID)
|
|
|
|
CONFIGURE_ARGS+= --disable-checkgid
|
2003-06-30 06:56:55 +02:00
|
|
|
.endif
|
2004-08-12 11:31:51 +02:00
|
|
|
## WITH_SETID_MODE: mode to use for setting UID/GID.
|
2004-06-29 14:21:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-setid-mode=${WITH_SETID_MODE}
|
2004-07-16 00:13:36 +02:00
|
|
|
|
2003-08-25 14:13:36 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-06-25 08:50:53 +02:00
|
|
|
|
2003-08-25 14:13:36 +02:00
|
|
|
show-options:
|
2004-01-11 16:53:56 +01:00
|
|
|
@${SED} -ne 's/^##//p' ${.CURDIR}/Makefile
|
2003-08-25 14:13:36 +02:00
|
|
|
|
2006-04-08 14:56:16 +02:00
|
|
|
pre-everything:: show-options
|
|
|
|
@${DO_NADA}
|
2003-06-25 08:50:53 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-08-25 14:13:36 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-02-25 12:47:24 +01:00
|
|
|
.for l in ${LANG}
|
|
|
|
@${MKDIR} ${DOCSDIR}/${l}/apache
|
|
|
|
. for f in ${MYPORTDOCS}
|
|
|
|
@${CP} -Rfp ${WRKSRC}/doc/${l}/${f} ${DOCSDIR}/${l}/${f}
|
|
|
|
. endfor
|
|
|
|
.endfor
|
2003-06-25 08:50:53 +02:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-06-30 06:56:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|