sys-apps/hd-idle - 1.05-r5 (gentoo)

Search

Install

Install this version:

emerge -a =sys-apps/hd-idle-1.05-r5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-apps/hd-idle-1.05-r5

Or alternatively:

emerge --autounmask-write -a =sys-apps/hd-idle-1.05-r5

Package Information

Description:
Utility for spinning down hard disks after a period of idle time
Homepage:
https://hd-idle.sourceforge.net/
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
1.05-r5 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 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 ${PN}.service
	newinitd "${FILESDIR}"/hd-idle-init hd-idle
	newconfd "${FILESDIR}"/hd-idle-conf hd-idle

	insinto /etc/logrotate.d
	newins "${FILESDIR}"/hd-idle-logrotate 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."
}

Inherited Eclasses