diff options
author | rillig <rillig@pkgsrc.org> | 2005-08-03 16:43:38 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-08-03 16:43:38 +0000 |
commit | bb348049c8a44fba8303c918d90f0b03a70f4174 (patch) | |
tree | c8249d59db9faead6ffd75fabc27cce93d0e2fa8 /www | |
parent | 1e7d39620fec4f6790b0ae8875b4503865601682 (diff) | |
download | pkgsrc-bb348049c8a44fba8303c918d90f0b03a70f4174.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')
-rw-r--r-- | www/ap2-suphp/DESCR | 7 | ||||
-rw-r--r-- | www/ap2-suphp/Makefile | 40 | ||||
-rw-r--r-- | www/ap2-suphp/PLIST | 6 | ||||
-rw-r--r-- | www/ap2-suphp/distinfo | 6 | ||||
-rw-r--r-- | www/ap2-suphp/patches/patch-aa | 17 |
5 files changed, 76 insertions, 0 deletions
diff --git a/www/ap2-suphp/DESCR b/www/ap2-suphp/DESCR new file mode 100644 index 00000000000..aa296ea062f --- /dev/null +++ b/www/ap2-suphp/DESCR @@ -0,0 +1,7 @@ +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. 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" diff --git a/www/ap2-suphp/PLIST b/www/ap2-suphp/PLIST new file mode 100644 index 00000000000..7889b94ba81 --- /dev/null +++ b/www/ap2-suphp/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/08/03 16:43:38 rillig Exp $ +lib/httpd/mod_suphp.so +sbin/suphp +share/examples/suphp/suphp.conf +@dirrm share/examples/suphp +@dirrm lib/httpd diff --git a/www/ap2-suphp/distinfo b/www/ap2-suphp/distinfo new file mode 100644 index 00000000000..4c9ab604118 --- /dev/null +++ b/www/ap2-suphp/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/08/03 16:43:38 rillig Exp $ + +SHA1 (suphp-0.6.0.tar.gz) = 7ec81c132355e6f508e6a3017947a870072d6eb8 +RMD160 (suphp-0.6.0.tar.gz) = 953f3be08d7e33ff64e327ee34bb84639888aa5f +Size (suphp-0.6.0.tar.gz) = 247534 bytes +SHA1 (patch-aa) = a952f6fda134d4e84af083bb185a1cdcfe89fa07 diff --git a/www/ap2-suphp/patches/patch-aa b/www/ap2-suphp/patches/patch-aa new file mode 100644 index 00000000000..ebacbb77ef2 --- /dev/null +++ b/www/ap2-suphp/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/08/03 16:43:38 rillig Exp $ + +Allow the directives to be set in the global configuration file, too. + +--- src/apache2/mod_suphp.c.orig Sun Feb 27 18:56:37 2005 ++++ src/apache2/mod_suphp.c Wed Aug 3 13:19:12 2005 +@@ -313,8 +313,8 @@ static const command_rec suphp_cmds[] = + AP_INIT_TAKE2("suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, RSRC_CONF | ACCESS_CONF, + "User and group scripts shall be run as"), + #endif +- AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"), +- AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"), ++ AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"), ++ AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"), + {NULL} + }; + |