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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Aug 27 18:25:26 2005 UTC (9 years, 4 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Cleaning out old ebuilds
(Portage version: 1.589-cvs)

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.18.ebuild,v 1.6 2005/07/09 16:08:19 swegener 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 -ppc"
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/${PF}/README.gz"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20