Commit b0e2f718 authored by Leonardo Arena's avatar Leonardo Arena

testing/rainloop-webmail: new aport

Simple, modern and db-less webmail
parent 0ff0684d
# 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"
--- 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
{
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment