/[gentoo-x86]/app-laptop/acer_acpi/acer_acpi-0.5.ebuild
Gentoo

Contents of /app-laptop/acer_acpi/acer_acpi-0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Dec 18 17:23:51 2010 UTC (9 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
punt acerhk and acer_acpi

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/acer_acpi/acer_acpi-0.5.ebuild,v 1.6 2010/05/27 11:27:17 bangert Exp $
4
5 inherit linux-mod
6
7 DESCRIPTION="A kernel module to allow hardware control on newer Acer laptops"
8 HOMEPAGE="http://code.google.com/p/aceracpi"
9 SRC_URI="http://aceracpi.googlecode.com/files/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 x86"
14 IUSE=""
15
16 MODULE_NAMES="acer_acpi(extra:)"
17 BUILD_TARGETS="all"
18
19 pkg_setup() {
20 linux-mod_pkg_setup
21 BUILD_PARAMS="KERNELSRC=${KV_DIR} KERNELVERSION=${KV_FULL}"
22 if kernel_is gt 2 6 25; then
23 die "This driver is already included in >=linux-2.6.25. Its called ACER_WMI."
24 fi
25 }
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 sed -i -e "s/CFLAGS+/EXTRA_CFLAGS/" "${WORKDIR}"/${P}/Makefile
31 }
32 src_install() {
33 linux-mod_src_install
34 dodoc README NEWS AUTHORS
35 }
36
37 pkg_postinst() {
38 linux-mod_pkg_postinst
39
40 elog "You can load the module:"
41 elog "% modprobe acer_acpi"
42 elog
43 ewarn "From Version 0.3 on it is sufficient to load acer_acpi ONCE in your"
44 ewarn "/etc/modules.autoload.d/kernel-2.${KV_MINOR} file!"
45 ewarn "If you upgraded from version 0.1 or 0.2, than please delete on of the lines from that file!"
46 elog
47 elog "If you need more info about this driver you can read the README file"
48 elog "% zmore /usr/share/doc/${PF}/README.bz2"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20