summaryrefslogtreecommitdiff
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
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.
-rw-r--r--doc/CHANGES3
-rw-r--r--www/ap2-suphp/DESCR7
-rw-r--r--www/ap2-suphp/Makefile40
-rw-r--r--www/ap2-suphp/PLIST6
-rw-r--r--www/ap2-suphp/distinfo6
-rw-r--r--www/ap2-suphp/patches/patch-aa17
6 files changed, 78 insertions, 1 deletions
diff --git a/doc/CHANGES b/doc/CHANGES
index 14b867d9c05..0e36c1bcf18 100644
--- a/doc/CHANGES
+++ b/doc/CHANGES
@@ -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 @@ Changes to the packages collection and infrastructure in 2005:
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 --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}
+ };
+