summaryrefslogtreecommitdiff
blob: 604060a466515d1bdfb3dd894c22b0b41937bba3 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/openadsl/openadsl-4.0.24.ebuild,v 1.1 2007/08/21 20:55:09 mrness Exp $

inherit linux-mod

MY_P="pulsar-${PV}"

DESCRIPTION="Driver for Pulsar PCI ADSL card"
HOMEPAGE="http://sf.net/projects/openadsl"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~x86"
IUSE=""

RDEPEND=""
DEPEND=""

S="${WORKDIR}/${MY_P}"

CONFIG_CHECK="ATM"
ATM_ERROR="${P} requires ATM support (CONFIG_ATM)."

MODULE_NAMES="pulsar_atm(net:)"
BUILD_TARGETS="default"
BUILD_PARAMS="KDIR=${KV_DIR}"

src_unpack() {
	unpack ${A}

	cd "${S}"
	epatch "${FILESDIR}/${PN}-makefile.2.6.patch"

	if kernel_is lt 2 6 0 ; then
		mv "${S}"/makefile.2.4 "${S}"/Makefile || die "unable to copy Makefile"
	else
		mv "${S}"/makefile.2.6 "${S}"/Makefile || die "unable to copy Makefile"
	fi
}