summaryrefslogtreecommitdiff
path: root/sys-power/sandmann-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-22 11:17:57 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-22 11:17:57 +0000
commit77b74be093bdf4a0ed4121acc3f8e229103cf004 (patch)
tree63d35b3e7246dd3ae3c181b1e47212a89a5f8d2c /sys-power/sandmann-bin
parent734d2dac3e96161f025c33aa2d518d798cd06580 (diff)
gentoo auto-resync : 22:11:2023 - 11:17:57
Diffstat (limited to 'sys-power/sandmann-bin')
-rw-r--r--sys-power/sandmann-bin/Manifest3
-rw-r--r--sys-power/sandmann-bin/metadata.xml8
-rw-r--r--sys-power/sandmann-bin/sandmann-bin-0.9.ebuild61
3 files changed, 72 insertions, 0 deletions
diff --git a/sys-power/sandmann-bin/Manifest b/sys-power/sandmann-bin/Manifest
new file mode 100644
index 000000000000..2ae90c24b67b
--- /dev/null
+++ b/sys-power/sandmann-bin/Manifest
@@ -0,0 +1,3 @@
+DIST sandmann-0.9.tar.xz 16656160 BLAKE2B e0b52fd8ba67bec68dfa6a6c6fa3f9321118c350a954cef582643339f1d15c6f8d55d74cfbc0d1894dd5eae83975f1ef57c974c5035b80d9bdc1e132d7b16787 SHA512 bee9a9b5f5eaaeba8ec66999c2719efb43cd85c601a9aee61017dd330149ed9faf94a48d9c0fd0dcc82c05fa8dfe23f020d69b452bb71ccf5dc50017dcf5a84e
+EBUILD sandmann-bin-0.9.ebuild 1101 BLAKE2B 0e09cba5870df444cedc9e2cd39a831ac8e16eb3ef730820f727e0ab937759e5715e550ea3251c573b4de957dfdf7ede2df848b28e8355f6dd88b254c362ce67 SHA512 ff132db294ec58fc330e9236ef4c7c625b979a55705f09c4e6e90c46fab767971e2e77aa5db59db563bfec76fa92cf102ad91f3bf0ae130d4bc262fc8d66aa86
+MISC metadata.xml 246 BLAKE2B e270b04a529da44d267eaf5bfd160569fc99a3521dfc6495e0a4db19c98e5b9badf77774cc80c7be905f3e97b1c75784bc7b4cb6bfe659d726a47c7ae70e7bfb SHA512 7e2151bbca24beeefd585e18d6c1108442b2d9197679876bb180da3d4896602e83ea701432ff67fc61cccfa9bf642a01a62d87bacf32c55e0a54336c7c5a2c53
diff --git a/sys-power/sandmann-bin/metadata.xml b/sys-power/sandmann-bin/metadata.xml
new file mode 100644
index 000000000000..87a759d410cf
--- /dev/null
+++ b/sys-power/sandmann-bin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Florian Schmaus</name>
+ <email>flow@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-power/sandmann-bin/sandmann-bin-0.9.ebuild b/sys-power/sandmann-bin/sandmann-bin-0.9.ebuild
new file mode 100644
index 000000000000..a56afa598bc2
--- /dev/null
+++ b/sys-power/sandmann-bin/sandmann-bin-0.9.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 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.gentoo.org/flow/sandmann"
+SRC_URI="https://dev.gentoo.org/~flow/${MY_PN}/archive/${MY_P}.tar.xz"
+KEYWORDS="~amd64"
+
+LICENSE="GPL-3+ LGPL-3"
+SLOT="0"
+
+# >=java-config-2.3.2 to get the libdir fix.
+RDEPEND="
+ >=dev-java/java-config-2.3.2
+ sys-apps/systemd
+ sys-auth/polkit
+ || (
+ virtual/jre:17
+ virtual/jre:21
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+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
+}