summaryrefslogtreecommitdiff
path: root/www/ap2-suphp/Makefile
diff options
context:
space:
mode:
authorrillig <rillig>2005-08-03 16:43:38 +0000
committerrillig <rillig>2005-08-03 16:43:38 +0000
commit60596e46ff91265b7f371f13a6c03126799cfe53 (patch)
treec8249d59db9faead6ffd75fabc27cce93d0e2fa8 /www/ap2-suphp/Makefile
parent83f90a9b9c2c391f34c0859190114cdb9efcbaa3 (diff)
downloadpkgsrc-60596e46ff91265b7f371f13a6c03126799cfe53.tar.gz
Added ap2-suphp version 0.6.0.
The suPHP Apache module together with suPHP itself provides an easy way to run PHP scripts with different users on the same server. It provides security, because the PHP scripts are not run with the rights of the webserver's user. In addition to that you probably won't have to use PHP's "safe mode", which applies many restrictions on the scripts.
Diffstat (limited to 'www/ap2-suphp/Makefile')
-rw-r--r--www/ap2-suphp/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/www/ap2-suphp/Makefile b/www/ap2-suphp/Makefile
new file mode 100644
index 00000000000..78f07140b84
--- /dev/null
+++ b/www/ap2-suphp/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/08/03 16:43:38 rillig Exp $
+#
+
+DISTNAME= suphp-0.6.0
+PKGNAME= ap2-${DISTNAME}
+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
+CONFIGURE_ARGS+= --with-apache-user=${APACHE_USER}
+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
+
+USE_PKGINSTALL= yes
+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"