commit:     88dd4875c1b52624f4cb10852175637a9fb42344
Author:     Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo 
<DOT> org>
AuthorDate: Sun Dec  7 21:03:55 2014 +0000
Commit:     Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Sun Dec  7 21:04:51 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=88dd4875

Add initial drupal 8 ebuild. No keywords as this needs testing.

Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> 
gentoo.org>

---
 www-apps/drupal/Manifest                  |  1 +
 www-apps/drupal/drupal-8.0.0_beta3.ebuild | 87 +++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git a/www-apps/drupal/Manifest b/www-apps/drupal/Manifest
index 17c5e67..ae8a4a7 100644
--- a/www-apps/drupal/Manifest
+++ b/www-apps/drupal/Manifest
@@ -1,2 +1,3 @@
 DIST drupal-6.34.tar.gz 1110352 SHA256 
fea34acdc9a1fbe086151df086efc26dd2d5168b8a8ca79d50543d5b83729994 SHA512 
3cc193df9d808cfab2262b65e2cd147483267fbb5d4af723ed132d15ae070498e928707cbe99c986cf64deb0a8b011da675d1c0bd67008b3b6de7e2e97c0cd4d
 WHIRLPOOL 
8e044b112a7aa4ba6d7d4cc9e0d2ce4fa5bc9e9b699a7bb87a37b632bbc96a51281b267b559cf4001209b660b608277149c89735ba5ffd4232065723be268685
 DIST drupal-7.34.tar.gz 3229858 SHA256 
34268d4f2917ad1417725885fe4dad78dd2fecb7b5a27c73627746d2cb1cb3b6 SHA512 
32bca5385ebb0485009c237491337691242064e6c754e271c1ba54e527c3c8577e8b161b69a8a6d02d3b1e908a14ac6d77d23623109731ee0dc167bc432d5882
 WHIRLPOOL 
f3437f7993cfdebe1032c3c562cbb8a58e42b782299896f058a8c95cd26251cbe602c28b546b4dca315f4fe7ca9e8c33c6e5cac5c0d20f37610e28e0bf093453
+DIST drupal-8.0.0-beta3.tar.gz 9445245 SHA256 
c3352c01e1a9f00515adb5df0d54d17514680244944c71f0bac502ba14f44571 SHA512 
0879fdf3ee00dbe637a461c70c30b336b87df6c87e9bc58b15a9c479242758588e8a613d50c4194793dad1b8b6bc733dfebc6328cbd0760cab0f475b27a784fc
 WHIRLPOOL 
5f3b022b31efc7f86d5238b33e1d26fd61dfd537f2554ae4f10f40bc07f561af494838208c109520869cd5f1ba4125f83e6399c499c7522df87f72788afb6405

diff --git a/www-apps/drupal/drupal-8.0.0_beta3.ebuild 
b/www-apps/drupal/drupal-8.0.0_beta3.ebuild
new file mode 100644
index 0000000..48185e3
--- /dev/null
+++ b/www-apps/drupal/drupal-8.0.0_beta3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/drupal/drupal-7.27.ebuild,v 1.1 
2014/04/25 07:55:09 radhermit Exp $
+
+EAPI=5
+
+inherit webapp
+
+MY_PV=${PV:0:3}.0
+MY_P=${P/_/-}
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="PHP-based open-source platform and content management system"
+HOMEPAGE="http://drupal.org/";
+SRC_URI="http://drupal.org/files/projects/${MY_P}.tar.gz";
+
+LICENSE="GPL-2"
+KEYWORDS=""
+IUSE="+accelerator +mysql postgres sqlite +uploadprogress"
+
+RDEPEND="
+       dev-lang/php[gd,hash,pdo,postgres?,simplexml,xml]
+       virtual/httpd-php
+       accelerator? ( ||
+               (
+                       dev-php/xcache
+                       (
+                               >=dev-lang/php-5.5[opcache]
+                               dev-php/pecl-apcu
+                       )
+               )
+       )
+       uploadprogress? ( dev-php/pecl-uploadprogress )
+       mysql? (
+               || (
+                       dev-lang/php[mysql]
+                       dev-lang/php[mysqli]
+               )
+       )
+       sqlite? ( dev-lang/php[sqlite] )
+"
+
+need_httpd_cgi
+
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+src_install() {
+       webapp_src_preinst
+
+       local docs="LICENSE.txt README.txt core/MAINTAINERS.txt 
core/INSTALL.txt core/CHANGELOG.txt \
+               core/INSTALL.mysql.txt core/INSTALL.pgsql.txt 
core/INSTALL.sqlite.txt core/UPGRADE.txt "
+
+       dodoc ${docs}
+       rm -f ${docs} core/INSTALL core/COPYRIGHT.txt core/LICENSE.txt || die
+
+       cp sites/default/{default.settings.php,settings.php} || die
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
+
+       dodir "${MY_HTDOCSDIR}"/files
+       webapp_serverowned "${MY_HTDOCSDIR}"/files
+       webapp_serverowned "${MY_HTDOCSDIR}"/sites/default
+       webapp_serverowned "${MY_HTDOCSDIR}"/sites/default/settings.php
+
+       webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
+       webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
+
+       webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+
+       webapp_src_install
+}
+
+pkg_postinst() {
+       echo
+       ewarn "SECURITY NOTICE"
+       ewarn "If you plan on using SSL on your Drupal site, please consult the 
postinstall information:"
+       ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
+       echo
+       ewarn "If this is a new install, unless you want anyone with network 
access to your server to be"
+       ewarn "able to run the setup, you'll have to configure your web server 
to limit access to it."
+       echo
+       ewarn "If you're doing a new drupal-8 install, you'll have to copy 
/sites/default/default.services.yml"
+       ewarn "to /sites/default/services.yml and grant it write permissions to 
your web server."
+       ewarn "Just follow the instructions of the drupal setup and be sure to 
resolve any permissions issue"
+       ewarn "reported by the setup."
+       echo
+}

Reply via email to