blob: 830636ac82d984afe9b2dbb1dc4094e0b4df16ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/gigaset-isdn/gigaset-isdn-0.4.0.ebuild,v 1.1 2004/11/07 21:44:26 mrness Exp $
inherit kernel-mod
MY_P=${P/-isdn/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Kernel driver for Gigaset 307X/M105/M101 and compatible ISDN adapters."
HOMEPAGE="http://gigaset307x.sourceforge.net/"
LICENSE="GPL-2"
DEPEND="virtual/linux-sources"
SRC_URI="mirror://sourceforge/gigaset307x/${MY_P}.tar.bz2"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug"
src_compile() {
check_KV
cd "${S}"
./configure --kernel=${KV} --kerneldir=${KV_DIR} --root=${D} --prefix=/usr \
--with-ring `use_with debug`
(
unset ARCH
emake || die "Compilation failed"
)
}
src_install () {
check_KV
cd "${S}"
#Disable depmod while in sandbox
sed -i -e 's:.*depmod :#&:' generic/post
einstall ROOT=${D} || die "Failed to install drivers"
dodoc README Release.notes TODO known_bugs.txt
}
pkg_postinst () {
check_KV
depmod -ae ${KV}
}
|