mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 19:31:10 +02:00
62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
_php=php5
|
|
pkgname=drupal7
|
|
pkgver=7.59
|
|
pkgrel=0
|
|
pkgdesc="An open source content management platform"
|
|
url="https://www.drupal.org/"
|
|
arch="noarch"
|
|
license="GPL"
|
|
depends="${_php}-fpm ${_php}-xml ${_php}-json ${_php}-gd ${_php}-ftp ${_php}-posix ${_php}-curl ${_php}-zlib
|
|
${_php}-dom ${_php}-ctype ${_php}-sockets"
|
|
makedepends="$depends_dev"
|
|
subpackages="$pkgname-doc"
|
|
pkggroups="www-data"
|
|
source="http://ftp.drupal.org/files/projects/drupal-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/drupal-$pkgver"
|
|
|
|
# secfixes:
|
|
# 7.59-r0:
|
|
# - CVE-2018-7602
|
|
# 7.58-r0:
|
|
# - CVE-2018-7600
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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="68f02b39d1a4658adc0f0046c22cc1059b68f952f9cd753f5a3e379cf93705be308b4727519e90d77a42437442daebaa78d76745954be4d40e1a5105c319069c drupal-7.59.tar.gz"
|