2011-04-11 21:57:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.15 2011/04/11 19:57:54 gls Exp $
|
2005-08-03 18:43:38 +02:00
|
|
|
#
|
|
|
|
|
2011-04-11 21:57:54 +02:00
|
|
|
DISTNAME= suphp-0.7.1
|
2007-06-30 17:05:08 +02:00
|
|
|
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME}
|
2005-08-03 18:43:38 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.suphp.org/download/
|
|
|
|
|
2008-03-04 12:02:23 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-02-22 20:01:13 +01:00
|
|
|
HOMEPAGE= http://www.suphp.org/
|
2005-08-03 18:43:38 +02:00
|
|
|
COMMENT= SuEXEC-like wrapper for PHP scripts
|
2011-04-11 21:57:54 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2005-08-03 18:43:38 +02:00
|
|
|
|
2008-05-17 04:37:24 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-11-17 13:04:11 +01:00
|
|
|
USE_TOOLS+= lex
|
2005-08-03 18:43:38 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
GCC_REQD+= 3.0 # the C++ code uses the .at() method
|
2006-06-25 11:08:01 +02:00
|
|
|
CONFIGURE_ARGS+= APXS=${APXS}
|
2011-04-11 21:57:54 +02:00
|
|
|
CONFIGURE_ARGS+= --with-apache-user=${APACHE_USER}
|
2005-08-03 18:43:38 +02:00
|
|
|
CONFIGURE_ARGS+= --with-logfile=${VARBASE}/httpd/suphp_log
|
2011-04-11 21:57:54 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2005-08-03 18:43:38 +02:00
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
|
|
|
BUILD_DEFS+= VARBASE
|
2005-08-03 18:43:38 +02:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/suphp
|
|
|
|
CONF_FILES= ${EGDIR}/suphp.conf ${PKG_SYSCONFDIR}/suphp.conf
|
|
|
|
|
2006-12-09 00:34:10 +01:00
|
|
|
USE_APR= yes
|
|
|
|
PKG_APACHE_ACCEPTED= apache2 apache22
|
|
|
|
|
2005-08-03 18:43:38 +02:00
|
|
|
SUBST_CLASSES+= suphp
|
|
|
|
SUBST_STAGE.suphp= post-configure
|
|
|
|
SUBST_FILES.suphp= doc/suphp.conf-example
|
2007-05-30 00:17:19 +02:00
|
|
|
SUBST_SED.suphp= -e "s,wwwrun,${APACHE_USER},g"
|
2008-05-17 04:37:24 +02:00
|
|
|
SUBST_SED.suphp+= -e "s,/var/log/suphp.log,${VARBASE}/httpd/suphp_log,g"
|
|
|
|
SUBST_SED.suphp+= -e "s,/usr/bin/php,${PREFIX}/bin/php,g"
|
2005-08-03 18:43:38 +02:00
|
|
|
|
|
|
|
post-install:
|
2011-04-11 21:57:54 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
2008-05-17 04:37:24 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example ${DESTDIR}${EGDIR}/suphp.conf
|
2005-08-03 18:43:38 +02:00
|
|
|
|
2006-12-09 00:34:10 +01:00
|
|
|
.include "../../mk/apache.mk"
|
2005-08-03 18:43:38 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|