c28f2b3cca
numerous features necessary for hosting, adds the use of a configuration file (vs. compile-time settings) for configuration details, and is presently supported by the software author. Changes to httpd.conf are required for this to work, otherwise PHP content is offered for download and not parsed. pkg-message contains full migration details, but here's the simple version: suPHP 0.5.2 suPHP 0.6.2 =========== =========== AddType application/x-httpd-php .php AddType x-httpd-php .php AddHandler x-httpd-php .php suPHP_AddHandler x-httpd-php Tested on RELENG_6 and RELENG_7, using Apache 2.0 and 2.2, with the help of the PR submitter. Testing for Apache 1.3 was not performed, thus the port requires the use of 2.0 or later. suPHP 0.6.2 does support Apache 1.3, but I'll need someone running 1.3 to work with me on fixing the port to support it, if desired. PR: ports/116281 Submitted by: Vladimir Korkodinov <viper@perm.raid.ru>
65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
# New ports collection makefile for: suphp
|
|
# Date created: 15 September 2002
|
|
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= suphp
|
|
PORTVERSION= 0.6.2
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.suphp.org/download/ \
|
|
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/koitsu/
|
|
|
|
MAINTAINER= freebsd@jdc.parodius.com
|
|
COMMENT= Securely execute PHP scripts under Apache
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= aclocal:19:env automake:19:env autoconf:261:env libtool:15:env
|
|
|
|
# Maintainer has not tested suPHP 0.6.x on Apache 1.3.
|
|
USE_APACHE= 2.0+
|
|
USE_PHP= yes
|
|
WANT_PHP_CGI= yes
|
|
|
|
MYPORTDOCS= apache/CONFIG apache/INSTALL apache/README CONFIG LICENSE INSTALL README
|
|
|
|
CONFIGURE_ARGS= --with-apxs=${APXS}
|
|
|
|
|
|
# WITH_SETID_MODE should be a value of "owner", "force", or "paranoid".
|
|
# It's important that you understand the differences between each mode.
|
|
# See /usr/local/share/doc/suphp/INSTALL for details.
|
|
#
|
|
WITH_SETID_MODE?= owner
|
|
CONFIGURE_ARGS+= --with-setid-mode=${WITH_SETID_MODE}
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Apache 2.0 (www/apache2) has apr-config in LOCALBASE/lib/apache2, while
|
|
# Apache 2.2 (www/apache22) has apr-1-config in LOCALBASE/bin.
|
|
#
|
|
.if ${APACHE_VERSION} == 20
|
|
CONFIGURE_ARGS+= --with-apr=${LOCALBASE}/lib/apache2
|
|
.else
|
|
CONFIGURE_ARGS+= --with-apr=${LOCALBASE}
|
|
.endif
|
|
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${MKDIR} ${DOCSDIR}/apache
|
|
.for f in ${MYPORTDOCS}
|
|
@${CP} -Rfp ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
|
|
.endfor
|
|
.endif
|
|
.if !defined(WITH_DEBUG)
|
|
@${STRIP_CMD} ${PREFIX}/sbin/suphp
|
|
.endif
|
|
@${CP} -fp ${WRKSRC}/doc/suphp.conf-example ${PREFIX}/etc/suphp.conf-example
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|