diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-05 14:18:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-05 15:43:07 +0000 |
commit | eab60cebaa7281544d915cc90b1fd2b014a4c760 (patch) | |
tree | 1c9f56aae79932e641b03a47ff7edc76a27c28b4 /community/drupal7 | |
parent | 594ab4c864df2bb57afd3a8b9496f00f6a711b08 (diff) | |
download | aports-eab60cebaa7281544d915cc90b1fd2b014a4c760.tar.bz2 aports-eab60cebaa7281544d915cc90b1fd2b014a4c760.tar.xz |
community/drupal7: move from main
Diffstat (limited to 'community/drupal7')
-rw-r--r-- | community/drupal7/APKBUILD | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/community/drupal7/APKBUILD b/community/drupal7/APKBUILD new file mode 100644 index 0000000000..5f970e815e --- /dev/null +++ b/community/drupal7/APKBUILD @@ -0,0 +1,73 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +_php=php5 +pkgname=drupal7 +pkgver=7.43 +pkgrel=1 +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" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +pkggroups="www-data" +source="http://ftp.drupal.org/files/projects/drupal-$pkgver.tar.gz" + +_builddir="$srcdir/drupal-$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/var/lib/$pkgname \ + "$pkgdir"/usr/share/webapps/$pkgname/ \ + "$pkgdir"/etc/$pkgname/default \ + "$pkgdir"/usr/share/doc/"$pkgname" || return 1 + # move drupals sites directory where all module/themes/libaries reside + mv sites "$pkgdir"/var/lib/$pkgname/ || return 1 + mkdir -p "$pkgdir"/var/lib/$pkgname/sites/default/files || return 1 + # 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/ || return 1 + ln -s /etc/"$pkgname"/default/settings.php \ + $pkgdir/var/lib/$pkgname/sites/default/settings.php || return 1 + mv $pkgdir/var/lib/$pkgname/sites/example.sites.php \ + "$pkgdir"/etc/$pkgname/ || return 1 + ln -sf /etc/"$pkgname"/sites.php \ + $pkgdir/var/lib/$pkgname/sites/sites.php || return 1 + # 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/ || return 1 + ln -sf /var/lib/$pkgname/sites \ + "$pkgdir"/usr/share/webapps/$pkgname/sites || return 1 + # make sure the webserver can access/write to needed files/directories + chgrp -R www-data "$pkgdir"/var/lib/$pkgname \ + "$pkgdir"/etc/$pkgname || return 1 + chmod g+w "$pkgdir"/var/lib/$pkgname/sites/all/* \ + "$pkgdir"/var/lib/$pkgname/sites/default/files || return 1 +} + +md5sums="c6fb49bc88a6408a985afddac76b9f8b drupal-7.43.tar.gz" +sha256sums="468c1e5864ad6a86e760108f0cb0eac6bf004a198c49e77117b99af31e31b16a drupal-7.43.tar.gz" +sha512sums="442348a8331788543750263437a2055308f4e45d5fa740c2578893e432878696de07956f0d76545aad4b1baf7bc463a08a620e3e5e29bf1f01ca90e6e62255e6 drupal-7.43.tar.gz" |