[arch-commits] Commit in nextcloud/repos (4 files)

Pierre Schmitz pierre at archlinux.org
Sat Jan 23 10:10:05 UTC 2021


    Date: Saturday, January 23, 2021 @ 10:10:05
  Author: pierre
Revision: 825938

archrelease: copy trunk to community-testing-any

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

---------------------+
 PKGBUILD            |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++
 apache.example.conf |   17 ++++++++++++++
 nextcloud.hook      |   13 +++++++++++
 3 files changed, 87 insertions(+)

Copied: nextcloud/repos/community-testing-any/PKGBUILD (from rev 825937, nextcloud/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-01-23 10:10:05 UTC (rev 825938)
@@ -0,0 +1,57 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=nextcloud
+pkgver=20.0.5
+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=('php7-apache: to use the Apache web server'
+            'php7-sqlite: to use the SQLite database backend'
+            'php7-pgsql: to use the PostgreSQL database backend'
+            'php7-ldap: LDAP authentication'
+            'php7-intl'
+            'php7-apcu'
+            'mariadb: to use the MySQL database backend'
+            'smbclient: to mount SAMBA shares'
+            'ffmpeg: file preview'
+            'libreoffice: file preview')
+options=('!strip')
+backup=('etc/webapps/nextcloud/apache.example.conf'
+        'etc/webapps/nextcloud/config/config.php')
+validpgpkeys=('28806A878AE423A28372792ED75899B9A724937A')
+source=("https://download.nextcloud.com/server/releases/nextcloud-${pkgver}.tar.bz2"{,.asc}
+        'apache.example.conf'
+        'nextcloud.hook')
+sha256sums=('5c70dd33024012a1651fd099133d052d129a4dadc6935f44bb9c3e2b360befe3'
+            'SKIP'
+            '30a8ad62b0dc9523ca7f0387b1f0483d196c1e011ec7e3a5b98e7d33c721d4bf'
+            'b8794c6b357c762f6d4e6f099d8073bd465d6cd87d6d07341568d9509720e6e8')
+
+package() {
+    depends=('php7>=7.4.0' 'php7<7.5.0' 'php7-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 33:33 "$pkgdir"/etc/webapps/${pkgname}
+    ln -s /etc/webapps/${pkgname}/config "$pkgdir"/usr/share/webapps/${pkgname}/config
+    chown -R root:33 "$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 825937, nextcloud/trunk/apache.example.conf)
===================================================================
--- community-testing-any/apache.example.conf	                        (rev 0)
+++ community-testing-any/apache.example.conf	2021-01-23 10:10:05 UTC (rev 825938)
@@ -0,0 +1,17 @@
+<IfModule mod_alias.c>
+    Alias /nextcloud /usr/share/webapps/nextcloud/
+</IfModule>
+
+<Directory /usr/share/webapps/nextcloud/>
+    Options FollowSymlinks
+    AllowOverride all
+    Require all granted
+</Directory>
+
+<VirtualHost *:80>
+    ServerAdmin foo at 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 825937, nextcloud/trunk/nextcloud.hook)
===================================================================
--- community-testing-any/nextcloud.hook	                        (rev 0)
+++ community-testing-any/nextcloud.hook	2021-01-23 10:10:05 UTC (rev 825938)
@@ -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/php7 /usr/share/webapps/nextcloud/occ upgrade



More information about the arch-commits mailing list