public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/cpudyn/files/, sys-power/cpudyn/
Date: Fri, 29 Apr 2016 19:32:32 +0000 (UTC)	[thread overview]
Message-ID: <1461958333.e5fb79a92fe0bc1dd4a7b38db2ee19383584e66b.wizardedit@gentoo> (raw)

commit:     e5fb79a92fe0bc1dd4a7b38db2ee19383584e66b
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 29 19:16:09 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Fri Apr 29 19:32:13 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5fb79a9

sys-power/cpudyn: use #!/sbin/openrc-run instead of #!/sbin/runscript

Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

 sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild | 49 +++++++++++++++++++++++++++++++++
 sys-power/cpudyn/files/cpudyn.init      |  4 +--
 2 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild b/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild
new file mode 100644
index 0000000..e01be7e
--- /dev/null
+++ b/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="A daemon to control laptop power consumption via cpufreq and disk standby"
+HOMEPAGE="http://freecode.com/projects/cpudyn/"
+SRC_URI="http://mnm.uib.es/~gallir/${PN}/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+PATCHES=(
+	"${FILESDIR}/${PN}-0.99.0-init_conf_updates.patch"
+)
+
+src_prepare() {
+	# fix #570082 by restoring pre-GCC5 inline semantics
+	append-cflags -std=gnu89
+
+	default
+}
+
+src_compile() {
+	emake LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" cpudynd
+}
+
+src_install() {
+	dosbin cpudynd
+
+	doman cpudynd.8
+	dodoc INSTALL README VERSION changelog
+	docinto html
+	dodoc *.html
+
+	newinitd "${FILESDIR}"/cpudyn.init cpudyn
+	newconfd debian/cpudyn.conf cpudyn
+}
+
+pkg_postinst() {
+	einfo "Configuration file is /etc/conf.d/cpudyn."
+}

diff --git a/sys-power/cpudyn/files/cpudyn.init b/sys-power/cpudyn/files/cpudyn.init
index 877f51f..11e82db 100644
--- a/sys-power/cpudyn/files/cpudyn.init
+++ b/sys-power/cpudyn/files/cpudyn.init
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 #


             reply	other threads:[~2016-04-29 19:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 19:32 Austin English [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-13  0:15 [gentoo-commits] repo/gentoo:master commit in: sys-power/cpudyn/files/, sys-power/cpudyn/ Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461958333.e5fb79a92fe0bc1dd4a7b38db2ee19383584e66b.wizardedit@gentoo \
    --to=wizardedit@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox