diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-08-01 13:49:48 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-08-01 13:49:55 +0000 |
commit | b0e2f7183d57ca7aae58b6bcbd6dd5fa30ede327 (patch) | |
tree | 3c6081d8ac96292b5289a0ce346611181ea39373 | |
parent | 0ff0684db388a9e9db7fc2e15b7a71cb36216ef2 (diff) | |
download | aports-b0e2f7183d57ca7aae58b6bcbd6dd5fa30ede327.tar.bz2 aports-b0e2f7183d57ca7aae58b6bcbd6dd5fa30ede327.tar.xz |
testing/rainloop-webmail: new aport
Simple, modern and db-less webmail
-rw-r--r-- | testing/rainloop-webmail/APKBUILD | 58 | ||||
-rw-r--r-- | testing/rainloop-webmail/move-addressbook-in-etc.patch | 11 |
2 files changed, 69 insertions, 0 deletions
diff --git a/testing/rainloop-webmail/APKBUILD b/testing/rainloop-webmail/APKBUILD new file mode 100644 index 0000000000..fbe08975bf --- /dev/null +++ b/testing/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/testing/rainloop-webmail/move-addressbook-in-etc.patch b/testing/rainloop-webmail/move-addressbook-in-etc.patch new file mode 100644 index 0000000000..4a21df4c66 --- /dev/null +++ b/testing/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
+ {
|