summaryrefslogtreecommitdiff
path: root/www-apps/davical
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/davical
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/davical')
-rw-r--r--www-apps/davical/Manifest16
-rw-r--r--www-apps/davical/davical-1.0.2-r2.ebuild70
-rw-r--r--www-apps/davical/davical-1.1.0-r1.ebuild71
-rw-r--r--www-apps/davical/davical-1.1.1-r2.ebuild69
-rw-r--r--www-apps/davical/davical-1.1.3.1-r2.ebuild71
-rw-r--r--www-apps/davical/files/awl-locations.patch93
-rw-r--r--www-apps/davical/files/awl_location.patch21
-rw-r--r--www-apps/davical/files/inc_path.patch28
-rw-r--r--www-apps/davical/files/postinstall-en.txt18
-rw-r--r--www-apps/davical/files/vhost-example16
-rw-r--r--www-apps/davical/metadata.xml8
11 files changed, 481 insertions, 0 deletions
diff --git a/www-apps/davical/Manifest b/www-apps/davical/Manifest
new file mode 100644
index 000000000000..2c8e543801b0
--- /dev/null
+++ b/www-apps/davical/Manifest
@@ -0,0 +1,16 @@
+AUX awl-locations.patch 2303 SHA256 8ec4c20da78172272718dd47ca95a673b98d679c8aa809abb5d6f8a28c7cc3e1 SHA512 38aca5e25ee3fa7c9d06ec9bb027a28ac175535657be1eb7dc160c95101588a182a1907109b4d4969b3e136a72e142a5b6a0d1734b5a7418a2418ba2f9ce3f5f WHIRLPOOL 55bc8a612cfede94a837a985b905f581b3e3a8f8df40fd588a721b3f4c06d1a8b45d7f7665686f76e2bcf82c7106ad089e615736b25febcf6aad81e68181cf18
+AUX awl_location.patch 1156 SHA256 67a0bc37c10a2468919e647953766b8121009c0f3d0eb17c08580987300a0219 SHA512 89a4599d4ef417cba923c2a5f35bbf0b3f6618d8beb344a2ae0ff42c564be2e040ed336f1d8bd8013eda48e77233cb25846d59716b486f441d78fc0d75739f44 WHIRLPOOL c96d02b2074ae5547ee8dc4a6ee8e8b12fef64b9d7949c1ff02f8551834037df58ee6eba40a2e011cfc2ac3f52e83a848cbb7b621ad527be6dfafaf0d278b10c
+AUX inc_path.patch 1418 SHA256 b0f4544639ce76b3cdcd032854bb94178580e12dd51cb9d8d5d6a1f29747a138 SHA512 f5f4019322627d32a1fa34251bc5cb5788103ff8048c11c000f034db3118154dd193fd510721cc664e6c492c23331fa2c13dbcddd00c00197dec9d63c4196fd3 WHIRLPOOL cf77f8a9f16b45a2e72c4589ccb1be65a387bab18d8a370c7b0efed289e462960cbf4db5348766e8ff632ceef3d97d1bdeb059e09224dbd87e03a0b8f721840b
+AUX postinstall-en.txt 730 SHA256 a8796e92aace5307fa6911a3019cd2f1f4baefb5bd4b90efedda5793967ceed1 SHA512 e77199c7978bf44f96b82dee6d7cf22e4a964f2bd48c17890add7ec0742a5f4c3a296bcb813f6ac79059e8b98b5c155a0846b00c3622ea708f6baf3895270de4 WHIRLPOOL 9c87177121fb9929201754ea84ba2a435c2b388a796473a35440f09c7f1b6c033f230423ecbb8acf9fdd8c2b9717acf9d2f72b2bcce136fb27d619f5f79d1a48
+AUX vhost-example 366 SHA256 3d1609ff3652814c00aeb33effdfca48a60698b8b5da4db7f97951807235b333 SHA512 a2fde5ad64445aee0936a4fe2c608f48ec8163c46949cccd98c1b36b548e769477d387fb82e065b6dade5277580ad43426264ce13dca614182db16a4951247b9 WHIRLPOOL 357e068c6f5fe1f785f130698fbb8ad530c154d13c5260e13dd3cd3cd8df50bc9eeb69ee1011953e482465bfbe7494b9b344fa7143128e2ec3f9b9f8da545b68
+DIST davical-1.0.2.tar.gz 2739740 SHA256 12633dfc22aeaef9807e347d2c8798f2a3af4b9dd712a8bb736511915b3b9da6 SHA512 8eb1df963b0e3aa87c28e75001c4301698abff74fd4581bdc826bfad8d8e1cd5aa0b641c668dbecc2f85ca8f3bca8ec9a508d268881da004cbb84017c2604dcb WHIRLPOOL 92c3e127659a818290f5d46b1c5818719174b0aee8a4f0b8e29f1ad39022d62b22f5840036d7ec6497c40dd05935ee37a7eba478e179e0baa5abc3723e392aa6
+DIST davical-1.1.0.tar.gz 2967572 SHA256 cc52f09c1f8706aa2b6d598b77ef0997b6e7ee31db1f1325864d705514505816 SHA512 5c272418b5c324d0ea4cbdd9c1124171ecd1fe1f3df4953569b02a47359469539205ff48e92aa19abaa667bb7c69f1b8b8196d79e549645009ac0b7bbddd7c18 WHIRLPOOL e224f62c4143d5c92387a346ec1ff14504b7892308d302a3f50d749725c58b8edbc23642640cd29b85e4095b4e3352242ccc25657cd4193f13e191a0ac894a24
+DIST davical-1.1.1.tar.gz 2979425 SHA256 09bd92a35d2730fe687f6801796d8da1090cb8e36c2910c056a01b00cb73cafc SHA512 6f0b2a13ba6698ea1a7d16988c795888820a08d125ac3d622b6c9fc21f831b698e8ce2c9c7ae25e64252f38502e473daabbd0626c5b2450646efb7cdb7f5b31e WHIRLPOOL 82e1a3530dd2247d46effd2df13554d3af2f2141d3c5efb7eb3cc1d514f8defc7a479ff47d135872ef712ae63d6a39ba4d65df14c2885ab2ca7b6510e6db23bf
+DIST davical-1.1.3.1.tar.gz 3031220 SHA256 4439c2df0052241b65c61eb4f0b10c406d93afd65a5cc6b523b597c0a7b05c15 SHA512 1944c4750799e9388adcaf1d5df6a2a5daccc34dd7274673a6b27cf0c32b2357d3cdd6d7c0928ea182408ce5111530f6b0e2eb6d882eb47ee1dcfa6eb8d4fe4b WHIRLPOOL d32252bef2c5f4d772a7d0744d8d6aaabbde2de2f3e259802c80242e5f87ecf5ed4ea965daa2c5ec134c214c46bbbfc1e234fcdbb23f507f6de1ed328d9f6934
+EBUILD davical-1.0.2-r2.ebuild 1524 SHA256 dc075ce4a3d731fc92a4eefa40525f5978d2427cabfcac4f7424a9ac17c7a2aa SHA512 a153225166179a94097083eeeff752728074a682a0eef566875a3e0ab5887fa5e670b5f35740f0264aab3cb65f97c685edab42c18ba7c3317f226aa32211b681 WHIRLPOOL 81a119a6b7ba75f3c8f3c38fd9f45591caf1860fb9bd7044dd537cc4f8af0472e8ea5f84cd39f278deb4b1d013e33cd8793c7a426400fe46be5202a840fa34dd
+EBUILD davical-1.1.0-r1.ebuild 1504 SHA256 d89fc8e2108f350836837e7a58cf8bbc1624aa3fc0961df4b2d3cc7dd803cd81 SHA512 516ba880869db947f76387a4e6d355dbe1392256901dd447840be61ac8fb1dde762f6b9166b2bea754e63f2d26f782dc40d50f56e893d873476de28ed42eabb1 WHIRLPOOL eb70e19a67a40ac3e1c9438d8594375c24c28e656cf641e16ba2237c6f2065e9087404041862faeefb22ea2d708de762ad12e146029d71ba2ea2f1ae7c072446
+EBUILD davical-1.1.1-r2.ebuild 1499 SHA256 c716da6e37896fea87ac95cff37422e8c0af8ce92b00cb48df0879df55560f95 SHA512 68373843aebb1da62840a1891cfa7cb6c6cb593d50e4dc48da25f925bd0657316a5553f14cc152b2a962d5394baf1a924fb4e37a2bc85b1806f35fe1824b10d8 WHIRLPOOL 036f8e12fb5a768c7644cbc79ae822c74c871fa591b96faa85520433f01de4c81befb25ce0900e4a24cad074d48370efd5907acafffe68a3e6f5211852cb5e9a
+EBUILD davical-1.1.3.1-r2.ebuild 1567 SHA256 a6c753a54f32f9b99088aabbd545cf38a749bc288e17f65f8c5c87b46f3a34ab SHA512 be1cefe42341c70c85480da6298f6cb9b80abf417d9e22de310473212db464284c62c8afb3d83965caea34c813e19da3ef76aba4df279b2fe8ca865178094aba WHIRLPOOL a2f86a4083f4df07a99b79422f2fafd38ef6016ade85db980c69a210b29ead3be64b800bba1006281fffbeb60e5f7eb094e5986894b9bc46ecd23927e0f3c965
+MISC ChangeLog 3477 SHA256 c56eeb8c319ff52e0c02d5341eae43130477707bb872493c8551e285fbc5171d SHA512 913a781a1a85b18406c5e3465e6a5c7c6d21ac8f09688dde85d6e1289462d900e5abcca4554cd850e6d496de202f6a7ba072a13eb6ea50688a6b6fd8b12caa6d WHIRLPOOL e1a700706cfb3a56ad2e834af4a6a5f38aa819eb76275ad2cf81b0cfd6336af3ff1a3a09ca2ebb967bd8de8bf2b3c2577149feb1c74441d331bbd89b403c6c91
+MISC ChangeLog-2015 7371 SHA256 604efeeef8726c4988ee15e6eeeca5229fa6e5af6351bc49520b044824012f7b SHA512 7ee54b0fd4bbfff65ac919d0dbb1eff0b888c3193000065ea98b95d09ba6e2d498d3102af41a00d754fd91d4f568361338f074614dc361fb747a9933b6e29459 WHIRLPOOL d565025f24a1303e1812710a943bdda12c46368c2483391f6e90bf3842d89a9ca3d1a28b3b04218767dfd72e3e0dbaf86c864776496756dda1171641ded45f90
+MISC metadata.xml 289 SHA256 b01d9209bd293f2ce11786f6061344eb427c5370bfcd0b20a3b97f3cd8e88375 SHA512 eb4947560bda57063dd746f397daafccc5d30e8aa694d75419a2dd4da56461fd6c82274c13e1ac01f8bad0d742c00f4116c20ceefe50f383988c9d12be27c90c WHIRLPOOL e8797141a6d561bf4750a69f8a92d9007579ef6271e134b5d429e0374d522f616a8a4beb5ff85333787880b0d1de3618b4f984a2c595dbc4e2e8f3b23be2da04
diff --git a/www-apps/davical/davical-1.0.2-r2.ebuild b/www-apps/davical/davical-1.0.2-r2.ebuild
new file mode 100644
index 000000000000..2705cea82653
--- /dev/null
+++ b/www-apps/davical/davical-1.0.2-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp eutils
+
+DESCRIPTION="A CalDAV and CardDAV Server"
+HOMEPAGE="http://davical.org/"
+SRC_URI="http://debian.mcmillan.net.nz/packages/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=dev-php/awl-0.51
+ sys-devel/gettext"
+RDEPEND="
+ app-admin/pwgen
+ dev-lang/php:*[calendar,curl,pdo,postgres,xml]
+ dev-perl/DBI
+ dev-perl/DBD-Pg
+ dev-perl/YAML
+ >=dev-php/awl-0.51
+ www-servers/apache"
+
+need_httpd
+
+src_prepare() {
+ epatch "${FILESDIR}/awl_location.patch"
+ epatch "${FILESDIR}/inc_path.patch"
+}
+
+src_compile() {
+ emake built-po
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc INSTALL README debian/README.Debian \
+ testing/README.regression_tests TODO debian/changelog
+
+ einfo "Installing web files"
+ insinto "${MY_HTDOCSDIR}"
+ doins -r htdocs/* htdocs/.htaccess
+
+ einfo "Installing main files and i18n"
+ insinto "${MY_HOSTROOTDIR}/${PN}"
+ doins -r inc locale || die "doins failed"
+ rm "${D}/${MY_HOSTROOTDIR}/${PN}/inc/always.php.in" || die
+
+ einfo "Installing sql files"
+ insinto "${MY_SQLSCRIPTSDIR}"
+ doins -r dba/*
+
+ if use doc ; then
+ einfo "Installing documentation"
+ dohtml -r docs/api/ docs/website/
+ fi
+
+ insinto /etc/${PN}
+ doins config/* "${FILESDIR}/vhost-example"
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+ webapp_src_install
+
+ fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
+ fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
+}
diff --git a/www-apps/davical/davical-1.1.0-r1.ebuild b/www-apps/davical/davical-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..43091254bcf5
--- /dev/null
+++ b/www-apps/davical/davical-1.1.0-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp eutils
+
+DESCRIPTION="A CalDAV and CardDAV Server"
+HOMEPAGE="http://davical.org/"
+SRC_URI="http://debian.mcmillan.net.nz/packages/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="
+ >=dev-php/awl-0.51
+ sys-devel/gettext
+ "
+RDEPEND="app-admin/pwgen
+ dev-lang/php:*[calendar,curl,pdo,postgres,xml]
+ dev-perl/DBI
+ dev-perl/DBD-Pg
+ dev-perl/YAML
+ >=dev-php/awl-0.51
+ www-servers/apache"
+
+need_httpd
+
+src_prepare() {
+ epatch "${FILESDIR}/awl_location.patch"
+ epatch "${FILESDIR}/inc_path.patch"
+}
+
+src_compile() {
+ emake built-po
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc INSTALL README debian/README.Debian \
+ testing/README.regression_tests TODO debian/changelog
+
+ einfo "Installing web files"
+ insinto "${MY_HTDOCSDIR}"
+ doins -r htdocs/* htdocs/.htaccess
+
+ einfo "Installing main files and i18n"
+ insinto "${MY_HOSTROOTDIR}/${PN}"
+ doins -r inc locale
+ rm "${D}/${MY_HOSTROOTDIR}/${PN}/inc/always.php.in" || die
+
+ einfo "Installing sql files"
+ insinto "${MY_SQLSCRIPTSDIR}"
+ doins -r dba/*
+
+ if use doc ; then
+ einfo "Installing documentation"
+ dohtml -r docs/api/ docs/website/
+ fi
+
+ insinto /etc/${PN}
+ doins config/* "${FILESDIR}/vhost-example"
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+ webapp_src_install
+
+ fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
+ fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
+}
diff --git a/www-apps/davical/davical-1.1.1-r2.ebuild b/www-apps/davical/davical-1.1.1-r2.ebuild
new file mode 100644
index 000000000000..0826a035786f
--- /dev/null
+++ b/www-apps/davical/davical-1.1.1-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp eutils
+
+DESCRIPTION="A CalDAV and CardDAV Server"
+HOMEPAGE="http://davical.org/"
+SRC_URI="http://debian.mcmillan.net.nz/packages/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=dev-php/awl-0.51
+ sys-devel/gettext"
+RDEPEND="app-admin/pwgen
+ dev-lang/php:*[calendar,curl,pdo,postgres,xml]
+ dev-perl/DBI
+ dev-perl/DBD-Pg
+ dev-perl/YAML
+ >=dev-php/awl-0.51
+ virtual/httpd-php"
+
+need_httpd
+
+src_prepare() {
+ epatch "${FILESDIR}/awl_location.patch"
+ epatch "${FILESDIR}/inc_path.patch"
+}
+
+src_compile() {
+ emake built-po
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc INSTALL README debian/README.Debian \
+ testing/README.regression_tests TODO debian/changelog
+
+ einfo "Installing web files"
+ insinto "${MY_HTDOCSDIR}"
+ doins -r htdocs/* htdocs/.htaccess
+
+ einfo "Installing main files and i18n"
+ insinto "${MY_HOSTROOTDIR}/${PN}"
+ doins -r inc locale
+ rm "${D}/${MY_HOSTROOTDIR}/${PN}/inc/always.php.in" || die
+
+ einfo "Installing sql files"
+ insinto "${MY_SQLSCRIPTSDIR}"
+ doins -r dba/*
+
+ if use doc ; then
+ einfo "Installing documentation"
+ dohtml -r docs/api/ docs/website/
+ fi
+
+ insinto /etc/${PN}
+ doins config/* "${FILESDIR}/vhost-example"
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+ webapp_src_install
+
+ fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
+ fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
+}
diff --git a/www-apps/davical/davical-1.1.3.1-r2.ebuild b/www-apps/davical/davical-1.1.3.1-r2.ebuild
new file mode 100644
index 000000000000..03ec48493ae8
--- /dev/null
+++ b/www-apps/davical/davical-1.1.3.1-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp eutils
+
+DESCRIPTION="A CalDAV and CardDAV Server"
+HOMEPAGE="http://davical.org/"
+SRC_URI="https://gitlab.com/${PN}-project/${PN}/repository/archive.tar.gz?ref=r${PV} -> ${PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=dev-php/awl-0.55
+ sys-devel/gettext"
+RDEPEND="app-admin/pwgen
+ dev-lang/php:*[calendar,curl,pdo,postgres,xml]
+ dev-perl/DBI
+ dev-perl/DBD-Pg
+ dev-perl/YAML
+ >=dev-php/awl-0.55
+ virtual/httpd-php"
+
+S="${WORKDIR}/${PN}.git"
+
+need_httpd
+
+src_prepare() {
+ epatch "${FILESDIR}/awl-locations.patch"
+ epatch "${FILESDIR}/inc_path.patch"
+}
+
+src_compile() {
+ emake built-po
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc INSTALL README debian/README.Debian \
+ testing/README.regression_tests TODO debian/changelog
+
+ einfo "Installing web files"
+ insinto "${MY_HTDOCSDIR}"
+ doins -r htdocs/* htdocs/.htaccess
+
+ einfo "Installing main files and i18n"
+ insinto "${MY_HOSTROOTDIR}/${PN}"
+ doins -r inc locale
+ rm "${D}/${MY_HOSTROOTDIR}/${PN}/inc/always.php.in" || die
+
+ einfo "Installing sql files"
+ insinto "${MY_SQLSCRIPTSDIR}"
+ doins -r dba/*
+
+ if use doc ; then
+ einfo "Installing documentation"
+ dohtml -r docs/api/ docs/website/
+ fi
+
+ insinto /etc/${PN}
+ doins config/* "${FILESDIR}/vhost-example"
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+ webapp_src_install
+
+ fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
+ fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
+}
diff --git a/www-apps/davical/files/awl-locations.patch b/www-apps/davical/files/awl-locations.patch
new file mode 100644
index 000000000000..e0105bffbd2f
--- /dev/null
+++ b/www-apps/davical/files/awl-locations.patch
@@ -0,0 +1,93 @@
+diff --git a/dba/create-database.sh b/dba/create-database.sh
+index b1dd1fa..d25f9d9 100755
+--- a/dba/create-database.sh
++++ b/dba/create-database.sh
+@@ -10,22 +10,29 @@ DBADIR="`dirname \"$0\"`"
+
+ INSTALL_NOTE_FN="`mktemp -t tmp.XXXXXXXXXX`"
+
+-testawldir() {
+- [ -f "${1}/dba/awl-tables.sql" ]
+-}
+
+-#
+-# Attempt to locate the AWL directory
+-AWLDIR="${DBADIR}/../../awl"
+-if ! testawldir "${AWLDIR}"; then
+- AWLDIR="/usr/share/awl"
+- if ! testawldir "${AWLDIR}"; then
+- AWLDIR="/usr/local/share/awl"
+- if ! testawldir "${AWLDIR}"; then
+- echo "Unable to find AWL libraries"
+- exit 1
++# Candidate locations of the AWL directory
++awldirs="${DBADIR}/../../awl
++/usr/share/awl
++/usr/share/php/awl
++/usr/local/share/awl"
++
++# Disable globbing and use newline as seperator
++set -f; IFS='
++'
++for d in $awldirs ; do
++ if [ -f "${d}/dba/awl-tables.sql" ] ; then
++ AWLDIR="${d}"
++ break
+ fi
+- fi
++done
++
++# Renable file globbing and reset seperator
++set +f; unset IFS
++
++if [ -z "${AWLDIR}" ] ; then
++ echo "Unable to find AWL libraries"
++ exit 1
+ fi
+
+ export AWL_DBAUSER=davical_dba
+diff --git a/scripts/po/rebuild-translations.sh b/scripts/po/rebuild-translations.sh
+index 7191615..809fa8c 100755
+--- a/scripts/po/rebuild-translations.sh
++++ b/scripts/po/rebuild-translations.sh
+@@ -10,17 +10,30 @@
+ PODIR="po"
+ LOCALEDIR="locale"
+ APPLICATION="davical"
+-AWL_LOCATION="../awl"
+-
+-if [ ! -d "${AWL_LOCATION}" ]; then
+- AWL_LOCATION="`find .. -type d -name 'awl-*.*'`"
+- if [ ! -d "${AWL_LOCATION}" ]; then
+- AWL_LOCATION=/usr/share/awl
+- if [ ! -d "${AWL_LOCATION}" ]; then
+- echo "I can't find a location for the AWL libraries and I need those strings too"
+- exit 1
++
++awldirs="../awl
++`find .. -type d -name 'awl-*.*'`
++/usr/share/awl
++/usr/share/php/awl
++/usr/local/share/awl"
++
++# Disable globbing and use newline as seperator
++set -f; IFS='
++'
++
++for d in $awldirs ; do
++ if [ -d "${d}" ] ; then
++ AWL_LOCATION="${d}"
++ break
+ fi
+- fi
++done
++
++# Renable file globbing and reset seperator
++set +f; unset IFS
++
++if [ -z "${AWL_LOCATION}" ] ; then
++ echo "I can't find a location for the AWL libraries and I need those strings too"
++ exit 1
+ fi
+
+ egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1
diff --git a/www-apps/davical/files/awl_location.patch b/www-apps/davical/files/awl_location.patch
new file mode 100644
index 000000000000..7eee3d8fcfb8
--- /dev/null
+++ b/www-apps/davical/files/awl_location.patch
@@ -0,0 +1,21 @@
+--- scripts/po/rebuild-translations.sh.orig 2011-09-29 21:23:48.122625252 +0200
++++ scripts/po/rebuild-translations.sh 2011-09-29 21:49:55.642929743 +0200
+@@ -10,7 +10,7 @@
+ PODIR="po"
+ LOCALEDIR="locale"
+ APPLICATION="davical"
+-AWL_LOCATION="../awl"
++AWL_LOCATION="/usr/share/php/awl/inc"
+
+ if [ ! -d "${AWL_LOCATION}" ]; then
+ AWL_LOCATION="`find .. -type d -name 'awl-*.*'`"
+@@ -25,7 +25,8 @@
+
+ egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1
+ sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1
+-sort ${PODIR}/pofilelist.tmp1 | uniq > ${PODIR}/pofilelist.tmp
++sed "s:/awl/inc/:/awl/:" ${PODIR}/pofilelist.tmp1 >> ${PODIR}/pofilelist.tmp2
++sort ${PODIR}/pofilelist.tmp2 | uniq > ${PODIR}/pofilelist.tmp
+ xgettext --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp
+ sed 's.^"Content-Type: text/plain; charset=CHARSET\\n"."Content-Type: text/plain; charset=UTF-8\\n".' ${PODIR}/messages.tmp > ${PODIR}/messages.pot
+ rm ${PODIR}/messages.tmp ${PODIR}/pofilelist.tmp ${PODIR}/pofilelist.tmp1
diff --git a/www-apps/davical/files/inc_path.patch b/www-apps/davical/files/inc_path.patch
new file mode 100644
index 000000000000..2230249df0f9
--- /dev/null
+++ b/www-apps/davical/files/inc_path.patch
@@ -0,0 +1,28 @@
+--- htdocs/always.php.orig 2012-01-05 21:28:16.382878446 +0100
++++ htdocs/always.php 2012-01-05 21:30:06.828431957 +0100
+@@ -48,7 +48,7 @@
+ // $c->default_locale = array('es_MX', 'es_AR', 'es', 'pt'); // An array of locales to try, or just a single locale
+ // $c->local_tzid = 'Pacific/Auckland'; // Perhaps we should read from /etc/timezone - I wonder how standard that is?
+ $c->default_locale = 'en';
+-$c->locale_path = '../locale';
++$c->locale_path = '../../davical/locale';
+ $c->base_url = preg_replace('#/[^/]+\.php.*$#', '', $_SERVER['SCRIPT_NAME']);
+ $c->base_directory = preg_replace('#/[^/]*$#', '', $_SERVER['DOCUMENT_ROOT']);
+ $c->default_privileges = array('read-free-busy', 'schedule-deliver');
+@@ -80,6 +80,7 @@
+ '../../awl/inc'
+ , '/usr/share/awl/inc' // Where it ends up on Debian
+ , '/usr/share/php/awl/inc' // Fedora's standard for PHP libraries
++ , '/usr/share/php5/awl/inc' // Gentoo's standard for PHP5 libraries
+ , '/usr/local/share/awl/inc'
+ );
+ foreach( $try_paths AS $awl_include_path ) {
+@@ -95,7 +96,7 @@
+ }
+
+ // Ensure that ../inc is in our included paths as early as possible
+-set_include_path( '../inc'. PATH_SEPARATOR. get_include_path());
++set_include_path( '../../davical/inc'. PATH_SEPARATOR. get_include_path());
+
+
+ /** We actually discovered this and worked around it earlier, but we can't log it until the utilties are loaded */
diff --git a/www-apps/davical/files/postinstall-en.txt b/www-apps/davical/files/postinstall-en.txt
new file mode 100644
index 000000000000..5a88a2bdf2e4
--- /dev/null
+++ b/www-apps/davical/files/postinstall-en.txt
@@ -0,0 +1,18 @@
+You will need access to postgresql database to use davical.
+
+Read /usr/share/doc/www-apps/davical-${PVR}/INSTALL.gz for installation
+instructions.
+Release notes are available at
+http://wiki.davical.org/w/Release_Notes/${PVR}.
+Full documentation and wiki on http://davical.org
+
+If you are upgrading from a previous version of davical, don't forget to
+upgrade the database structure with
+ cd /usr/share/webapps/davical/${PVR}/sqlscripts/
+ ./update-davical-database -dbuser xxxxxxx -appuser xxxxxx
+
+You can safely ignore any message about missing time_zone table.
+
+If you are upgrading from a version <= 0.9.8.4 please note inc/ and locale/
+have been moved away from the htdocs directory and placed into hostroot for
+safety reasons.
diff --git a/www-apps/davical/files/vhost-example b/www-apps/davical/files/vhost-example
new file mode 100644
index 000000000000..d6f0da2088cf
--- /dev/null
+++ b/www-apps/davical/files/vhost-example
@@ -0,0 +1,16 @@
+<VirtualHost 123.4.56.78 >
+ ServerName davical.example.net
+
+ DocumentRoot /var/www/myvhost/htdocs
+
+ <Directory /var/www/myvhost/htdocs/>
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ php_value magic_quotes_gpc 0
+ php_value register_globals 0
+ php_value error_reporting "E_ALL & ~E_NOTICE"
+ php_value default_charset "utf-8"
+</VirtualHost>
diff --git a/www-apps/davical/metadata.xml b/www-apps/davical/metadata.xml
new file mode 100644
index 000000000000..a7029b1a1086
--- /dev/null
+++ b/www-apps/davical/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 type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>