blob: 2b8b0a5a0dbfb5b58fa02f7ba10978879e9c278b (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=roundcubemail
pkgver=0.9.0
pkgrel=0
pkgdesc="A PHP web-based mail client"
url="http://www.roundcube.net"
arch="noarch"
license="GPL3+"
install="$pkgname.post-upgrade"
depends="php php-imap php-xml php-json php-dom php-exif"
makedepends=""
subpackages="$pkgname-installer $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
fix-dirs.patch"
_src="$srcdir"/roundcubemail-$pkgver
prepare() {
cd "$_src"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# fix permissions
find . -type f -print | xargs chmod a-x
# remove .htaccess
find . -name \.htaccess -print | xargs rm -f
# fixup paths to use the right paths
sed -i -e 's|temp/|/tmp/|' \
-e 's|config/|/etc/roundcube/|' \
-e 's|logs/|/var/log/roundcube/|' \
config/main.inc.php.dist || return 1
# cleanup
sed -i 's/\r//' SQL/mssql.initial.sql
rm -rf logs temp
}
build() {
return 0
}
package() {
_instdir="$pkgdir"/usr/share/webapps/roundcube
mkdir -p "${_instdir}"
cd "${_instdir}"
cp -rp "$srcdir"/roundcubemail-$pkgver/* .
# install config in /etc/roundcube so config files are not overwritten
# on upgrades
mkdir -p "$pkgdir"/etc/
mv config "$pkgdir"/etc/roundcube
install -d "$pkgdir"/var/log/roundcube
mkdir -p "$pkgdir"/usr/share/doc/roundcube
mkdir -p "$pkgdir"/usr/share/licenses/roundcube
for file in CHANGELOG INSTALL README.md UPGRADING
do
mv "$pkgdir"/usr/share/webapps/roundcube/$file \
"$pkgdir"/usr/share/doc/roundcube || exit 1
done
mv "$pkgdir"/usr/share/webapps/roundcube/LICENSE \
"$pkgdir"/usr/share/licenses/roundcube || exit 1
}
installer() {
pkgdesc="Roundcubemail installer script"
mkdir -p "$subpkgdir"/usr/share/webapps/roundcube
mv "$pkgdir"/usr/share/webapps/roundcube/installer \
"$subpkgdir"/usr/share/webapps/roundcube
}
md5sums="843de3439886c2dddb0f09e9bb6a4d04 roundcubemail-0.9.0.tar.gz
0cfce0716e174c27c49e1c62aa30f67c fix-dirs.patch"
sha256sums="7edab9579cd2a6353c30de3fcfc86da231f0a46f7ad4ce707090813173f662c2 roundcubemail-0.9.0.tar.gz
9185719a389b6cca64fc4aa73a5565858572651a71f66da0230ab180bf61e05a fix-dirs.patch"
sha512sums="33a2026027e20f3ed8915806e0d8dcfd1f14143761b22c9bf452e7520c0b15304e74d34c524a3811a7c85e8f69bdfe40f44f0a92ff8993c94c68dfe56585da73 roundcubemail-0.9.0.tar.gz
5c645ab7f130f8f3b17b7821e2cd0be88b6d7999da38876bde36c9b116bf7d34bcf52e2d8939d9359649e3fc5ddfb1cab7798ffb9e649be11bebd1d2c4ee006b fix-dirs.patch"
|