diff options
author | Philippe Trottier <tchiwam@gentoo.org> | 2006-12-11 12:16:27 +0000 |
---|---|---|
committer | Philippe Trottier <tchiwam@gentoo.org> | 2006-12-11 12:16:27 +0000 |
commit | d3b2bb092263c9c10c2217058a143070838c629c (patch) | |
tree | ae75fe54f7a777f3da5b7a72c50fb20f0787efea /www-apps | |
parent | Stable on ia64. (diff) | |
download | gentoo-2-d3b2bb092263c9c10c2217058a143070838c629c.tar.gz gentoo-2-d3b2bb092263c9c10c2217058a143070838c629c.tar.bz2 gentoo-2-d3b2bb092263c9c10c2217058a143070838c629c.zip |
bug 150143 restrict USE flag
(Portage version: 2.1.1-r2)
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/mediawiki/ChangeLog | 5 | ||||
-rw-r--r-- | www-apps/mediawiki/files/access_restrict.patch | 21 | ||||
-rw-r--r-- | www-apps/mediawiki/mediawiki-1.8.2.ebuild | 5 |
3 files changed, 29 insertions, 2 deletions
diff --git a/www-apps/mediawiki/ChangeLog b/www-apps/mediawiki/ChangeLog index 54041a71c093..2f9465958b7d 100644 --- a/www-apps/mediawiki/ChangeLog +++ b/www-apps/mediawiki/ChangeLog @@ -1,9 +1,12 @@ # ChangeLog for www-apps/mediawiki # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.69 2006/12/11 10:51:52 tchiwam Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.70 2006/12/11 12:16:27 tchiwam Exp $ 11 Dec 2006; Philippe Trottier <tchiwam@gentoo.org> mediawiki-1.8.2.ebuild: + start with more restricted access possible bug#150143. + + 11 Dec 2006; Philippe Trottier <tchiwam@gentoo.org> mediawiki-1.8.2.ebuild: job key lenght bug#152089. *mediawiki-1.8.2 (05 Dec 2006) diff --git a/www-apps/mediawiki/files/access_restrict.patch b/www-apps/mediawiki/files/access_restrict.patch new file mode 100644 index 000000000000..c4db4eec99a3 --- /dev/null +++ b/www-apps/mediawiki/files/access_restrict.patch @@ -0,0 +1,21 @@ +--- mediawiki-1.8.2/config/index.php.orig 2006-12-11 13:44:52.000000000 +0200 ++++ mediawiki-1.8.2/config/index.php 2006-12-11 13:45:22.000000000 +0200 +@@ -1451,6 +1451,18 @@ + # sure that cached pages are cleared. + \$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); + \$wgCacheEpoch = max( \$wgCacheEpoch, \$configdate ); ++ ++# Added by Gentoo Developer Philippe Trottier <tchiwam@gentoo.org> ++# This will make the access by default very restricted. This is not supported ++# by mediawiki themself. Here I make a very gross assumtion that everyone will install in english 1st. ++# Please read http://meta.wikimedia.org/wiki/Preventing_Access before filing bug reports ++# ++\$wgGroupPermissions['*']['createaccount'] = false; ++\$wgGroupPermissions['*']['edit'] = false; ++\$wgWhitelistRead = array( \"Main Page\", \"Special:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); ++# \$wgWhitelistRead = array( \"Hauptseite\", \"Spezial:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); ++# \$wgWhitelistRead = array( \"Pagina principale\", \"Speciale:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); ++\$wgGroupPermissions['*']['read'] = false; + "; ## End of setting the $localsettings string + + // Keep things in Unix line endings internally; diff --git a/www-apps/mediawiki/mediawiki-1.8.2.ebuild b/www-apps/mediawiki/mediawiki-1.8.2.ebuild index 89fa91f64f70..c4af329f7330 100644 --- a/www-apps/mediawiki/mediawiki-1.8.2.ebuild +++ b/www-apps/mediawiki/mediawiki-1.8.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.2.ebuild,v 1.4 2006/12/11 10:51:52 tchiwam Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.2.ebuild,v 1.5 2006/12/11 12:16:27 tchiwam Exp $ inherit webapp depend.php @@ -48,6 +48,9 @@ src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/jobindexlength-mysql.patch + if use restrict ; then + epatch ${FILESDIR}/access_restrict.patch + fi } src_compile() { |