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: Wed, 20 Feb 2019 21:25:50
Message-Id: 1550697937.72b6dd5894a9be9e464bf0f006cb2bab4688a5d1.jmbsvicetto@gentoo
1 commit: 72b6dd5894a9be9e464bf0f006cb2bab4688a5d1
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 20 21:24:32 2019 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 20 21:25:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72b6dd58
7
8 www-apps/drupal: Security bump - (SA-CORE-2019-003).
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>
12
13 www-apps/drupal/Manifest | 2 +
14 www-apps/drupal/drupal-8.5.11.ebuild | 84 ++++++++++++++++++++++++++++++++++++
15 www-apps/drupal/drupal-8.6.10.ebuild | 84 ++++++++++++++++++++++++++++++++++++
16 3 files changed, 170 insertions(+)
17
18 diff --git a/www-apps/drupal/Manifest b/www-apps/drupal/Manifest
19 index 485bdcc2ba2..dedece7261c 100644
20 --- a/www-apps/drupal/Manifest
21 +++ b/www-apps/drupal/Manifest
22 @@ -1,4 +1,6 @@
23 DIST drupal-7.63.tar.gz 3298415 BLAKE2B 28b136911b7faf4cf9ac790dbb5260de1004e34c77dcc08fabee7ae464a5f30645a4377f3c9f1ca4df45a357864bd1b5f6deb09a20db41bfbe9ef7621bf404a7 SHA512 e601732590a0b6d63d15d4d73e9531576592092dda986d965ff4d466069f21fc0adcd004798547b14dc528546ddcb5bb089a7cb1919b89f94339888858f12dd1
24 DIST drupal-7.64.tar.gz 3297822 BLAKE2B 8f1e9fa72086ae41a4d5bc2b261d23b5302400263cea28eb4e7b70ffb56d16c70dde31f7759eec9493a485e4527ba6e1085321362e835110d9b672bb520331dd SHA512 90d4b863df5597ac7e88dc09317e3ab8b2beacd6051ef267de52d1fe599a8704f25ede708d2a106c18d76f19c2c9de1e5003086ab9116bae5624acd418e8a014
25 +DIST drupal-8.5.11.tar.gz 15817672 BLAKE2B da944b432cacf070f47c3c16966c0a0a8950258f067bf2da50ae00281cee6a72f53940ad227ca2864f342c25a7bd6a500140f8070c932aa1a07a96b98016f1ff SHA512 16695af590d048882fa2c3b4aae071d6cbbad6eb4d0dd02763b7c95c782ef4cec70e3825cebbaecf2d5a6f18e2744017accb7bf9e7caf17b1b497eabfef3a348
26 +DIST drupal-8.6.10.tar.gz 16858107 BLAKE2B 1a86d907fea4ec77d88bc7a8d937baa093972b4823e347ce151040a8f7a53330433cea73273097a8960c41b9655094451f38160bcf2f6197fa7e7fcf82c52060 SHA512 acd37fd87a15ca5056b1b1341cd24481073b21dca279536f4065c817230b83dd41a01fc82867781ee2d70cd7e5ccd333b6bdda0cfe4966ce79bf5b1435ad5192
27 DIST drupal-8.6.7.tar.gz 16478439 BLAKE2B d1649f792e79ece2c17842478f23fbed8ef331ad6fcf7509f5cdd4fd5875fc6a00e1820fe39a66dd5404945658260436b9438c8d25a725517bc13f44d1407290 SHA512 0150f42066fe1a2e5c96eea1fd3d59221d2d3102cde8e629de79f4f248496c506cd2f76165a1baee3c36ca2d3d266658949a7927743c9e1859a525aa34ae80a6
28 DIST drupal-8.6.9.tar.gz 16857833 BLAKE2B f2d47f834aab8ee5c3ae0dfb371fe73470be97754e7ffdd21d152da8405a35895cd72f019063ee091253b731e5ca53dfa4cde1e9d1f435f8a4ed39d9b4ce5ec0 SHA512 844acb03335e0e017f4f2b7c53ad5f3f25c32feb361e9f45bb073bba0689009b3a53da40999a7edae83fe8118865ac4d18f428feda08692ef7dd50db0b46c95a
29
30 diff --git a/www-apps/drupal/drupal-8.5.11.ebuild b/www-apps/drupal/drupal-8.5.11.ebuild
31 new file mode 100644
32 index 00000000000..a8514d07dfe
33 --- /dev/null
34 +++ b/www-apps/drupal/drupal-8.5.11.ebuild
35 @@ -0,0 +1,84 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +inherit webapp
42 +
43 +MY_PV=${PV:0:3}.0
44 +MY_P=${P/_/-}
45 +S="${WORKDIR}/${MY_P}"
46 +
47 +DESCRIPTION="PHP-based open-source platform and content management system"
48 +HOMEPAGE="https://www.drupal.org/"
49 +SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
50 +
51 +LICENSE="GPL-2"
52 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
53 +IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
54 +
55 +RDEPEND="
56 + dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
57 + virtual/httpd-php
58 + accelerator? ( ||
59 + (
60 + dev-php/xcache
61 + (
62 + >=dev-lang/php-5.5[opcache]
63 + dev-php/pecl-apcu
64 + )
65 + )
66 + )
67 + uploadprogress? ( dev-php/pecl-uploadprogress )
68 + mysql? (
69 + || (
70 + dev-lang/php[mysql]
71 + dev-lang/php[mysqli]
72 + )
73 + )
74 + sqlite? ( dev-lang/php[sqlite] )
75 +"
76 +
77 +need_httpd_cgi
78 +
79 +REQUIRED_USE="|| ( mysql postgres sqlite )"
80 +
81 +src_install() {
82 + webapp_src_preinst
83 +
84 + local docs="LICENSE.txt README.txt core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
85 + core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
86 +
87 + dodoc ${docs}
88 + rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
89 +
90 + cp sites/default/{default.settings.php,settings.php} || die
91 + insinto "${MY_HTDOCSDIR}"
92 + doins -r .
93 +
94 + dodir "${MY_HTDOCSDIR}"/files
95 + webapp_serverowned "${MY_HTDOCSDIR}"/files
96 +
97 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
98 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
99 +
100 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
101 +
102 + webapp_src_install
103 +}
104 +
105 +pkg_postinst() {
106 + echo
107 + ewarn "SECURITY NOTICE"
108 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
109 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
110 + echo
111 + ewarn "If this is a new install, unless you want anyone with network access to your server to be"
112 + ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
113 + echo
114 + ewarn "If you're doing a new drupal-8 install, you'll have to copy /sites/default/default.services.yml"
115 + ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
116 + ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
117 + ewarn "reported by the setup."
118 + echo
119 +}
120
121 diff --git a/www-apps/drupal/drupal-8.6.10.ebuild b/www-apps/drupal/drupal-8.6.10.ebuild
122 new file mode 100644
123 index 00000000000..a8514d07dfe
124 --- /dev/null
125 +++ b/www-apps/drupal/drupal-8.6.10.ebuild
126 @@ -0,0 +1,84 @@
127 +# Copyright 1999-2019 Gentoo Authors
128 +# Distributed under the terms of the GNU General Public License v2
129 +
130 +EAPI=6
131 +
132 +inherit webapp
133 +
134 +MY_PV=${PV:0:3}.0
135 +MY_P=${P/_/-}
136 +S="${WORKDIR}/${MY_P}"
137 +
138 +DESCRIPTION="PHP-based open-source platform and content management system"
139 +HOMEPAGE="https://www.drupal.org/"
140 +SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
141 +
142 +LICENSE="GPL-2"
143 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
144 +IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
145 +
146 +RDEPEND="
147 + dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
148 + virtual/httpd-php
149 + accelerator? ( ||
150 + (
151 + dev-php/xcache
152 + (
153 + >=dev-lang/php-5.5[opcache]
154 + dev-php/pecl-apcu
155 + )
156 + )
157 + )
158 + uploadprogress? ( dev-php/pecl-uploadprogress )
159 + mysql? (
160 + || (
161 + dev-lang/php[mysql]
162 + dev-lang/php[mysqli]
163 + )
164 + )
165 + sqlite? ( dev-lang/php[sqlite] )
166 +"
167 +
168 +need_httpd_cgi
169 +
170 +REQUIRED_USE="|| ( mysql postgres sqlite )"
171 +
172 +src_install() {
173 + webapp_src_preinst
174 +
175 + local docs="LICENSE.txt README.txt core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
176 + core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
177 +
178 + dodoc ${docs}
179 + rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
180 +
181 + cp sites/default/{default.settings.php,settings.php} || die
182 + insinto "${MY_HTDOCSDIR}"
183 + doins -r .
184 +
185 + dodir "${MY_HTDOCSDIR}"/files
186 + webapp_serverowned "${MY_HTDOCSDIR}"/files
187 +
188 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
189 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
190 +
191 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
192 +
193 + webapp_src_install
194 +}
195 +
196 +pkg_postinst() {
197 + echo
198 + ewarn "SECURITY NOTICE"
199 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
200 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
201 + echo
202 + ewarn "If this is a new install, unless you want anyone with network access to your server to be"
203 + ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
204 + echo
205 + ewarn "If you're doing a new drupal-8 install, you'll have to copy /sites/default/default.services.yml"
206 + ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
207 + ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
208 + ewarn "reported by the setup."
209 + echo
210 +}