1 |
radhermit 11/02/02 08:33:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mediawiki-1.16.2.ebuild |
5 |
Log: |
6 |
Version bump for security bug #353475. |
7 |
|
8 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.150 www-apps/mediawiki/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.150&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.150&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/ChangeLog?r1=1.149&r2=1.150 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v |
20 |
retrieving revision 1.149 |
21 |
retrieving revision 1.150 |
22 |
diff -u -r1.149 -r1.150 |
23 |
--- ChangeLog 9 Jan 2011 14:01:22 -0000 1.149 |
24 |
+++ ChangeLog 2 Feb 2011 08:33:01 -0000 1.150 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-apps/mediawiki |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.149 2011/01/09 14:01:22 ranger Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.150 2011/02/02 08:33:01 radhermit Exp $ |
30 |
+ |
31 |
+*mediawiki-1.16.2 (02 Feb 2011) |
32 |
+ |
33 |
+ 02 Feb 2011; Tim Harder <radhermit@g.o> +mediawiki-1.16.2.ebuild: |
34 |
+ Version bump for security bug #353475. |
35 |
|
36 |
09 Jan 2011; Brent Baude <ranger@g.o> mediawiki-1.16.1.ebuild: |
37 |
Marking mediawiki-1.16.1 ppc for bug 350917 |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-apps/mediawiki/mediawiki-1.16.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/mediawiki-1.16.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/mediawiki-1.16.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mediawiki-1.16.2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.16.2.ebuild,v 1.1 2011/02/02 08:33:01 radhermit Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
inherit webapp depend.php versionator eutils |
54 |
|
55 |
MY_BRANCH=$(get_version_component_range 1-2) |
56 |
|
57 |
DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" |
58 |
HOMEPAGE="http://www.mediawiki.org" |
59 |
SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P}.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
63 |
IUSE="imagemagick math mysql postgres +ocamlopt sqlite" |
64 |
|
65 |
DEPEND="math? ( >=dev-lang/ocaml-3.0.6[ocamlopt?] )" |
66 |
RDEPEND="${DEPEND} |
67 |
math? ( |
68 |
app-text/dvipng |
69 |
virtual/tex-base |
70 |
app-text/ghostscript-gpl |
71 |
|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) |
72 |
) |
73 |
imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) ) |
74 |
!imagemagick? ( || ( dev-lang/php[gd] dev-lang/php[gd-external] ) ) |
75 |
|| ( <dev-lang/php-5.3[mysql?,pcre,postgres?,session,spl,xml] |
76 |
>=dev-lang/php-5.3[mysql?,postgres?,session,xml] ) |
77 |
sqlite? ( dev-db/sqlite:3[fts3] |
78 |
dev-lang/php[sqlite,pdo] )" |
79 |
|
80 |
RESTRICT="test" |
81 |
|
82 |
need_httpd_cgi |
83 |
need_php_httpd |
84 |
|
85 |
src_compile() { |
86 |
if use math; then |
87 |
einfo "Compiling math support" |
88 |
cd math || die |
89 |
if ! use ocamlopt; then |
90 |
sed -e "s/ocamlopt/ocamlc/" \ |
91 |
-e "s/cmxa/cma/" \ |
92 |
-e "s/cmx/cmo/g" -i Makefile || die |
93 |
fi |
94 |
emake || die |
95 |
else |
96 |
einfo "Math support not enabled. Skipping." |
97 |
fi |
98 |
|
99 |
# TODO: 1. think about includes/zhtable/ support |
100 |
# 2. generate docs (?): echo '0' | php mwdocgen.php |
101 |
} |
102 |
|
103 |
src_install() { |
104 |
webapp_src_preinst |
105 |
|
106 |
# First we install math, docs and then copy everything left into htdocs dir |
107 |
# to avoid bugs like #236411. |
108 |
|
109 |
# If we've enabled math USE-flag, install math support. |
110 |
# We ensure the directories are prepared for writing. The post- |
111 |
# install instructions guide the user to enable the feature. |
112 |
if use math; then |
113 |
einfo "Installing math support" |
114 |
exeinto "${MY_HTDOCSDIR}"/math |
115 |
doexe math/texvc || die "Failed to create math support executable." |
116 |
|
117 |
docinto math |
118 |
dodoc math/{README,TODO} |
119 |
docinto "" |
120 |
|
121 |
# Working directories. Server writeable. |
122 |
dodir "${MY_HTDOCSDIR}"/images/math |
123 |
webapp_serverowned "${MY_HTDOCSDIR}"/images/math |
124 |
dodir "${MY_HTDOCSDIR}"/images/tmp |
125 |
webapp_serverowned "${MY_HTDOCSDIR}"/images/tmp |
126 |
fi |
127 |
|
128 |
local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES UPGRADE" |
129 |
dodoc ${DOCS} docs/*.txt |
130 |
docinto php-memcached |
131 |
dodoc docs/php-memcached/* |
132 |
|
133 |
# Clean everything not used at the site... |
134 |
rm -rf ${DOCS} COPYING tests math t docs |
135 |
find . -name Makefile -delete |
136 |
# and install |
137 |
insinto "${MY_HTDOCSDIR}" |
138 |
doins -r . |
139 |
|
140 |
# If imagemagick is enabled then setup for image upload. |
141 |
# We ensure the directory is prepared for writing. |
142 |
if use imagemagick; then |
143 |
webapp_serverowned "${MY_HTDOCSDIR}"/images |
144 |
fi |
145 |
|
146 |
webapp_postinst_txt en "${FILESDIR}/postinstall-1.13-en.txt" |
147 |
webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" |
148 |
webapp_src_install |
149 |
} |
150 |
|
151 |
pkg_preinst() { |
152 |
prev_instal="false" |
153 |
if has_version ${CATEGORY}/${PN}; then |
154 |
prev_instal="true" |
155 |
fi |
156 |
} |
157 |
|
158 |
pkg_postinst() { |
159 |
webapp_pkg_postinst |
160 |
if ${prev_instal}; then |
161 |
einfo |
162 |
elog "=== Consult the release notes ===" |
163 |
elog "Before doing anything, stop and consult the release notes" |
164 |
elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2" |
165 |
elog |
166 |
elog "These detail bug fixes, new features and functionality, and any" |
167 |
elog "particular points that may need to be noted during the upgrade procedure." |
168 |
einfo |
169 |
ewarn "Back up existing files and the database before upgrade." |
170 |
ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" |
171 |
ewarn "provides an overview of the backup process." |
172 |
einfo |
173 |
fi |
174 |
} |