diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/agendav |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/agendav')
-rw-r--r-- | www-apps/agendav/Manifest | 6 | ||||
-rw-r--r-- | www-apps/agendav/agendav-1.2.6.2.ebuild | 78 | ||||
-rw-r--r-- | www-apps/agendav/files/postinstall-en.txt | 13 | ||||
-rw-r--r-- | www-apps/agendav/metadata.xml | 11 |
4 files changed, 108 insertions, 0 deletions
diff --git a/www-apps/agendav/Manifest b/www-apps/agendav/Manifest new file mode 100644 index 000000000000..f15d54f1ddac --- /dev/null +++ b/www-apps/agendav/Manifest @@ -0,0 +1,6 @@ +AUX postinstall-en.txt 486 SHA256 386a02204dd9df62a07eaf3f60f1b9220e540910ee47ba6a4b80b3e9be6c0dba SHA512 e6cde6985e969a8b08f184a631f5f304b6467bfd470591785eef7e7e2568e9c1a37c5a076556f2755a5f562d3fcde341c6781d74ef7af1bee938e184c9774d33 WHIRLPOOL a1cbf1f0133bd6641f13543d6f2b4b141fbd003d52c32dcc23d961c2b0af4c51509e0fa2f5d9eae1c2979a4c101017aefe63940a9ca5ded7298cdaa546b97740 +DIST agendav-1.2.6.2.tar.gz 2586820 SHA256 af5a8a828a1204d3dc4f0457424e77d74505b98c23e1ce9a886af789541ba44c SHA512 bfae7c00ab7f8baf239310e2c04229ee76a56befc57d9ab449654bb0c28dd30aab628a2292670dc8c1ce479593bd1b6a57ba1e4f3bcffb4de27214c855ccabab WHIRLPOOL 952f1ebc2702ed3e13334951b89b7898059c0dd3b917b6c9eafde2bc4454fb6dcebcea575d20acf15cc3f1af53db88735e99aa68e20ecd1ca63390be9fa1b768 +EBUILD agendav-1.2.6.2.ebuild 2144 SHA256 bba84d650257e0ce37f9617eb39715e2b7d40568b17bdd24d43e4e8ac839c7c2 SHA512 d55c96ecf0a04d0552b7802ee46952c5317f6a362676ef7e4079aa103456e7ed4d76eb9850cf6157c5218628209fa4edb28e0b6ce6da66348371abd14f141aa4 WHIRLPOOL 31e156addd826ae35aa811559e2fa02177827c1dcadb6bee91c07261e4cbfe7da5c57489e2b3f4951a9a873bb86518b53ed40efd8e20054087d487bc3e3f0d71 +MISC ChangeLog 2207 SHA256 31de9655f24f38f9fe980ef7cc065403203250375e373e515fe96a5054a66440 SHA512 7a40f927b0555abd550af76df9189f66d8307fc50323cbc9375abbf01b443b0a78949384d69444b52820ab4e265446ec29d59d3511413bb5e5f9235385ac23d6 WHIRLPOOL 0305cbc4fffd67588f8030fcec0b9cd61fa904b43b42ac2853bce4135cbc510e2930ca0baf927541a5c456eb03064b1ac35f7c5226b33b8c1329438eac391d14 +MISC ChangeLog-2015 633 SHA256 1eeb6c7b88d67f2586bf896de850c2fce1e293eaba4ad271509f582f4368027c SHA512 f5006ea22f9144bf58df76fe230025cdec1f1efde5a86229ae5c4e212b184414abcd2131a3b54473a86ca378b2117cd1c38e979e17d87a419d78a946276c24aa WHIRLPOOL 9b34e193db93297bbe48154e5338fd8e7f9e7e5543ff8c8c7a30a93938bda734f5e756939efb7b921ab058a4072705f19d57c86cf9350e52eb78073984a39e7d +MISC metadata.xml 326 SHA256 345b7feafc75d4323bc2474e2ae92a8589e8248885fbe07d658b8b1ea22c5e54 SHA512 353e3ba7bcb34dbcc4a7f3ee7c282914b5744f796da8ae8e19ccdd7bf1d65110b3e41938380fb460485f47468b9ebef8c3bb24b6f82911dac5a454784ba1fbcd WHIRLPOOL 562dad9f84123f2ed0797d3d2b435cc16db59c99e4b9fca6c50a308b7eb45316848d922fa574955a0e03c5f6422d1e243d79e28c9f2003bf30403def87544eea diff --git a/www-apps/agendav/agendav-1.2.6.2.ebuild b/www-apps/agendav/agendav-1.2.6.2.ebuild new file mode 100644 index 000000000000..81eb9196577b --- /dev/null +++ b/www-apps/agendav/agendav-1.2.6.2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit webapp + +DESCRIPTION="multilanguage CalDAV web client" +HOMEPAGE="http://agendav.org/" +SRC_URI="https://github.com/adobo/${PN}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="BSD LGPL-3+ LGPL-2.1+ GPL-3+" +KEYWORDS="~amd64" + +RDEPEND=">=dev-lang/php-5.3[curl,unicode] + virtual/httpd-php + || ( >=virtual/mysql-5.1 >=dev-db/postgresql-8.1 )" + +S=${WORKDIR}/adobo-${PN}-84f869e + +src_install() { + webapp_src_preinst + + dodoc \ + doc/source/admin/configuration.rst \ + doc/source/admin/installation.rst \ + doc/source/admin/troubleshooting.rst \ + doc/source/admin/upgrading.rst \ + || die + + # fix locations + sed -i \ + -e "s:\(system_path = \)'[^']\+':\1'${MY_HOSTROOTDIR}/${PN}/system':" \ + -e "s:\(application_folder = \)'[^']\+':\1'${MY_HOSTROOTDIR}/${PN}/application':" \ + web/public/index.php || die + sed -i \ + -e "/require_once/s:'../:'${MY_HOSTROOTDIR}/${PN}/:" \ + web/config/autoload.php || die + sed -i \ + -e "1a\set_include_path(get_include_path() . PATH_SEPARATOR . APPPATH.'config');" \ + web/config/constants.php || die + + einfo "Installing web files" + insinto "${MY_HTDOCSDIR}" + doins -r web/public/* || die + + einfo "Creating configuration container" + dodir "/etc/agendav" + local f + for f in caldav database config ; do + cp web/config/${f}.php.template "${ED}"/etc/agendav/${f}.php || die + ln -s "${EPREFIX}"/etc/agendav/${f}.php web/config/${f}.php || die + done + + einfo "Installing main files" + insinto "${MY_HOSTROOTDIR}/${PN}" + doins -r web/{application,config,css_src,lang,system,templates_src,public} \ + || die + insinto "${MY_HOSTROOTDIR}/${PN}/application/libraries" + doins libs/icalcreator/*.php \ + libs/caldav-client/*.php \ + libs/awl/*.php \ + || die + dodir /usr/bin + cat > "${ED}"/usr/bin/agendavcli <<-EOF + #!/usr/bin/env bash + + exec php "${MY_HOSTROOTDIR}/${PN}/public/index.php" cli "\${@}" + EOF + chmod 755 "${ED}"/usr/bin/agendavcli + + einfo "Installing sql files" + insinto "${MY_SQLSCRIPTSDIR}" + doins -r sql/* || die + + webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt" + webapp_src_install +} diff --git a/www-apps/agendav/files/postinstall-en.txt b/www-apps/agendav/files/postinstall-en.txt new file mode 100644 index 000000000000..5301576c6498 --- /dev/null +++ b/www-apps/agendav/files/postinstall-en.txt @@ -0,0 +1,13 @@ +Next to a CalDAV server, you need access to a mysql or postgresql +database to use agendav. + +Read /usr/share/doc/www-apps/agendav-${PVR}/installation.rst.bz2 for +installation instructions of the database. This includes loading the +SQL statements from /usr/share/webapps/agendav/${PVR}/sqlscripts/. + +Next you have to edit all config files in /etc/agendav/. + +Before you can use agendav, you need to upgrade the database (even +though this is a new install) using: + + $ agendavcli dbupdate diff --git a/www-apps/agendav/metadata.xml b/www-apps/agendav/metadata.xml new file mode 100644 index 000000000000..33a49a010167 --- /dev/null +++ b/www-apps/agendav/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>grobian@gentoo.org</email> + <name>Fabian Groffen</name> + </maintainer> + <upstream> + <remote-id type="github">adobo/agendav</remote-id> + </upstream> +</pkgmetadata> |