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