Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/baikal/
Date: Sun, 28 Apr 2019 13:04:48
Message-Id: 1556456677.908cf5b080d4707c6cac34c8dfa8f0ca3838bca4.grobian@gentoo
1 commit: 908cf5b080d4707c6cac34c8dfa8f0ca3838bca4
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 13:04:20 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 13:04:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=908cf5b0
7
8 www-apps/baikal: version bump to v0.5.2
9
10 Closes: https://bugs.gentoo.org/684168
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12 Package-Manager: Portage-2.3.62, Repoman-2.3.11
13
14 www-apps/baikal/Manifest | 1 +
15 www-apps/baikal/baikal-0.5.2.ebuild | 56 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 57 insertions(+)
17
18 diff --git a/www-apps/baikal/Manifest b/www-apps/baikal/Manifest
19 index cbef3174258..1429520dd25 100644
20 --- a/www-apps/baikal/Manifest
21 +++ b/www-apps/baikal/Manifest
22 @@ -1 +1,2 @@
23 DIST baikal-0.4.6.zip 3288478 BLAKE2B e841c405e59808411999475431e79945a00f2de33228d6a46812acca03b742c1c23349c59d6501b0a1b39587030047682fbc92ead54565766f81a19ee76efdc0 SHA512 8cb4141deb4233858764e6bd0eb44691c5e31677dd6dde09e8249675a331115af8bbcf181c4371338165a0ef40f894dfc4ed0502b46a6bc8387924f6a65725a1
24 +DIST baikal-0.5.2.zip 3426025 BLAKE2B ac13b42a3eab54e43761bd0ad958208b692919a61908a6467e710a045c6568e9ae616a54c6910b6828c4499b3f815bd96b9bee12608637b64182238725e21922 SHA512 58dd9e231840a76582a70abca89c8f73f1a26f06855eff6949ebca526a22d23bc06f281f51611aeb7f0cf8334c0ad490cfea962905e985d6c75e78e1c1d47e63
25
26 diff --git a/www-apps/baikal/baikal-0.5.2.ebuild b/www-apps/baikal/baikal-0.5.2.ebuild
27 new file mode 100644
28 index 00000000000..d3948e73b41
29 --- /dev/null
30 +++ b/www-apps/baikal/baikal-0.5.2.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit webapp
38 +
39 +DESCRIPTION="Lightweight CalDAV+CardDAV server"
40 +HOMEPAGE="http://sabre.io/baikal/"
41 +SRC_URI="https://github.com/sabre-io/Baikal/releases/download/${PV}/${P}.zip"
42 +
43 +LICENSE="GPL-3"
44 +KEYWORDS="~amd64 ~arm ~ppc64"
45 +IUSE="+mysql sqlite"
46 +REQUIRED_USE="|| ( mysql sqlite )"
47 +
48 +RDEPEND=">=dev-lang/php-5.5[ctype,filter,json,pdo,session,xml,xmlreader,xmlwriter,mysql?,sqlite?]
49 + mysql? ( virtual/mysql )
50 + sqlite? ( dev-db/sqlite )
51 + virtual/httpd-php"
52 +
53 +S=${WORKDIR}/${PN}
54 +
55 +src_install() {
56 + webapp_src_preinst
57 +
58 + dodoc *.md || die "dodoc failed"
59 +
60 + einfo "Installing web files"
61 + insinto "${MY_HTDOCSDIR}"
62 + doins -r html/* html/.htaccess Core vendor || die "doins failed"
63 +
64 + einfo "Setting up container for configuration"
65 + insinto /etc/${PN}
66 +
67 + einfo "Fixing symlinks"
68 + local link target
69 + find "${D}${MY_HTDOCSDIR}" -type l | while read link ; do
70 + target=$(readlink "${link}")
71 + target=${target/..\/Core/Core}
72 + rm "${link}" && ln -s "${target}" "${link}"
73 + done
74 + dosym /etc/${PN} "${MY_HTDOCSDIR}"/Specific
75 + dosym . "${MY_HTDOCSDIR}"/html
76 +
77 + webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
78 + webapp_src_install
79 +
80 + if has_version www-servers/apache ; then
81 + fowners -R apache:apache /etc/${PN}
82 + elif has_version www-servers/nginx ; then
83 + fowners -R nginx:nginx /etc/${PN}
84 + else
85 + einfo "/etc/${PN} must be owned by the webserver user for baikal"
86 + fi
87 +}