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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Feb 27 16:50:34 2005 UTC (9 years, 4 months ago) by sekretarz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump, bug #77766
(Portage version: 2.0.51-r15)

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/acerhk/acerhk-0.5.14.ebuild,v 1.4 2005/01/02 19:43:27 dsd Exp $
4
5 inherit kernel-mod eutils
6
7 DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops"
8 HOMEPAGE="http://www.informatik.hu-berlin.de/~tauber/acerhk/"
9 SRC_URI="http://www.informatik.hu-berlin.de/~tauber/acerhk/archives/acerhk-${PV}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86"
14
15 IUSE=""
16 DEPEND="virtual/linux-sources"
17 RDEPEND=""
18
19 src_compile() {
20 unset ARCH
21 emake || die
22 }
23
24 src_install() {
25 kernel-mod_getversion
26 if [ ${KV_MINOR} -gt 4 ]
27 then
28 KV_OBJ="ko"
29 else
30 KV_OBJ="o"
31 fi
32
33 insinto /lib/modules/${KV}/extra
34 doins acerhk.${KV_OBJ}
35
36 dodoc README COPYING NEWS doc/*
37 }
38 pkg_postinst() {
39 kernel-mod_getversion
40 if [ ${KV_MINOR} -gt 4 ]
41 then
42 KV_OBJ="ko"
43 else
44 KV_OBJ="o"
45 fi
46
47 echo
48 einfo "Checking kernel module dependancies"
49 test -r "${ROOT}/usr/src/linux/System.map" && \
50 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
51
52 einfo "You can load the module:"
53 einfo "% modprobe acerhk poll=1"
54 echo
55 einfo "If you need more info about this driver you can read the README file"
56 einfo "% zmore /usr/share/doc/${PN}-${PV}/README.gz"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20