Date: Tuesday, January 9, 2018 @ 18:12:51
  Author: spupykin
Revision: 280741

archrelease: copy trunk to community-testing-any

Added:
  nextcloud/repos/community-testing-any/
  nextcloud/repos/community-testing-any/PKGBUILD
    (from rev 280740, nextcloud/trunk/PKGBUILD)
  nextcloud/repos/community-testing-any/apache.example.conf
    (from rev 280740, nextcloud/trunk/apache.example.conf)
  nextcloud/repos/community-testing-any/nextcloud.hook
    (from rev 280740, nextcloud/trunk/nextcloud.hook)

---------------------+
 PKGBUILD            |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++
 apache.example.conf |   18 +++++++++++++++
 nextcloud.hook      |   13 +++++++++++
 3 files changed, 90 insertions(+)

Copied: nextcloud/repos/community-testing-any/PKGBUILD (from rev 280740, 
nextcloud/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-01-09 18:12:51 UTC (rev 280741)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+
+pkgname=nextcloud
+pkgver=12.0.4
+pkgrel=2
+pkgdesc="A cloud server to store your files centrally on a hardware controlled 
by you"
+arch=('any')
+url="https://nextcloud.com";
+license=('AGPL')
+depends=()
+optdepends=('php71-apache: to use the Apache web server'
+            'php71-sqlite: to use the SQLite database backend'
+            'php71-pgsql: to use the PostgreSQL database backend'
+            'php71-ldap: LDAP authentication'
+            'php71-intl'
+            'php71-apcu'
+            'php71-xcache'
+            'mariadb: to use the MySQL database backend'
+            'smbclient: to mount SAMBA shares'
+            'php71-mcrypt'
+            'ffmpeg: file preview'
+            'libreoffice: file preview')
+options=('!strip')
+backup=('etc/webapps/nextcloud/apache.example.conf')
+validpgpkeys=('28806A878AE423A28372792ED75899B9A724937A')
+source=("https://download.nextcloud.com/server/releases/nextcloud-${pkgver}.tar.bz2"{,.asc}
+        'apache.example.conf'
+        'nextcloud.hook')
+sha256sums=('654161a74ceaf9a60c7731d7d6702e6710a972633a97955d16f01abeb09d09b6'
+            'SKIP'
+            '55b892adb86a67c2fa12d79f0980c6aea75aed5c6f6f78f2c2b5e5575a012067'
+            'd084cd6423c03f98087884b3c7b81f9510d1bea6c518860b64787a7f976cf0d3')
+
+package() {
+    depends=('php71' 'php71-gd')
+
+    # install project
+    install -d "$pkgdir"/usr/share/webapps/
+    cp -R "$srcdir"/${pkgname} "$pkgdir"/usr/share/webapps/.
+
+    # install apache config file
+    install -d  "$pkgdir"/etc/webapps/${pkgname}
+    install -m 644 "$srcdir"/apache.example.conf  
"$pkgdir"/etc/webapps/${pkgname}
+
+    # move config to /etc
+    install -d  "$pkgdir"/etc/webapps/${pkgname}
+    mv "$pkgdir"/usr/share/webapps/${pkgname}/config 
"$pkgdir"/etc/webapps/${pkgname}/config
+    chown -R http:http "$pkgdir"/etc/webapps/${pkgname}
+    ln -s /etc/webapps/${pkgname}/config 
"$pkgdir"/usr/share/webapps/${pkgname}/config
+    chown -R root:http "$pkgdir"/usr/share/webapps/${pkgname}
+
+    find "$pkgdir"/usr/share/webapps/${pkgname} -type f -exec chmod 0644 {} \;
+    find "$pkgdir"/usr/share/webapps/${pkgname} -type d -exec chmod 0755 {} \;
+
+    chmod a+x "$pkgdir"/usr/share/webapps/${pkgname}/occ
+
+#    install -Dm0644 "$srcdir"/nextcloud.hook 
"$pkgdir"/usr/share/libalpm/hooks/nextcloud.hook
+}

Copied: nextcloud/repos/community-testing-any/apache.example.conf (from rev 
280740, nextcloud/trunk/apache.example.conf)
===================================================================
--- community-testing-any/apache.example.conf                           (rev 0)
+++ community-testing-any/apache.example.conf   2018-01-09 18:12:51 UTC (rev 
280741)
@@ -0,0 +1,18 @@
+<IfModule mod_alias.c>
+    Alias /nextcloud /usr/share/webapps/nextcloud/
+</IfModule>
+
+<Directory /usr/share/webapps/nextcloud/>
+    Options FollowSymlinks
+    AllowOverride all
+    Require all granted
+    php_admin_value open_basedir 
"/srv/http/:/dev/urandom:/tmp/:/usr/share/pear/:/usr/share/webapps/nextcloud/:/etc/webapps/nextcloud"
+</Directory>
+
+<VirtualHost *:80>
+    ServerAdmin f...@foofarm.com
+    DocumentRoot /usr/share/webapps/nextcloud
+    ServerName nextcloud.foo.com
+    ErrorLog /var/log/httpd/nextcloud.foo.info-error_log
+    CustomLog /var/log/httpd/nextcloud.foo.info-access_log common
+</VirtualHost>

Copied: nextcloud/repos/community-testing-any/nextcloud.hook (from rev 280740, 
nextcloud/trunk/nextcloud.hook)
===================================================================
--- community-testing-any/nextcloud.hook                                (rev 0)
+++ community-testing-any/nextcloud.hook        2018-01-09 18:12:51 UTC (rev 
280741)
@@ -0,0 +1,13 @@
+# Update Nextcloud when core or -apps are touched
+
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = nextcloud
+Target = nextcloud-app-*
+
+[Action]
+Description = Updating Nextcloud installation
+When = PostTransaction
+Exec = /usr/bin/runuser -u http -- /usr/bin/php 
/usr/share/webapps/nextcloud/occ upgrade

Reply via email to