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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2102D158042 for ; Thu, 14 Nov 2024 20:21:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B191E08F9; Thu, 14 Nov 2024 20:21:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 17878E08F9 for ; Thu, 14 Nov 2024 20:21:15 +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 4E9C4342FDF for ; Thu, 14 Nov 2024 20:21:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B374C1915 for ; Thu, 14 Nov 2024 20:21:12 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1731615652.b948f45310d0722b90147c879f52a82e7ff05d0e.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/sandmann-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-power/sandmann-bin/Manifest sys-power/sandmann-bin/sandmann-bin-1.3.1.ebuild X-VCS-Directories: sys-power/sandmann-bin/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: b948f45310d0722b90147c879f52a82e7ff05d0e X-VCS-Branch: master Date: Thu, 14 Nov 2024 20:21:12 +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: 7a8b96e7-b4c8-449e-9824-873c9d0119e1 X-Archives-Hash: 6829c4a31bb5d3ba8bdad7e8dc884d89 commit: b948f45310d0722b90147c879f52a82e7ff05d0e Author: Florian Schmaus gentoo org> AuthorDate: Thu Nov 14 20:18:58 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Nov 14 20:20:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b948f453 sys-power/sandmann-bin: add 1.3.1 Signed-off-by: Florian Schmaus gentoo.org> sys-power/sandmann-bin/Manifest | 1 + sys-power/sandmann-bin/sandmann-bin-1.3.1.ebuild | 59 ++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/sys-power/sandmann-bin/Manifest b/sys-power/sandmann-bin/Manifest index 9b57103ed034..af4f6453daa4 100644 --- a/sys-power/sandmann-bin/Manifest +++ b/sys-power/sandmann-bin/Manifest @@ -1 +1,2 @@ DIST sandmann-1.2.tar.xz 16868444 BLAKE2B b4e6bfefedc31af3b1fcb9c5b05349a23eb6150296dff6ee74a6626e6f6914a244bb7bb22ece4a28daa699f3291f1b7194307f1b524ed0c8ab924587e5b001f6 SHA512 44a3287f61361d0594988715ef8d302d772dbec40a50054c5091642cbba18ef006ddb59e52303f9482ddb66de6006ef340b3726be7486cdb40092302e5aa5501 +DIST sandmann-1.3.1.tar.xz 16884480 BLAKE2B 6e16eae03f7ab43d5c3807b43587dbf65047ed86196623748e499eba20d6347bd074ff6ed167f7301c7cfdc746654811428f16569bd1b8a6ebb3cb3b660cf7f0 SHA512 8aaead9ff9b711737eecff49edee042b32fdbc194b67f99a6bfbca6a8915442cd60d505ce070685915fa7aae6b0fecd7eb5c55096580bf3f8f525650eddbd8cc diff --git a/sys-power/sandmann-bin/sandmann-bin-1.3.1.ebuild b/sys-power/sandmann-bin/sandmann-bin-1.3.1.ebuild new file mode 100644 index 000000000000..601f1616d2cf --- /dev/null +++ b/sys-power/sandmann-bin/sandmann-bin-1.3.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-utils-2 systemd tmpfiles + +MY_PN=${PN%-bin} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="An autosuspend and wakeup daemon" +HOMEPAGE="https://gitlab.com/flow/sandmann" +SRC_URI="https://geekplace.eu/projects/${MY_PN}/archive/${MY_P}.tar.xz" + +S="${WORKDIR}/${MY_P}" +LICENSE="GPL-3+ LGPL-3" +SLOT="0" + +KEYWORDS="~amd64" + +# >=java-config-2.3.2 to get the libdir fix. +RDEPEND=" + acct-user/sandmann + >=dev-java/java-config-2.3.2 + sys-apps/systemd + sys-auth/polkit + >=virtual/jre-17 +" + +src_prepare() { + default + sed -i \ + -e 's|^ExecStart=.*|ExecStart=/usr/bin/sandmann|' \ + sandmann.service || die +} + +src_compile() { + : +} + +src_install() { + local my_emake_args=( + DESTDIR="${D}" + SYSTEMD_SYSTEM_UNIT_DIR="$(systemd_get_systemunitdir)" + TARGET_BINARY= + SOURCELESS_INSTALL=true + ) + + emake ${my_emake_args[@]} install + + java-pkg_newjar out/main/assembly.dest/out.jar sandmann.jar + java-pkg_dolauncher sandmann + + dodoc README.md +} + +pkg_postinst() { + tmpfiles_process sandmann.conf +}