1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
inherit webapp
|
7 |
7 |
|
8 |
8 |
MY_PV=${PV:0:3}.0
|
|
9 |
MY_P=${P/_/-}
|
9 |
10 |
|
10 |
11 |
DESCRIPTION="PHP-based open-source platform and content management system"
|
11 |
12 |
HOMEPAGE="https://www.drupal.org/"
|
12 |
|
SRC_URI="https://ftp.drupal.org/files/projects/${P}.tar.gz"
|
|
13 |
SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
|
|
14 |
S="${WORKDIR}/${MY_P}"
|
13 |
15 |
|
14 |
16 |
LICENSE="GPL-2"
|
15 |
17 |
KEYWORDS="~amd64 ~x86"
|
... | ... | |
28 |
30 |
src_install() {
|
29 |
31 |
webapp_src_preinst
|
30 |
32 |
|
31 |
|
local docs="MAINTAINERS.txt LICENSE.txt INSTALL.txt CHANGELOG.txt INSTALL.mysql.txt INSTALL.pgsql.txt INSTALL.sqlite.txt UPGRADE.txt "
|
|
33 |
local docs="LICENSE.txt README.md core/MAINTAINERS.txt core/INSTALL.txt core/CHANGELOG.txt \
|
|
34 |
core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt "
|
|
35 |
|
32 |
36 |
dodoc ${docs}
|
33 |
|
rm -f ${docs} INSTALL COPYRIGHT.txt || die
|
|
37 |
rm ${docs} core/COPYRIGHT.txt core/LICENSE.txt || die
|
34 |
38 |
|
35 |
39 |
cp sites/default/{default.settings.php,settings.php} || die
|
36 |
40 |
insinto "${MY_HTDOCSDIR}"
|
... | ... | |
38 |
42 |
|
39 |
43 |
dodir "${MY_HTDOCSDIR}"/files
|
40 |
44 |
webapp_serverowned "${MY_HTDOCSDIR}"/files
|
41 |
|
webapp_serverowned "${MY_HTDOCSDIR}"/sites/default
|
42 |
|
webapp_serverowned "${MY_HTDOCSDIR}"/sites/default/settings.php
|
43 |
45 |
|
44 |
46 |
webapp_configfile "${MY_HTDOCSDIR}"/sites/default/settings.php
|
45 |
47 |
webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
|
... | ... | |
55 |
57 |
ewarn "If you plan on using SSL on your Drupal site, please consult the postinstall information:"
|
56 |
58 |
ewarn "\t# webapp-config --show-postinst ${PN} ${PV}"
|
57 |
59 |
echo
|
|
60 |
ewarn "If this is a new install, unless you want anyone with network access to your server to be"
|
|
61 |
ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
|
|
62 |
echo
|
|
63 |
ewarn "If you're doing a new drupal-9 install, you'll have to copy /sites/default/default.services.yml"
|
|
64 |
ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
|
|
65 |
ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
|
|
66 |
ewarn "reported by the setup."
|
|
67 |
echo
|
58 |
68 |
}
|