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-power/cpudyn/files/, sys-power/cpudyn/
Date: Fri, 29 Apr 2016 19:32:43
Message-Id: 1461958333.e5fb79a92fe0bc1dd4a7b38db2ee19383584e66b.wizardedit@gentoo
1 commit: e5fb79a92fe0bc1dd4a7b38db2ee19383584e66b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 19:16:09 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 19:32:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5fb79a9
7
8 sys-power/cpudyn: 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-power/cpudyn/cpudyn-1.0.1-r2.ebuild | 49 +++++++++++++++++++++++++++++++++
15 sys-power/cpudyn/files/cpudyn.init | 4 +--
16 2 files changed, 51 insertions(+), 2 deletions(-)
17
18 diff --git a/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild b/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild
19 new file mode 100644
20 index 0000000..e01be7e
21 --- /dev/null
22 +++ b/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild
23 @@ -0,0 +1,49 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +
30 +inherit flag-o-matic toolchain-funcs
31 +
32 +DESCRIPTION="A daemon to control laptop power consumption via cpufreq and disk standby"
33 +HOMEPAGE="http://freecode.com/projects/cpudyn/"
34 +SRC_URI="http://mnm.uib.es/~gallir/${PN}/download/${P}.tgz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
39 +IUSE=""
40 +
41 +S=${WORKDIR}/${PN}
42 +
43 +PATCHES=(
44 + "${FILESDIR}/${PN}-0.99.0-init_conf_updates.patch"
45 +)
46 +
47 +src_prepare() {
48 + # fix #570082 by restoring pre-GCC5 inline semantics
49 + append-cflags -std=gnu89
50 +
51 + default
52 +}
53 +
54 +src_compile() {
55 + emake LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" cpudynd
56 +}
57 +
58 +src_install() {
59 + dosbin cpudynd
60 +
61 + doman cpudynd.8
62 + dodoc INSTALL README VERSION changelog
63 + docinto html
64 + dodoc *.html
65 +
66 + newinitd "${FILESDIR}"/cpudyn.init cpudyn
67 + newconfd debian/cpudyn.conf cpudyn
68 +}
69 +
70 +pkg_postinst() {
71 + einfo "Configuration file is /etc/conf.d/cpudyn."
72 +}
73
74 diff --git a/sys-power/cpudyn/files/cpudyn.init b/sys-power/cpudyn/files/cpudyn.init
75 index 877f51f..11e82db 100644
76 --- a/sys-power/cpudyn/files/cpudyn.init
77 +++ b/sys-power/cpudyn/files/cpudyn.init
78 @@ -1,5 +1,5 @@
79 -#!/sbin/runscript
80 -# Copyright 1999-2004 Gentoo Foundation
81 +#!/sbin/openrc-run
82 +# Copyright 1999-2016 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 # $Id$
85 #