new ebuild app-apps/ktra-0.5.1 - Your Little Cargo Registry.
This commit is contained in:
14
www-apps/ktra/files/ktra.confd
Normal file
14
www-apps/ktra/files/ktra.confd
Normal file
@@ -0,0 +1,14 @@
|
||||
# Krta configuration
|
||||
KTRA_CONF="/etc/krta/app.ini"
|
||||
|
||||
# Krta user
|
||||
KTRA_USER="git"
|
||||
|
||||
# Krta group
|
||||
KTRA_GROUP="git"
|
||||
|
||||
# Krta working directory
|
||||
KTRA_WORK_DIR="/var/lib/krta"
|
||||
|
||||
# Krta custom directory
|
||||
KTRA_CUSTOM="${KTRA_WORK_DIR}/custom"
|
22
www-apps/ktra/files/ktra.initd
Normal file
22
www-apps/ktra/files/ktra.initd
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2016-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Ktra, your little cargo registry."
|
||||
|
||||
: ${KTRA_CONF:=/etc/ktra.toml}
|
||||
: ${KTRA_USER:=git}
|
||||
: ${KTRA_GROUP:=git}
|
||||
: ${KTRA_WORK_DIR:=/var/lib/ktra}
|
||||
: ${KTRA_CUSTOM:=${KTRA_WORK_DIR}/custom}
|
||||
|
||||
command="/usr/bin/ktra"
|
||||
command_args="--config ${KTRA_CONF}"
|
||||
command_background="true"
|
||||
command_user="${KTRA_USER}:${KTRA_GROUP}"
|
||||
error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
required_files="${KTRA_CONF}"
|
||||
start_stop_daemon_args="-d ${KTRA_WORK_DIR}"
|
||||
start_stop_daemon_args="${start_stop_daemon_args} -e KTRA_WORK_DIR=${KTRA_WORK_DIR}"
|
||||
start_stop_daemon_args="${start_stop_daemon_args} -e KTRA_CUSTOM=${KTRA_CUSTOM}"
|
34
www-apps/ktra/files/ktra.service
Normal file
34
www-apps/ktra/files/ktra.service
Normal file
@@ -0,0 +1,34 @@
|
||||
[Unit]
|
||||
Description=Krta service
|
||||
Documentation=https://docs.krta.io/
|
||||
|
||||
AssertPathIsDirectory=/var/lib/krta
|
||||
AssertPathIsReadWrite=/var/lib/krta
|
||||
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
After=mysqld.service
|
||||
After=postgresql-9.5.service
|
||||
After=postgresql-9.6.service
|
||||
After=postgresql-10.service
|
||||
After=postgresql-11.service
|
||||
After=postgresql-12.service
|
||||
After=postgresql-13.service
|
||||
After=postgresql-14.service
|
||||
After=memcached.service
|
||||
After=redis.service
|
||||
|
||||
[Service]
|
||||
User=git
|
||||
Group=git
|
||||
|
||||
Environment="KTRA_WORK_DIR=/var/lib/krta" "KTRA_CUSTOM=/var/lib/krta/custom"
|
||||
WorkingDirectory=/var/lib/krta
|
||||
ExecStart=/usr/bin/krta web --config /etc/krta/app.ini
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
Nice=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
www-apps/ktra/files/ktra.toml
Normal file
13
www-apps/ktra/files/ktra.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
[index_config]
|
||||
remote_url = "https://your-git-service.tld/YOUR_USERNAME/YOUR_INDEX.git"
|
||||
https_username = "YOUR_USERNAME"
|
||||
https_password = "GITHUB_ACCESS_TOKEN"
|
||||
branch = "master"
|
||||
|
||||
[crate_files_config]
|
||||
#dl_dir_path = "./crates"
|
||||
#cache_dir_path = "./crates_io_caches"
|
||||
|
||||
# This configuration MUST correspond with the `dl` field's value in
|
||||
# `config.json` at the index git repository.
|
||||
#dl_path = "dl"
|
Reference in New Issue
Block a user