1 |
commit: fbec7d7c7443c5401724296f8cada5c22bf2934d |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 8 19:04:50 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 8 19:04:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbec7d7c |
7 |
|
8 |
www-apps/baikal-0.9.1: version bump |
9 |
|
10 |
Bug: 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.9.1.ebuild | 62 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 63 insertions(+) |
17 |
|
18 |
diff --git a/www-apps/baikal/Manifest b/www-apps/baikal/Manifest |
19 |
index 1bdb0a8d5eca..e9c09cbea3e8 100644 |
20 |
--- a/www-apps/baikal/Manifest |
21 |
+++ b/www-apps/baikal/Manifest |
22 |
@@ -1,2 +1,3 @@ |
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 |
+DIST baikal-0.9.1.zip 2981404 BLAKE2B 65eecd989f8b903bea35e8a4bf1be83eb322aecc13460370712ddc36420215d3facbc2161069b3c9d451ec74d8f2d336aba4c06f528eac35ebb243fb47cde00d SHA512 28a08eb701bdd5a752675bdb05a233b77310a8b024ec1452b548be231a610dd17d5871664cf689054657fd849742a9debe0ba0de92272c3ac3f2568c49d8af70 |
26 |
|
27 |
diff --git a/www-apps/baikal/baikal-0.9.1.ebuild b/www-apps/baikal/baikal-0.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..bcc8eac313f6 |
30 |
--- /dev/null |
31 |
+++ b/www-apps/baikal/baikal-0.9.1.ebuild |
32 |
@@ -0,0 +1,62 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+inherit webapp |
39 |
+ |
40 |
+DESCRIPTION="Lightweight CalDAV+CardDAV server" |
41 |
+HOMEPAGE="https://sabre.io/baikal/" |
42 |
+SRC_URI="https://github.com/sabre-io/Baikal/releases/download/${PV}/${P}.zip" |
43 |
+ |
44 |
+LICENSE="GPL-3" |
45 |
+KEYWORDS="~amd64 ~arm ~ppc64" |
46 |
+IUSE="+mysql sqlite" |
47 |
+REQUIRED_USE="|| ( mysql sqlite )" |
48 |
+ |
49 |
+DEPEND="app-arch/unzip" |
50 |
+RDEPEND=">=dev-lang/php-6[ctype,filter,json(+),pdo,session,xml,xmlreader,xmlwriter,mysql?,sqlite?] |
51 |
+ mysql? ( virtual/mysql ) |
52 |
+ sqlite? ( dev-db/sqlite ) |
53 |
+ virtual/httpd-php" |
54 |
+ |
55 |
+S=${WORKDIR}/${PN} |
56 |
+ |
57 |
+src_install() { |
58 |
+ webapp_src_preinst |
59 |
+ |
60 |
+ dodoc *.md |
61 |
+ |
62 |
+ einfo "Installing web files" |
63 |
+ insinto "${MY_HTDOCSDIR}" |
64 |
+ doins -r html/* html/.htaccess Core vendor |
65 |
+ |
66 |
+ einfo "Setting up container for configuration" |
67 |
+ dodir /etc/${PN} |
68 |
+ |
69 |
+ # setup config in /etc |
70 |
+ # we are not allowed to use straight-forward absolute symlink :( |
71 |
+ local root path htdocsdir=${MY_HTDOCSDIR%/} |
72 |
+ while [[ -n ${htdocsdir} ]] ; do |
73 |
+ root+="../" |
74 |
+ htdocsdir=${htdocsdir%/*} |
75 |
+ # trim duplicate slashes |
76 |
+ while [[ ${htdocsdir} == */ ]] ; do |
77 |
+ htdocsdir=${htdocsdir%/} |
78 |
+ done |
79 |
+ done |
80 |
+ dosym ${root%/}/etc/${PN} "${MY_HTDOCSDIR}"/Specific |
81 |
+ dosym ${root%/}/etc/${PN} "${MY_HTDOCSDIR}"/config |
82 |
+ dosym . "${MY_HTDOCSDIR}"/html |
83 |
+ |
84 |
+ webapp_postinst_txt en "${FILESDIR}/postinstall-v0.7-en.txt" |
85 |
+ webapp_src_install |
86 |
+ |
87 |
+ if has_version www-servers/apache ; then |
88 |
+ fowners -R apache:apache /etc/${PN} |
89 |
+ elif has_version www-servers/nginx ; then |
90 |
+ fowners -R nginx:nginx /etc/${PN} |
91 |
+ else |
92 |
+ einfo "/etc/${PN} must be owned by the webserver user for baikal" |
93 |
+ fi |
94 |
+} |