blob: cf2ada6e6caed27a6a2a1bc21128da0ef33b0c7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkpad/thinkpad-3.2.ebuild,v 1.5 2005/01/01 14:49:09 eradicator Exp $
#transform P to match tarball versioning
MYPV=${PV/_beta/beta}
MYP="${PN}_${MYPV}"
KV=""
DESCRIPTION="Thinkpad system control kernel modules"
HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
DEPEND="virtual/libc"
pkg_setup() {
check_KV
}
src_compile() {
emake || die "Make failed"
}
src_install() {
dodoc AUTHORS ChangeLog README SUPPORTED-MODELS TECHNOTES
dodir /lib/modules/${KV}/thinkpad
cp ${S}/drivers/{thinkpad,smapi,superio,rtcmosram,thinkpadpm}.o \
${D}/lib/modules/${KV}/thinkpad
insinto /etc/modules.d
doins ${FILESDIR}/thinkpad
(cat /etc/devfsd.conf; echo; echo '# Thinkpad config';
echo 'REGISTER ^thinkpad/.*$ PERMISSIONS root.thinkpad 0664') \
> ${D}/etc/devfsd.conf
}
pkg_postinst() {
[ "${ROOT}" == "/" ] && /usr/sbin/update-modules
}
|