diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-12 09:56:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-12 09:56:54 +0000 |
commit | ebc282ef4dfa408accac685565b8ee5f6faec119 (patch) | |
tree | c0a4f713228cda0ab17eed46f0bb7ca8cb8be2f6 /sys-apps/hd-idle | |
parent | 6c8694a707151d59555b0e4e48235f085ce166c3 (diff) |
gentoo auto-resync : 12:02:2023 - 09:56:54
Diffstat (limited to 'sys-apps/hd-idle')
-rw-r--r-- | sys-apps/hd-idle/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/hd-idle/files/hd-idle-dropin.conf | 30 | ||||
-rw-r--r-- | sys-apps/hd-idle/files/hd-idle.service | 12 | ||||
-rw-r--r-- | sys-apps/hd-idle/hd-idle-1.05-r2.ebuild | 34 |
4 files changed, 79 insertions, 0 deletions
diff --git a/sys-apps/hd-idle/Manifest b/sys-apps/hd-idle/Manifest index 01877074bc5a..51b7f5c22a7e 100644 --- a/sys-apps/hd-idle/Manifest +++ b/sys-apps/hd-idle/Manifest @@ -1,6 +1,9 @@ AUX hd-idle-conf 1530 BLAKE2B a67f5d13a3a204c0e49e66c91c1503d1b9cb191d35def96f3e98ba6f3ce9094559eaaaf5cc974c2bb9f3017c9dfe99461fbf7ba8bf4e48935d30a2ea1c451c70 SHA512 d7f2b2324f3a248ddf0d205ed188aa6c886701bf18189c16284bb16143bda8e3707d30226c69b440058dd9eb4d6222ebe10df7e10c6bbb7c9fd442f88df216fe +AUX hd-idle-dropin.conf 1613 BLAKE2B 62917b7ff69ddf5cff692798fd2c609bd6e805034b3878dc2a3c51019753a46ea604ab71cab98b891861dea3312926e46ae22c2aab08b134839cc62c15f64b68 SHA512 55e636f30b3b20499ba921503e8c84d56008a15ff172a0a44badcc7f3cde396f42f2ad8f37e249a2cdecd150626fc8ef41b37e327f8feb6f3d30936aac304e9c AUX hd-idle-init 296 BLAKE2B e4d2b4a7f7ff816198c7e9b1b5289ec3abb1a928d4bfe50175af2d25d4333a661ad7beaa0c6a6a6fc73775a2e61408e7b6ea2721239648d1e4142be09e07c9cd SHA512 aa26ad5f4d0e97197801ca3e791301a88bcf86f094b338f2c9f7b5000de7fbb91efb9cab8e3b142039b17d5dfb47bf07465a85d12a3ed3594a9d0f38e6e518f2 AUX hd-idle-service 349 BLAKE2B 1bf8fe9941f3ab861263047742f9275c7481a4198f9b20261b98b0e343ee95d725affb61b931e5a54a74e5494e5b47d0c7ac4221e1ebbc599b19f05fa0d4dfa3 SHA512 a819a6150b7a83928112f9088effc99c2ed1c91fd792ed5d79f4da3c85a2660a4a756f247ab286cb2fa30b34d4901ef395c73c73ea933cc24765050f9f26602c +AUX hd-idle.service 330 BLAKE2B 34805650652d33118a073944f1bf079fd0d6be241b3da2a6fc58a9b2a22d66366f3c66754d25b86609e26be737aeea10a794c4e17076452d2dd8e041ad67fab7 SHA512 b4a3759049661da6bcd0a7966b7fe58e2700bfe4b9f3bdffe93e8417f36ad5ce286da960489cc5ac18a0366b97d80d63ad03948ca56b9d9eeacc0c06a49ae00f DIST hd-idle-1.05.tgz 17951 BLAKE2B f99dd25d41f2ac4391025ff652827a8687db19df2dafe0f07eeeea700eaf0d67a255ee67017123510a3b89f3aba2f50de7204923d9ab85e80138f657f5e120d3 SHA512 8636d8bf2bce40f380afdea859aef7d142258071c62f87884a9af55c7c84310d89de712f56dff2bd825f0c7d79b04356df92e3012d8f683d8c41ebb23cd3920b EBUILD hd-idle-1.05-r1.ebuild 616 BLAKE2B 4d613a67dd4a3addd5bda95bd914bff5b206c6faf0c2d94da67405fe1c8aea477ab09435a89c8ed14597fe703933ff2d0a49fdd3ddd294e1ef7e0aaa7883e0f7 SHA512 08a4da1b4409dd71707366db50d9e1daf84c5c58bc60472c596c9842197145b5d1ba27150b5287db0c73cc2771ab601949932d8211c803e4ec9707d70d606f56 +EBUILD hd-idle-1.05-r2.ebuild 1035 BLAKE2B 37ad526c0363b8a950e6ed268e4e462c00840744b577d5a3e0a4fbe6579a0b95e10614d2f5ec372b96d8089d83d80718b95d5055c061436d0d579d3a896dea24 SHA512 d1551ca8beee366843e878d21041b7387875be0a704a54069e441b8fdbec2d86eed15381742e916e83f443979e5de46ed2f64de347b02442633d8af8b62ff11a MISC metadata.xml 501 BLAKE2B 404036d599ca9ff7678f9a7f0b383d043c9278fa82ad5c843991c248c68dc65148f9a128fb43b09ee46a4bae7302a8387db8e7fad4804099e061443e0d1b7219 SHA512 884c44307ec029fc985bc82e9e662341e2a6a8d8b9345405e9afe548826b1392332c0b477f861e751cb9649a68890737968d376c666d4edf8aac95852387fceb diff --git a/sys-apps/hd-idle/files/hd-idle-dropin.conf b/sys-apps/hd-idle/files/hd-idle-dropin.conf new file mode 100644 index 000000000000..d8c9eea5ff89 --- /dev/null +++ b/sys-apps/hd-idle/files/hd-idle-dropin.conf @@ -0,0 +1,30 @@ +# Copyright 1999-2023 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. + +# To override, uncomment the following line to override ExecStart: +#ExecStart=/usr/sbin/hd-idle -i 180 -l /var/log/hd-idle.log diff --git a/sys-apps/hd-idle/files/hd-idle.service b/sys-apps/hd-idle/files/hd-idle.service new file mode 100644 index 000000000000..4b33904483bc --- /dev/null +++ b/sys-apps/hd-idle/files/hd-idle.service @@ -0,0 +1,12 @@ +# Copyright 1999-2023 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 +ExecStart=/usr/sbin/hd-idle -i 180 -l /var/log/hd-idle.log + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/hd-idle/hd-idle-1.05-r2.ebuild b/sys-apps/hd-idle/hd-idle-1.05-r2.ebuild new file mode 100644 index 000000000000..7c244e6021ed --- /dev/null +++ b/sys-apps/hd-idle/hd-idle-1.05-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2023 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="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 + systemd_install_serviced "${FILESDIR}"/hd-idle-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." +} |