diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-06-19 15:06:57 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-06-19 15:06:57 +0200 |
commit | fa22c488122b0e920d90bd4ca0cf08a612d8b506 (patch) | |
tree | 1c3bd036a4cbb1da436856ae0fa0634f030df904 /testing | |
parent | 76d136fc10950e768ae70e108400813b2b190860 (diff) | |
download | aports-fa22c488122b0e920d90bd4ca0cf08a612d8b506.tar.bz2 aports-fa22c488122b0e920d90bd4ca0cf08a612d8b506.tar.xz |
testing/drupal7: move to main
Diffstat (limited to 'testing')
-rw-r--r-- | testing/drupal7/APKBUILD | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/testing/drupal7/APKBUILD b/testing/drupal7/APKBUILD deleted file mode 100644 index 81ce3a38c6..0000000000 --- a/testing/drupal7/APKBUILD +++ /dev/null @@ -1,72 +0,0 @@ -# Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: -pkgname=drupal7 -pkgver=7.38 -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" -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="c18298c1a5aed32ddbdac605fdef7fce drupal-7.38.tar.gz" -sha256sums="dccf3f12135183e94baaf960ce0993ad99c47afefe830b193cd30a17a317853e drupal-7.38.tar.gz" -sha512sums="b36399283aa370dc325e0d2cf3f2ed7615f6996ee43c79e3cba2c8ecc62a01b59211f24b56dda8f420cac2caa1bb9212f65158abc11c27d5c0b0a345f386cbeb drupal-7.38.tar.gz" |