[arch-commits] Commit in nextcloud/repos/community-any (5 files)
Sergej Pupykin
spupykin at archlinux.org
Wed Sep 27 14:08:07 UTC 2017
Date: Wednesday, September 27, 2017 @ 14:08:06
Author: spupykin
Revision: 260672
archrelease: copy trunk to community-any
Added:
nextcloud/repos/community-any/PKGBUILD
(from rev 260671, nextcloud/trunk/PKGBUILD)
nextcloud/repos/community-any/apache.example.conf
(from rev 260671, nextcloud/trunk/apache.example.conf)
nextcloud/repos/community-any/nextcloud.hook
(from rev 260671, nextcloud/trunk/nextcloud.hook)
Deleted:
nextcloud/repos/community-any/PKGBUILD
nextcloud/repos/community-any/apache.example.conf
---------------------+
PKGBUILD | 110 +++++++++++++++++++++++++-------------------------
apache.example.conf | 36 ++++++++--------
nextcloud.hook | 13 +++++
3 files changed, 88 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-09-27 14:07:50 UTC (rev 260671)
+++ PKGBUILD 2017-09-27 14:08:06 UTC (rev 260672)
@@ -1,53 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=nextcloud
-pkgver=12.0.2
-pkgrel=1
-pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
-arch=('any')
-url="https://nextcloud.com"
-license=('AGPL')
-depends=('php-gd')
-optdepends=('php-apache: to use the Apache web server'
- 'php-sqlite: to use the SQLite database backend'
- 'php-pgsql: to use the PostgreSQL database backend'
- 'php-ldap: LDAP authentication'
- 'php-intl'
- 'php-apcu'
- 'php-xcache'
- 'mariadb: to use the MySQL database backend'
- 'smbclient: to mount SAMBA shares'
- 'php-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')
-sha256sums=('eb34d6cb9f55ee84bf2ad847b4b08cdb925321848ffa2264a9b1566e7b21a17c'
- 'SKIP'
- '55b892adb86a67c2fa12d79f0980c6aea75aed5c6f6f78f2c2b5e5575a012067')
-
-package() {
- # 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
-}
Copied: nextcloud/repos/community-any/PKGBUILD (from rev 260671, nextcloud/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-09-27 14:08:06 UTC (rev 260672)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=nextcloud
+pkgver=12.0.3
+pkgrel=1
+pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
+arch=('any')
+url="https://nextcloud.com"
+license=('AGPL')
+depends=('php-gd')
+optdepends=('php-apache: to use the Apache web server'
+ 'php-sqlite: to use the SQLite database backend'
+ 'php-pgsql: to use the PostgreSQL database backend'
+ 'php-ldap: LDAP authentication'
+ 'php-intl'
+ 'php-apcu'
+ 'php-xcache'
+ 'mariadb: to use the MySQL database backend'
+ 'smbclient: to mount SAMBA shares'
+ 'php-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=('88bcaccba886d0e5a145b15fe216d652ab68a0a4c089a102f1fa1e78e6ddfb71'
+ 'SKIP'
+ '55b892adb86a67c2fa12d79f0980c6aea75aed5c6f6f78f2c2b5e5575a012067'
+ '722af10afaacc6c2e99a3bd19d4e4d52b5fdf8fd299d21007d79c7bd2b728430')
+
+package() {
+ # 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
+}
Deleted: apache.example.conf
===================================================================
--- apache.example.conf 2017-09-27 14:07:50 UTC (rev 260671)
+++ apache.example.conf 2017-09-27 14:08:06 UTC (rev 260672)
@@ -1,18 +0,0 @@
-<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 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-any/apache.example.conf (from rev 260671, nextcloud/trunk/apache.example.conf)
===================================================================
--- apache.example.conf (rev 0)
+++ apache.example.conf 2017-09-27 14:08:06 UTC (rev 260672)
@@ -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 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-any/nextcloud.hook (from rev 260671, nextcloud/trunk/nextcloud.hook)
===================================================================
--- nextcloud.hook (rev 0)
+++ nextcloud.hook 2017-09-27 14:08:06 UTC (rev 260672)
@@ -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 = 'sudo -u http /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade'
More information about the arch-commits
mailing list