2003-06-25 06:50:53 +00:00
|
|
|
# New ports collection makefile for: suphp
|
|
|
|
# Date created: 15 September 2002
|
|
|
|
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= suphp
|
2004-02-25 11:47:24 +00:00
|
|
|
PORTVERSION= 0.5.1
|
2003-06-25 06:50:53 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.suphp.org/download/
|
|
|
|
|
2004-01-13 15:04:51 +00:00
|
|
|
MAINTAINER= clement@FreeBSD.org
|
2003-08-25 12:13:36 +00:00
|
|
|
COMMENT= A combination which provides a wrapper for PHP
|
2003-06-25 06:50:53 +00:00
|
|
|
|
2003-07-17 04:35:53 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/php:${PORTSDIR}/www/php4-cgi
|
2003-06-25 06:50:53 +00:00
|
|
|
|
2004-01-11 15:53:56 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-08-25 12:13:36 +00:00
|
|
|
USE_GMAKE= yes
|
2004-01-11 15:53:56 +00:00
|
|
|
USE_APACHE= yes
|
|
|
|
CONFLICTS= mod_php4-4* php-4.*
|
2003-06-25 06:50:53 +00:00
|
|
|
|
|
|
|
LOG_PATH?= /var/log
|
|
|
|
PHP_PATH?= ${LOCALBASE}/bin/php
|
2004-01-11 15:53:56 +00:00
|
|
|
APACHE_USER?= ${WWWOWN}
|
2004-01-14 20:28:58 +00:00
|
|
|
MIN_UID?= 80
|
|
|
|
MIN_GID?= 80
|
2004-01-11 15:53:56 +00:00
|
|
|
WITH_SETID_MODE?= owner
|
2004-02-25 11:47:24 +00:00
|
|
|
MYPORTDOCS= apache/CONFIG apache/INSTALL apache/README apache/LICENSE \
|
|
|
|
LICENSE INSTALL README
|
|
|
|
LANG= en de
|
2003-06-25 06:50:53 +00:00
|
|
|
|
2003-08-25 12:13:36 +00:00
|
|
|
CONFIGURE_ARGS+= --with-php=${PHP_PATH} \
|
|
|
|
--with-logfile=${LOG_PATH}/suphp.log \
|
|
|
|
--with-apache-user=${APACHE_USER} \
|
2004-01-11 15:53:56 +00:00
|
|
|
--with-min-gid=${MIN_UID} \
|
|
|
|
--with-min-uid=${MIN_GID} \
|
2003-08-25 12:13:36 +00:00
|
|
|
--with-apxs=${APXS}
|
2003-06-30 04:56:55 +00:00
|
|
|
|
2003-08-25 12:13:36 +00:00
|
|
|
## Available knobs:
|
|
|
|
## WITHOUT_CHECKPATH: disable check if script resides in DOCUMENT_ROOT
|
|
|
|
.if defined(WITHOUT_CHECKPATH)
|
|
|
|
CONFIGURE_ARGS+= --disable-checkpath
|
|
|
|
.endif
|
|
|
|
## WITHOUT_CHECKUID: accept UIDs that are not listed in /etc/passwd
|
|
|
|
.if defined(WITHOUT_CHECKUID)
|
|
|
|
CONFIGURE_ARGS+= --disable-checkuid
|
|
|
|
.endif
|
|
|
|
## WITHOUT_CHECKGID: accept GIDs that are not listed in /etc/group
|
|
|
|
.if defined(WITHOUT_CHECKGID)
|
|
|
|
CONFIGURE_ARGS+= --disable-checkgid
|
2003-06-30 04:56:55 +00:00
|
|
|
.endif
|
2004-02-25 11:47:24 +00:00
|
|
|
## WITH_SETID_MODE: Mode to use for setting UID/GID.
|
2004-03-20 12:38:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-setid-mode=${WITH_SETID_MODE}
|
2003-06-30 04:56:55 +00:00
|
|
|
|
2003-08-25 12:13:36 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-06-25 06:50:53 +00:00
|
|
|
|
2004-01-11 15:53:56 +00:00
|
|
|
.if exists(${LOCALBASE}/include/apache2/apr.h) || defined(WITH_APACHE2)
|
|
|
|
APACHE_PORT= www/apache2
|
|
|
|
PLIST_SUB+= MODULEDIR="libexec/apache2/"
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MODULEDIR="libexec/apache/"
|
2003-06-25 06:50:53 +00:00
|
|
|
.endif
|
|
|
|
|
2003-08-25 12:13:36 +00:00
|
|
|
show-options:
|
2004-01-11 15:53:56 +00:00
|
|
|
@${SED} -ne 's/^##//p' ${.CURDIR}/Makefile
|
2003-08-25 12:13:36 +00:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${MAKE} show-options
|
2003-06-25 06:50:53 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-08-25 12:13:36 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-02-25 11:47:24 +00: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 06:50:53 +00:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-06-30 04:56:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|