summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2013-03-25 19:13:46 +0000
committerFabian Groffen <grobian@gentoo.org>2013-03-25 19:13:46 +0000
commit9cd992b3c4d468fa2002986bbf653b9d1cfc3fb2 (patch)
treece17ed93ea962406b80f8e7676a26dd29b0db648 /www-apps
parentInitial version, ebuild by me (diff)
downloadhistorical-9cd992b3c4d468fa2002986bbf653b9d1cfc3fb2.tar.gz
historical-9cd992b3c4d468fa2002986bbf653b9d1cfc3fb2.tar.bz2
historical-9cd992b3c4d468fa2002986bbf653b9d1cfc3fb2.zip
Initial version, ebuild by me
Package-Manager: portage-2.2.0_alpha169/cvs/Linux x86_64
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/agendav/Manifest3
-rw-r--r--www-apps/agendav/agendav-1.2.6.2.ebuild82
-rw-r--r--www-apps/agendav/files/postinstall-en.txt13
-rw-r--r--www-apps/agendav/metadata.xml8
4 files changed, 105 insertions, 1 deletions
diff --git a/www-apps/agendav/Manifest b/www-apps/agendav/Manifest
index d3b720c5102c..005d8a10f2df 100644
--- a/www-apps/agendav/Manifest
+++ b/www-apps/agendav/Manifest
@@ -1,4 +1,5 @@
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 2192 SHA256 3c1bc67176f6d6a5dd4d39634f968ec2d3165e0cc7258c5333cd4eb01802adcd SHA512 49a16ca01b181da23f5449d95d928cda8310a4fc7cf4b598b4b038077dcb3dc1379c4811be7473bf17618f1eb6c9916336a3055705ce07ded8b1d2827e2e77ee WHIRLPOOL d7cd77fca6ee68a65b1123e048a6e04eb1e0cb63e95b9ecb92b6d874c28f7f1e41814a3f8e55f858f6efb8e48381a4a67830ecd2d9c9e017c76e93b06dd72bf7
+EBUILD agendav-1.2.6.2.ebuild 2294 SHA256 bd98bb38ded4e63fe2ccbcd394b18e616bb66d36f9ed6546e825769c29cc4831 SHA512 ae0ca20f5af07ceabbd7669f989566231a11a9223fc6a31871d0bb834dd5e45aeef65c77cdb27d424a4637e8ab3ee2f2097c270f6f351661113cf0d66c04809b WHIRLPOOL 712992e45606c7b23187dd8bf2c30cba27bc86722d340dea63317d2ac53e25363067aaf0f969f5d7bb9518be137126dbd33471f5af267e2fbdbf5f0daf667dfb
+MISC ChangeLog 390 SHA256 db739a77d991ac01419fb1825866d2104d8b6a4e2b1bc2030828bd48fd419c56 SHA512 3cedcbb81ff5f081d6f301b4e0721496cfc5ce584fe534da6cb832dfc052630ee9667688cab59d4bee1d4f722153bcf97ce16070536a21b54abe0d86846b7917 WHIRLPOOL f20d0ec98f473cf0e4bd0fb0dfd35e66177b4439fd6f8d9a14617cf8849e5a439691f9b478b412ae78612e270925074c5f3d18412c15ff4a73bfb0551582cb5f
MISC metadata.xml 234 SHA256 1decd69feb1804dfd01fda996933fd2cd426eb16851b72f40b30b73f5cca7762 SHA512 7af21366d273b8166d7d20a7061e5fb19bad4ece55e2631d28196fa8dd35c16fdac21e5dde36c2f71f215d6e21774d078da9ce27f7d398ec37e5bf7950b385ee WHIRLPOOL 22f8437821a129afd883769051cb4cfdd3a56590e45281f032044bfc5eb641f272f2a08f6d0c6d0b477078c1aeef506857d6ed78352a57e09862c2f04ef33709
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..9ee31e6c0b8d
--- /dev/null
+++ b/www-apps/agendav/agendav-1.2.6.2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/agendav/agendav-1.2.6.2.ebuild,v 1.1 2013/03/25 19:13:42 grobian Exp $
+
+EAPI="5"
+
+inherit depend.php 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
+ || ( >dev-db/mysql-5.1 >=dev-db/postgresql-8.1 )"
+
+need_php5
+need_httpd
+
+S=${WORKDIR}/adobo-${PN}-84f869e
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc-php \
+ 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..263de02a5e77
--- /dev/null
+++ b/www-apps/agendav/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>grobian@gentoo.org</email>
+ <name>Fabian Groffen</name>
+ </maintainer>
+</pkgmetadata>