blob: 41633503de00793428a0b81c70d36c098a9a4987 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="owncloud"
pkgver="8.2.2"
pkgrel=0
_contactsver="8.0.10"
_calendarver="0.8.1"
_tasksver="0.8.1"
_documentsver="$pkgver"
_pdfviewerver="$pkgver"
_texteditorver="$pkgver"
_mozillasyncver="1.4"
_musicver="0.3.8"
pkgdesc="Your own WebDAV-based cloud service"
url="http://owncloud.org"
arch="noarch"
license="AGPL"
depends="php php-ctype php-curl php-dom php-gd php-iconv php-json php-xml
php-zlib php-zip"
depends_dev=
makedepends="$depends_dev"
install=
subpackages="$pkgname-pgsql $pkgname-sqlite $pkgname-mysql $pkgname-encryption
$pkgname-calendar $pkgname-contacts $pkgname-documents $pkgname-external
$pkgname-mozilla_sync $pkgname-music $pkgname-ldap $pkgname-tasks
$pkgname-texteditor $pkgname-pdfviewer $pkgname-videoviewer"
replaces="$pkgname-plugins"
source="https://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2
$pkgname-contacts-$_contactsver.tar.gz::https://github.com/owncloud/contacts/archive/v$_contactsver.tar.gz
$pkgname-calendar-$_calendarver.tar.gz::https://github.com/owncloud/calendar/archive/v$_calendarver.tar.gz
$pkgname-documents-$_documentsver.tar.gz::https://github.com/owncloud/documents/archive/v$_documentsver.tar.gz
$pkgname-texteditor-$_texteditorver.tar.gz::https://github.com/owncloud/files_texteditor/archive/v$_texteditorver.tar.gz
$pkgname-mozilla_sync-$_mozillasyncver.tar.gz::https://github.com/owncloud/mozilla_sync/archive/v$_mozillasyncver.tar.gz
$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
owncloud.config.php
owncloud-6-always-return-true-isSetLocaleWorking.patch
"
pkggroups="www-data"
#_builddir="$srcdir"/core-$pkgver
_builddir="$srcdir"/$pkgname
_ocbasedir="/var/lib/owncloud"
_ocdatadir="$_ocbasedir/data"
_ocwwwdir="/usr/share/webapps/owncloud"
_ocappsdir="$_ocwwwdir/apps"
_occonfdir="/etc/owncloud"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg "Applying patch $i"; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"${_occonfdir}
mkdir -p "$pkgdir"${_ocdatadir}
mkdir -p "$pkgdir"${_ocwwwdir}
rm -rf config data
mv * "$pkgdir"${_ocwwwdir} || return 1
chmod +x "$pkgdir"${_ocwwwdir}/occ || return 1
ln -s $_occonfdir "$pkgdir"${_ocwwwdir}/config || return 1
install -m660 ../owncloud.config.php "$pkgdir"${_occonfdir}/config.php
install -m664 .htaccess "$pkgdir"${_ocwwwdir}/.htaccess
for dir in \
"$pkgdir"${_occonfdir} \
"$pkgdir"${_ocdatadir} \
"$pkgdir"${_ocappsdir}; do
chown -R :www-data $dir || return 1
chmod 770 $dir || return 1
done
}
pgsql() {
arch="noarch"
pkgdesc="ownCloud PostgreSQL support"
depends="owncloud php-pgsql php-pdo_pgsql php-pear-mdb2-driver-pgsql"
mkdir -p "$subpkgdir"${_ocwwwdir}
}
sqlite() {
arch="noarch"
pkgdesc="ownCloud SQLite support"
depends="owncloud php-sqlite3 php-pdo_sqlite"
mkdir -p "$subpkgdir"${_ocwwwdir}
}
mysql() {
arch="noarch"
pkgdesc="ownCloud MySQL support"
depends="owncloud php-mysql php-pdo_mysql php-pear-mdb2-driver-mysql"
mkdir -p "$subpkgdir"${_ocwwwdir}
}
plugins() {
arch="noarch"
pkgdesc="ownCloud 3rdparty plugins"
depends="owncloud"
mkdir -p "$subpkgdir"${_ocwwwdir} || return 1
mv "$pkgdir"${_ocwwwdir}/3rdparty "$subpkgdir"${_ocwwwdir}
}
_mv_app() {
mkdir -p "$subpkgdir"${_ocappsdir} || return 1
if [ "$1" = "pkg" ]; then
mv "$pkgdir"${_ocappsdir}/$2 "$subpkgdir"${_ocappsdir}
elif [ "$1" = "src" ]; then
local appname="${subpkgname#$pkgname-}"
mv "$srcdir"/$2 "$subpkgdir"${_ocappsdir}/$appname
fi
chown -R :www-data "$subpkgdir"${_ocappsdir} || return 1
chmod 770 "$subpkgdir"${_ocappsdir} || return 1
}
contacts() {
arch="noarch"
pkgdesc="ownCloud contacts"
depends="owncloud"
_mv_app src contacts-$_contactsver
}
calendar() {
arch="noarch"
pkgdesc="ownCloud calendar"
depends="owncloud"
_mv_app src calendar-$_calendarver
}
documents() {
arch="noarch"
pkgdesc="ownCloud integrated documents editor"
depends="owncloud"
_mv_app src documents-$_documentsver
}
encryption() {
arch="noarch"
pkgdesc="ownCloud integrated encryption support"
depends="owncloud php-openssl"
_mv_app pkg encryption
}
external() {
arch="noarch"
pkgdesc="ownCloud integrated external storage support"
depends="owncloud php-curl php-ftp"
_mv_app pkg files_external
}
ldap() {
arch="noarch"
pkgdesc="ownCloud integrated LDAP authentication"
depends="owncloud php-ldap"
_mv_app pkg user_ldap
}
mozilla_sync() {
arch="noarch"
pkgdesc="ownCloud Mozilla Sync app"
depends="owncloud"
_mv_app src mozilla_sync-$_mozillasyncver
}
music() {
arch="noarch"
pkgdesc="ownCloud music app"
depends="owncloud"
_mv_app src music
# Correct world-writable directories
find "${subpkgdir}${_ocappsdir}" -type d -exec chmod 775 {} \;
}
pdfviewer() {
arch="noarch"
pkgdesc="ownCloud integrated PDF viewer"
depends="owncloud"
_mv_app pkg files_pdfviewer
}
tasks() {
arch="noarch"
pkgdesc="ownCloud tasks"
depends="owncloud"
_mv_app src tasks-$_tasksver
}
texteditor() {
arch="noarch"
pkgdesc="ownCloud integrated text editor"
depends="owncloud"
_mv_app pkg files_texteditor
}
videoviewer() {
arch="noarch"
pkgdesc="ownCloud integrated video viewer"
depends="owncloud"
_mv_app pkg files_videoviewer
}
md5sums="f5732baa2c0a5a44db3cf76775fe0c4f owncloud-8.2.2.tar.bz2
4a1fa26510274473716b4a55395c3591 owncloud-contacts-8.0.10.tar.gz
8a59d4d58add424da2dd55d074a6cc72 owncloud-calendar-0.8.1.tar.gz
75d6e4de15bdb4ca784f39b468893f9e owncloud-documents-8.2.2.tar.gz
2d4dad4a89812c9dea8ea4c7b30bd555 owncloud-texteditor-8.2.2.tar.gz
e98fdb10ff4139b4259e2a183a88975a owncloud-mozilla_sync-1.4.tar.gz
077f29e03da80760b1399f93c5dc4892 owncloud-music-0.3.8.zip
547a4680c49c8d75981585f3692546a0 owncloud-pdfviewer-8.2.2.tar.gz
b12ac39aead677329675c27bb549374a owncloud-tasks-0.8.1.tar.gz
7d29c52fb9cea2537b56a534a8385f19 owncloud.config.php
f497dbf3a67d14fc9049ca680673c805 owncloud-6-always-return-true-isSetLocaleWorking.patch"
sha256sums="d5b935f904744b8b40b310f19679702387c852498d0dc7aaeda4555a3db9ad5b owncloud-8.2.2.tar.bz2
d5d6a0dab49ac52c7450f42ac98d914b30ce709229a659148b9fb8222d1cdc25 owncloud-contacts-8.0.10.tar.gz
ed52d61d29cb1169aac82a2306bf554b2007278ff17f2ab4af6bec1a8c312789 owncloud-calendar-0.8.1.tar.gz
b039fb54b7211539122e492046a268c53f62320d235ee0e7984062196e1ddf17 owncloud-documents-8.2.2.tar.gz
6a83fb8949b1d0b09e6ff2a24bf48080d06baf9c773d9d4cdd80df7f8880ad6d owncloud-texteditor-8.2.2.tar.gz
314621c290daee93429d881e78d8cae13faaca3205b23860f06450633c5c3b6a owncloud-mozilla_sync-1.4.tar.gz
ed19e88db720f9b011cc98b6cb5998e5feb8506a1adddd3b29abc54caa78ce1d owncloud-music-0.3.8.zip
371bf3032304cda526be0c350880bf9994ed02abb38a43b1036234202b376a70 owncloud-pdfviewer-8.2.2.tar.gz
1120f7c45c98b3bf790e0842808c1c24e5482bd7f7a5667be2216d0f4e1af2f4 owncloud-tasks-0.8.1.tar.gz
7ec1e79c6dc8c154d9b7d4c6477a659be55798091f3e9d6c07fd3fcc16332692 owncloud.config.php
3466ffbd22d4a9f04f4df862f3fb2f695fd1ca4bc6fb4b6a56258958064d5762 owncloud-6-always-return-true-isSetLocaleWorking.patch"
sha512sums="3830e8311931da3cbb596e927afe638dee6a5d9fd47d623faf4dabbde96fe39ced1bf7006c1b9e39ff52e72e2b849fe9d1012c3b1a86ca9f8c873d820b944b78 owncloud-8.2.2.tar.bz2
7d5a751f69e0ebd92bb472481e0402556728c2587df068665ce357c7e18f97e0f80fe30f27588d0617819efd5c2a86f0e8c3c8b578113d412c55652bd9d10186 owncloud-contacts-8.0.10.tar.gz
4dacd059a5df307f7e377ae8418ffe1d559aa6ceaf762d74ff3d2370fa921b5c82eb4be3457e87f6be869b8d0ea5c4f560a9fcc60c2c82d75369157d9384be6b owncloud-calendar-0.8.1.tar.gz
e43013a2b85f1c1641a432cb7a415af02909eb88ea71ddeae6f87cf20657c9ab60f26b4fdf69fa429750a64173f53d815d1cd7b55957822d655b1b7c751d83f3 owncloud-documents-8.2.2.tar.gz
9ee8532c3b651201e6e07c048707c61ca13550cb521a70d68b67339e3ecc4001203e26bff47f11b3f0142569c09bb9040677096e6f9d69023b65adc693f35617 owncloud-texteditor-8.2.2.tar.gz
a279a6e0109aa3b17442265358284583d846f88afa3746005792b93dffbd3396dc1277ce892b2a226496038ec6e8ec7ef2295b981ef8acf1a3fa3c32886623d0 owncloud-mozilla_sync-1.4.tar.gz
bd0386bcaf024529a8b9d3e3e4107129aa59c78957685511579c4d72a657242347793d640febca6f22ebe68fd98e4db007fe62346eb03488c9c27cd8534eff01 owncloud-music-0.3.8.zip
a2cef51293c8f1e3e235345e463cb78760106e9d369648d40d9a49216deaf5b0b839580cf398a5db4f26296f9798253fd132f1b8376d8975d9e905cc0edd1969 owncloud-pdfviewer-8.2.2.tar.gz
5b0880cd86588142d32f77dbcdd3fe7406541b790012528ba8efdceb62d0638a7d4b11e91b5fd3f0c5b4f5cfb3ae8213b28a41b4e7fa0fa0a8e978163175ec00 owncloud-tasks-0.8.1.tar.gz
a1142059f860ee1245ee2e324f206e1ab509ee6fcbd9020f793be557117ac5f6a8ba0e7a1677250df8662c19460e88b6ca2a24b40c14007d18535ab5110280e6 owncloud.config.php
4b2038786571c62129d748bb71262a7cbc966cf4b97482f13bcedaa36fcfa343080a464fc74463a9bd6615c99a10cd590b91cacead62632db36bfd8940173d13 owncloud-6-always-return-true-isSetLocaleWorking.patch"
|