open-rc & systemd scripts added.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
inherit go-module systemd
|
||||
|
||||
DESCRIPTION="Official runner for Gitea"
|
||||
HOMEPAGE="https://gitea.com/gitea/runner"
|
||||
@@ -27,7 +27,24 @@ src_compile() {
|
||||
ego build
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's#/usr/local/bin#/usr/bin#g' examples/systemd/${PN}.service || die "Adjusting systemd.service failed!"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin runner gitea-runner
|
||||
dosym -r /usr/bin/gitea-runner /usr/bin/runner
|
||||
newinitd ${FILESDIR}/initd ${PN}
|
||||
newconfd ${FILESDIR}/confd ${PN}
|
||||
systemd_dounit examples/systemd/${PN}.service
|
||||
|
||||
dodoc docs/*
|
||||
dodoc README.md
|
||||
newdoc examples/systemd/README.md systemd.md
|
||||
newdoc examples/docker/README.md docker.md
|
||||
newdoc examples/docker-compose/README.md docker-compose.md
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins internal/pkg/config/config.example.yaml
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user