diff options
Diffstat (limited to 'community/nextcloud/APKBUILD')
-rw-r--r-- | community/nextcloud/APKBUILD | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/community/nextcloud/APKBUILD b/community/nextcloud/APKBUILD index 73c138425a..a3352e3e82 100644 --- a/community/nextcloud/APKBUILD +++ b/community/nextcloud/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=nextcloud pkgver=12.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="A safe home for all your data" url="http://nextcloud.com" arch="noarch" @@ -14,7 +14,7 @@ depends="$_php $_php-ctype $_php-curl $_php-dom $_php-gd $_php-fileinfo " makedepends="$depends_dev" options="!check" -subpackages="$pkgname-doc $pkgname-activity $pkgname-encryption +subpackages="$pkgname-doc $pkgname-initscript $pkgname-activity $pkgname-encryption $pkgname-firstrunwizard $pkgname-gallery $pkgname-ldap $pkgname-logreader $pkgname-mysql $pkgname-notifications $pkgname-password_policy $pkgname-pdfviewer $pkgname-pgsql @@ -24,7 +24,10 @@ subpackages="$pkgname-doc $pkgname-activity $pkgname-encryption source="https://download.nextcloud.com/server/releases/$pkgname-$pkgver.zip nextcloud10-dont-chmod-config.patch nextcloud.logrotate + $pkgname.confd + fpm-pool.conf " +pkgusers="nextcloud" pkggroups="www-data" builddir="$srcdir"/$pkgname @@ -69,6 +72,23 @@ doc() { "$subpkgdir"/usr/share/doc/nextcloud/core } +initscript() { + pkgdesc="Init script that runs Nextcloud with php-fpm" + depends="$pkgname $_php-fpm $_php-opcache" + install="$subpkgname.pre-install $subpkgname.post-install" + + local confdir="$subpkgdir/etc/$_php/php-fpm.d" + local fpm_name="php-fpm${_php#php}" + + install -m 644 -D "$srcdir"/fpm-pool.conf "$confdir"/$pkgname.conf + install -m 644 -D "$srcdir"/$pkgname.confd "$subpkgdir"/etc/conf.d/$pkgname + + mkdir -p "$subpkgdir"/etc/init.d + ln -s $fpm_name "$subpkgdir"/etc/init.d/$pkgname + + install -m 700 -o nextcloud -d "$subpkgdir"/var/tmp/$pkgname +} + pgsql() { pkgdesc="Nextcloud PostgreSQL support" depends="$pkgname $_php-pgsql $_php-pdo_pgsql" @@ -168,4 +188,6 @@ videoplayer() { sha512sums="0e409eedbcc0f4e1652085c3e384db373858b0cc116c70361a4d066a08afbd6e75792332f95d08773cbed78c1520532886268249d514f2da70acb3ba120420d5 nextcloud-12.0.0.zip a12a73a38bc009d3307ce97bb32fc62ac93e125a77a3d36b31c9d2212953fa17bd5c31f819e0759a0645b1c285817b067143b0b9c3673ce4ab3043fae426a67c nextcloud10-dont-chmod-config.patch -80b94b04507502fa80f3473e4ce8041c2e1f832da8a44408f2f1beda4319dddfc55c9e79d80e8e5a5bfecb770820109870f888d2a3eed9ab5981abcd89f0a812 nextcloud.logrotate" +80b94b04507502fa80f3473e4ce8041c2e1f832da8a44408f2f1beda4319dddfc55c9e79d80e8e5a5bfecb770820109870f888d2a3eed9ab5981abcd89f0a812 nextcloud.logrotate +35cf156839215113b5d8fb8842b4c1e19a50be3c16be7048879fdd808674e4875dbacf3e2dd884fd182258595b7a137d7d3c2dc602a7ff5613c8b65fae0abe67 nextcloud.confd +b5cdccdffb35e868ec1acb15ec2849cc1c2a00f6064ad21eb591b9694e84df4576f03248f5e814000a48c38096a2a1588dfc79be66691415f2f4ef3b4105d032 fpm-pool.conf" |