Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hd-idle/, sys-apps/hd-idle/files/
Date: Tue, 05 May 2020 08:47:09
Message-Id: 1588668396.a229915cf66a0384dad986550240e3503928db15.juippis@gentoo
1 commit: a229915cf66a0384dad986550240e3503928db15
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sun May 3 20:36:40 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue May 5 08:46:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a229915c
7
8 sys-apps/hd-idle: Bump to EAPI 7, add systemd service.
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/15634
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 sys-apps/hd-idle/files/hd-idle-service | 13 +++++++++++++
16 sys-apps/hd-idle/hd-idle-1.05-r1.ebuild | 27 +++++++++++++++++++++++++++
17 2 files changed, 40 insertions(+)
18
19 diff --git a/sys-apps/hd-idle/files/hd-idle-service b/sys-apps/hd-idle/files/hd-idle-service
20 new file mode 100644
21 index 00000000000..f69c1d754b6
22 --- /dev/null
23 +++ b/sys-apps/hd-idle/files/hd-idle-service
24 @@ -0,0 +1,13 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +[Unit]
28 +Description=hd-idle - spinning down HDDs after a period of idle time
29 +Documentation=man:hd-idle(1)
30 +
31 +[Service]
32 +Type=forking
33 +EnvironmentFile=/etc/conf.d/hd-idle
34 +ExecStart=/usr/sbin/hd-idle $HD_IDLE_OPTS
35 +
36 +[Install]
37 +WantedBy=multi-user.target
38
39 diff --git a/sys-apps/hd-idle/hd-idle-1.05-r1.ebuild b/sys-apps/hd-idle/hd-idle-1.05-r1.ebuild
40 new file mode 100644
41 index 00000000000..2700e28dab5
42 --- /dev/null
43 +++ b/sys-apps/hd-idle/hd-idle-1.05-r1.ebuild
44 @@ -0,0 +1,27 @@
45 +# Copyright 1999-2020 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +
50 +inherit linux-info systemd
51 +
52 +DESCRIPTION="Utility for spinning down hard disks after a period of idle time"
53 +HOMEPAGE="http://hd-idle.sourceforge.net/"
54 +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
55 +
56 +LICENSE="GPL-2"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~x86"
59 +
60 +S="${WORKDIR}/${PN}"
61 +
62 +CONFIG_CHECK="~PROC_FS"
63 +
64 +DOCS=( debian/changelog README )
65 +
66 +src_install() {
67 + default
68 + systemd_newunit "${FILESDIR}"/hd-idle-service ${PN}.service
69 + newinitd "${FILESDIR}"/hd-idle-init hd-idle
70 + newconfd "${FILESDIR}"/hd-idle-conf hd-idle
71 +}