diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-09-27 13:41:50 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-09-27 13:52:23 -0700 |
commit | a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa (patch) | |
tree | a5c6ca9ecfe20f14ea8f4d1e4ad36d14da362755 | |
parent | dev-util/sccache: Add 0.3.0 (diff) | |
download | gentoo-a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa.tar.gz gentoo-a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa.tar.bz2 gentoo-a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa.zip |
dev-util/sccache: add systemd units
Closes: https://bugs.gentoo.org/825570
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r-- | dev-util/sccache/files/sccache-scheduler.service | 10 | ||||
-rw-r--r-- | dev-util/sccache/files/sccache-server.service | 10 | ||||
-rw-r--r-- | dev-util/sccache/sccache-0.3.0.ebuild | 6 |
3 files changed, 25 insertions, 1 deletions
diff --git a/dev-util/sccache/files/sccache-scheduler.service b/dev-util/sccache/files/sccache-scheduler.service new file mode 100644 index 000000000000..8def287f2e6d --- /dev/null +++ b/dev-util/sccache/files/sccache-scheduler.service @@ -0,0 +1,10 @@ +[Unit] +Description=sccache-dist server +Wants=network-online.target +After=network-online.target + +[Service] +ExecStart=/usr/bin/sccache-dist scheduler --config /etc/sccache/server.conf + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/sccache/files/sccache-server.service b/dev-util/sccache/files/sccache-server.service new file mode 100644 index 000000000000..b477cabe7d95 --- /dev/null +++ b/dev-util/sccache/files/sccache-server.service @@ -0,0 +1,10 @@ +[Unit] +Description=sccache-dist server +Wants=network-online.target +After=network-online.target + +[Service] +ExecStart=/usr/bin/sccache-dist server --config /etc/sccache/server.conf + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/sccache/sccache-0.3.0.ebuild b/dev-util/sccache/sccache-0.3.0.ebuild index 9abbc8a316ba..ea511cc01281 100644 --- a/dev-util/sccache/sccache-0.3.0.ebuild +++ b/dev-util/sccache/sccache-0.3.0.ebuild @@ -308,7 +308,7 @@ zstd-safe-3.0.1+zstd.1.4.9 zstd-sys-1.4.20+zstd.1.4.9 " -inherit cargo optfeature +inherit cargo optfeature systemd DESCRIPTION="ccache/distcc like tool with support for rust and cloud storage" HOMEPAGE="https://github.com/mozilla/sccache/" @@ -380,6 +380,10 @@ src_install() { newinitd "${FILESDIR}"/scheduler.initd sccache-scheduler newconfd "${FILESDIR}"/scheduler.confd sccache-scheduler + + systemd_dounit "${FILESDIR}"/sccache-server.service + systemd_dounit "${FILESDIR}"/sccache-scheduler.service + fi } |