summaryrefslogtreecommitdiff
path: root/www-apps/baikal
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/baikal')
-rw-r--r--www-apps/baikal/Manifest2
-rw-r--r--www-apps/baikal/baikal-0.8.0.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/www-apps/baikal/Manifest b/www-apps/baikal/Manifest
index 2c0100b3bfa7..68e0d79e546a 100644
--- a/www-apps/baikal/Manifest
+++ b/www-apps/baikal/Manifest
@@ -1,4 +1,6 @@
AUX postinstall-v0.7-en.txt 465 BLAKE2B adefd05b835bd3e27cc12137da53837dabd23790afe95fcc3e55e2dc1825342e96e2709c8d268fd0ec465b72faae7b5bd0fade0cb30fd0df2d8196bd49ae1e1b SHA512 8e532a5b229181cf32cc4a254688cc564a4a2dc80db64545fba0e093fa227a186a544b4dfc79c798e7d1021c1e01b7fb5f663f5b981082a32f6e6a0f98211df2
DIST baikal-0.7.2.zip 3602276 BLAKE2B 160c1b45944c897e368450da935850749e4dc5c6fdb9607dc6da926a0a05d63b4921193a31fbd64be0c9ddad336ac49f5fc49c23fca5bbb251adca8793265ba9 SHA512 df1fd10c5fb63e6aa89ae4b733eacf102b11f6322c3fa6007d0308574395389c0c6bfd62b7a0d358c54baaa96a5ccdb40bd509258a59e417617bea8d0b3d42a3
+DIST baikal-0.8.0.zip 3282996 BLAKE2B 102f6ce944804faad1032edaa8cac28f37b278a61de58fd3719e60d26bf9213c2e00965dc48476a1e47ae1710178e6cc494fc9da3af63d3f073ef5abed7d7da1 SHA512 8a43e6a88aaa8eded779db940d970afe9fb37606b9547cbf97d209a7ef54128d1c5f100de917b60362bf131b21f9e82613f482453974635a8e64c798513fd5c6
EBUILD baikal-0.7.2.ebuild 1611 BLAKE2B e16c29f176061b80ef1fc1860678e2c61e5be960c3a12f45feaf0d15a07fe35c58354435d5ff357743baa40e819d66ef776e3cc546574ac07a0268b703adad1a SHA512 37f44fc2e1f437c16271e6f4e60ed457515dc49bce7dd29c891198c7fabadf75e6cd7d9865f5801ab3b56758f141b7a72758a5b072ab7c855ff3cd9b145b93bb
+EBUILD baikal-0.8.0.ebuild 1611 BLAKE2B 5186ee750ffc63fc21320454002dc4900ca440dab419dd5f509c0ba2145810613b76d47acc08854b1a3592663d83c0737ce4bcc0a85c03138acc53ee6fe56bb0 SHA512 f62024469f004fb6b8874a4fe48badbf6ff043b4cb608c78ca02deb95e30840eb73219672e5ffbf32a6745518f1a1d8d44cf9e96abd43e55b7a3b767eec4700a
MISC metadata.xml 350 BLAKE2B 54198a366fda3ab711caceec25239a8402b5ba4bdb5cfb8fd29fd88442627c26101cbebdc6fd3175a2e716dcc64bf29fa85dc21022e6b3938b8a622aa8034056 SHA512 7f8682154f1e316f5f3be2ba4fe853793906abbb389a303ec7ef6ed14ff78b356a42b89e53e2f825670fafd96fc52ed69bcc3c9d6df130e2ff0b92515da0596f
diff --git a/www-apps/baikal/baikal-0.8.0.ebuild b/www-apps/baikal/baikal-0.8.0.ebuild
new file mode 100644
index 000000000000..bcc8eac313f6
--- /dev/null
+++ b/www-apps/baikal/baikal-0.8.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit webapp
+
+DESCRIPTION="Lightweight CalDAV+CardDAV server"
+HOMEPAGE="https://sabre.io/baikal/"
+SRC_URI="https://github.com/sabre-io/Baikal/releases/download/${PV}/${P}.zip"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~arm ~ppc64"
+IUSE="+mysql sqlite"
+REQUIRED_USE="|| ( mysql sqlite )"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=dev-lang/php-6[ctype,filter,json(+),pdo,session,xml,xmlreader,xmlwriter,mysql?,sqlite?]
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite )
+ virtual/httpd-php"
+
+S=${WORKDIR}/${PN}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc *.md
+
+ einfo "Installing web files"
+ insinto "${MY_HTDOCSDIR}"
+ doins -r html/* html/.htaccess Core vendor
+
+ einfo "Setting up container for configuration"
+ dodir /etc/${PN}
+
+ # setup config in /etc
+ # we are not allowed to use straight-forward absolute symlink :(
+ local root path htdocsdir=${MY_HTDOCSDIR%/}
+ while [[ -n ${htdocsdir} ]] ; do
+ root+="../"
+ htdocsdir=${htdocsdir%/*}
+ # trim duplicate slashes
+ while [[ ${htdocsdir} == */ ]] ; do
+ htdocsdir=${htdocsdir%/}
+ done
+ done
+ dosym ${root%/}/etc/${PN} "${MY_HTDOCSDIR}"/Specific
+ dosym ${root%/}/etc/${PN} "${MY_HTDOCSDIR}"/config
+ dosym . "${MY_HTDOCSDIR}"/html
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-v0.7-en.txt"
+ webapp_src_install
+
+ if has_version www-servers/apache ; then
+ fowners -R apache:apache /etc/${PN}
+ elif has_version www-servers/nginx ; then
+ fowners -R nginx:nginx /etc/${PN}
+ else
+ einfo "/etc/${PN} must be owned by the webserver user for baikal"
+ fi
+}