Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/drupal/
Date: Thu, 09 May 2019 02:34:28
Message-Id: 1557369163.083d121a9116b38623c16fc68071003bb180379c.jmbsvicetto@gentoo
1 commit: 083d121a9116b38623c16fc68071003bb180379c
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 9 02:32:43 2019 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Thu May 9 02:32:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=083d121a
7
8 www-apps/drupal: Security bump - SA-CORE-2019-007.
9
10 Package-Manager: Portage-2.3.65, Repoman-2.3.12
11 Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>
12
13 www-apps/drupal/Manifest | 3 ++
14 www-apps/drupal/drupal-7.67.ebuild | 74 +++++++++++++++++++++++++++++++
15 www-apps/drupal/drupal-8.6.16.ebuild | 84 ++++++++++++++++++++++++++++++++++++
16 www-apps/drupal/drupal-8.7.1.ebuild | 84 ++++++++++++++++++++++++++++++++++++
17 4 files changed, 245 insertions(+)
18
19 diff --git a/www-apps/drupal/Manifest b/www-apps/drupal/Manifest
20 index f8f1020feba..bdd13c70658 100644
21 --- a/www-apps/drupal/Manifest
22 +++ b/www-apps/drupal/Manifest
23 @@ -1,3 +1,6 @@
24 DIST drupal-7.66.tar.gz 3300183 BLAKE2B 89d82c7018ecade0f798df92087d704ca9f5847780a1c3106e69afda62b43c414d57f01584e2869e72fc3687370b0bad84c2a7ffc0ca90537be55cb36ce6edac SHA512 c348eeeabfb5fef05b28aa87c9885231bd5e676b1ced64a2f51cc2aefa122b5ce142aae2ede5c1479608c893195450ae25168bae971b8e77cc741b18650f75c8
25 +DIST drupal-7.67.tar.gz 3312764 BLAKE2B bb7f21e80ca192ff3e37f917c1fa43dcd8d3cd8b60ff012d1fe22e279ffd674e08be6aef6328d0c5b7c50a106592bde299300fe9ccb0c4c1ffc1aca57c3ca6ad SHA512 0e4f60010b1395183cea19424e8c2849f93fb7285a081bf7d0c774b8e82f403083533059f58c3831950cc06dfa8117d443db52b66a521301ceac10b1b333aa28
26 DIST drupal-8.5.15.tar.gz 15828193 BLAKE2B 3a90ad525da3d81f555461e28decea7977cb51eda5f2e3be89dcd38f05b94cc6743967e19d21d89572babc05c38ab4d3585e4b7ffb52677b50b19844400fbcdf SHA512 aa09a28d7dcba51e193bba2a714eef091773d5e12a3a7388db8925c791a7153a4333db6150a8a68fe21b04009887dcf60f16f237a86d52bd2cc7d28ada301221
27 DIST drupal-8.6.15.tar.gz 17137689 BLAKE2B 098847cc4a3a52a6c5d9af23c31e5dca43c2f9cbb4ac0f7d2724cf6b6ce98598b75750742c695e666000843f6fa855e2ba414ceb0d9b46f9baff244cc583ef64 SHA512 9a8d9c73f7812b6deca4bcfee0e04d485bfac5efa6e9112379fdacc727ecf0e40703ce9b141c7414357c296eb621a015aa1c97ab8e6bbe4d35c38b2f1c323337
28 +DIST drupal-8.6.16.tar.gz 17151378 BLAKE2B 2bdd14ff7a5f898af2d322a6b2862643899dfbe2ad05c99b85f036161612cccfc2c25105c8eef37311634a2aa03ed792db8de3e625aed5adb94cd8f644557fcb SHA512 34f260d780bce286a0a61b710c340d2622cb857aa92a2bdaad63737303ef2f4f1751edc3f415daaa14b9cb483757e367e639136d03f571cba5165129bba31e12
29 +DIST drupal-8.7.1.tar.gz 17811529 BLAKE2B 5bdb92a8f6c5675dd311417db526be81149240a053bdb94f4294cb571193ed03f2edbc83b51cbcce9e0e322b45981d0949714659f5db2dff211815232cd447e5 SHA512 a386f7991465eade203aba4b20bb894041c76abda97e93afd772a02b215ac496d57a9aed50820a7bd78604c9e6602180fcda933c5121b8536a7d610a3bc3f2e8
30
31 diff --git a/www-apps/drupal/drupal-7.67.ebuild b/www-apps/drupal/drupal-7.67.ebuild
32 new file mode 100644
33 index 00000000000..2d1f90ebbd0
34 --- /dev/null
35 +++ b/www-apps/drupal/drupal-7.67.ebuild
36 @@ -0,0 +1,74 @@
37 +# Copyright 1999-2019 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +inherit webapp
43 +
44 +MY_PV=${PV:0:3}.0
45 +
46 +DESCRIPTION="PHP-based open-source platform and content management system"
47 +HOMEPAGE="https://www.drupal.org/"
48 +SRC_URI="https://ftp.drupal.org/files/projects/${P}.tar.gz"
49 +
50 +LICENSE="GPL-2"
51 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
52 +IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
53 +
54 +RDEPEND="
55 + dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
56 + virtual/httpd-php
57 + accelerator? ( ||
58 + (
59 + dev-php/xcache
60 + (
61 + >=dev-lang/php-5.5[opcache]
62 + dev-php/pecl-apcu
63 + )
64 + )
65 + )
66 + uploadprogress? ( dev-php/pecl-uploadprogress )
67 + mysql? (
68 + || (
69 + dev-lang/php[mysql]
70 + dev-lang/php[mysqli]
71 + )
72 + )
73 + sqlite? ( dev-lang/php[sqlite] )
74 +"
75 +
76 +need_httpd_cgi
77 +
78 +REQUIRED_USE="|| ( mysql postgres sqlite )"
79 +
80 +src_install() {
81 + webapp_src_preinst
82 +
83 + local docs="MAINTAINERS.txt LICENSE.txt INSTALL.txt CHANGELOG.txt INSTALL.mysql.txt INSTALL.pgsql.txt INSTALL.sqlite.txt UPGRADE.txt "
84 + dodoc ${docs}
85 + rm -f ${docs} INSTALL COPYRIGHT.txt || die
86 +
87 + cp sites/default/{default.settings.php,settings.php} || die
88 + insinto "${MY_HTDOCSDIR}"
89 + doins -r .
90 +
91 + dodir "${MY_HTDOCSDIR}"/files
92 + webapp_serverowned "${MY_HTDOCSDIR}"/files
93 + webapp_serverowned "${MY_HTDOCSDIR}"/sites/default
94 + webapp_serverowned "${MY_HTDOCSDIR}"/sites/default/settings.php
95 +
96 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
97 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
98 +
99 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
100 +
101 + webapp_src_install
102 +}
103 +
104 +pkg_postinst() {
105 + echo
106 + ewarn "SECURITY NOTICE"
107 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
108 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
109 + echo
110 +}
111
112 diff --git a/www-apps/drupal/drupal-8.6.16.ebuild b/www-apps/drupal/drupal-8.6.16.ebuild
113 new file mode 100644
114 index 00000000000..a8514d07dfe
115 --- /dev/null
116 +++ b/www-apps/drupal/drupal-8.6.16.ebuild
117 @@ -0,0 +1,84 @@
118 +# Copyright 1999-2019 Gentoo Authors
119 +# Distributed under the terms of the GNU General Public License v2
120 +
121 +EAPI=6
122 +
123 +inherit webapp
124 +
125 +MY_PV=${PV:0:3}.0
126 +MY_P=${P/_/-}
127 +S="${WORKDIR}/${MY_P}"
128 +
129 +DESCRIPTION="PHP-based open-source platform and content management system"
130 +HOMEPAGE="https://www.drupal.org/"
131 +SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
132 +
133 +LICENSE="GPL-2"
134 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
135 +IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
136 +
137 +RDEPEND="
138 + dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
139 + virtual/httpd-php
140 + accelerator? ( ||
141 + (
142 + dev-php/xcache
143 + (
144 + >=dev-lang/php-5.5[opcache]
145 + dev-php/pecl-apcu
146 + )
147 + )
148 + )
149 + uploadprogress? ( dev-php/pecl-uploadprogress )
150 + mysql? (
151 + || (
152 + dev-lang/php[mysql]
153 + dev-lang/php[mysqli]
154 + )
155 + )
156 + sqlite? ( dev-lang/php[sqlite] )
157 +"
158 +
159 +need_httpd_cgi
160 +
161 +REQUIRED_USE="|| ( mysql postgres sqlite )"
162 +
163 +src_install() {
164 + webapp_src_preinst
165 +
166 + local docs="LICENSE.txt README.txt core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
167 + core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
168 +
169 + dodoc ${docs}
170 + rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
171 +
172 + cp sites/default/{default.settings.php,settings.php} || die
173 + insinto "${MY_HTDOCSDIR}"
174 + doins -r .
175 +
176 + dodir "${MY_HTDOCSDIR}"/files
177 + webapp_serverowned "${MY_HTDOCSDIR}"/files
178 +
179 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
180 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
181 +
182 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
183 +
184 + webapp_src_install
185 +}
186 +
187 +pkg_postinst() {
188 + echo
189 + ewarn "SECURITY NOTICE"
190 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
191 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
192 + echo
193 + ewarn "If this is a new install, unless you want anyone with network access to your server to be"
194 + ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
195 + echo
196 + ewarn "If you're doing a new drupal-8 install, you'll have to copy /sites/default/default.services.yml"
197 + ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
198 + ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
199 + ewarn "reported by the setup."
200 + echo
201 +}
202
203 diff --git a/www-apps/drupal/drupal-8.7.1.ebuild b/www-apps/drupal/drupal-8.7.1.ebuild
204 new file mode 100644
205 index 00000000000..a8514d07dfe
206 --- /dev/null
207 +++ b/www-apps/drupal/drupal-8.7.1.ebuild
208 @@ -0,0 +1,84 @@
209 +# Copyright 1999-2019 Gentoo Authors
210 +# Distributed under the terms of the GNU General Public License v2
211 +
212 +EAPI=6
213 +
214 +inherit webapp
215 +
216 +MY_PV=${PV:0:3}.0
217 +MY_P=${P/_/-}
218 +S="${WORKDIR}/${MY_P}"
219 +
220 +DESCRIPTION="PHP-based open-source platform and content management system"
221 +HOMEPAGE="https://www.drupal.org/"
222 +SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
223 +
224 +LICENSE="GPL-2"
225 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
226 +IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
227 +
228 +RDEPEND="
229 + dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
230 + virtual/httpd-php
231 + accelerator? ( ||
232 + (
233 + dev-php/xcache
234 + (
235 + >=dev-lang/php-5.5[opcache]
236 + dev-php/pecl-apcu
237 + )
238 + )
239 + )
240 + uploadprogress? ( dev-php/pecl-uploadprogress )
241 + mysql? (
242 + || (
243 + dev-lang/php[mysql]
244 + dev-lang/php[mysqli]
245 + )
246 + )
247 + sqlite? ( dev-lang/php[sqlite] )
248 +"
249 +
250 +need_httpd_cgi
251 +
252 +REQUIRED_USE="|| ( mysql postgres sqlite )"
253 +
254 +src_install() {
255 + webapp_src_preinst
256 +
257 + local docs="LICENSE.txt README.txt core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
258 + core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
259 +
260 + dodoc ${docs}
261 + rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
262 +
263 + cp sites/default/{default.settings.php,settings.php} || die
264 + insinto "${MY_HTDOCSDIR}"
265 + doins -r .
266 +
267 + dodir "${MY_HTDOCSDIR}"/files
268 + webapp_serverowned "${MY_HTDOCSDIR}"/files
269 +
270 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
271 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
272 +
273 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
274 +
275 + webapp_src_install
276 +}
277 +
278 +pkg_postinst() {
279 + echo
280 + ewarn "SECURITY NOTICE"
281 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
282 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
283 + echo
284 + ewarn "If this is a new install, unless you want anyone with network access to your server to be"
285 + ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
286 + echo
287 + ewarn "If you're doing a new drupal-8 install, you'll have to copy /sites/default/default.services.yml"
288 + ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
289 + ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
290 + ewarn "reported by the setup."
291 + echo
292 +}