aboutsummaryrefslogtreecommitdiffstats
path: root/main/owncloud
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-09-04 12:32:07 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-09-04 12:32:23 +0000
commit96e6ccf9aca66743dc5fab2088be8e6c806c0b66 (patch)
tree33503ec5e6fc964a3142b32b760f9e169912cc07 /main/owncloud
parent2800637751daac567be00cb76eec50ed1d3912e5 (diff)
downloadaports-96e6ccf9aca66743dc5fab2088be8e6c806c0b66.tar.bz2
aports-96e6ccf9aca66743dc5fab2088be8e6c806c0b66.tar.xz
main/owncloud: move apps into /var
Diffstat (limited to 'main/owncloud')
-rw-r--r--main/owncloud/APKBUILD13
-rw-r--r--main/owncloud/owncloud.post-install2
2 files changed, 8 insertions, 7 deletions
diff --git a/main/owncloud/APKBUILD b/main/owncloud/APKBUILD
index 2ca8b5e21a..eb7bfbb83a 100644
--- a/main/owncloud/APKBUILD
+++ b/main/owncloud/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="owncloud"
pkgver="5.0.10"
-pkgrel=0
+pkgrel=1
pkgdesc="Your own WebDAV-based cloud service"
url="http://owncloud.org"
arch="noarch"
@@ -35,9 +35,10 @@ package() {
mkdir -p "$pkgdir"/var/lib/owncloud/data
mkdir -p "$pkgdir"/usr/share/webapps/owncloud
rm -rf config data
- mv * "$pkgdir"/usr/share/webapps/owncloud
+ mv * "$pkgdir"/usr/share/webapps/owncloud || exit
ln -s /etc/owncloud "$pkgdir"/usr/share/webapps/owncloud/config || exit 1
- #ln -s /var/lib/owncloud/data "$pkgdir"/usr/share/webapps/owncloud/data || exit 1
+ mv "$pkgdir"/usr/share/webapps/owncloud/apps "$pkgdir"/var/lib/owncloud || exit 1
+ ln -s /var/lib/owncloud/apps "$pkgdir"/usr/share/webapps/owncloud/apps || exit 1
install -m640 ../owncloud.config.php "$pkgdir"/etc/owncloud/config.php
}
@@ -68,9 +69,9 @@ plugins() {
}
_mv_app() {
- mkdir -p "$subpkgdir"/usr/share/webapps/owncloud/apps
- mv "$pkgdir"/usr/share/webapps/owncloud/apps/files_$1 \
- "$subpkgdir"/usr/share/webapps/owncloud/apps
+ mkdir -p "$subpkgdir"/var/lib/owncloud/apps
+ mv "$pkgdir"/var/lib/owncloud/apps/files_$1 \
+ "$subpkgdir"/var/lib/owncloud/apps
}
texteditor() {
diff --git a/main/owncloud/owncloud.post-install b/main/owncloud/owncloud.post-install
index cae2dc9dad..7662899bd8 100644
--- a/main/owncloud/owncloud.post-install
+++ b/main/owncloud/owncloud.post-install
@@ -4,5 +4,5 @@ echo "* Please give ownership to the web server user, the following directories:
echo "*"
echo "* /etc/owncloud"
echo "* /var/lib/owncloud/data"
-echo "* /usr/share/webapps/owncloud/apps"
+echo "* /var/lib/owncloud/apps"
echo "*"