* [gentoo-commits] repo/gentoo:master commit in: sys-apps/hd-idle/files/, sys-apps/hd-idle/
@ 2018-01-24 19:52 Patrice Clement
0 siblings, 0 replies; 3+ messages in thread
From: Patrice Clement @ 2018-01-24 19:52 UTC (permalink / raw
To: gentoo-commits
commit: fb58aa1b3479fb9014d2aeccac0cda8dea7a4e0f
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sun Jan 21 20:41:44 2018 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 19:52:12 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb58aa1b
sys-apps/hd-idle: new package.
Utility for spinning down hard disks after a period of idle time.
Package-Manager: Portage-2.3.20, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/6927
sys-apps/hd-idle/Manifest | 1 +
sys-apps/hd-idle/files/hd-idle-conf | 30 ++++++++++++++++++++++++++++++
sys-apps/hd-idle/files/hd-idle-init | 12 ++++++++++++
sys-apps/hd-idle/hd-idle-1.05.ebuild | 26 ++++++++++++++++++++++++++
sys-apps/hd-idle/metadata.xml | 16 ++++++++++++++++
5 files changed, 85 insertions(+)
diff --git a/sys-apps/hd-idle/Manifest b/sys-apps/hd-idle/Manifest
new file mode 100644
index 00000000000..043faa7b64e
--- /dev/null
+++ b/sys-apps/hd-idle/Manifest
@@ -0,0 +1 @@
+DIST hd-idle-1.05.tgz 17951 BLAKE2B f99dd25d41f2ac4391025ff652827a8687db19df2dafe0f07eeeea700eaf0d67a255ee67017123510a3b89f3aba2f50de7204923d9ab85e80138f657f5e120d3 SHA512 8636d8bf2bce40f380afdea859aef7d142258071c62f87884a9af55c7c84310d89de712f56dff2bd825f0c7d79b04356df92e3012d8f683d8c41ebb23cd3920b
diff --git a/sys-apps/hd-idle/files/hd-idle-conf b/sys-apps/hd-idle/files/hd-idle-conf
new file mode 100644
index 00000000000..a0bd68336e2
--- /dev/null
+++ b/sys-apps/hd-idle/files/hd-idle-conf
@@ -0,0 +1,30 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# defaults file for hd-idle
+
+# hd-idle command line options
+# Options are:
+# -a Set (partial) device name of disks for subsequent
+# idle-time parameters (-i). This parameter is optional
+# in the sense that there's a default entry for all
+# disks which are not named otherwise by using this
+# parameter.
+# -i <idle_time> Idle time in seconds.
+# -l <logfile> Name of logfile (written only after a disk has spun
+# up). Please note that this option might cause the
+# disk which holds the logfile to spin up just because
+# another disk had some activity. This option should
+# not be used on systems with more than one disk
+# except for tuning purposes. On single-disk systems,
+# this option should not cause any additional spinups.
+#
+# Options not exactly useful here:
+# -t <disk> Spin-down the specfified disk immediately and exit.
+# -d Debug mode. This will prevent hd-idle from
+# becoming a daemon and print debugging info to
+# stdout/stderr
+# -h Print usage information.
+
+#HD_IDLE_OPTS="-i 180 -l /var/log/hd-idle.log"
+
diff --git a/sys-apps/hd-idle/files/hd-idle-init b/sys-apps/hd-idle/files/hd-idle-init
new file mode 100644
index 00000000000..650d1934a43
--- /dev/null
+++ b/sys-apps/hd-idle/files/hd-idle-init
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Utility for spinning down hard disks after a period of idle time"
+
+command="/usr/sbin/hd-idle"
+command_args="${HD_IDLE_OPTS}"
+
+depend() {
+ after bootmisc
+}
diff --git a/sys-apps/hd-idle/hd-idle-1.05.ebuild b/sys-apps/hd-idle/hd-idle-1.05.ebuild
new file mode 100644
index 00000000000..4da29a66167
--- /dev/null
+++ b/sys-apps/hd-idle/hd-idle-1.05.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info
+
+DESCRIPTION="Utility for spinning down hard disks after a period of idle time"
+HOMEPAGE="http://hd-idle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${PN}"
+
+CONFIG_CHECK="~PROC_FS"
+
+DOCS=( debian/changelog README )
+
+src_install() {
+ default_src_install
+ newinitd "${FILESDIR}"/hd-idle-init hd-idle
+ newconfd "${FILESDIR}"/hd-idle-conf hd-idle
+}
diff --git a/sys-apps/hd-idle/metadata.xml b/sys-apps/hd-idle/metadata.xml
new file mode 100644
index 00000000000..6a1a90c15b5
--- /dev/null
+++ b/sys-apps/hd-idle/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>o.freyermuth@googlemail.com</email>
+ <name>Oliver Freyermuth</name>
+ <description>Proxy-maintainer, assign bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">hd-idle</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/hd-idle/files/, sys-apps/hd-idle/
@ 2023-05-28 12:20 Joonas Niilola
0 siblings, 0 replies; 3+ messages in thread
From: Joonas Niilola @ 2023-05-28 12:20 UTC (permalink / raw
To: gentoo-commits
commit: 4fb5304fe56d9d35006cce3d7e2a6b7d9d986036
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat May 27 17:57:38 2023 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun May 28 12:20:28 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fb5304f
sys-apps/hd-idle: drop 1.05-r1
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/31189
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-apps/hd-idle/files/hd-idle-service | 13 -------------
sys-apps/hd-idle/hd-idle-1.05-r1.ebuild | 27 ---------------------------
2 files changed, 40 deletions(-)
diff --git a/sys-apps/hd-idle/files/hd-idle-service b/sys-apps/hd-idle/files/hd-idle-service
deleted file mode 100644
index f69c1d754b68..000000000000
--- a/sys-apps/hd-idle/files/hd-idle-service
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-[Unit]
-Description=hd-idle - spinning down HDDs after a period of idle time
-Documentation=man:hd-idle(1)
-
-[Service]
-Type=forking
-EnvironmentFile=/etc/conf.d/hd-idle
-ExecStart=/usr/sbin/hd-idle $HD_IDLE_OPTS
-
-[Install]
-WantedBy=multi-user.target
diff --git a/sys-apps/hd-idle/hd-idle-1.05-r1.ebuild b/sys-apps/hd-idle/hd-idle-1.05-r1.ebuild
deleted file mode 100644
index d65adc91bc74..000000000000
--- a/sys-apps/hd-idle/hd-idle-1.05-r1.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info systemd
-
-DESCRIPTION="Utility for spinning down hard disks after a period of idle time"
-HOMEPAGE="http://hd-idle.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-S="${WORKDIR}/${PN}"
-
-CONFIG_CHECK="~PROC_FS"
-
-DOCS=( debian/changelog README )
-
-src_install() {
- default
- systemd_newunit "${FILESDIR}"/hd-idle-service ${PN}.service
- newinitd "${FILESDIR}"/hd-idle-init hd-idle
- newconfd "${FILESDIR}"/hd-idle-conf hd-idle
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/hd-idle/files/, sys-apps/hd-idle/
@ 2024-08-28 6:53 Joonas Niilola
0 siblings, 0 replies; 3+ messages in thread
From: Joonas Niilola @ 2024-08-28 6:53 UTC (permalink / raw
To: gentoo-commits
commit: e7b5339f5bc2a2fce20ef5ec50744706e92bb08f
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Tue Aug 13 10:27:28 2024 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Aug 28 06:52:59 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7b5339f
sys-apps/hd-idle: fix and clarify systemd dropin example file
Closes: https://bugs.gentoo.org/937799
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/38130
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-apps/hd-idle/files/hd-idle-service-dropin.conf | 35 ++++++++++++++++++++++
sys-apps/hd-idle/hd-idle-1.05-r3.ebuild | 33 ++++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/sys-apps/hd-idle/files/hd-idle-service-dropin.conf b/sys-apps/hd-idle/files/hd-idle-service-dropin.conf
new file mode 100644
index 000000000000..0cc702d07730
--- /dev/null
+++ b/sys-apps/hd-idle/files/hd-idle-service-dropin.conf
@@ -0,0 +1,35 @@
+# Copyright 1999-2024 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# override settings for hd-idle
+
+# hd-idle command line options
+# Options are:
+# -a Set (partial) device name of disks for subsequent
+# idle-time parameters (-i). This parameter is optional
+# in the sense that there's a default entry for all
+# disks which are not named otherwise by using this
+# parameter.
+# -i <idle_time> Idle time in seconds.
+# -l <logfile> Name of logfile (written only after a disk has spun
+# up). Please note that this option might cause the
+# disk which holds the logfile to spin up just because
+# another disk had some activity. This option should
+# not be used on systems with more than one disk
+# except for tuning purposes. On single-disk systems,
+# this option should not cause any additional spinups.
+#
+# Options not exactly useful here:
+# -t <disk> Spin-down the specfified disk immediately and exit.
+# -d Debug mode. This will prevent hd-idle from
+# becoming a daemon and print debugging info to
+# stdout/stderr
+# -h Print usage information.
+
+[Service]
+# To override, uncomment the following ExecStart lines (including the first) to unset and
+# then override ExecStart as needed.
+# Remember to "systemctl daemon-reload" and restart the service
+# after each change.
+#ExecStart=
+#ExecStart=/usr/sbin/hd-idle -i 180 -l /var/log/hd-idle.log
diff --git a/sys-apps/hd-idle/hd-idle-1.05-r3.ebuild b/sys-apps/hd-idle/hd-idle-1.05-r3.ebuild
new file mode 100644
index 000000000000..7fb27c49dd43
--- /dev/null
+++ b/sys-apps/hd-idle/hd-idle-1.05-r3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info systemd
+
+DESCRIPTION="Utility for spinning down hard disks after a period of idle time"
+HOMEPAGE="https://hd-idle.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tgz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+CONFIG_CHECK="~PROC_FS"
+
+DOCS=( debian/changelog README )
+
+src_install() {
+ default
+ systemd_newunit "${FILESDIR}"/hd-idle.service ${PN}.service
+ systemd_install_serviced "${FILESDIR}"/hd-idle-service-dropin.conf
+ newinitd "${FILESDIR}"/hd-idle-init hd-idle
+ newconfd "${FILESDIR}"/hd-idle-conf hd-idle
+
+ elog "The systemd unit file for hd-idle no longer sources ${EPREFIX}/etc/conf.d/hd-idle ."
+ elog "Configuration is still done via ${EPREFIX}/etc/conf.d/hd-idle for OpenRC systems"
+ elog "while for systemd systems, a systemd drop-in file located at"
+ elog "${EPREFIX}/etc/systemd/system/hd-idle.service.d/00gentoo.conf"
+ elog "is used for configuration."
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-28 6:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-24 19:52 [gentoo-commits] repo/gentoo:master commit in: sys-apps/hd-idle/files/, sys-apps/hd-idle/ Patrice Clement
-- strict thread matches above, loose matches on Subject: below --
2023-05-28 12:20 Joonas Niilola
2024-08-28 6:53 Joonas Niilola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox