aboutsummaryrefslogtreecommitdiffstats
path: root/main/owncloud
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-11-16 07:11:10 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-11-16 07:12:24 +0000
commite3d375fc4d056e7eaca1557db51072ae435c1dd0 (patch)
tree5f0000d1fbdfc9aade44f198c4c46539b034ac84 /main/owncloud
parent8255f4b746731d6d7aa45995a8fc35ec209b37d4 (diff)
downloadaports-e3d375fc4d056e7eaca1557db51072ae435c1dd0.tar.bz2
aports-e3d375fc4d056e7eaca1557db51072ae435c1dd0.tar.xz
main/owncloud: fix pgsql backend (upload error)
Diffstat (limited to 'main/owncloud')
-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());
+