[arch-commits] Commit in drupal/repos (3 files)
Pierre Schmitz
pierre at archlinux.org
Sat Jan 23 08:59:53 UTC 2021
Date: Saturday, January 23, 2021 @ 08:59:53
Author: pierre
Revision: 825923
archrelease: copy trunk to community-testing-any
Added:
drupal/repos/community-testing-any/
drupal/repos/community-testing-any/PKGBUILD
(from rev 825922, drupal/trunk/PKGBUILD)
drupal/repos/community-testing-any/drupal.install
(from rev 825922, drupal/trunk/drupal.install)
----------------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
drupal.install | 7 +++++++
2 files changed, 54 insertions(+)
Copied: drupal/repos/community-testing-any/PKGBUILD (from rev 825922, drupal/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-01-23 08:59:53 UTC (rev 825923)
@@ -0,0 +1,47 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Corrado Primier <cp663137 at stud.polimi.it>
+
+pkgname=drupal
+pkgver=9.0.6
+pkgrel=2
+pkgdesc="A PHP-based content management platform"
+arch=('any')
+url="https://www.drupal.org/"
+license=('GPL')
+depends=()
+install='drupal.install'
+backup=('etc/webapps/drupal/.htaccess')
+options=(!strip)
+source=(https://ftp.drupal.org/files/projects/$pkgname-$pkgver.tar.gz)
+sha256sums=('cd20780a1f86e69150cb99e9c95170fe92f75371a8a440437a2e0dd9968ef26d')
+
+package() {
+ depends=('php7' 'php7-gd')
+
+ _instdir="$pkgdir"/usr/share/webapps/drupal
+ mkdir -p ${_instdir}
+ cd ${_instdir}
+ cp -r "$srcdir"/$pkgname-$pkgver/{*,.htaccess} ${_instdir}
+
+ # move .htaccess
+ mkdir -p "$pkgdir"/etc/webapps/drupal
+ sed -i '1,1iRequire all denied' ${_instdir}/.htaccess
+ mv ${_instdir}/.htaccess "$pkgdir"/etc/webapps/drupal/.htaccess
+ ln -s /etc/webapps/drupal/.htaccess ${_instdir}/.htaccess
+
+ # move sites/
+ mkdir -p "$pkgdir"/var/lib/drupal/
+ mv ${_instdir}/sites "$pkgdir"/var/lib/drupal/sites
+ ln -s /var/lib/drupal/sites ${_instdir}/sites
+
+ # apache config example
+ cat >"$pkgdir"/etc/webapps/drupal/apache.example.conf <<EOF
+ Alias /drupal "/usr/share/webapps/drupal"
+ <Directory "/usr/share/webapps/drupal">
+ AllowOverride All
+ Options FollowSymlinks
+ Require all granted
+ php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/:/var/lib/drupal"
+ </Directory>
+EOF
+}
Copied: drupal/repos/community-testing-any/drupal.install (from rev 825922, drupal/trunk/drupal.install)
===================================================================
--- community-testing-any/drupal.install (rev 0)
+++ community-testing-any/drupal.install 2021-01-23 08:59:53 UTC (rev 825923)
@@ -0,0 +1,7 @@
+post_install() {
+ chown -R http:http var/lib/drupal
+}
+
+post_upgrade() {
+ chown -R http:http var/lib/drupal
+}
More information about the arch-commits
mailing list