aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-09-18 07:11:17 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-09-18 07:11:38 +0000
commitf7e2d59ad10f3a54c2298f57f83a0baab13c0dcc (patch)
tree93ef4fc0f4d94e783432201ec897b6b387900b46 /community
parent3ab4e5ea9b80fd426b9dfbb2c5732f6cba9561ef (diff)
downloadaports-f7e2d59ad10f3a54c2298f57f83a0baab13c0dcc.tar.bz2
aports-f7e2d59ad10f3a54c2298f57f83a0baab13c0dcc.tar.xz
community/rainloop-webmail: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/rainloop-webmail/APKBUILD58
-rw-r--r--community/rainloop-webmail/move-addressbook-in-etc.patch11
2 files changed, 69 insertions, 0 deletions
diff --git a/community/rainloop-webmail/APKBUILD b/community/rainloop-webmail/APKBUILD
new file mode 100644
index 0000000000..fbe08975bf
--- /dev/null
+++ b/community/rainloop-webmail/APKBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+_php=php7
+pkgname=rainloop-webmail
+pkgver=1.12.1
+pkgrel=0
+pkgdesc="Simple, modern & fast web-based email client"
+url="http://www.rainloop.net"
+arch="noarch"
+license="AGPL-3.0-only"
+depends="$_php $_php-curl $_php-iconv $_php-json $_php-dom $_php-openssl
+ $_php-pdo_sqlite $_php-simplexml
+ "
+source="$pkgname-$pkgver.zip::https://github.com/RainLoop/$pkgname/releases/download/v$pkgver/rainloop-$pkgver.zip
+ move-addressbook-in-etc.patch
+ "
+options="!check" # no test suite
+pkggroups="www-data"
+builddir="$srcdir"/rainloop
+
+_staticdir=usr/share/webapps/rainloop
+_datadir=var/lib/rainloop
+_configdir=etc/rainloop
+
+build() {
+ return 0
+}
+
+package() {
+ mkdir -p \
+ "$pkgdir"/$_staticdir \
+ "$pkgdir"/$_datadir \
+ "$pkgdir"/$_configdir
+ mv "$srcdir"/rainloop/* "$pkgdir"/$_staticdir
+ mv "$pkgdir"/$_staticdir/v/$pkgver/index.php.root \
+ "$pkgdir"/$_staticdir/index.php
+
+ # put config/dynamic data into /var
+ mv "$srcdir"/data "$pkgdir"/$_datadir/data
+ ln -s /$_datadir/data "$pkgdir"/$_staticdir/data
+
+ # code wants to run from "rainloop" dir
+ ln -s . "$pkgdir"/$_staticdir/rainloop
+
+ # setup config dirs into /etc
+ install -d -m770 -g www-data \
+ "$pkgdir"/$_configdir/configs \
+ "$pkgdir"/$_configdir/domains \
+ "$pkgdir"/$_datadir/data/_data_/_default_
+ ln -s /$_configdir/configs "$pkgdir"/$_datadir/data/_data_/_default_/configs
+ ln -s /$_configdir/domains "$pkgdir"/$_datadir/data/_data_/_default_/domains
+
+ # allow webserver to write config and temp files
+ chown :www-data "$pkgdir"/$_datadir/data "$pkgdir"/$_configdir
+ chmod 770 "$pkgdir"/$_datadir/data "$pkgdir"/$_configdir
+}
+
+sha512sums="3e2f8c93fbbc38bf4150175312954ea5245abc318179abb73fb2da6d02f58a3140e8d94b4c16a13ecc8bd070e34dd382db582258c3c426bf4bc405dbecd2ef61 rainloop-webmail-1.12.1.zip
+08d4eea20176d647b82a8fb8eeed9415b21a96f2e81bbc1a7a208334e4489fe74b60ded1fd333f553a6020040fcf19121be975468785df27f2a35e363fd6a169 move-addressbook-in-etc.patch"
diff --git a/community/rainloop-webmail/move-addressbook-in-etc.patch b/community/rainloop-webmail/move-addressbook-in-etc.patch
new file mode 100644
index 0000000000..4a21df4c66
--- /dev/null
+++ b/community/rainloop-webmail/move-addressbook-in-etc.patch
@@ -0,0 +1,11 @@
+--- a/v/1.12.1/app/libraries/RainLoop/Actions.php
++++ b/v/1.12.1/app/libraries/RainLoop/Actions.php
+@@ -297,7 +297,7 @@
+ if ('sqlite' === $sDsnType)
+ {
+ $mResult = new \RainLoop\Providers\AddressBook\PdoAddressBook(
+- 'sqlite:'.APP_PRIVATE_DATA.'AddressBook.sqlite', '', '', 'sqlite');
++ 'sqlite:/etc/rainloop/AddressBook.sqlite', '', '', 'sqlite');
+ }
+ else
+ {