Package Details: nextcloud-10 10.0.6-1

Git Clone URL: https://aur.archlinux.org/nextcloud-10.git (read-only, click to copy)
Package Base: nextcloud-10
Description: A safe home for all your data. Secure, under your control and developed in an open, transparent and trustworthy way (Version 10.x for migrating from ownCloud 9.x)
Upstream URL: https://nextcloud.com
Licenses: AGPL
Conflicts: nextcloud
Submitter: Muflone
Maintainer: Muflone
Last Packager: Muflone
Votes: 1
Popularity: 0.000000
First Submitted: 2016-12-26 20:41
Last Updated: 2020-05-16 22:56

Dependencies (15)

Required by (0)

Sources (4)

Latest Comments

Muflone commented on 2020-05-16 22:50

@TheGoliath

The hook file is not provided by the official nextcloud package since at least 2 years. https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/nextcloud&id=fa5bebd280b85241cd8f9101d308a6ea34bb7d57

TheGoliath commented on 2020-05-16 18:10

My suggestion for the updated package

apache.example.conf

<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@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>

nextcloud.hook

# 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

PKGBUILD

# Maintainer: Muflone http://www.muflone.com/contacts/english/

Contributor: Grey Christoforo <first name [at] last name [dot] net>
Contributor: Felix Golatofski contact@xdfr.de

pkgname=nextcloud-10 pkgver=10.0.6 pkgrel=1 pkgdesc="A cloud server to store your files centrally on a hardware controlled by you (Version 10.x for migrating from ownCloud 9.x)" arch=('any') url="https://nextcloud.com" license=('AGPL') 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' 'mariadb: to use the MySQL database backend' 'smbclient: to mount SAMBA shares' 'php-mcrypt' 'ffmpeg: file preview' 'libreoffice: file preview') conflicts=('nextcloud') 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" "set-nc-perms.sh") sha256sums=('1b9acad0fa3317047902fd647c425a1d567e7d93ffa9c40700d072a45cf396f1' 'SKIP' '30a8ad62b0dc9523ca7f0387b1f0483d196c1e011ec7e3a5b98e7d33c721d4bf' '02899e1d49b3ba4ddd7d87effd4ae59f49f248f54bf75236f21513904f6ba1c8' '6622fc3beba36d055b10b6a661bfe9ca44373277edfa4ce9d5ac8258893efd02')

package() { depends=('php<7.4.0' 'php-gd')

# install project
install -d "$pkgdir"/usr/share/webapps/
cp -R "$srcdir"/${pkgname} "$pkgdir"/usr/share/webapps/.

# set the proper permissions
"${srcdir}/set-nc-perms.sh" runtime "${pkgdir}/usr/share/webapps/nextcloud"

install -D -m 755 "${srcdir}/set-nc-perms.sh" "${pkgdir}/usr/bin/set-nc-perms"
# 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

}

TheGoliath commented on 2020-05-16 17:48

So, I'd like to publicly apologize for filing an orphan request without contacting the maintainer of the package in the first place and commenting down below that I'd like to help maintaining the package.

Meanwhile, @Mulflone I'd like to help out maintaining and updating the package.

Sorry for causing any inconvenience in the meantime

Cheers

Muflone commented on 2017-01-29 12:01

@mentatf
Have you succeeded in directly migrating from owncloud 9 to nextcloud 11?
I tried some days ago and I wasn't able to do that.
The migration guide also states that you first need to upgrade to nextcloud 10: https://nextcloud.com/migration/

mentatf commented on 2017-01-29 11:45

You can now directly upgrade from owncloud 9.1.2 (current version on arch repos) to nextcloud 11 so this package isn't needed anymore.

mentatf commented on 2017-01-28 23:12

> FAILED (unknown public key D75899B9A724937A)
edit:
need to run
$ gpg --keyserver hkp://pool.sks-keyservers.net --recv-key D75899B9A724937A
beforehand