/[gentoo-x86]/app-laptop/ibm-acpi/ibm-acpi-0.11-r1.ebuild
Gentoo

Contents of /app-laptop/ibm-acpi/ibm-acpi-0.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon May 29 22:09:33 2006 UTC (14 years, 2 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Removed. Please use the in-kernel module instead.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/ibm-acpi/ibm-acpi-0.11-r1.ebuild,v 1.6 2005/11/27 17:08:20 brix Exp $
4
5 inherit eutils linux-mod
6
7 DESCRIPTION="IBM ThinkPad ACPI extras"
8
9 HOMEPAGE="http://ibm-acpi.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86 -ppc"
15
16 IUSE=""
17
18 BUILD_PARAMS="KDIR=${KV_DIR}"
19 BUILD_TARGETS="default"
20 MODULE_NAMES="ibm_acpi(acpi:)"
21 MODULESD_IBM_ACPI_DOCS="README"
22
23 CONFIG_CHECK="!ACPI_IBM ACPI"
24 ACPI_IBM_ERROR="${P} requires IBM ThinkPad Laptop Extras (CONFIG_ACPI_IBM) to be DISABLED in the kernel."
25 ACPI_ERROR="${P} requires an ACPI (CONFIG_ACPI) enabled kernel."
26
27 pkg_setup() {
28 if kernel_is 2 4; then
29 die "${P} does not support kernel 2.4.x"
30 fi
31
32 if kernel_is ge 2 6 14; then
33 ewarn
34 ewarn "Linux kernel 2.6.14 and above contains a more recent version of this"
35 ewarn "module. Please consider using the in-kernel module when using"
36 ewarn "linux-2.6.14 or above."
37 ewarn
38 fi
39
40 linux-mod_pkg_setup
41 }
42
43 src_unpack() {
44 unpack ${A}
45
46 cd ${S}
47 epatch ${FILESDIR}/${P}-device_add.patch
48
49 convert_to_m ${S}/Makefile
50 }
51
52 src_install() {
53 linux-mod_src_install
54
55 exeinto /sbin
56 newexe ${S}/config/usr/local/sbin/idectl idectl-${PN}
57
58 docinto examples/etc/acpi/actions
59 dodoc config/etc/acpi/actions/*
60
61 docinto examples/etc/acpi/events
62 dodoc config/etc/acpi/events/*
63 }
64
65 pkg_postinst() {
66 einfo
67 einfo "You may wish to install sys-power/acpid to handle the ACPI events generated"
68 einfo "by ${PN}."
69 einfo
70 einfo "Example acpid configuration has been installed to"
71 einfo "/usr/share/doc/${PF}/examples/"
72 einfo
73 einfo "For further instructions please see /usr/share/doc/${PF}/README.gz"
74 einfo
75
76 linux-mod_pkg_postinst
77 }

  ViewVC Help
Powered by ViewVC 1.1.20