summaryrefslogtreecommitdiff
path: root/www-apps/agendav
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-03-23 04:19:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-03-23 04:19:44 +0000
commitc5283d322accc6097afec74eab24550829788bab (patch)
treeb99ce668128d82a026eaa31461643f9173f9b77b /www-apps/agendav
parent5510d9d7d1c93c2ea71a2bd6f0666168808d5dd6 (diff)
gentoo resync : 23.03.2018
Diffstat (limited to 'www-apps/agendav')
-rw-r--r--www-apps/agendav/Manifest3
-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, 65 insertions, 0 deletions
diff --git a/www-apps/agendav/Manifest b/www-apps/agendav/Manifest
index 13c9d4e9cd8a..4763fd6611e0 100644
--- a/www-apps/agendav/Manifest
+++ b/www-apps/agendav/Manifest
@@ -1,4 +1,7 @@
+AUX postinstall-2.2.0-en.txt 522 BLAKE2B 5701bd5d06bf3c35953fbc62a7ba448138091d66025da2af6187c4325c9cbca412542c70f0aedb0b24bb46705934152a0777ac49810a02e2fdf5d7121a76394a SHA512 342598d5e9171ec4e838af51ae5240d321d33fd72bf23e08649fa88ce7fc03671cd656332f55c32d581ff578a90b03ab32756a551b5dd8204208319e4c982e7a
AUX postinstall-en.txt 486 BLAKE2B 6f811568d41da8992498df1e576aeb0647cd10f4b0e6f62ad8b07dadd9f8c96b757c8e72cee40713ceb1679fb13b1c2ec50eb3845ab1a56a3ce0018a874db895 SHA512 e6cde6985e969a8b08f184a631f5f304b6467bfd470591785eef7e7e2568e9c1a37c5a076556f2755a5f562d3fcde341c6781d74ef7af1bee938e184c9774d33
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
EBUILD agendav-1.2.6.2.ebuild 2144 BLAKE2B 0877ccf0f6db2b5c973ee1e8887debb2c271eac8df7dfdb9acd23d9dc3375c6b84193e8aca88f4b538dfed09cd2d16a5cb6619d51cb2e158dcd6c7ef00a6d0e2 SHA512 d55c96ecf0a04d0552b7802ee46952c5317f6a362676ef7e4079aa103456e7ed4d76eb9850cf6157c5218628209fa4edb28e0b6ce6da66348371abd14f141aa4
+EBUILD agendav-2.2.0.ebuild 1389 BLAKE2B c1482c18d03800646cda0975d2ba539cfd0e5e682472b015494e1a3c861e1f31d8083f78536451efc76f3c939a259e126487df7518b3ead18e8ac7bb8e281b72 SHA512 bfcf85e3fb36b1d3f9d62b80df4de1250ae1ab4f0384cf0f24977a83dd34d9e3bcfb91634721723ff9327b7351d4f3717940a7a3e40e39f4bbd0f2a912cd9511
MISC metadata.xml 326 BLAKE2B 0755116594edad3309ee654710ae5e3df2172e730355ee4bb8e1c7ed1f9292565fb2c71a14307d8632a14011fe200a2e5582bb219a818ce2bcd99b73c008b1c7 SHA512 353e3ba7bcb34dbcc4a7f3ee7c282914b5744f796da8ae8e19ccdd7bf1d65110b3e41938380fb460485f47468b9ebef8c3bb24b6f82911dac5a454784ba1fbcd
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