freebsd-ports/www/suphp/Makefile
Ade Lovett 8262a7b51d Autotools update. Read ports/UPDATING 20100915 for details.
Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
2010-09-15 18:35:24 +00:00

61 lines
1.6 KiB
Makefile

# New ports collection makefile for: suphp
# Date created: 15 September 2002
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#
PORTNAME= suphp
PORTVERSION= 0.7.1
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.suphp.org/download/ \
${MASTER_SITE_LOCAL:S|%SUBDIR%|koitsu|}
MAINTAINER= yzlin@FreeBSD.org
COMMENT= Securely execute PHP scripts under Apache
GNU_CONFIGURE= yes
USE_AUTOTOOLS= aclocal:110:env automake:110:env autoconf:267:env libtool:22:env
# Maintainer has not tested suPHP 0.6.x on Apache 1.3.
USE_APACHE= 2.0+
CFLAGS+= -I${LOCALBASE}/include
USE_PHP= yes
WANT_PHP_CGI= yes
MYPORTDOCS= apache/CONFIG apache/INSTALL apache/README CONFIG LICENSE INSTALL README
CONFIGURE_ARGS= CFLAGS="${CFLAGS}" --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>
CONFIGURE_ARGS+= --with-apr=${LOCALBASE}
post-patch:
@${REINPLACE_CMD} -e 's|2.61|2.67|g' ${WRKSRC}/aclocal.m4
@${REINPLACE_CMD} -e 's|1.10.1|1.10.3|g' ${WRKSRC}/aclocal.m4
@${CHMOD} 755 ${WRKSRC}/config/install-sh
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/apache
.for f in ${MYPORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
.endfor
.endif
.if !defined(WITH_DEBUG)
@${STRIP_CMD} ${PREFIX}/sbin/suphp
.endif
@${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example ${PREFIX}/etc/suphp.conf-example
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>