diff options
Diffstat (limited to 'main/owncloud/APKBUILD')
-rw-r--r-- | main/owncloud/APKBUILD | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/main/owncloud/APKBUILD b/main/owncloud/APKBUILD index c60f283ed6..81abe2453f 100644 --- a/main/owncloud/APKBUILD +++ b/main/owncloud/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=owncloud pkgver=9.1.1 -pkgrel=0 +pkgrel=1 _contactsver="0.0.0.183" _calendarver="1.3.3" _tasksver="0.9.3" @@ -18,9 +18,9 @@ license="AGPL" depends="$_php ${_php}-ctype ${_php}-curl ${_php}-dom ${_php}-gd ${_php}-iconv ${_php}-json ${_php}-xml ${_php}-xmlreader ${_php}-zlib ${_php}-zip" makedepends="" -subpackages="$pkgname-doc $pkgname-pgsql $pkgname-sqlite $pkgname-mysql - $pkgname-encryption $pkgname-calendar $pkgname-contacts $pkgname-documents - $pkgname-external $pkgname-gallery $pkgname-music +subpackages="$pkgname-initscript $pkgname-doc $pkgname-pgsql $pkgname-sqlite + $pkgname-mysql $pkgname-encryption $pkgname-calendar $pkgname-contacts + $pkgname-documents $pkgname-external $pkgname-gallery $pkgname-music $pkgname-ldap $pkgname-tasks $pkgname-texteditor $pkgname-pdfviewer $pkgname-videoplayer" replaces="$pkgname-plugins" @@ -32,8 +32,11 @@ source="https://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2 $pkgname-music-$_musicver.zip::https://github.com/owncloud/music/releases/download/v$_musicver/music.zip $pkgname-pdfviewer-$_pdfviewerver.tar.gz::https://github.com/owncloud/files_pdfviewer/archive/v$_pdfviewerver.tar.gz $pkgname-tasks-$_tasksver.tar.gz::https://github.com/owncloud/tasks/archive/v$_tasksver.tar.gz + $pkgname.confd + fpm-pool.conf owncloud.config.php " +pkgusers="owncloud" pkggroups="www-data" builddir="$srcdir/$pkgname" @@ -69,6 +72,32 @@ package() { done } +initscript() { + pkgdesc="Init script that runs ownCloud with php-fpm" + depends="$pkgname $_php-fpm" + install="$subpkgname.pre-install $subpkgname.post-install" + + local confdir="$subpkgdir/etc/$_php/php-fpm.d" + local fpm_name="php-fpm${_php:3}" + + if [ "$_php" = "php5" ]; then + confdir="${confdir/php-/}" + fpm_name="php-fpm" + fi + + install -m 755 -o owncloud -d "$subpkgdir"/var/log/$pkgname || return 1 + install -m 700 -o owncloud -d "$subpkgdir"/var/tmp/$pkgname || return 1 + + install -m 644 -D "$srcdir"/fpm-pool.conf \ + "$confdir"/$pkgname.conf || return 1 + + install -m 644 -D "$srcdir"/$pkgname.confd \ + "$subpkgdir"/etc/conf.d/$pkgname || return 1 + + mkdir -p "$subpkgdir"/etc/init.d + ln -s $fpm_name "$subpkgdir"/etc/init.d/$pkgname +} + doc() { pkgdesc="$pkgdesc (documentation)" depends="$pkgname" @@ -218,6 +247,8 @@ a2623501e3e524b973759a9628a4749d owncloud-contacts-0.0.0.183.tar.gz 8452cdd43587469e680597a2c10c830e owncloud-music-0.3.11.zip bd700fdc1b233d4bd9b1fae8afbfac04 owncloud-pdfviewer-9.1.1.tar.gz 84e7e522faa5f4a6bd3c75a29e259bcb owncloud-tasks-0.9.3.tar.gz +ea483e710da2fa9995543d9b5b8ee11e owncloud.confd +779c544fd1900557f4e69504aa28eeed fpm-pool.conf e1081190b2916a7f61fe403a03d8fa06 owncloud.config.php" sha256sums="a6bf3531ebb7e09a11aaae641bc3af933f339261424782841c640bf9df1ba7b9 owncloud-9.1.1.tar.bz2 d6ea14796f27f4cfb6db63b8e3612a71d3e3e6e2d8edffce85df45fcb71c7106 owncloud-contacts-0.0.0.183.tar.gz @@ -227,6 +258,8 @@ e3cd0de34e7de1d9f08d5c7dce5e9f45826cc9e59292b847fa900ca3cdf6b3fc owncloud-calen e480e639e48419977f06822aa92f1245c21a43d9aafc156edb6fd097873a73ca owncloud-music-0.3.11.zip cce263ead882c8520388bc69973ee090c711475473b8990fe64c24abbe475075 owncloud-pdfviewer-9.1.1.tar.gz 0a5ef52ba915e7ec8f124ab7bd2c01f22db27f77343ddfa8d799927711133c55 owncloud-tasks-0.9.3.tar.gz +96d61ee75e8c948f78d31bdb770636819b8d678892a4003168c140fab69861cd owncloud.confd +41dd626e34ea0b0ea3eac13b43a655586097fe746d5a713c0c765dbc2b8c2fa0 fpm-pool.conf d00bdbf610d6994cdb61269620dc0fdb892a43a10895c00060d72731f7acd854 owncloud.config.php" sha512sums="dc83b411e54a233960dd16846b0b711c4f713a24c4b07bcc5441748270fee2e3eeaf3a49442e0caa618d10dae5be2d235ab7366240589a1d6d85e655b355a84e owncloud-9.1.1.tar.bz2 7d0b3808a8734cd6895847ea1986345df71cd7e0633dcf2b8b9989bc9d38c3182bf6d93d75c32378270d124e885d7d730fd1ead5198bd9276de8425a5ff725d3 owncloud-contacts-0.0.0.183.tar.gz @@ -236,4 +269,6 @@ e53cbee137a5785b3709ce259d51e8d33b016b79939e7831f1690ef17e0be8925f9ca71f90d5d882 fde1758a512a960985cbbfde9294f77458fad2cb4801daceedac76a58dbb2862f2586cb17376915cdcb47a768c75be46f863834a96f1148eae98285217491d59 owncloud-music-0.3.11.zip 88d926b79bebd2034324fb2f41cff8672857f686ac5dea052b9f712d3ead4d2c5cb907794db74adb542b3a28cf56f121d61f874c9eccaf352bb271774a070fa7 owncloud-pdfviewer-9.1.1.tar.gz 05903caadaab8c7982cb91b1442d617c777a9d97fcd5406d1b404006fa91ef73251852a53a03cb7fcbed097c1120fc920983c1a24a0e8f1f2e95b230153fd26a owncloud-tasks-0.9.3.tar.gz +7d1fa12f08f74b88d1ba7858a8295f6e5b200f16ed7366af48cc891b8c0074da85df008ed6f920df8b61bdfd5a27ac2a9623309b6334f82051a04067e746023e owncloud.confd +e5afd329faf06acec747cb2af8dea409b6991dcc7aa15e894444899ccaf17502fdfab437cfb91170d1e1aee39385b72f277922dccdd8c6e08cc928b146ccaeda fpm-pool.conf c7aa08cf9b8fb8f61454af3ccc5b743e33b4cc294e6c42ed2eb16894f0a411b22bdc4d8f691964860a7c88ea7255424c1e369063ae37041850a9624b4139d478 owncloud.config.php" |