tapp-laptop/thinkfan: Add 0.9.3 - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit 6d36d8243fd20d2b22a87cd4cdc965854313153c DIR parent 4ef8667993fe1abb761ee55573a4292c475d1a85 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 10 Aug 2016 02:43:33 +0200 app-laptop/thinkfan: Add 0.9.3 Diffstat: M README.md | 1 + A app-laptop/thinkfan/Manifest | 1 + A app-laptop/thinkfan/files/thinkfan… | 11 +++++++++++ A app-laptop/thinkfan/thinkfan-0.9.3… | 49 +++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 0 deletions(-) --- DIR diff --git a/README.md b/README.md t@@ -5,6 +5,7 @@ Yet another Gentoo overlay * steghide * tomb * app-laptop + * thinkfan * tp_smapi * app-misc * tbt DIR diff --git a/app-laptop/thinkfan/Manifest b/app-laptop/thinkfan/Manifest t@@ -0,0 +1 @@ +DIST thinkfan-0.9.3.tar.gz 39527 SHA256 b61c634996c450445d7e440bf41f7adcda86506063f832afa40d44e01061e45b SHA512 d2a29f9cae636c22b66958f8ec50cb60a162d745c3967257bb5e20cc9e152894d4e8a66f897ffa4e49353eba4a42e3499bb9e554719974284089a46cfc6280d7 WHIRLPOOL 3bdbc0ca3731fef85e385b3259cc9ce6bf4c3b15195138caf5b192847bbba411068d00df8e5673600796e15d4d965c116b73745e787bea9f5a68dbbb5ee118db DIR diff --git a/app-laptop/thinkfan/files/thinkfan-0.9.3-openrc.patch b/app-laptop/thinkfan/files/thinkfan-0.9.3-openrc.patch t@@ -0,0 +1,11 @@ +--- thinkfan-0.9.2/rcscripts/thinkfan.gentoo ++++ thinkfan-0.9.2/rcscripts/thinkfan.gentoo +@@ -11,7 +11,7 @@ + + start() { + ebegin "Starting thinkfan" +- start-stop-daemon --start --exec /usr/sbin/thinkfan -- -q -s5 -c /etc/thinkfan.com ++ start-stop-daemon --start --exec /usr/sbin/thinkfan -- -q -s5 -c /etc/thinkfan.conf + eend $? + } + DIR diff --git a/app-laptop/thinkfan/thinkfan-0.9.3.ebuild b/app-laptop/thinkfan/thinkfan-0.9.3.ebuild t@@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils readme.gentoo systemd + +DESCRIPTION="simple fan control program for thinkpads" +HOMEPAGE="http://thinkfan.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="atasmart" + +DEPEND="atasmart? ( dev-libs/libatasmart )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-openrc.patch + + sed -e "s:share/doc/${PN}:share/doc/${P}:" \ + -i CMakeLists.txt +} + +src_configure() { + mycmakeargs+=( + "-DCMAKE_BUILD_TYPE:STRING=Debug" + "$(cmake-utils_use_use atasmart ATASMART)" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + newinitd rcscripts/${PN}.gentoo ${PN} + systemd_dounit rcscripts/${PN}.service + + readme.gentoo_create_doc +} + +DOC_CONTENTS="Please read the documentation and copy an +appropriate file to /etc/thinkfan.conf."