blob: 64f9a39c9c5ed0675e5ec01bf9225920339ef800 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=drupal7
pkgver=7.77
pkgrel=0
pkgdesc="An open source content management platform"
url="https://www.drupal.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="php7-fpm
php7-bcmath
php7-ctype
php7-curl
php7-dom
php7-gd
php7-gmp
php7-iconv
php7-json
php7-mbstring
php7-opcache
php7-openssl
php7-pcntl
php7-pdo_mysql
php7-pdo_sqlite
php7-session
php7-simplexml
php7-tokenizer
php7-xml
"
makedepends="$depends_dev"
subpackages="$pkgname-doc"
pkggroups="www-data"
source="https://ftp.drupal.org/files/projects/drupal-$pkgver.tar.gz"
builddir="$srcdir/drupal-$pkgver"
options="!check" # This package not have testsuite
# secfixes:
# 7.75-r0:
# - CVE-2020-28948
# - CVE-2020-28949
# 7.74-r0:
# - CVE-2020-13671
# 7.73-r0:
# - CVE-2020-13666
# 7.72-r0:
# - CVE-2020-13663
# 7.70-r0:
# - CVE-2020-11022
# - CVE-2020-11023
# - CVE-2020-13662
# 7.66-r0:
# - CVE-2018-11358
# 7.65-r0:
# - CVE-2019-6341
# 7.62-r0:
# - CVE-2018-1000888
# 7.59-r0:
# - CVE-2018-7602
# 7.58-r0:
# - CVE-2018-7600
package() {
mkdir -p "$pkgdir"/var/lib/$pkgname \
"$pkgdir"/usr/share/webapps/$pkgname/ \
"$pkgdir"/etc/$pkgname/default \
"$pkgdir"/usr/share/doc/"$pkgname"
# move drupals sites directory where all module/themes/libaries reside
mv sites "$pkgdir"/var/lib/$pkgname/
mkdir -p "$pkgdir"/var/lib/$pkgname/sites/default/files
# move drupals default config to sysconfig dir.
# multisite setups are advanced and needs user configuration
mv $pkgdir/var/lib/$pkgname/sites/default/default.settings.php \
"$pkgdir"/etc/$pkgname/default/
ln -s /etc/"$pkgname"/default/settings.php \
$pkgdir/var/lib/$pkgname/sites/default/settings.php
mv $pkgdir/var/lib/$pkgname/sites/example.sites.php \
"$pkgdir"/etc/$pkgname/
ln -sf /etc/"$pkgname"/sites.php \
$pkgdir/var/lib/$pkgname/sites/sites.php
# move uneeded txt files to doc package
for file in *.txt; do
[ "$file" != "robots.txt" ] && mv $file \
"$pkgdir"/usr/share/doc/"$pkgname"/
done
# make drupal a webapp
mv ./* "$pkgdir"/usr/share/webapps/$pkgname/
ln -sf /var/lib/$pkgname/sites \
"$pkgdir"/usr/share/webapps/$pkgname/sites
# make sure the webserver can access/write to needed files/directories
chgrp -R www-data "$pkgdir"/var/lib/$pkgname \
"$pkgdir"/etc/$pkgname
chmod g+w "$pkgdir"/var/lib/$pkgname/sites/all/* \
"$pkgdir"/var/lib/$pkgname/sites/default/files
}
sha512sums="cbb047ab60e583be7fc1dc0ffd2398fa912e2b2fbf5d0446997cdad33422ac4b3b4e544b92cedcaf5e7c992609eb33e9a187c36d01e333f90772c84d386b9997 drupal-7.77.tar.gz"
|