summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2005-12-01 14:15:37 +0000
committerBenedikt Boehm <hollow@gentoo.org>2005-12-01 14:15:37 +0000
commitf08dac048ec0cb40aa86904aeb280873b1178131 (patch)
tree8907b0018e9b991e1f07fc1cf36c87f67889d3fc /www-apache/mod_suphp
parentStable on sparc wrt security #114113 (diff)
downloadgentoo-2-f08dac048ec0cb40aa86904aeb280873b1178131.tar.gz
gentoo-2-f08dac048ec0cb40aa86904aeb280873b1178131.tar.bz2
gentoo-2-f08dac048ec0cb40aa86904aeb280873b1178131.zip
Version bump
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'www-apache/mod_suphp')
-rw-r--r--www-apache/mod_suphp/ChangeLog7
-rw-r--r--www-apache/mod_suphp/Manifest14
-rw-r--r--www-apache/mod_suphp/files/digest-mod_suphp-0.6.11
-rw-r--r--www-apache/mod_suphp/mod_suphp-0.6.1.ebuild106
4 files changed, 116 insertions, 12 deletions
diff --git a/www-apache/mod_suphp/ChangeLog b/www-apache/mod_suphp/ChangeLog
index 3f67bb5f30a6..520122213386 100644
--- a/www-apache/mod_suphp/ChangeLog
+++ b/www-apache/mod_suphp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-apache/mod_suphp
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/ChangeLog,v 1.4 2005/08/16 09:50:29 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/ChangeLog,v 1.5 2005/12/01 14:15:37 hollow Exp $
+
+*mod_suphp-0.6.1 (01 Dec 2005)
+
+ 01 Dec 2005; Benedikt Boehm <hollow@gentoo.org> +mod_suphp-0.6.1.ebuild:
+ Version bump
16 Aug 2005; Benedikt Boehm <hollow@gentoo.org> mod_suphp-0.6.0.ebuild:
added mode use flags; added checkpath use flag; thx to jakub; bug #102513
diff --git a/www-apache/mod_suphp/Manifest b/www-apache/mod_suphp/Manifest
index 68f692e4450c..7eb0fd7b6fa8 100644
--- a/www-apache/mod_suphp/Manifest
+++ b/www-apache/mod_suphp/Manifest
@@ -1,16 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 48f533b4bd4884120335dab53ec3ff5b ChangeLog 650
+MD5 87066a0afd9b525624d45a3cf71a78cd ChangeLog 773
MD5 8c9cc137769da71d444c2208209857a7 files/70_mod_suphp.conf 1647
MD5 350380d3dd8b4a29db78e1f336344688 files/digest-mod_suphp-0.6.0 63
+MD5 2c7cae5f9c20456b4355e49e91a65e8f files/digest-mod_suphp-0.6.1 63
MD5 4c2c4f6d464975c72a932c9eef2e3461 files/suphp.conf 905
MD5 7272d8b6d09e3e301b6a08aa9c912eb0 metadata.xml 226
MD5 9746971345c0497bae5d50931d05be1c mod_suphp-0.6.0.ebuild 2657
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDSXlJKf2g/qXtneoRAjjiAKDB0pM2r5doDbNOMjIxQ+dclTkELQCgn0a7
-g4gbZU7uVL4tXVWdJXOZmHY=
-=7J04
------END PGP SIGNATURE-----
+MD5 9746971345c0497bae5d50931d05be1c mod_suphp-0.6.1.ebuild 2657
diff --git a/www-apache/mod_suphp/files/digest-mod_suphp-0.6.1 b/www-apache/mod_suphp/files/digest-mod_suphp-0.6.1
new file mode 100644
index 000000000000..04bc290353e8
--- /dev/null
+++ b/www-apache/mod_suphp/files/digest-mod_suphp-0.6.1
@@ -0,0 +1 @@
+MD5 7eb8ae29404392d9eb07c69d5242d716 suphp-0.6.1.tar.gz 361372
diff --git a/www-apache/mod_suphp/mod_suphp-0.6.1.ebuild b/www-apache/mod_suphp/mod_suphp-0.6.1.ebuild
new file mode 100644
index 000000000000..0eb47d23601b
--- /dev/null
+++ b/www-apache/mod_suphp/mod_suphp-0.6.1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/mod_suphp-0.6.1.ebuild,v 1.1 2005/12/01 14:15:37 hollow Exp $
+
+inherit apache-module eutils
+
+MY_P=${P/mod_/}
+
+SETIDMODES="mode-force mode-owner mode-paranoid"
+
+DESCRIPTION="A PHP wrapper for Apache"
+HOMEPAGE="http://www.suphp.org"
+SRC_URI="http://www.suphp.org/download/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~ppc ~x86"
+IUSE="checkpath ${SETIDMODES}"
+SLOT="0"
+
+S="${WORKDIR}/${MY_P}"
+
+APXS1_S="${S}/src/apache"
+APACHE1_MOD_CONF="70_${PN}"
+APACHE1_MOD_DEFINE="SUPHP"
+
+APXS2_S="${S}/src/apache2"
+APACHE2_MOD_CONF="70_${PN}"
+APACHE2_MOD_DEFINE="SUPHP"
+
+need_apache2
+
+pkg_setup() {
+ modecnt=0
+ for mode in ${SETIDMODES}; do
+ if use ${mode}; then
+ if [ ${modecnt} -eq 0 ]; then
+ SUPHP_SETIDMODE=${mode/mode-}
+ let modecnt++
+ elif [ ${modecnt} -ge 1 ]; then
+ die "You can only select ONE mode in your USE flags!"
+ fi
+ fi
+ done
+
+ if [ ${modecnt} -eq 0 ]; then
+ ewarn
+ ewarn "No mode selected, defaulting to paranoid!"
+ ewarn
+ ewarn "If you want to choose another mode, put mode-force OR mode-owner"
+ ewarn "into your USE flags and run emerge again."
+ ewarn
+ fi
+
+ einfo
+ einfo "Using ${SUPHP_SETIDMODE/mode-} mode"
+ einfo
+ einfo "You can manipulate several configure options of this"
+ einfo "ebuild through environment variables:"
+ einfo
+ einfo "SUPHP_MINUID: Minimum UID, which is allowed to run scripts (default: 1000)"
+ einfo "SUPHP_MINGID: Minimum GID, which is allowed to run scripts (default: 100)"
+ einfo "SUPHP_APACHEUSER: Name of the user Apache is running as (default: apache)"
+ einfo "SUPHP_LOGFILE: Path to suPHP logfile (default: /var/log/apache2/suphp_log)"
+ einfo
+
+ : ${SUPHP_MINUID:=1000}
+ : ${SUPHP_MINGID:=100}
+ : ${SUPHP_APACHEUSER:="apache"}
+ : ${SUPHP_LOGFILE:="/var/log/apache2/suphp_log"}
+}
+
+src_compile() {
+ local myargs=
+ use checkpath || myargs="${myargs} --disable-checkpath"
+
+ myargs="${myargs} \
+ --with-setid-mode=${SUPHP_SETIDMODE} \
+ --with-min-uid=${SUPHP_MINUID} \
+ --with-min-gid=${SUPHP_MINGID} \
+ --with-apache-user=${SUPHP_APACHEUSER} \
+ --with-logfile=${SUPHP_LOGFILE} \
+ --with-apxs=${APXS2}"
+
+ CFLAGS="$(apr-config --includes) $(apu-config --includes)" \
+ econf ${myargs} || die "econf failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ apache-module_src_install
+ dosbin src/suphp
+
+ dodoc ChangeLog doc/CONFIG
+
+ docinto apache
+ dodoc doc/apache/CONFIG doc/apache/INSTALL
+
+ insinto /etc
+ doins ${FILESDIR}/suphp.conf
+}
+
+pkg_postinst() {
+ # make suphp setuid
+ chmod 4755 /usr/sbin/suphp
+}