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

Contents of /net-dialup/fcdslusba/fcdslusba-0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 29 13:53:47 2011 UTC (7 years, 1 month 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/fcdslusba/fcdslusba-0.1.ebuild,v 1.1 2008/01/06 01:50:23 sbriesen Exp $
4
5 inherit eutils rpm linux-mod
6
7 DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card DSL USB ANALOG"
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="~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 rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file"
35 DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-[0-9].[0-9]*-[0-9]*.tar.gz
36
37 cd "${S}"
38 epatch $(sed -n "s|^Patch[012345]:\s*\(.*\)|../\1|p" ../${PN}.spec)
39 convert_to_m "src/Makefile"
40 }
41
42 src_install() {
43 linux-mod_src_install
44 insinto /lib/firmware/isdn
45 doins *.frm
46 dodoc CAPI*.txt
47 dohtml *.html
48 }

  ViewVC Help
Powered by ViewVC 1.1.20