new ebuild: www-apps/opencloud-bin-8.1.0

This commit is contained in:
2026-10-18 11:55:03 +00:00
parent 8aeb632248
commit 891423360e
3 changed files with 87 additions and 0 deletions
@@ -0,0 +1,45 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shell-completion
DESCRIPTION="Opencloud - platform for file management, sharing and collaboration"
HOMEPAGE="https://opencloud.eu https://github.com/opencloud-eu/opencloud"
SRC_URI="https://github.com/opencloud-eu/opencloud/releases/download/v${PV}/opencloud-${PV}-linux-amd64"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_unpack() {
mkdir -p ${S}
cp "${DISTDIR}/opencloud-${PV}-linux-amd64" "${S}/opencloud"
}
src_compile() { :; }
src_install() {
dobin opencloud
# create default config
${D}/usr/bin/opencloud init --config-path ${S} --insecure no
insinto /etc/opencloud
doins opencloud.yaml
keepdir /var/log/opencloud
newinitd ${FILESDIR}/initd opencloud
# install completions
${D}/usr/bin/opencloud completion bash > opencloud
dobashcomp opencloud
${D}/usr/bin/opencloud completion fish > opencloud.fish
dofishcomp opencloud.fish
${D}/usr/bin/opencloud completion zsh > _opencloud
dozshcomp _opencloud
}