pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Added ap2-suphp version 0.6.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e6efac90719
branches:  trunk
changeset: 497728:5e6efac90719
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Aug 03 16:43:38 2005 +0000

description:
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:

 doc/CHANGES                    |   3 ++-
 www/ap2-suphp/DESCR            |   7 +++++++
 www/ap2-suphp/Makefile         |  40 ++++++++++++++++++++++++++++++++++++++++
 www/ap2-suphp/PLIST            |   6 ++++++
 www/ap2-suphp/distinfo         |   6 ++++++
 www/ap2-suphp/patches/patch-aa |  17 +++++++++++++++++
 6 files changed, 78 insertions(+), 1 deletions(-)

diffs (110 lines):

diff -r 4ab3d6d12e85 -r 5e6efac90719 doc/CHANGES
--- a/doc/CHANGES       Wed Aug 03 16:36:03 2005 +0000
+++ b/doc/CHANGES       Wed Aug 03 16:43:38 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.10763 2005/08/03 14:31:54 taya Exp $
+$NetBSD: CHANGES,v 1.10764 2005/08/03 16:44:41 rillig Exp $
 
 Changes to the packages collection and infrastructure in 2005:
 
@@ -3518,3 +3518,4 @@
        Added math/qalculate-kde version 0.8.1.1 [adam 2005-08-03]
        Updated www/mozilla to 1.7.11 [taya 2005-08-03]
        Updated www/mozilla-gtk2 to 1.7.11 [taya 2005-08-03]
+       Added www/ap2-suphp version 0.6.0 [rillig 2005-08-03]
diff -r 4ab3d6d12e85 -r 5e6efac90719 www/ap2-suphp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-suphp/DESCR       Wed Aug 03 16:43:38 2005 +0000
@@ -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 -r 4ab3d6d12e85 -r 5e6efac90719 www/ap2-suphp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-suphp/Makefile    Wed Aug 03 16:43:38 2005 +0000
@@ -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@localhost
+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 -r 4ab3d6d12e85 -r 5e6efac90719 www/ap2-suphp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-suphp/PLIST       Wed Aug 03 16:43:38 2005 +0000
@@ -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 -r 4ab3d6d12e85 -r 5e6efac90719 www/ap2-suphp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-suphp/distinfo    Wed Aug 03 16:43:38 2005 +0000
@@ -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 -r 4ab3d6d12e85 -r 5e6efac90719 www/ap2-suphp/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-suphp/patches/patch-aa    Wed Aug 03 16:43:38 2005 +0000
@@ -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}
+ };
+ 



Home | Main Index | Thread Index | Old Index