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: Mon, 11 Feb 2019 19:18:08
Message-Id: 1549912678.719e9bc3bde485d847156f0a7419d028f2328c10.jmbsvicetto@gentoo
1 commit: 719e9bc3bde485d847156f0a7419d028f2328c10
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 11 19:17:58 2019 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 11 19:17:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=719e9bc3
7
8 www-apps/drupal: Bump to releases 7.64 and 8.6.9.
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-7.64.ebuild | 74 ++++++++++++++++++++++++++++++++
15 www-apps/drupal/drupal-8.6.9.ebuild | 84 +++++++++++++++++++++++++++++++++++++
16 3 files changed, 160 insertions(+)
17
18 diff --git a/www-apps/drupal/Manifest b/www-apps/drupal/Manifest
19 index 061979c7e00..485bdcc2ba2 100644
20 --- a/www-apps/drupal/Manifest
21 +++ b/www-apps/drupal/Manifest
22 @@ -1,2 +1,4 @@
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.6.7.tar.gz 16478439 BLAKE2B d1649f792e79ece2c17842478f23fbed8ef331ad6fcf7509f5cdd4fd5875fc6a00e1820fe39a66dd5404945658260436b9438c8d25a725517bc13f44d1407290 SHA512 0150f42066fe1a2e5c96eea1fd3d59221d2d3102cde8e629de79f4f248496c506cd2f76165a1baee3c36ca2d3d266658949a7927743c9e1859a525aa34ae80a6
26 +DIST drupal-8.6.9.tar.gz 16857833 BLAKE2B f2d47f834aab8ee5c3ae0dfb371fe73470be97754e7ffdd21d152da8405a35895cd72f019063ee091253b731e5ca53dfa4cde1e9d1f435f8a4ed39d9b4ce5ec0 SHA512 844acb03335e0e017f4f2b7c53ad5f3f25c32feb361e9f45bb073bba0689009b3a53da40999a7edae83fe8118865ac4d18f428feda08692ef7dd50db0b46c95a
27
28 diff --git a/www-apps/drupal/drupal-7.64.ebuild b/www-apps/drupal/drupal-7.64.ebuild
29 new file mode 100644
30 index 00000000000..2d1f90ebbd0
31 --- /dev/null
32 +++ b/www-apps/drupal/drupal-7.64.ebuild
33 @@ -0,0 +1,74 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
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.6.9.ebuild b/www-apps/drupal/drupal-8.6.9.ebuild
110 new file mode 100644
111 index 00000000000..a8514d07dfe
112 --- /dev/null
113 +++ b/www-apps/drupal/drupal-8.6.9.ebuild
114 @@ -0,0 +1,84 @@
115 +# Copyright 1999-2019 Gentoo Authors
116 +# Distributed under the terms of the GNU General Public License v2
117 +
118 +EAPI=6
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 +
176 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
177 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
178 +
179 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
180 +
181 + webapp_src_install
182 +}
183 +
184 +pkg_postinst() {
185 + echo
186 + ewarn "SECURITY NOTICE"
187 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
188 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
189 + echo
190 + ewarn "If this is a new install, unless you want anyone with network access to your server to be"
191 + ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
192 + echo
193 + ewarn "If you're doing a new drupal-8 install, you'll have to copy /sites/default/default.services.yml"
194 + ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
195 + ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
196 + ewarn "reported by the setup."
197 + echo
198 +}