7 |
7 |
|
8 |
8 |
MY_PV=${PV:0:3}.0
|
9 |
9 |
MY_P=${P/_/-}
|
|
10 |
S="${WORKDIR}/${MY_P}"
|
10 |
11 |
|
11 |
12 |
DESCRIPTION="PHP-based open-source platform and content management system"
|
12 |
13 |
HOMEPAGE="https://www.drupal.org/"
|
13 |
14 |
SRC_URI="https://ftp.drupal.org/files/projects/${MY_P}.tar.gz"
|
14 |
|
S="${WORKDIR}/${MY_P}"
|
15 |
15 |
|
16 |
16 |
LICENSE="GPL-2"
|
17 |
17 |
KEYWORDS="~amd64 ~x86"
|
18 |
18 |
IUSE="+mysql postgres sqlite +uploadprogress"
|
19 |
19 |
|
|
20 |
# upstream supports php 8.1+, but dev-php/pecl-uploadprogress does not have 8.2
|
|
21 |
# limit php to 8.1 for now
|
20 |
22 |
RDEPEND="
|
21 |
|
dev-lang/php[gd,hash(+),mysql?,pdo,postgres?,simplexml,sqlite?,xml]
|
|
23 |
dev-lang/php:8.1[gd,hash(+),mysql?,pdo,postgres?,simplexml,sqlite?,xml]
|
22 |
24 |
virtual/httpd-php
|
23 |
|
uploadprogress? ( dev-php/pecl-uploadprogress )
|
|
25 |
uploadprogress? ( dev-php/pecl-uploadprogress[php_targets_php8-1] )
|
24 |
26 |
"
|
25 |
27 |
|
26 |
28 |
need_httpd_cgi
|
... | ... | |
31 |
33 |
webapp_src_preinst
|
32 |
34 |
|
33 |
35 |
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 "
|
|
36 |
core/INSTALL.mysql.txt core/INSTALL.pgsql.txt core/INSTALL.sqlite.txt core/UPDATE.txt \
|
|
37 |
core/USAGE.txt "
|
35 |
38 |
|
36 |
39 |
dodoc ${docs}
|
37 |
40 |
rm ${docs} core/COPYRIGHT.txt core/LICENSE.txt || die
|
... | ... | |
60 |
63 |
ewarn "If this is a new install, unless you want anyone with network access to your server to be"
|
61 |
64 |
ewarn "able to run the setup, you'll have to configure your web server to limit access to it."
|
62 |
65 |
echo
|
63 |
|
ewarn "If you're doing a new drupal-9 install, you'll have to copy /sites/default/default.services.yml"
|
|
66 |
ewarn "If you're doing a new drupal-10 install, you'll have to copy /sites/default/default.services.yml"
|
64 |
67 |
ewarn "to /sites/default/services.yml and grant it write permissions to your web server."
|
65 |
68 |
ewarn "Just follow the instructions of the drupal setup and be sure to resolve any permissions issue"
|
66 |
69 |
ewarn "reported by the setup."
|