Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/spindown/files/, sys-block/spindown/
Date: Fri, 29 Apr 2016 17:38:08
Message-Id: 1461951358.3b9b96be4fb14e9510861752387d94ce9d0a8345.wizardedit@gentoo
1 commit: 3b9b96be4fb14e9510861752387d94ce9d0a8345
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 17:35:58 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 17:35:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b9b96be
7
8 sys-block/spindown: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 sys-block/spindown/files/spindownd.initd-r1 | 4 +--
15 sys-block/spindown/spindown-0.4.0-r5.ebuild | 45 +++++++++++++++++++++++++++++
16 2 files changed, 47 insertions(+), 2 deletions(-)
17
18 diff --git a/sys-block/spindown/files/spindownd.initd-r1 b/sys-block/spindown/files/spindownd.initd-r1
19 index f35908f..64a6ec5 100644
20 --- a/sys-block/spindown/files/spindownd.initd-r1
21 +++ b/sys-block/spindown/files/spindownd.initd-r1
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2012 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28
29 SPINDOWND_BIN="/usr/sbin/spindownd"
30
31 diff --git a/sys-block/spindown/spindown-0.4.0-r5.ebuild b/sys-block/spindown/spindown-0.4.0-r5.ebuild
32 new file mode 100644
33 index 0000000..8eced94
34 --- /dev/null
35 +++ b/sys-block/spindown/spindown-0.4.0-r5.ebuild
36 @@ -0,0 +1,45 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +DESCRIPTION="Spindown is a daemon that can spin down idle disks"
44 +HOMEPAGE="https://code.google.com/p/spindown"
45 +SRC_URI="https://spindown.googlecode.com/files/${P}.tar.gz"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE=""
51 +
52 +DEPEND=""
53 +RDEPEND="${DEPEND}
54 + sys-apps/sg3_utils"
55 +
56 +src_prepare() {
57 + eapply "${FILESDIR}"/${P}-CFLAGS-LDFLAGS.patch
58 + eapply_user
59 +}
60 +
61 +src_compile() {
62 + emake
63 +}
64 +
65 +src_install() {
66 + insinto /etc
67 + newins spindown.conf.example spindown.conf
68 + newinitd "${FILESDIR}"/spindownd.initd-r1 spindownd
69 + newconfd "${FILESDIR}"/spindownd.confd-r1 spindownd
70 + dosbin spindownd
71 + dodoc CHANGELOG README TODO spindown.conf.example
72 +}
73 +
74 +pkg_postinst() {
75 + elog "Before starting spindownd the first time"
76 + elog "you should modify /etc/spindown.conf"
77 + elog
78 + elog "To start spindownd by default"
79 + elog "you should add it to the default runlevel:"
80 + elog " rc-update add spindownd default"
81 +}