Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/jmbsvicetto:master commit in: www-apps/wordpress/, www-apps/wordpress/files/
Date: Sat, 25 Jul 2015 02:25:22
Message-Id: 1437791098.2b52261947950522e4ff636ffc466920c06ac566.jmbsvicetto@gentoo
1 commit: 2b52261947950522e4ff636ffc466920c06ac566
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 25 02:24:58 2015 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 25 02:24:58 2015 +0000
6 URL: https://gitweb.gentoo.org/dev/jmbsvicetto.git/commit/?id=2b522619
7
8 Add wordpress and bump to release 4.2.3.
9
10 Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>
11
12 www-apps/wordpress/Manifest | 2 +
13 www-apps/wordpress/files/postinstall-en.txt | 38 ++++++++++++++++++
14 www-apps/wordpress/files/postupgrade-en.txt | 37 ++++++++++++++++++
15 www-apps/wordpress/metadata.xml | 12 ++++++
16 www-apps/wordpress/wordpress-4.2.2.ebuild | 60 +++++++++++++++++++++++++++++
17 www-apps/wordpress/wordpress-4.2.3.ebuild | 60 +++++++++++++++++++++++++++++
18 6 files changed, 209 insertions(+)
19
20 diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
21 new file mode 100644
22 index 0000000..ad0486b
23 --- /dev/null
24 +++ b/www-apps/wordpress/Manifest
25 @@ -0,0 +1,2 @@
26 +DIST wordpress-4.2.2.tar.gz 6307937 SHA256 3c4e2cc3af289366ff5352e35c3f80fca2dcaed3d56a79f33b25374c356c3f90 SHA512 5ac78341da152e7fdf470b6a2e13a8da02b61d74a8982cc2a9240a0b86049007d5fd643f059438b014b74741e58300b75a7904cd297c6f40aa3b916dcbcd9127 WHIRLPOOL 15755d51e8664be47f64e8087ebde3f6274de5da0bd6dd19740ca8a8f277b280b4d59a13935f23c78239d108a689d9a40dd50ca27da49cc48622fe8f87ad1f5a
27 +DIST wordpress-4.2.3.tar.gz 6313518 SHA256 49073745a56f8ddf740b95018071d69c3100d730dba014566a49c7b386786b16 SHA512 b1870687fbc5eb64c6a924878fe792397a8d8739a6084dc612f3133b8f2f552082ace039ca1f865fa7b58c44ffb65b8372534923f1253a8c2487a791f8d98d58 WHIRLPOOL a2a9cf91de8da30dfa1829802fe4fcf5b454ca19e6a1e74055b6ca1ce5378cdc96b0b5d82a377e3d64ece76dc22eaadd8195ea47f736d4fd22e1505db11792f9
28
29 diff --git a/www-apps/wordpress/files/postinstall-en.txt b/www-apps/wordpress/files/postinstall-en.txt
30 new file mode 100644
31 index 0000000..54c9771
32 --- /dev/null
33 +++ b/www-apps/wordpress/files/postinstall-en.txt
34 @@ -0,0 +1,38 @@
35 +------------------------------------------------------------------------
36 +INSTALLATION
37 +
38 +You will need to create a table for your WordPress database. This
39 +assumes you have some knowledge of MySQL, and already have it
40 +installed and configured. If not, please refer to the Gentoo MySQL
41 +guide at the following URL:
42 +
43 +http://www.gentoo.org/doc/en/mysql-howto.xml
44 +
45 +Log in to MySQL, and create a new database as well as a user with full
46 +access to this database. After that you will need to provide the details
47 +of this database and the associated user within the file
48 +
49 +${MY_INSTALLDIR}/wp-config.php
50 +
51 +Finally you should be able to log in to WordPress at
52 +
53 +http://${VHOST_HOSTNAME}/${VHOST_APPDIR}
54 +
55 +------------------------------------------------------------------------
56 +!!!!!!!!! SECURITY WARNING !!!!!!!!!!!
57 +
58 +Wordpress has had a history of serious security flaws. Any application
59 +with less widespread use but the same amount of security issues would
60 +have been removed from the tree.
61 +
62 +After a short period of being in the unstable tree we once again decided
63 +that we hard mask the package.
64 +
65 +THIS MEANS THAT THERE IS NO GUARANTEE WHATSOEVER THAT THE PACKAGE WILL
66 +GET UPGRADED WITHIN A REASONABLE AMOUNT OF TIME EVEN IN THE CASE OF
67 +SEVERE SECURITY ISSUES.
68 +
69 +We consider installing this package a severe risk to your system and
70 +you should keep a close eye on the common security trackers so
71 +that you are able to fix problems with your installation yourself if
72 +required.
73
74 diff --git a/www-apps/wordpress/files/postupgrade-en.txt b/www-apps/wordpress/files/postupgrade-en.txt
75 new file mode 100644
76 index 0000000..5c7b327
77 --- /dev/null
78 +++ b/www-apps/wordpress/files/postupgrade-en.txt
79 @@ -0,0 +1,37 @@
80 +------------------------------------------------------------------------
81 +UPGRADE
82 +
83 +
84 +If you are upgrading from a previous version BACK UP your database.
85 +
86 +Once you are done with that, browse to
87 +
88 +http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/wp-admin/upgrade.php
89 +
90 +and follow the instructions on the screen.
91 +
92 +Note that the default theme has changed between Wordpress 2.x and 3.x,
93 +so if you were using the default theme, your site will fail to load after
94 +the upgrade. Log in to the admin interface and open the themes section to
95 +reset to the new default theme. If you face other troubles after the
96 +upgrade, you might want to look for broken plugins or themes.
97 +
98 +------------------------------------------------------------------------
99 +!!!!!!!!! SECURITY WARNING !!!!!!!!!!!
100 +
101 +Wordpress has had a history of serious security flaws. Any application
102 +with less widespread use but the same amount of security issues would
103 +have been removed from the tree.
104 +
105 +After a short period of being in the unstable tree we once again decided
106 +that we hard mask the package.
107 +
108 +THIS MEANS THAT THERE IS NO GUARANTEE WHATSOEVER THAT THE PACKAGE WILL
109 +GET UPGRADED WITHIN A REASONABLE AMOUNT OF TIME EVEN IN THE CASE OF
110 +SEVERE SECURITY ISSUES.
111 +
112 +We consider installing this package a severe risk to your system and
113 +you should keep a close eye on the common security trackers so
114 +that you are able to fix problems with your installation yourself if
115 +required.
116 +
117
118 diff --git a/www-apps/wordpress/metadata.xml b/www-apps/wordpress/metadata.xml
119 new file mode 100644
120 index 0000000..89f7c9f
121 --- /dev/null
122 +++ b/www-apps/wordpress/metadata.xml
123 @@ -0,0 +1,12 @@
124 +<?xml version="1.0" encoding="UTF-8"?>
125 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
126 +<pkgmetadata>
127 +<maintainer>
128 + <email>jmbsvicetto@g.o</email>
129 + <name>Jorge Manuel B. S. Vicetto</name>
130 +</maintainer>
131 +<use>
132 + <flag name="akismet">Installs Akismet comment spam plug-in</flag>
133 + <flag name="themes">Installs themes (including default theme)</flag>
134 +</use>
135 +</pkgmetadata>
136
137 diff --git a/www-apps/wordpress/wordpress-4.2.2.ebuild b/www-apps/wordpress/wordpress-4.2.2.ebuild
138 new file mode 100644
139 index 0000000..33fe371
140 --- /dev/null
141 +++ b/www-apps/wordpress/wordpress-4.2.2.ebuild
142 @@ -0,0 +1,60 @@
143 +# Copyright 1999-2015 Gentoo Foundation
144 +# Distributed under the terms of the GNU General Public License v2
145 +# $Header: /var/cvsroot/gentoo-x86/www-apps/wordpress/wordpress-4.2.2.ebuild,v 1.1 2015/05/08 17:10:33 sping Exp $
146 +
147 +EAPI=5
148 +
149 +inherit webapp
150 +
151 +DESCRIPTION="Wordpress PHP and MySQL based content management system (CMS)"
152 +HOMEPAGE="http://wordpress.org/"
153 +SRC_URI="http://wordpress.org/${P/_rc/-RC}.tar.gz"
154 +
155 +LICENSE="GPL-2+"
156 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
157 +
158 +RDEPEND="virtual/httpd-php
159 + || ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
160 +
161 +S=${WORKDIR}/${PN}
162 +
163 +need_httpd_cgi
164 +
165 +IUSE="+akismet examples +themes vhosts"
166 +
167 +# Override default of SLOT="${PVR}"
168 +WEBAPP_MANUAL_SLOT=yes
169 +SLOT="${PV}"
170 +
171 +src_install() {
172 + webapp_src_preinst
173 +
174 + dohtml readme.html
175 + rm readme.html license.txt || die
176 +
177 + if ! use akismet ; then
178 + rm -R wp-content/plugins/akismet/ || die
179 + fi
180 + if ! use examples ; then
181 + rm wp-content/plugins/hello.php || die
182 + fi
183 + if ! use themes ; then
184 + rm -R wp-content/themes/*/ || die
185 + fi
186 +
187 + [[ -f wp-config.php ]] || cp wp-config-sample.php wp-config.php
188 +
189 + insinto "${MY_HTDOCSDIR}"
190 + doins -r .
191 +
192 + webapp_serverowned "${MY_HTDOCSDIR}"/index.php
193 + webapp_serverowned "${MY_HTDOCSDIR}"/wp-admin/menu.php
194 + webapp_serverowned "${MY_HTDOCSDIR}"
195 +
196 + webapp_configfile "${MY_HTDOCSDIR}"/wp-config.php
197 +
198 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
199 + webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
200 +
201 + webapp_src_install
202 +}
203
204 diff --git a/www-apps/wordpress/wordpress-4.2.3.ebuild b/www-apps/wordpress/wordpress-4.2.3.ebuild
205 new file mode 100644
206 index 0000000..33fe371
207 --- /dev/null
208 +++ b/www-apps/wordpress/wordpress-4.2.3.ebuild
209 @@ -0,0 +1,60 @@
210 +# Copyright 1999-2015 Gentoo Foundation
211 +# Distributed under the terms of the GNU General Public License v2
212 +# $Header: /var/cvsroot/gentoo-x86/www-apps/wordpress/wordpress-4.2.2.ebuild,v 1.1 2015/05/08 17:10:33 sping Exp $
213 +
214 +EAPI=5
215 +
216 +inherit webapp
217 +
218 +DESCRIPTION="Wordpress PHP and MySQL based content management system (CMS)"
219 +HOMEPAGE="http://wordpress.org/"
220 +SRC_URI="http://wordpress.org/${P/_rc/-RC}.tar.gz"
221 +
222 +LICENSE="GPL-2+"
223 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
224 +
225 +RDEPEND="virtual/httpd-php
226 + || ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
227 +
228 +S=${WORKDIR}/${PN}
229 +
230 +need_httpd_cgi
231 +
232 +IUSE="+akismet examples +themes vhosts"
233 +
234 +# Override default of SLOT="${PVR}"
235 +WEBAPP_MANUAL_SLOT=yes
236 +SLOT="${PV}"
237 +
238 +src_install() {
239 + webapp_src_preinst
240 +
241 + dohtml readme.html
242 + rm readme.html license.txt || die
243 +
244 + if ! use akismet ; then
245 + rm -R wp-content/plugins/akismet/ || die
246 + fi
247 + if ! use examples ; then
248 + rm wp-content/plugins/hello.php || die
249 + fi
250 + if ! use themes ; then
251 + rm -R wp-content/themes/*/ || die
252 + fi
253 +
254 + [[ -f wp-config.php ]] || cp wp-config-sample.php wp-config.php
255 +
256 + insinto "${MY_HTDOCSDIR}"
257 + doins -r .
258 +
259 + webapp_serverowned "${MY_HTDOCSDIR}"/index.php
260 + webapp_serverowned "${MY_HTDOCSDIR}"/wp-admin/menu.php
261 + webapp_serverowned "${MY_HTDOCSDIR}"
262 +
263 + webapp_configfile "${MY_HTDOCSDIR}"/wp-config.php
264 +
265 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
266 + webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
267 +
268 + webapp_src_install
269 +}