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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 808091382C5 for ; Wed, 24 Jan 2018 19:52:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8EBB9E086F; Wed, 24 Jan 2018 19:52:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 523B4E086F for ; Wed, 24 Jan 2018 19:52:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0E3E335C31 for ; Wed, 24 Jan 2018 19:52:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 538CF1C3 for ; Wed, 24 Jan 2018 19:52:19 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1516823532.fb58aa1b3479fb9014d2aeccac0cda8dea7a4e0f.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hd-idle/files/, sys-apps/hd-idle/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/hd-idle/Manifest sys-apps/hd-idle/files/hd-idle-conf sys-apps/hd-idle/files/hd-idle-init sys-apps/hd-idle/hd-idle-1.05.ebuild sys-apps/hd-idle/metadata.xml X-VCS-Directories: sys-apps/hd-idle/ sys-apps/hd-idle/files/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: fb58aa1b3479fb9014d2aeccac0cda8dea7a4e0f X-VCS-Branch: master Date: Wed, 24 Jan 2018 19:52:19 +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-Archives-Salt: f5fa66a2-2e2e-4f7d-9744-94f9f9968d3a X-Archives-Hash: 2f1c8c1407a345bbd37fc0e24393cde5 commit: fb58aa1b3479fb9014d2aeccac0cda8dea7a4e0f Author: Oliver Freyermuth googlemail com> AuthorDate: Sun Jan 21 20:41:44 2018 +0000 Commit: Patrice Clement gentoo 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 in seconds. +# -l 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 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 @@ + + + + + o.freyermuth@googlemail.com + Oliver Freyermuth + Proxy-maintainer, assign bugs + + + proxy-maint@gentoo.org + Proxy Maintainers + + + hd-idle + +