aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/owncloud/APKBUILD16
-rw-r--r--main/owncloud/owncloud-4.5.2-pgsql-fix.patch11
2 files changed, 22 insertions, 5 deletions
diff --git a/main/owncloud/APKBUILD b/main/owncloud/APKBUILD
index 42f9a795c3..df4adf892d 100644
--- a/main/owncloud/APKBUILD
+++ b/main/owncloud/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=owncloud
pkgver=4.5.2
-pkgrel=4
+pkgrel=6
pkgdesc="Your own WebDAV-based cloud service"
url="http://owncloud.org"
arch="noarch"
@@ -15,14 +15,16 @@ subpackages="$pkgname-pgsql $pkgname-sqlite $pkgname-mysql
$pkgname-texteditor $pkgname-videoviewer"
replaces="$pkgname-plugins"
source="http://download.owncloud.org/releases/$pkgname-$pkgver.tar.bz2
- owncloud.config.php"
+ owncloud.config.php
+ owncloud-4.5.2-pgsql-fix.patch
+ "
_builddir="$srcdir"/$pkgname
prepare() {
cd "$_builddir"
- # apply patches here
+ patch -p1 < ../../owncloud-4.5.2-pgsql-fix.patch
}
build() {
@@ -55,7 +57,10 @@ sqlite() {
mysql() {
pkgdesc="ownCloud MySQL support"
- depends="owncloud php-mysql php-pdo_mysql mysql"
+ depends="owncloud php-mysql php-pdo_mysql php-pear-mdb2-driver-pgsql mysql"
+
+
+
mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
}
@@ -87,4 +92,5 @@ videoviewer() {
md5sums="a23cd7567a35d7c0d3b5e50566ca3853 owncloud-4.5.2.tar.bz2
-b08945b74f3b219677bdfd67f4298304 owncloud.config.php"
+b08945b74f3b219677bdfd67f4298304 owncloud.config.php
+b1f7214fb341634cac8bc8693993e14c owncloud-4.5.2-pgsql-fix.patch"
diff --git a/main/owncloud/owncloud-4.5.2-pgsql-fix.patch b/main/owncloud/owncloud-4.5.2-pgsql-fix.patch
new file mode 100644
index 0000000000..2af96ef5e4
--- /dev/null
+++ b/main/owncloud/owncloud-4.5.2-pgsql-fix.patch
@@ -0,0 +1,11 @@
+--- a/lib/connector/sabre/node.php
++++ b/lib/connector/sabre/node.php
+@@ -278,7 +278,7 @@
+
+ //remove etag for all Shared folders
+ $query = OC_DB::prepare( 'DELETE FROM `*PREFIX*properties`'
+- .' WHERE `propertypath` = "/Shared"'
++ .' WHERE `propertypath` = \'/Shared\''
+ );
+ $query->execute(array());
+