2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2006/02/05 23:11:18 joerg Exp $
|
2005-08-03 18:43:38 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= suphp-0.6.0
|
|
|
|
PKGNAME= ap2-${DISTNAME}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2005-08-03 18:43:38 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.suphp.org/download/
|
|
|
|
|
|
|
|
MAINTAINER= rillig@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.suphp.org/download/
|
|
|
|
COMMENT= SuEXEC-like wrapper for PHP scripts
|
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
GCC_REQD+= 3.0 # the C++ code uses the .at() method
|
|
|
|
CONFIGURE_ARGS+= APXS=apxs
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-apache-user=${APACHE_USER:Q}
|
2005-08-03 18:43:38 +02:00
|
|
|
CONFIGURE_ARGS+= --with-logfile=${VARBASE}/httpd/suphp_log
|
|
|
|
|
|
|
|
# I don't know why this is necessary, but it is.
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/httpd
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/apr-0
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/suphp
|
|
|
|
CONF_FILES= ${EGDIR}/suphp.conf ${PKG_SYSCONFDIR}/suphp.conf
|
|
|
|
|
|
|
|
SUBST_CLASSES+= suphp
|
|
|
|
SUBST_STAGE.suphp= post-configure
|
|
|
|
SUBST_FILES.suphp= doc/suphp.conf-example
|
|
|
|
SUBST_SED.suphp= s,wwwrun,${APACHE_USER},g
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR:Q}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example ${EGDIR}/suphp.conf
|
|
|
|
|
|
|
|
.include "../../www/apache2/buildlink3.mk"
|
|
|
|
.include "../../devel/apr/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|