blob: afab0e6f33494847d832e87c88589a9ce3a9ae65 (
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=owncloud
pkgver=9.1.2
pkgrel=0
_contactsver="0.0.0.183"
_calendarver="1.3.3"
_tasksver="0.9.3"
_documentsver="$pkgver"
_pdfviewerver="$pkgver"
_texteditorver="$pkgver"
_musicver="0.3.11"
_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"
makedepends=""
subpackages="$pkgname-initscript $pkgname-doc $pkgname-pgsql $pkgname-sqlite
$pkgname-mysql $pkgname-encryption $pkgname-calendar $pkgname-contacts
$pkgname-documents $pkgname-external $pkgname-gallery $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/releases/download/v$_calendarver/calendar.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-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
$pkgname.confd
fpm-pool.conf
owncloud.config.php
"
pkgusers="owncloud"
pkggroups="www-data"
builddir="$srcdir/$pkgname"
_ocbasedir="/var/lib/owncloud"
_ocdatadir="$_ocbasedir/data"
_ocwwwdir="/usr/share/webapps/owncloud"
_ocappsdir="$_ocwwwdir/apps"
_occonfdir="/etc/owncloud"
prepare() {
default_prepare || return 1
sed "s/__VERSION__/$pkgver/" -i owncloud.config.php
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"$_occonfdir "$pkgdir"$_ocdatadir "$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 || return 1
install -m664 .htaccess "$pkgdir"${_ocwwwdir}/.htaccess || return 1
local dir; for dir in $_occonfdir $_ocdatadir $_ocappsdir; do
chown -R :www-data "$pkgdir"$dir || return 1
chmod 770 "$pkgdir"$dir || return 1
done
}
initscript() {
pkgdesc="Init script that runs ownCloud with php-fpm"
depends="$pkgname $_php-fpm"
install="$subpkgname.pre-install $subpkgname.post-install"
local confdir="$subpkgdir/etc/$_php/php-fpm.d"
local fpm_name="php-fpm${_php:3}"
if [ "$_php" = "php5" ]; then
confdir="${confdir/php-/}"
fpm_name="php-fpm"
fi
install -m 755 -o owncloud -d "$subpkgdir"/var/log/$pkgname || return 1
install -m 700 -o owncloud -d "$subpkgdir"/var/tmp/$pkgname || return 1
install -m 644 -D "$srcdir"/fpm-pool.conf \
"$confdir"/$pkgname.conf || return 1
install -m 644 -D "$srcdir"/$pkgname.confd \
"$subpkgdir"/etc/conf.d/$pkgname || return 1
mkdir -p "$subpkgdir"/etc/init.d
ln -s $fpm_name "$subpkgdir"/etc/init.d/$pkgname
}
doc() {
pkgdesc="$pkgdesc (documentation)"
depends="$pkgname"
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/core
mv "$pkgdir"/usr/share/webapps/$pkgname/core/doc \
"$subpkgdir"/usr/share/doc/$pkgname/core
}
pgsql() {
pkgdesc="ownCloud PostgreSQL support"
depends="$pkgname ${_php}-pgsql ${_php}-pdo_pgsql ${_php}-pear-mdb2-driver-pgsql"
mkdir -p "$subpkgdir"
}
sqlite() {
pkgdesc="ownCloud SQLite support"
depends="$pkgname ${_php}-sqlite3 ${_php}-pdo_sqlite"
mkdir -p "$subpkgdir"
}
mysql() {
pkgdesc="ownCloud MySQL support"
depends="$pkgname ${_php}-mysql ${_php}-pdo_mysql ${_php}-pear-mdb2-driver-mysql"
mkdir -p "$subpkgdir"
}
plugins() {
pkgdesc="ownCloud 3rdparty plugins"
depends="$pkgname"
mkdir -p "$subpkgdir"${_ocwwwdir}
mv "$pkgdir"${_ocwwwdir}/3rdparty "$subpkgdir"${_ocwwwdir}/
}
_mv_app() {
local from="$1"
local dir="$2"
mkdir -p "$subpkgdir"${_ocappsdir}
if [ "$from" = "pkg" ]; then
mv "$pkgdir"${_ocappsdir}/$dir "$subpkgdir"${_ocappsdir}/ || return 1
elif [ "$from" = "src" ]; then
local appname="${subpkgname#$pkgname-}"
mv "$srcdir"/$dir "$subpkgdir"${_ocappsdir}/$appname/ || return 1
fi
chown -R :www-data "$subpkgdir"${_ocappsdir} || return 1
chmod 770 "$subpkgdir"${_ocappsdir} || return 1
}
contacts() {
pkgdesc="ownCloud contacts"
depends="$pkgname"
_mv_app src contacts
}
calendar() {
pkgdesc="ownCloud calendar"
depends="$pkgname"
_mv_app src calendar
}
documents() {
pkgdesc="ownCloud integrated documents editor"
depends="$pkgname"
_mv_app src documents-$_documentsver
}
encryption() {
pkgdesc="ownCloud integrated encryption support"
depends="$pkgname ${_php}-openssl"
_mv_app pkg encryption
}
external() {
pkgdesc="ownCloud integrated external storage support"
depends="$pkgname ${_php}-curl ${_php}-ftp"
_mv_app pkg files_external
}
gallery() {
pkgdesc="ownCloud integrated gallery application"
depends="$pkgname"
_mv_app pkg gallery
}
ldap() {
pkgdesc="ownCloud integrated LDAP authentication"
depends="$pkgname ${_php}-ldap"
_mv_app pkg user_ldap
}
music() {
pkgdesc="ownCloud music app"
depends="$pkgname"
_mv_app src music
# Correct world-writable directories.
find "${subpkgdir}${_ocappsdir}" -type d -exec chmod 775 {} \;
}
pdfviewer() {
pkgdesc="ownCloud integrated PDF viewer"
depends="$pkgname"
_mv_app pkg files_pdfviewer
}
tasks() {
pkgdesc="ownCloud tasks"
depends="$pkgname"
_mv_app src tasks-$_tasksver
}
texteditor() {
pkgdesc="ownCloud integrated text editor"
depends="$pkgname"
_mv_app pkg files_texteditor
}
videoplayer() {
pkgdesc="ownCloud integrated video viewer"
depends="$pkgname"
provides="$pkgname-videoviewer"
_mv_app pkg files_videoplayer
}
md5sums="2d4a1c6b23e616e98cef28e0db6ea4aa owncloud-9.1.2.tar.bz2
a2623501e3e524b973759a9628a4749d owncloud-contacts-0.0.0.183.tar.gz
1183d4bb6a1ef40b10473757e4694c52 owncloud-calendar-1.3.3.tar.gz
bd3375584a6e5e85dd2552c46689d538 owncloud-documents-9.1.2.tar.gz
ab1d52c2c5cd8e1584aa085c4af563cf owncloud-texteditor-9.1.2.tar.gz
8452cdd43587469e680597a2c10c830e owncloud-music-0.3.11.zip
2ef79d6c2175856a230eaf9751217e76 owncloud-pdfviewer-9.1.2.tar.gz
84e7e522faa5f4a6bd3c75a29e259bcb owncloud-tasks-0.9.3.tar.gz
ea483e710da2fa9995543d9b5b8ee11e owncloud.confd
779c544fd1900557f4e69504aa28eeed fpm-pool.conf
e1081190b2916a7f61fe403a03d8fa06 owncloud.config.php"
sha256sums="108bd46864aac95c90c246a2eda35b00513c14df132177add07976c1cdb14933 owncloud-9.1.2.tar.bz2
d6ea14796f27f4cfb6db63b8e3612a71d3e3e6e2d8edffce85df45fcb71c7106 owncloud-contacts-0.0.0.183.tar.gz
e3cd0de34e7de1d9f08d5c7dce5e9f45826cc9e59292b847fa900ca3cdf6b3fc owncloud-calendar-1.3.3.tar.gz
3949115ad2d5eaed5107ef6a1f983887268728424b82b63d2a1dc74205b17f70 owncloud-documents-9.1.2.tar.gz
8edec6bdb93b5a44d1bb89e435988bf5d4663fdee7600ba009a6373eb68dc927 owncloud-texteditor-9.1.2.tar.gz
e480e639e48419977f06822aa92f1245c21a43d9aafc156edb6fd097873a73ca owncloud-music-0.3.11.zip
44a296a454af5523676aab5aed2c9d0d1379445c5493e092732129b17103c8cd owncloud-pdfviewer-9.1.2.tar.gz
0a5ef52ba915e7ec8f124ab7bd2c01f22db27f77343ddfa8d799927711133c55 owncloud-tasks-0.9.3.tar.gz
96d61ee75e8c948f78d31bdb770636819b8d678892a4003168c140fab69861cd owncloud.confd
41dd626e34ea0b0ea3eac13b43a655586097fe746d5a713c0c765dbc2b8c2fa0 fpm-pool.conf
d00bdbf610d6994cdb61269620dc0fdb892a43a10895c00060d72731f7acd854 owncloud.config.php"
sha512sums="a2fb8c250cd83cf58dc755baff8a46c26f5ed323504a7250f7da05679ca2e93f4aa6b6875f9afa702e8a70a10457151e2f7da6184a4c1f43a68f65c1d58626c0 owncloud-9.1.2.tar.bz2
7d0b3808a8734cd6895847ea1986345df71cd7e0633dcf2b8b9989bc9d38c3182bf6d93d75c32378270d124e885d7d730fd1ead5198bd9276de8425a5ff725d3 owncloud-contacts-0.0.0.183.tar.gz
8f2b260a63644a5fb529211dd160aa3169ffde56ceeacf25f7c7748b2d7dfa9b1115663955eae3b9e35283545e57ff1b6f48ea75713f50db6bab51ebdb5e598e owncloud-calendar-1.3.3.tar.gz
e5957bf320ac5aacb0a769f5a4acd4beb100f8daa0489cb172ed791f340b101165c38e60dcd792981553d84c1dca14a2f19485e5de21dadef51926edbe44fbec owncloud-documents-9.1.2.tar.gz
dff9c98843faf95605f0259430c03852ed6da5d61860ab9367a07af5e840811ce214a8d858b52f77f5a1d4c7addcd538a9055e93ec2821283b755d6e5552f0eb owncloud-texteditor-9.1.2.tar.gz
fde1758a512a960985cbbfde9294f77458fad2cb4801daceedac76a58dbb2862f2586cb17376915cdcb47a768c75be46f863834a96f1148eae98285217491d59 owncloud-music-0.3.11.zip
87ee5e8521e5ddcb2d22c5043c4ba24a6440464951452f639a065806b674f3249138558f861f3b6a9904f8dc05532308a9d780bdd7e2869513fe3aa8169bc6e4 owncloud-pdfviewer-9.1.2.tar.gz
05903caadaab8c7982cb91b1442d617c777a9d97fcd5406d1b404006fa91ef73251852a53a03cb7fcbed097c1120fc920983c1a24a0e8f1f2e95b230153fd26a owncloud-tasks-0.9.3.tar.gz
7d1fa12f08f74b88d1ba7858a8295f6e5b200f16ed7366af48cc891b8c0074da85df008ed6f920df8b61bdfd5a27ac2a9623309b6334f82051a04067e746023e owncloud.confd
e5afd329faf06acec747cb2af8dea409b6991dcc7aa15e894444899ccaf17502fdfab437cfb91170d1e1aee39385b72f277922dccdd8c6e08cc928b146ccaeda fpm-pool.conf
c7aa08cf9b8fb8f61454af3ccc5b743e33b4cc294e6c42ed2eb16894f0a411b22bdc4d8f691964860a7c88ea7255424c1e369063ae37041850a9624b4139d478 owncloud.config.php"
|