summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-03-20 20:06:33 +0100
committerFabian Groffen <grobian@gentoo.org>2018-03-20 20:06:49 +0100
commit1ed7a1ca5ca23db14d7a915ef61b3bc372b34a6d (patch)
treea323379b8e0284c63e4481d31bc608b472291777 /www-apps
parentdev-python/jupyter: add python3_6 (diff)
downloadgentoo-1ed7a1ca5ca23db14d7a915ef61b3bc372b34a6d.tar.gz
gentoo-1ed7a1ca5ca23db14d7a915ef61b3bc372b34a6d.tar.bz2
gentoo-1ed7a1ca5ca23db14d7a915ef61b3bc372b34a6d.zip
www-apps/agendav: version bump, bug #650922
Closes: https://bugs.gentoo.org/650922 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/agendav/Manifest1
-rw-r--r--www-apps/agendav/agendav-2.2.0.ebuild48
-rw-r--r--www-apps/agendav/files/postinstall-2.2.0-en.txt14
3 files changed, 63 insertions, 0 deletions
diff --git a/www-apps/agendav/Manifest b/www-apps/agendav/Manifest
index 2e58abf4833e..4c8863519f3f 100644
--- a/www-apps/agendav/Manifest
+++ b/www-apps/agendav/Manifest
@@ -1 +1,2 @@
DIST agendav-1.2.6.2.tar.gz 2586820 BLAKE2B 440bb7d8fafb482e99d1a9745c71914668d8aa262a1e5ea72c65a0feaa527cdebb8191551971e46661221b558f1fe78ed3aa937b1a5ed723407649c45e1cad19 SHA512 bfae7c00ab7f8baf239310e2c04229ee76a56befc57d9ab449654bb0c28dd30aab628a2292670dc8c1ce479593bd1b6a57ba1e4f3bcffb4de27214c855ccabab
+DIST agendav-2.2.0.tar.gz 5313351 BLAKE2B 3d7f47900f0030c87fe00c187faee5c508cd740afee2a5021a38e2e2f3986207d324891fc71b53c6b8938684981933f29c7c3022179e90f3b9e5b19e2437df99 SHA512 4bf3c6152d69d8c58cea4e4377acdc30ef90d7d40946ad495715a34348051db8d2c20c60d495fb629dd9ad143836025082109c2102149ab143e98ad2ba4b191b
diff --git a/www-apps/agendav/agendav-2.2.0.ebuild b/www-apps/agendav/agendav-2.2.0.ebuild
new file mode 100644
index 000000000000..b2cd58dfa2ab
--- /dev/null
+++ b/www-apps/agendav/agendav-2.2.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit webapp
+
+DESCRIPTION="multilanguage CalDAV web client"
+HOMEPAGE="http://agendav.org/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+KEYWORDS="~amd64 ~ppc64"
+
+RDEPEND=">=dev-lang/php-5.5.9[ctype,curl,crypt,unicode,tokenizer,xml,xmlreader,xmlwriter]
+ virtual/httpd-php
+ || ( >=virtual/mysql-5.1 >=dev-db/postgresql-8.1 )"
+
+src_install() {
+ webapp_src_preinst
+
+ einfo "Installing web files"
+ # fix references to the rest of the application code
+ sed -i -e '/__DIR__/s:/\.\./:/../../agendav/:' web/public/index.php || die
+ insinto "${MY_HTDOCSDIR}"
+ doins -r web/public/* || die
+
+ einfo "Installing main files"
+ cp web/config/{default.,}settings.php || die
+ insinto "${MY_HOSTROOTDIR}/${PN}"
+ doins -r web/{app,config,lang,src,templates,var,vendor} || die
+
+ einfo "Installing agendavcli utility"
+ sed -i -e '/__DIR__/s:/web/:/:' agendavcli || die
+ sed -i -e '/migrations_directory/s:web/::' || die
+ doins migrations.yml
+ exeinto "${MY_HOSTROOTDIR}/${PN}"
+ doexe agendavcli
+
+ local f
+ for f in "${ED}"/${MY_HOSTROOTDIR}/${PN}/config/* ; do
+ webapp_configfile "${f#${ED%/}}"
+ done
+ webapp_serverowned -R "${MY_HOSTROOTDIR}"/${PN}/var
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-2.2.0-en.txt"
+ webapp_src_install
+}
diff --git a/www-apps/agendav/files/postinstall-2.2.0-en.txt b/www-apps/agendav/files/postinstall-2.2.0-en.txt
new file mode 100644
index 000000000000..76b44064aabe
--- /dev/null
+++ b/www-apps/agendav/files/postinstall-2.2.0-en.txt
@@ -0,0 +1,14 @@
+Next to a CalDAV server, you need access to a mysql or postgresql
+database to use agendav.
+
+Read http://docs.agendav.org/en/2.2.0/admin/installation/ for
+installation instructions of the database. This includes loading the
+SQL statements using agendavcli utility.
+
+Next you have to edit all config files in your installation's
+ /path/to/hostroot/agendav/config.
+
+Before you can use agendav, you need to upgrade the database (you also
+need this on a new install) using:
+
+ $ /path/to/hostroot/agendav/agendavcli dbupdate