www-apps/davical: bump to version 1.1.9.3
authorTill Schäfer <till2.schaefer@uni-dortmund.de>
Tue, 21 Apr 2020 14:43:06 +0000 (16:43 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 23 Apr 2020 07:41:06 +0000 (10:41 +0300)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Till Schäfer <till2.schaefer@uni-dortmund.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
www-apps/davical/Manifest
www-apps/davical/davical-1.1.9.3.ebuild [new file with mode: 0644]

index e1b7f4932355dc4ee3526c5d92d3f63128d989b4..4e2700a7f98aad5b54535126a697033d5884c965 100644 (file)
@@ -1 +1,2 @@
 DIST davical-1.1.9.2.tar.xz 1359636 BLAKE2B 6161e98dc4683310ec51ca1272f4869dd56711f6bd2f3aadf4481c847056c060a7d2811368587aea42377ff27ccdbaf0095d4fd915aec7c5b766fd7e073d25ef SHA512 025f6600fde809ef95708197e62523b400e06a187461221a4fa86326ebef2452857b1d433c25b0b50ee56df89040aec733fc597d8f966ab22720a8ce38a0f5b2
+DIST davical-1.1.9.3.tar.xz 1359608 BLAKE2B d936fa5809413eac92e996262074972a04e1ac2d50d06c921e0f70468dde2b67175c6463d73ead09d5b2bce4ab1c2a02ccb45b64ee43066f6a9609c5ccdd01ee SHA512 cad28a991900d4cd9b1f86aeda7861482eef8707a02a371af53bd9cd17f9b5417ae81ccf1129d01fa5786f7bc9edc7478eb5a7274147039ce3ef603874c093a6
diff --git a/www-apps/davical/davical-1.1.9.3.ebuild b/www-apps/davical/davical-1.1.9.3.ebuild
new file mode 100644 (file)
index 0000000..4df670a
--- /dev/null
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit webapp
+
+DESCRIPTION="A CalDAV and CardDAV Server"
+HOMEPAGE="https://www.davical.org/"
+SRC_URI="https://www.davical.org/downloads/${PN}_${PV}.orig.tar.xz -> ${P}.tar.xz"
+
+LICENSE="GPL-2 GPL-2+ GPL-3+ LGPL-2.1+ LGPL-3+"
+KEYWORDS="~amd64 ~x86"
+IUSE="ldap"
+
+BDEPEND="sys-devel/gettext"
+
+RDEPEND="app-admin/pwgen
+       dev-lang/php:*[calendar,curl,iconv,imap,ldap?,nls,pdo,postgres,xml]
+       dev-perl/DBD-Pg
+       dev-perl/DBI
+       dev-perl/YAML
+       >=dev-php/awl-0.61
+       virtual/httpd-php"
+
+need_httpd
+
+S="${WORKDIR}"
+
+src_compile() {
+       emake built-locale
+}
+
+src_install() {
+       webapp_src_preinst
+
+       einstalldocs
+
+       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 "${ED}/${MY_HOSTROOTDIR}/${PN}/inc/always.php.in" || die
+
+       einfo "Installing sql files"
+       insinto "${MY_SQLSCRIPTSDIR}"
+       doins -r dba/.
+
+       insinto /etc/${PN}
+       doins -r config/. "${FILESDIR}/vhost-example"
+
+       webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+       webapp_postupgrade_txt en "${FILESDIR}/postupgrade-en.txt"
+       webapp_src_install
+
+       fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
+       fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
+}
+
+pkg_postinst() {
+       elog "If you are upgrading from a previous version of davical, don't forget to"
+       elog "upgrade the database structure with"
+       elog "       cd /usr/share/webapps/davical/${PVR}/sqlscripts/"
+       elog "       ./update-davical-database -dbuser xxxxxxx -appuser xxxxxx"
+
+       webapp_pkg_postinst
+}