dev-util/drone: Add systemd-enabled version of the official ebuild.
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

Package-Manager: Portage-3.0.30, Repoman-3.0.3
This commit is contained in:
Manuel Friedli 2022-04-30 21:57:02 +02:00
parent 07596f4351
commit 93d65d3001
6 changed files with 137 additions and 1 deletions

View file

@ -0,0 +1,47 @@
# arguments for drone
# See also http://readme.drone.io/admin/installation-reference/
#DRONE_SECRET=
#DRONE_DEBUG=false
#DRONE_SERVER_CERT=
#DRONE_SERVER_KEY=
#DRONE_ADMIN=
#DRONE_ORGS=
#DRONE_OPEN=false
#DRONE_YAML=.drone.yml
#DRONE_CACHE_TTY=15m
DRONE_DATABASE_DRIVER=sqlite3
DRONE_DATABASE_DATASOURCE="/var/lib/drone/drone.sqlite"
DRONE_GITHUB=true
#DRONE_GITHUB_URL=https://github.com
#DRONE_GITHUB_CLIENT=
#DRONE_GITHUB_SECRET=
#DRONE_GITHUB_SCOPE=
#DRONE_GITHUB_GIT_USERNAME=
#DRONE_GITHUB_GIT_PASSWORD=
#DRONE_GITHUB_PRIVATE_MODE=false
#DRONE_GITHUB_MERGE_REF=true
#DRONE_GITHUB_CONTEXT=continuous-integration/drone
#DRONE_GITHUB_SKIP_VERIFY=false
#DRONE_GOGS=false
#DRONE_GOGS_URL=
#DRONE_GOGS_GIT_USERNAME=
#DRONE_GOGS_GIT_PASSWORD=
#DRONE_GOGS_PRIVATE_MODE=
#DRONE_GOGS_SKIP_VERIFY=false
#DRONE_BITBUCKET=false
#DRONE_BITBUCKET_CLIENT=
#DRONE_BITBUCKET_SECRET=
#DRONE_STASH=false
#DRONE_STASH_URL=
#DRONE_STASH_CONSUMER_KEY=
#DRONE_STASH_CONSUMER_RSA=
#DRONE_STASH_GIT_USERNAME=
#DRONE_STASH_GIT_PASSWORD=
#DRONE_GITLAB=false
#DRONE_GITLAB_URL=https://gitlab.com
#DRONE_GITLAB_CLIENT=
#DRONE_GITLAB_SECRET=
#DRONE_GITLAB_GIT_USERNAME=
#DRONE_GITLAB_GIT_PASSWORD=
#DRONE_GITLAB_SKIP_VERIFY=false
#DRONE_GITLAB_PRIVATE_MODE=false

View file

@ -0,0 +1,14 @@
#!/sbin/openrc-run
# Copyright 2016-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Drone CI"
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
user=${user:-drone}
group=${group:-drone}
command="/usr/bin/drone-server"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"

View file

@ -0,0 +1,25 @@
[Unit]
Description=Drone CI
Documentation=https://docs.drone.io/
After=mysqld.target
After=network.target
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
Requires=network.target
[Service]
User=drone
Group=drone
EnvironmentFile=/etc/conf.d/drone-server
ExecStart=/usr/bin/drone-server
Restart=on-failure
[Install]
WantedBy=multi-user.target