blob: 1ba88fe8c08982adad6127a62f95e06b231f97ad (
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
259
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="owncloud"
pkgver="9.0.8"
pkgrel=0
_contactsver="0.0.0.151"
_calendarver="1.3.2"
_tasksver="0.9.3"
_documentsver="$pkgver"
_pdfviewerver="$pkgver"
_texteditorver="$pkgver"
_mozillasyncver="1.4"
_musicver="0.3.12"
_php=php5
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/releases/download/v$_contactsver/contacts.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.tar.gz::https://github.com/owncloud/music/archive/v$_musicver.tar.gz
$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
}
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-$_musicver
# 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="fca569b06392c009072ba46fecaa22ed owncloud-9.0.8.tar.bz2
110b4f260ab1e52341f1fcc57b2ee669 owncloud-contacts-0.0.0.151.tar.gz
ec02314ccf68fc19777156c84a27f003 owncloud-calendar-1.3.2.tar.gz
a68ad551318bc3dceb0702af7cba7c45 owncloud-documents-9.0.8.tar.gz
ad91ad2242e17ed3a8eda22d4d64c3a9 owncloud-texteditor-9.0.8.tar.gz
e98fdb10ff4139b4259e2a183a88975a owncloud-mozilla_sync-1.4.tar.gz
8b67bb6ad487d3d6766376a38169bc11 owncloud-music-0.3.12.tar.gz
205e2bc2bdff9dd0924185d7fcb4bc20 owncloud-pdfviewer-9.0.8.tar.gz
84e7e522faa5f4a6bd3c75a29e259bcb owncloud-tasks-0.9.3.tar.gz
2c131b3ed0632bef7c372b6ec09f55cb owncloud.config.php
f497dbf3a67d14fc9049ca680673c805 owncloud-6-always-return-true-isSetLocaleWorking.patch
5e393c5cbfa0dc9f5d4d35dbdef3b839 owncloud-9-disable-chmod.patch"
sha256sums="91b75fbab72ee3279310138045e3df4de4f2b65902ca6a19db3a054c4039adc8 owncloud-9.0.8.tar.bz2
e13e885c11432f92e693c0f1ca2d3a0439cdf9eb242a203a0a751c7de5191384 owncloud-contacts-0.0.0.151.tar.gz
f99bb96a663096a03d6dc5459d8409abd48bcec2139af84e55bff17c90620493 owncloud-calendar-1.3.2.tar.gz
1f6ffdaf7858dac652d3ff3863af1b5f8f0b98d5e119eaac6ffc28653b356cdc owncloud-documents-9.0.8.tar.gz
515d7e34d2f3da05bddc3c1aa5025f13150fd944894e7004831f7c3d1301d1fb owncloud-texteditor-9.0.8.tar.gz
314621c290daee93429d881e78d8cae13faaca3205b23860f06450633c5c3b6a owncloud-mozilla_sync-1.4.tar.gz
12997165c52298ba1b8b8d1f643af0628077aa9f14142e5c853d3c85a6ce44d5 owncloud-music-0.3.12.tar.gz
a226a9c0b2131a0fca09feff603901338f918480835b94dad82b2f6d6f8ef058 owncloud-pdfviewer-9.0.8.tar.gz
0a5ef52ba915e7ec8f124ab7bd2c01f22db27f77343ddfa8d799927711133c55 owncloud-tasks-0.9.3.tar.gz
41b9bcd59604b8150e1a865ab37c2cbbe433d49eb3ef2ba2f55c37b3a8cc41c9 owncloud.config.php
3466ffbd22d4a9f04f4df862f3fb2f695fd1ca4bc6fb4b6a56258958064d5762 owncloud-6-always-return-true-isSetLocaleWorking.patch
9739810a5f040ff1488559fb17360b65aec94a4024b2f74437785420336d4d72 owncloud-9-disable-chmod.patch"
sha512sums="c73da8a74ff1589346386278c238e5b73f75bbac7ff5867afcf27af0677fad61f5e52c5c502d3af5f42d7db4f58353329be1a88cb62725c06ea9404333638f7d owncloud-9.0.8.tar.bz2
219410025b3020b327ecc779d7d8a25e17eb693ae9c8ca7655ea914e5a73009de14972fc998c2ae0e5e3f5ad7c01db209372965865e3c7ac145e8b42365b356b owncloud-contacts-0.0.0.151.tar.gz
b87f80984949868b87812637ed707c4cc90bc719dbed77d0a41956b9425116e7b64553125493a8bd48427b26b7311b05402ed61114b925186376756545e02891 owncloud-calendar-1.3.2.tar.gz
6e90aefe3eec2d306dbc7164de5d1a218fdc246f313c0bb9066fe3b8cbc7544b8cec222dba564eee09c2cd20831d9a5bbc21617597c4bc0c72d56ddcb7d16597 owncloud-documents-9.0.8.tar.gz
6d9b6f9560f2459a2c6ba7fc095c7052ee2b7bbea4c027a1b0bd2e5d28a6271d6a38ca6eaaaadbc3c0eaf0526f731284e22db7e75fcabd7b17af1368464f4ccd owncloud-texteditor-9.0.8.tar.gz
a279a6e0109aa3b17442265358284583d846f88afa3746005792b93dffbd3396dc1277ce892b2a226496038ec6e8ec7ef2295b981ef8acf1a3fa3c32886623d0 owncloud-mozilla_sync-1.4.tar.gz
3a4f99b925008191ab6a9107417236fa7626c8884b5dc766deb6b6bcbc663c56ba680d82b3b4c73f6ce81278ca016b2a5db00e41cd16f97e2cf3f451d069ef4e owncloud-music-0.3.12.tar.gz
9534a65ef513a4d104393d6296419d59aa938f4709308336e621d9898042bdc322c03dd2e369b327539652e9cf1bcff2a5c8556693d384de625f0f75e6b2e661 owncloud-pdfviewer-9.0.8.tar.gz
05903caadaab8c7982cb91b1442d617c777a9d97fcd5406d1b404006fa91ef73251852a53a03cb7fcbed097c1120fc920983c1a24a0e8f1f2e95b230153fd26a owncloud-tasks-0.9.3.tar.gz
b4bd206bff5f4871f023344ea03afd52795876d4563da00ccd026c5d976570dfb0923cd218449395e238a2b23de516f6a655a69539bc5a7d0cb67048c94bb15f owncloud.config.php
4b2038786571c62129d748bb71262a7cbc966cf4b97482f13bcedaa36fcfa343080a464fc74463a9bd6615c99a10cd590b91cacead62632db36bfd8940173d13 owncloud-6-always-return-true-isSetLocaleWorking.patch
62f4c4e5f0c23aea98a3cefdd5f08773fc34039ef444d167063f7b1f4640aee48bd108776e6f28f12acec3833f7bcf6b76aaa300c41f5f3fc8fc536c9f6b7586 owncloud-9-disable-chmod.patch"
|