You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild

41 lines
906 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild,v 1.3 2012/04/19 22:01:18 jdhore Exp $
EAPI=4
inherit eutils toolchain-funcs
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=""
DEPEND=""
RDEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.7.3-makefile.patch \
"${FILESDIR}"/${PN}-0.7.3-openrc.patch
tc-export CC
}
src_install() {
dosbin ${PN}
newinitd rcscripts/thinkfan.gentoo ${PN}
doman ${PN}.1
dodoc ChangeLog NEWS README \
examples/${PN}.conf.{complex,sysfs,thinkpad}
}
pkg_postinst() {
elog "Please read the documentation and copy an"
elog "appropriate file to /etc/thinkfan.conf."
}