From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D694158094 for ; Tue, 27 Sep 2022 20:52:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C9D4E01B5; Tue, 27 Sep 2022 20:52:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C669E01B5 for ; Tue, 27 Sep 2022 20:52:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D5DC340DF0 for ; Tue, 27 Sep 2022 20:52:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9EC565E9 for ; Tue, 27 Sep 2022 20:52:53 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1664311943.a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sccache/, dev-util/sccache/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/sccache/files/sccache-scheduler.service dev-util/sccache/files/sccache-server.service dev-util/sccache/sccache-0.3.0.ebuild X-VCS-Directories: dev-util/sccache/ dev-util/sccache/files/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa X-VCS-Branch: master Date: Tue, 27 Sep 2022 20:52:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 10156c7f-c574-4cb3-b605-7737279c63d1 X-Archives-Hash: 93967f0cc2c15a5c20eb0d0d84608e6d commit: a7b4a9e0582e55c49c0bcc3f22f9461b3ad0d0fa Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Sep 27 20:41:50 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Sep 27 20:52:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7b4a9e0 dev-util/sccache: add systemd units Closes: https://bugs.gentoo.org/825570 Signed-off-by: Georgy Yakovlev gentoo.org> dev-util/sccache/files/sccache-scheduler.service | 10 ++++++++++ dev-util/sccache/files/sccache-server.service | 10 ++++++++++ dev-util/sccache/sccache-0.3.0.ebuild | 6 +++++- 3 files changed, 25 insertions(+), 1 deletion(-) 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 }