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, 02 Feb 2017 23:03:25
Message-Id: 1486076539.eae047c0ccbad8650bbc2477f7275dde4c1cf4e5.jmbsvicetto@gentoo
1 commit: eae047c0ccbad8650bbc2477f7275dde4c1cf4e5
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 2 23:02:19 2017 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 2 23:02:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eae047c0
7
8 www-apps/drupal: Add maintenance releases 7.54 and 8.2.6.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 www-apps/drupal/Manifest | 2 +
13 www-apps/drupal/drupal-7.54.ebuild | 75 ++++++++++++++++++++++++++++++++
14 www-apps/drupal/drupal-8.2.6.ebuild | 87 +++++++++++++++++++++++++++++++++++++
15 3 files changed, 164 insertions(+)
16
17 diff --git a/www-apps/drupal/Manifest b/www-apps/drupal/Manifest
18 index 42371c1..1b89584 100644
19 --- a/www-apps/drupal/Manifest
20 +++ b/www-apps/drupal/Manifest
21 @@ -1,2 +1,4 @@
22 DIST drupal-7.53.tar.gz 3273245 SHA256 36baaac12194658e606d33483443fb4b50ac00f0d25e9c519c6d6a85673cafac SHA512 dafb2a309c59d58154de829fef18af9c1a5caba693d32705e531f38c6bbafe7f89130f3ec28e174c251a62da2a4e00fc339a84310ee077bd708d6c17546d81ec WHIRLPOOL cd1085ccb6097d6a7b2dfb882b34e3d1016674083ed1887719786a4985c4ce1babe6b6417ab5bcfaf6dda32c86f77ed1d58e72d79a27f014b780ea364d092856
23 +DIST drupal-7.54.tar.gz 3275864 SHA256 d74192aca31b56a95bd2b51f205e45293513466eaf902d056e6317dbcffe715b SHA512 0b2834cd2ec7778de1515b99ac7f6348c5a3632a670b882fcce1e3b9d4cc904f9da761c103a3fe70311c69563c8ba5178d76ac8e2938d0831d7ef4113abaaf2a WHIRLPOOL 7aefbecabf5902f97621c3a9ba5cda355a8024390ddfa198dbd20f6ed55187b658fcdb0f39db92a7c7f4e73249d4d191969c8ff9a5d5b13764677a0f50d20f4c
24 DIST drupal-8.2.5.tar.gz 12064201 SHA256 41c1ba9573e4974494a5ce0888366638132e798e2b71ea7130b197f88f22a5fe SHA512 33705c339a7cae5f57e61ff2fb449b1f077c288e302549c58b460c5b6806c1d1a6b131f44db3ff2fe958abcd232678515c4029579930bdcc219f955a088256f5 WHIRLPOOL 1506be60b3b12bc02a302dc7fb4b06bdc295cdf13c83c00378f0bca0cc6e2dde34d942084a5881263125638195032d7cf022ae9b689506c682e2750e5911f404
25 +DIST drupal-8.2.6.tar.gz 12091847 SHA256 ffcc6fc92d90d309e423fb142de6a782eef2dfef6d4cc2172aec445b5a4807e5 SHA512 004a9a4e1c8183501eaa216f0aefe3caf847da9dc276bdd6fce60c58c39444bdac664ca54aa190a601e6c768f2a928ffe51157f3f6b797a552527a250a593184 WHIRLPOOL def647fe0e841fa309de61ef1948b4a81eac902fceffe1531db8132e3d19a9486bd870f8d3de5ac755bc50773dc6ca8544ad8d906d2d2ea80b0f34258c24ac82
26
27 diff --git a/www-apps/drupal/drupal-7.54.ebuild b/www-apps/drupal/drupal-7.54.ebuild
28 new file mode 100644
29 index 00000000..270ef69
30 --- /dev/null
31 +++ b/www-apps/drupal/drupal-7.54.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
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.2.6.ebuild b/www-apps/drupal/drupal-8.2.6.ebuild
110 new file mode 100644
111 index 00000000..432c630
112 --- /dev/null
113 +++ b/www-apps/drupal/drupal-8.2.6.ebuild
114 @@ -0,0 +1,87 @@
115 +# Copyright 1999-2017 Gentoo Foundation
116 +# Distributed under the terms of the GNU General Public License v2
117 +# $Id$
118 +
119 +EAPI=5
120 +
121 +inherit webapp
122 +
123 +MY_PV=${PV:0:3}.0
124 +MY_P=${P/_/-}
125 +S="${WORKDIR}/${MY_P}"
126 +
127 +DESCRIPTION="PHP-based open-source platform and content management system"
128 +HOMEPAGE="https://www.drupal.org/"
129 +SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
130 +
131 +LICENSE="GPL-2"
132 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
133 +IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
134 +
135 +RDEPEND="
136 + dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
137 + virtual/httpd-php
138 + accelerator? ( ||
139 + (
140 + dev-php/xcache
141 + (
142 + >=dev-lang/php-5.5[opcache]
143 + dev-php/pecl-apcu
144 + )
145 + )
146 + )
147 + uploadprogress? ( dev-php/pecl-uploadprogress )
148 + mysql? (
149 + || (
150 + dev-lang/php[mysql]
151 + dev-lang/php[mysqli]
152 + )
153 + )
154 + sqlite? ( dev-lang/php[sqlite] )
155 +"
156 +
157 +need_httpd_cgi
158 +
159 +REQUIRED_USE="|| ( mysql postgres sqlite )"
160 +
161 +src_install() {
162 + webapp_src_preinst
163 +
164 + local docs="LICENSE.txt README.txt core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
165 + core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
166 +
167 + dodoc ${docs}
168 + rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
169 +
170 + cp sites/default/{default.settings.php,settings.php} || die
171 + insinto "${MY_HTDOCSDIR}"
172 + doins -r .
173 +
174 + dodir "${MY_HTDOCSDIR}"/files
175 + webapp_serverowned "${MY_HTDOCSDIR}"/files
176 + webapp_serverowned "${MY_HTDOCSDIR}"/sites/default
177 + webapp_serverowned "${MY_HTDOCSDIR}"/sites/default/settings.php
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 +}