Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/jmbsvicetto:master commit in: www-apps/drupal/
Date: Sun, 25 Sep 2016 03:23:17
Message-Id: 1474773269.8043f47a683b3e20d497d5443007807757d8656e.jmbsvicetto@gentoo
1 commit: 8043f47a683b3e20d497d5443007807757d8656e
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 25 03:14:29 2016 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 25 03:14:29 2016 +0000
6 URL: https://gitweb.gentoo.org/dev/jmbsvicetto.git/commit/?id=8043f47a
7
8 Security bump - addresses SA-CORE-2016-004 (bug 594718).
9
10 Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>
11
12 www-apps/drupal/Manifest | 1 +
13 www-apps/drupal/drupal-8.1.10.ebuild | 87 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 88 insertions(+)
15
16 diff --git a/www-apps/drupal/Manifest b/www-apps/drupal/Manifest
17 index 2fd79f2..cde9797 100644
18 --- a/www-apps/drupal/Manifest
19 +++ b/www-apps/drupal/Manifest
20 @@ -1,2 +1,3 @@
21 DIST drupal-7.50.tar.gz 3286826 SHA256 82041716e1790269d09ec4a1c4cca8899d0221509471d53ac793a320143e0cf0 SHA512 1d80c1cb46db4a679f4ba61decfd799989c915206325a825e0c2234c33d84dc4a7ee38a76f51e48337e241c22deffc0589d65eb6de4341070e1b4440823e52c3 WHIRLPOOL eaf8a872c505a8be8faba3f8e687360c7f52e09fbf081fbd2141245a13220ac16de67bb4a7c1a283d61c517760df54bb2a268bf67649ea0875be48bd89bb6573
22 +DIST drupal-8.1.10.tar.gz 12651446 SHA256 6bacd17843a23f5079171023cdef6fc03616cf9682c0af898649232c0a6262cb SHA512 22e27a339b2fff40b99549617480f1ca5525b8103b0ceb85e267b13ac6bd1703c06db63c1bb8bf6a85ba3ad1e178e3bf0fc04bbaf26bb96b1950c6d032181e16 WHIRLPOOL dfaa9900a96e2ec01b5b3d19910d869323a8ff985080686e567dad8c7d3e570e3fecc5c34e2112e9f52f60c73b7139fb99f7bc06f463c89872b1375d3c97390f
23 DIST drupal-8.1.7.tar.gz 12601662 SHA256 1d4c9d58c22651aca312d9fd1446f28f16018326a03e3f40dfcce264212a8e2e SHA512 bad9ef2ede85af0cd7f254c5b7827bc98a487054c614313f791af1fe6a9a34d739500669b048ea7487bd606652e03c184fc795476928df573ccefcbf1b31a496 WHIRLPOOL d30690ff5ffad3330264e3e94856420f19605d3c54a3f224f4e367ad2a6fee583bf5be1a07523b7a0b4c423e6b2adc08498923fe82485ffd360a6af0e6d6a8c0
24
25 diff --git a/www-apps/drupal/drupal-8.1.10.ebuild b/www-apps/drupal/drupal-8.1.10.ebuild
26 new file mode 100644
27 index 0000000..0eab001
28 --- /dev/null
29 +++ b/www-apps/drupal/drupal-8.1.10.ebuild
30 @@ -0,0 +1,87 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +inherit webapp
38 +
39 +MY_PV=${PV:0:3}.0
40 +MY_P=${P/_/-}
41 +S="${WORKDIR}/${MY_P}"
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/${MY_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="LICENSE.txt README.txt core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
81 + core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
82 +
83 + dodoc ${docs}
84 + rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
85 +
86 + cp sites/default/{default.settings.php,settings.php} || die
87 + insinto "${MY_HTDOCSDIR}"
88 + doins -r .
89 +
90 + dodir "${MY_HTDOCSDIR}"/files
91 + webapp_serverowned "${MY_HTDOCSDIR}"/files
92 + webapp_serverowned "${MY_HTDOCSDIR}"/sites/default
93 + webapp_serverowned "${MY_HTDOCSDIR}"/sites/default/settings.php
94 +
95 + webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
96 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
97 +
98 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
99 +
100 + webapp_src_install
101 +}
102 +
103 +pkg_postinst() {
104 + echo
105 + ewarn "SECURITY NOTICE"
106 + ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
107 + ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
108 + echo
109 + ewarn "If this is a new install, unless you want anyone with network access to your server to be"
110 + ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
111 + echo
112 + ewarn "If you're doing a new drupal-8 install, you'll have to copy /sites/default/default.services.yml"
113 + ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
114 + ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
115 + ewarn "reported by the setup."
116 + echo
117 +}