new ebuild: www-apps/opencloud-bin-8.1.0
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
DIST opencloud-8.1.0-linux-amd64 139895928 BLAKE2B 94b5e6b0def0095d4b8ca717e54d155c2f44af85697ef8114a77335f868ed03795a26afe99d2d76bff254b112308e3feeaa8c24375dd9ad5d15d2e2b41b884ef SHA512 23d28753db6af4eeaf89c23da8e77d60dcf0ed106f98c9db9a59b37c82530f5a37862125d6e07af2992d96fbe9c00bfe488e03d92514be1ae735969269a37f3d
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 2016-2026 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
description="OpenCloud - Self-Hosted File Sharing"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
}
|
||||||
|
|
||||||
|
: ${DEFAULT_LANGUAGE:=de}
|
||||||
|
: ${OC_CONFIG_DIR:=/etc/opencloud/opencloud.yaml}
|
||||||
|
: ${OC_URL:=https://localhost:9200}
|
||||||
|
: ${OC_USER:=opencloud}
|
||||||
|
: ${OC_GROUP:=opencloud}
|
||||||
|
: ${OC_WORK_DIR:=/var/lib/opencloud}
|
||||||
|
: ${OC_BASE_DATA_PATH:=${OC_WORK_DIR}/data}
|
||||||
|
|
||||||
|
export DEFAULT_LANGUAGE=${DEFAULT_LANGUAGE}
|
||||||
|
export IDM_CREATE_DEMO_USERS=true
|
||||||
|
export OC_BASE_DATA_PATH=${OC_BASE_DATA_PATH}
|
||||||
|
export OC_CONFIG_DIR=${OC_CONFIG_DIR}
|
||||||
|
export OC_INSECURE=true
|
||||||
|
export OC_LOG_LEVEL=warning
|
||||||
|
export OC_URL=${OC_URL}
|
||||||
|
export PROXY_ENABLE_BASIC_AUTH=true
|
||||||
|
|
||||||
|
#capabilities=CAP_NET_BIND_SERVICE
|
||||||
|
command="/usr/bin/opencloud"
|
||||||
|
command_args="server"
|
||||||
|
command_background="true"
|
||||||
|
command_user="${OC_USER}:${OC_GROUP}"
|
||||||
|
error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err"
|
||||||
|
output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
|
||||||
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
|
required_files="${OC_CONF}"
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
checkpath -m0750 -o "${OC_USER:-root}:${OC_GROUP:-root}" -d /run/opencloud
|
||||||
|
checkpath -m0750 -o "${OC_USER:-root}:${OC_GROUP:-root}" -d /var/log/opencloud
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user