aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-06-16 11:41:56 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-06-16 11:44:28 +0000
commit366ae7a93a91dbf4c9462f67d137ce27a2ab9705 (patch)
tree7f71994d0f0915d0c76aa32f22f2d18c03ce6772
parent6abfb1e5846bd0f5f6aab5a897c616d04debd638 (diff)
downloadaports-366ae7a93a91dbf4c9462f67d137ce27a2ab9705.tar.bz2
aports-366ae7a93a91dbf4c9462f67d137ce27a2ab9705.tar.xz
testing/nextcloud: move apps into /var
Instead of shipping subpackages for apps not included by default, install apps in /var/lib/nextcloud/apps and use the official App Store to install them
-rw-r--r--testing/nextcloud/APKBUILD37
1 files changed, 14 insertions, 23 deletions
diff --git a/testing/nextcloud/APKBUILD b/testing/nextcloud/APKBUILD
index ade5471af2..54ce896338 100644
--- a/testing/nextcloud/APKBUILD
+++ b/testing/nextcloud/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=nextcloud
pkgver="9.0.50"
-pkgrel=1
+pkgrel=2
pkgdesc="A safe home for all your data"
url="http://nextcloud.com"
arch="noarch"
@@ -15,7 +15,6 @@ install=
subpackages="$pkgname-doc $pkgname-pgsql $pkgname-sqlite $pkgname-mysql $pkgname-encryption
$pkgname-external $pkgname-gallery $pkgname-ldap
$pkgname-texteditor $pkgname-pdfviewer $pkgname-videoplayer"
-replaces="$pkgname-plugins"
#missing subpkg="$pkgname-calendar $pkgname-contacts $pkgname-documents $pkgname-mozilla_sync
# $pkgname-music $pkgname-tasks"
@@ -29,11 +28,11 @@ pkggroups="www-data"
#_builddir="$srcdir"/core-$pkgver
_builddir="$srcdir"/$pkgname
-_ncbasedir="/var/lib/nextcloud"
+_ncbasedir="/var/lib/$pkgname"
_ncdatadir="$_ncbasedir/data"
-_ncwwwdir="/usr/share/webapps/nextcloud"
-_ncappsdir="$_ncwwwdir/apps"
-_ncconfdir="/etc/nextcloud"
+_ncwwwdir="/usr/share/webapps/$pkgname"
+_ncappsdir="$_ncbasedir/apps"
+_ncconfdir="/etc/$pkgname"
prepare() {
@@ -47,24 +46,24 @@ prepare() {
build() {
cd "$_builddir"
+ return 0
}
package() {
cd "$_builddir"
- mkdir -p "$pkgdir"${_ncconfdir}
- mkdir -p "$pkgdir"${_ncdatadir}
- mkdir -p "$pkgdir"${_ncwwwdir}
+ for dir in ${_ncconfdir} ${_ncdatadir} ${_ncwwwdir}; do
+ mkdir -p "$pkgdir"$dir || return 1
+ done
rm -rf config data
mv * "$pkgdir"${_ncwwwdir} || return 1
chmod +x "$pkgdir"${_ncwwwdir}/occ || return 1
ln -s $_ncconfdir "$pkgdir"${_ncwwwdir}/config || return 1
install -m664 .htaccess "$pkgdir"${_ncwwwdir}/.htaccess
- for dir in \
- "$pkgdir"${_ncconfdir} \
- "$pkgdir"${_ncdatadir} \
- "$pkgdir"${_ncappsdir}; do
- chown -R :www-data $dir || return 1
- chmod 770 $dir || return 1
+ mv "$pkgdir"$_ncwwwdir/apps "$pkgdir"$_ncbasedir || return
+ ln -s $_ncappsdir "$pkgdir"$_ncwwwdir/apps || return 1
+ for dir in ${_ncconfdir} ${_ncdatadir} ${_ncappsdir}; do
+ chown -R :www-data "$pkgdir"$dir || return 1
+ chmod 770 "$pkgdir"$dir || return 1
done
}
@@ -98,14 +97,6 @@ mysql() {
mkdir -p "$subpkgdir"${_ncwwwdir}
}
-plugins() {
- arch="noarch"
- pkgdesc="Nextcloud 3rdparty plugins"
- depends="nextcloud"
- mkdir -p "$subpkgdir"${_ncwwwdir} || return 1
- mv "$pkgdir"${_ncwwwdir}/3rdparty "$subpkgdir"${_ncwwwdir}
-}
-
_mv_app() {
mkdir -p "$subpkgdir"${_ncappsdir} || return 1
if [ "$1" = "pkg" ]; then