blob: 904c7f5b48fea5abe6c88a2d98bf50399fd621e1 (
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
246
247
248
249
250
251
252
253
254
255
256
257
258
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="owncloud"
pkgver="9.0.1"
pkgrel=0
_contactsver="0.0.0.51"
_calendarver="1.1"
_tasksver="0.8.1"
_documentsver="$pkgver"
_pdfviewerver="$pkgver"
_texteditorver="$pkgver"
_mozillasyncver="1.4"
_musicver="0.3.11"
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-xmlreader 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-gallery $pkgname-mozilla_sync $pkgname-music $pkgname-ldap
$pkgname-tasks $pkgname-texteditor $pkgname-pdfviewer $pkgname-videoplayer"
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
owncloud-9-disable-chmod.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} || return 1
elif [ "$1" = "src" ]; then
local appname="${subpkgname#$pkgname-}"
mv "$srcdir"/$2 "$subpkgdir"${_ocappsdir}/$appname || return 1
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
}
gallery() {
arch="noarch"
pkgdesc="ownCloud integrated gallery application"
depends="owncloud"
_mv_app pkg gallery
}
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
}
videoplayer() {
arch="noarch"
pkgdesc="ownCloud integrated video viewer"
depends="owncloud"
provides="$pkgname-videoviewer"
_mv_app pkg files_videoplayer
}
md5sums="1ce7ad9f4970b0cd64a23af0bbe280d9 owncloud-9.0.1.tar.bz2
8362a691e0edc181c1e4c6c2da3a6e88 owncloud-contacts-0.0.0.51.tar.gz
3a23fd76d55f7f8306b2eee162729670 owncloud-calendar-1.1.tar.gz
d995f0eead1d56da7c4d8ec84f49b558 owncloud-documents-9.0.1.tar.gz
df309f6305cf2356a89f1141a227f68f owncloud-texteditor-9.0.1.tar.gz
e98fdb10ff4139b4259e2a183a88975a owncloud-mozilla_sync-1.4.tar.gz
8452cdd43587469e680597a2c10c830e owncloud-music-0.3.11.zip
7a50eceaa908a558ec934177b95f6aa9 owncloud-pdfviewer-9.0.1.tar.gz
b12ac39aead677329675c27bb549374a owncloud-tasks-0.8.1.tar.gz
2c131b3ed0632bef7c372b6ec09f55cb owncloud.config.php
f497dbf3a67d14fc9049ca680673c805 owncloud-6-always-return-true-isSetLocaleWorking.patch
5e393c5cbfa0dc9f5d4d35dbdef3b839 owncloud-9-disable-chmod.patch"
sha256sums="44c98ffa3b957faf3af884cafa1d88c05762b65452592768a926e2c3c3a66615 owncloud-9.0.1.tar.bz2
1cff826bd37b6cf0e19bd569b91a72d9932083e77d8c55bc505f92cd8a04af27 owncloud-contacts-0.0.0.51.tar.gz
6da684c75774b4c9f422011de10bc62352e90e16e80c3d6836578096c6d4de21 owncloud-calendar-1.1.tar.gz
eb7c7bd5d5c90563eed2767b492415dbf428d11c91dde4172fa54752ec547859 owncloud-documents-9.0.1.tar.gz
dca3480d644766c6a51326abb529c30d672856f79974a5c24ed4b7cc96f4f787 owncloud-texteditor-9.0.1.tar.gz
314621c290daee93429d881e78d8cae13faaca3205b23860f06450633c5c3b6a owncloud-mozilla_sync-1.4.tar.gz
e480e639e48419977f06822aa92f1245c21a43d9aafc156edb6fd097873a73ca owncloud-music-0.3.11.zip
8539af25cbea4b89737995560b285a0b4054abda92e2d5f2218d11c195d2d944 owncloud-pdfviewer-9.0.1.tar.gz
1120f7c45c98b3bf790e0842808c1c24e5482bd7f7a5667be2216d0f4e1af2f4 owncloud-tasks-0.8.1.tar.gz
41b9bcd59604b8150e1a865ab37c2cbbe433d49eb3ef2ba2f55c37b3a8cc41c9 owncloud.config.php
3466ffbd22d4a9f04f4df862f3fb2f695fd1ca4bc6fb4b6a56258958064d5762 owncloud-6-always-return-true-isSetLocaleWorking.patch
9739810a5f040ff1488559fb17360b65aec94a4024b2f74437785420336d4d72 owncloud-9-disable-chmod.patch"
sha512sums="c957993a6f29c5c445636b4ebc570a83d8b8889a280689d2fa719adcef3c5c0e726ac5b29488390512a9d13bbea52a9bd0316aecb81e8e2d2f037c32f9332b22 owncloud-9.0.1.tar.bz2
fc7370250bb13cd4955d19c507434efae94d33bf7c3e4f5d80b5651ee930b66b473184782d7f38272700597ae74067d68a47a18e5d0487210c5812053daabf84 owncloud-contacts-0.0.0.51.tar.gz
530f2aa92a15389a33e5cb3fe3768918fbe8644cf8cfb645559a924c68739d353c9a923a5ec6c344773833249982b71362b2d384256469a6c235c1c95207c341 owncloud-calendar-1.1.tar.gz
5e21c46a7e89626561f459325c6d85d64b1d47a5776e2439e3e2b2a4deb93921437d87d8ae76cea8d26d4bc6723b132e914bb5aa3afaa96db47e91b8ea58e305 owncloud-documents-9.0.1.tar.gz
3c782c6e6071fc0e6df7635aec9f084486eb17065354a96f9c72b1a47128e16bb1f4419f9b0f039ea46590a4372632dcf656323960d4b480a2e97b50f29a3ef4 owncloud-texteditor-9.0.1.tar.gz
a279a6e0109aa3b17442265358284583d846f88afa3746005792b93dffbd3396dc1277ce892b2a226496038ec6e8ec7ef2295b981ef8acf1a3fa3c32886623d0 owncloud-mozilla_sync-1.4.tar.gz
fde1758a512a960985cbbfde9294f77458fad2cb4801daceedac76a58dbb2862f2586cb17376915cdcb47a768c75be46f863834a96f1148eae98285217491d59 owncloud-music-0.3.11.zip
716408d3be5d3f7a86249704dc812f6e668db2d3e4d9f78d59a1f095c947c1127e42bf3992d0f9ec0242d59f917adf8938e11bd1ecd52e402cb00e69e9014fc3 owncloud-pdfviewer-9.0.1.tar.gz
5b0880cd86588142d32f77dbcdd3fe7406541b790012528ba8efdceb62d0638a7d4b11e91b5fd3f0c5b4f5cfb3ae8213b28a41b4e7fa0fa0a8e978163175ec00 owncloud-tasks-0.8.1.tar.gz
b4bd206bff5f4871f023344ea03afd52795876d4563da00ccd026c5d976570dfb0923cd218449395e238a2b23de516f6a655a69539bc5a7d0cb67048c94bb15f owncloud.config.php
4b2038786571c62129d748bb71262a7cbc966cf4b97482f13bcedaa36fcfa343080a464fc74463a9bd6615c99a10cd590b91cacead62632db36bfd8940173d13 owncloud-6-always-return-true-isSetLocaleWorking.patch
62f4c4e5f0c23aea98a3cefdd5f08773fc34039ef444d167063f7b1f4640aee48bd108776e6f28f12acec3833f7bcf6b76aaa300c41f5f3fc8fc536c9f6b7586 owncloud-9-disable-chmod.patch"
|