Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/agendav/files/, www-apps/agendav/
Date: Tue, 20 Mar 2018 19:06:59
Message-Id: 1521572809.1ed7a1ca5ca23db14d7a915ef61b3bc372b34a6d.grobian@gentoo
1 commit: 1ed7a1ca5ca23db14d7a915ef61b3bc372b34a6d
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 20 19:06:33 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 20 19:06:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ed7a1ca
7
8 www-apps/agendav: version bump, bug #650922
9
10 Closes: https://bugs.gentoo.org/650922
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 www-apps/agendav/Manifest | 1 +
14 www-apps/agendav/agendav-2.2.0.ebuild | 48 +++++++++++++++++++++++++
15 www-apps/agendav/files/postinstall-2.2.0-en.txt | 14 ++++++++
16 3 files changed, 63 insertions(+)
17
18 diff --git a/www-apps/agendav/Manifest b/www-apps/agendav/Manifest
19 index 2e58abf4833..4c8863519f3 100644
20 --- a/www-apps/agendav/Manifest
21 +++ b/www-apps/agendav/Manifest
22 @@ -1 +1,2 @@
23 DIST agendav-1.2.6.2.tar.gz 2586820 BLAKE2B 440bb7d8fafb482e99d1a9745c71914668d8aa262a1e5ea72c65a0feaa527cdebb8191551971e46661221b558f1fe78ed3aa937b1a5ed723407649c45e1cad19 SHA512 bfae7c00ab7f8baf239310e2c04229ee76a56befc57d9ab449654bb0c28dd30aab628a2292670dc8c1ce479593bd1b6a57ba1e4f3bcffb4de27214c855ccabab
24 +DIST agendav-2.2.0.tar.gz 5313351 BLAKE2B 3d7f47900f0030c87fe00c187faee5c508cd740afee2a5021a38e2e2f3986207d324891fc71b53c6b8938684981933f29c7c3022179e90f3b9e5b19e2437df99 SHA512 4bf3c6152d69d8c58cea4e4377acdc30ef90d7d40946ad495715a34348051db8d2c20c60d495fb629dd9ad143836025082109c2102149ab143e98ad2ba4b191b
25
26 diff --git a/www-apps/agendav/agendav-2.2.0.ebuild b/www-apps/agendav/agendav-2.2.0.ebuild
27 new file mode 100644
28 index 00000000000..b2cd58dfa2a
29 --- /dev/null
30 +++ b/www-apps/agendav/agendav-2.2.0.ebuild
31 @@ -0,0 +1,48 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit webapp
38 +
39 +DESCRIPTION="multilanguage CalDAV web client"
40 +HOMEPAGE="http://agendav.org/"
41 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
42 +
43 +LICENSE="GPL-3+"
44 +KEYWORDS="~amd64 ~ppc64"
45 +
46 +RDEPEND=">=dev-lang/php-5.5.9[ctype,curl,crypt,unicode,tokenizer,xml,xmlreader,xmlwriter]
47 + virtual/httpd-php
48 + || ( >=virtual/mysql-5.1 >=dev-db/postgresql-8.1 )"
49 +
50 +src_install() {
51 + webapp_src_preinst
52 +
53 + einfo "Installing web files"
54 + # fix references to the rest of the application code
55 + sed -i -e '/__DIR__/s:/\.\./:/../../agendav/:' web/public/index.php || die
56 + insinto "${MY_HTDOCSDIR}"
57 + doins -r web/public/* || die
58 +
59 + einfo "Installing main files"
60 + cp web/config/{default.,}settings.php || die
61 + insinto "${MY_HOSTROOTDIR}/${PN}"
62 + doins -r web/{app,config,lang,src,templates,var,vendor} || die
63 +
64 + einfo "Installing agendavcli utility"
65 + sed -i -e '/__DIR__/s:/web/:/:' agendavcli || die
66 + sed -i -e '/migrations_directory/s:web/::' || die
67 + doins migrations.yml
68 + exeinto "${MY_HOSTROOTDIR}/${PN}"
69 + doexe agendavcli
70 +
71 + local f
72 + for f in "${ED}"/${MY_HOSTROOTDIR}/${PN}/config/* ; do
73 + webapp_configfile "${f#${ED%/}}"
74 + done
75 + webapp_serverowned -R "${MY_HOSTROOTDIR}"/${PN}/var
76 +
77 + webapp_postinst_txt en "${FILESDIR}/postinstall-2.2.0-en.txt"
78 + webapp_src_install
79 +}
80
81 diff --git a/www-apps/agendav/files/postinstall-2.2.0-en.txt b/www-apps/agendav/files/postinstall-2.2.0-en.txt
82 new file mode 100644
83 index 00000000000..76b44064aab
84 --- /dev/null
85 +++ b/www-apps/agendav/files/postinstall-2.2.0-en.txt
86 @@ -0,0 +1,14 @@
87 +Next to a CalDAV server, you need access to a mysql or postgresql
88 +database to use agendav.
89 +
90 +Read http://docs.agendav.org/en/2.2.0/admin/installation/ for
91 +installation instructions of the database. This includes loading the
92 +SQL statements using agendavcli utility.
93 +
94 +Next you have to edit all config files in your installation's
95 + /path/to/hostroot/agendav/config.
96 +
97 +Before you can use agendav, you need to upgrade the database (you also
98 +need this on a new install) using:
99 +
100 + $ /path/to/hostroot/agendav/agendavcli dbupdate