/[gentoo-x86]/app-laptop/acerhk/acerhk-0.5.35.ebuild
Gentoo

Contents of /app-laptop/acerhk/acerhk-0.5.35.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sun Jun 1 01:25:57 2008 UTC (6 years, 4 months ago) by jurek
Branch: MAIN
Changes since 1.5: +2 -2 lines
app-laptop/acerhk: Changed /etc/modules.d to /etc/modprobe.d (bug #214030)
(Portage version: 2.1.4.4)

1 jurek 1.5 # Copyright 1999-2008 Gentoo Foundation
2 jurek 1.1 # Distributed under the terms of the GNU General Public License v2
3 jurek 1.6 # $Header: /var/cvsroot/gentoo-x86/app-laptop/acerhk/acerhk-0.5.35.ebuild,v 1.5 2008/01/30 23:08:09 jurek Exp $
4 jurek 1.1
5     inherit linux-mod
6    
7     DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops"
8     HOMEPAGE="http://www.cakey.de/acerhk/"
9     SRC_URI="http://www.cakey.de/${PN}/archives/${P}.tar.bz2"
10    
11     LICENSE="GPL-2"
12 opfer 1.3 KEYWORDS="-ppc x86"
13 jurek 1.1 IUSE=""
14    
15     MODULE_NAMES="acerhk(extra:)"
16     BUILD_TARGETS="all"
17    
18     src_unpack()
19     {
20     unpack ${A}
21 jurek 1.5 cd "${S}"
22    
23     if [[ ${KV_MINOR} -eq 6 ]] && [[ ${KV_PATCH} -ge 24 ]]; then
24     sed -i -e \
25     's#^CFLAGS#EXTRA_CFLAGS#g' \
26     Makefile \
27     || die "sed failed"
28     fi
29 jurek 1.1 }
30    
31     pkg_setup() {
32     linux-mod_pkg_setup
33     BUILD_PARAMS="KERNELSRC=${KV_DIR} KERNELVERSION=${KV_FULL}"
34     }
35    
36     src_install() {
37     linux-mod_src_install
38 jurek 1.5 dodoc README NEWS
39 jurek 1.1 docinto doc
40     dodoc doc/*
41     }
42    
43     pkg_postinst() {
44     linux-mod_pkg_postinst
45    
46     elog "You can load the module:"
47     elog "% modprobe acerhk poll=1"
48 jurek 1.6 elog "If you need poll=1 you can set it permanently in /etc/modprobe.d/acerhk"
49 jurek 1.1 elog
50     elog "If you need more info about this driver you can read the README file"
51 jurek 1.4 elog "% zmore /usr/share/doc/${PF}/README.bz2"
52 jurek 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20