/[gentoo-x86]/net-dialup/fcdsl2/fcdsl2-0.1-r1.ebuild
Gentoo

Contents of /net-dialup/fcdsl2/fcdsl2-0.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 29 13:53:47 2011 UTC (8 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
punt

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl2/fcdsl2-0.1-r1.ebuild,v 1.1 2008/01/30 01:29:21 sbriesen Exp $
4
5 inherit eutils rpm linux-mod
6
7 DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card DSL v2.0 PCI"
8 HOMEPAGE="http://opensuse.foehr-it.de/"
9 SRC_URI="http://opensuse.foehr-it.de/rpms/10_3/src/${P}-0.src.rpm"
10
11 LICENSE="AVM-FC"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE=""
15
16 DEPEND=""
17 RDEPEND="net-dialup/capi4k-utils"
18
19 S="${WORKDIR}/fritz"
20
21 pkg_setup() {
22 linux-mod_pkg_setup
23
24 if ! kernel_is 2 6; then
25 die "This package works only with 2.6 kernel!"
26 fi
27
28 BUILD_TARGETS="all"
29 BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src"
30 MODULE_NAMES="${PN}(net:${S}/src)"
31 }
32
33 src_unpack() {
34 local BIT="" PAT="01234"
35 if use amd64; then
36 BIT="64bit-" PAT="1234"
37 fi
38
39 rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file"
40 DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz
41
42 cd "${S}"
43 epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec)
44 epatch "${FILESDIR}/${PN}_kernel-2.6.24.diff"
45 convert_to_m src/Makefile
46
47 for i in lib/*-lib.o; do
48 einfo "Localize symbols in ${i##*/} ..."
49 objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat \
50 -L strcmp -L strcpy -L strlen -L strncmp -L strncpy "${i}"
51 done
52 }
53
54 src_install() {
55 linux-mod_src_install
56 insinto /lib/firmware/isdn
57 doins ../*.bin
58 dodoc CAPI*.txt
59 dohtml *.html
60 }

  ViewVC Help
Powered by ViewVC 1.1.20