1 |
commit: 8fe186fb28adeee5db505c141c5aed04d3e47013 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 7 09:20:02 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 7 09:20:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fe186fb |
7 |
|
8 |
www-apps/baikal-0.8.0: version bump, bug #821169 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/821169 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
www-apps/baikal/Manifest | 1 + |
15 |
www-apps/baikal/baikal-0.8.0.ebuild | 62 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 63 insertions(+) |
17 |
|
18 |
diff --git a/www-apps/baikal/Manifest b/www-apps/baikal/Manifest |
19 |
index de22ead2efac..1bdb0a8d5eca 100644 |
20 |
--- a/www-apps/baikal/Manifest |
21 |
+++ b/www-apps/baikal/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST baikal-0.7.2.zip 3602276 BLAKE2B 160c1b45944c897e368450da935850749e4dc5c6fdb9607dc6da926a0a05d63b4921193a31fbd64be0c9ddad336ac49f5fc49c23fca5bbb251adca8793265ba9 SHA512 df1fd10c5fb63e6aa89ae4b733eacf102b11f6322c3fa6007d0308574395389c0c6bfd62b7a0d358c54baaa96a5ccdb40bd509258a59e417617bea8d0b3d42a3 |
24 |
+DIST baikal-0.8.0.zip 3282996 BLAKE2B 102f6ce944804faad1032edaa8cac28f37b278a61de58fd3719e60d26bf9213c2e00965dc48476a1e47ae1710178e6cc494fc9da3af63d3f073ef5abed7d7da1 SHA512 8a43e6a88aaa8eded779db940d970afe9fb37606b9547cbf97d209a7ef54128d1c5f100de917b60362bf131b21f9e82613f482453974635a8e64c798513fd5c6 |
25 |
|
26 |
diff --git a/www-apps/baikal/baikal-0.8.0.ebuild b/www-apps/baikal/baikal-0.8.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..bcc8eac313f6 |
29 |
--- /dev/null |
30 |
+++ b/www-apps/baikal/baikal-0.8.0.ebuild |
31 |
@@ -0,0 +1,62 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+inherit webapp |
38 |
+ |
39 |
+DESCRIPTION="Lightweight CalDAV+CardDAV server" |
40 |
+HOMEPAGE="https://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 |
+DEPEND="app-arch/unzip" |
49 |
+RDEPEND=">=dev-lang/php-6[ctype,filter,json(+),pdo,session,xml,xmlreader,xmlwriter,mysql?,sqlite?] |
50 |
+ mysql? ( virtual/mysql ) |
51 |
+ sqlite? ( dev-db/sqlite ) |
52 |
+ virtual/httpd-php" |
53 |
+ |
54 |
+S=${WORKDIR}/${PN} |
55 |
+ |
56 |
+src_install() { |
57 |
+ webapp_src_preinst |
58 |
+ |
59 |
+ dodoc *.md |
60 |
+ |
61 |
+ einfo "Installing web files" |
62 |
+ insinto "${MY_HTDOCSDIR}" |
63 |
+ doins -r html/* html/.htaccess Core vendor |
64 |
+ |
65 |
+ einfo "Setting up container for configuration" |
66 |
+ dodir /etc/${PN} |
67 |
+ |
68 |
+ # setup config in /etc |
69 |
+ # we are not allowed to use straight-forward absolute symlink :( |
70 |
+ local root path htdocsdir=${MY_HTDOCSDIR%/} |
71 |
+ while [[ -n ${htdocsdir} ]] ; do |
72 |
+ root+="../" |
73 |
+ htdocsdir=${htdocsdir%/*} |
74 |
+ # trim duplicate slashes |
75 |
+ while [[ ${htdocsdir} == */ ]] ; do |
76 |
+ htdocsdir=${htdocsdir%/} |
77 |
+ done |
78 |
+ done |
79 |
+ dosym ${root%/}/etc/${PN} "${MY_HTDOCSDIR}"/Specific |
80 |
+ dosym ${root%/}/etc/${PN} "${MY_HTDOCSDIR}"/config |
81 |
+ dosym . "${MY_HTDOCSDIR}"/html |
82 |
+ |
83 |
+ webapp_postinst_txt en "${FILESDIR}/postinstall-v0.7-en.txt" |
84 |
+ webapp_src_install |
85 |
+ |
86 |
+ if has_version www-servers/apache ; then |
87 |
+ fowners -R apache:apache /etc/${PN} |
88 |
+ elif has_version www-servers/nginx ; then |
89 |
+ fowners -R nginx:nginx /etc/${PN} |
90 |
+ else |
91 |
+ einfo "/etc/${PN} must be owned by the webserver user for baikal" |
92 |
+ fi |
93 |
+} |