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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 29 13:53:46 2011 UTC (3 years, 7 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/e2220pc/e2220pc-0.1.ebuild,v 1.1 2008/01/06 01:25:30 sbriesen Exp $
4
5 inherit eutils rpm linux-mod
6
7 DESCRIPTION="AVM kernel 2.6 modules for Eumex 2220 PC"
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="!net-dialup/fritzcapi"
17 RDEPEND="${DEPEND} net-dialup/capi4k-utils"
18
19 S="${WORKDIR}/${PN}"
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 eumex*.tar.bz2
36
37 cd "${S}"
38 epatch $(sed -n "s|^Patch[01234]:\s*\(.*\)|../\1|p" ../${PN}.spec)
39 convert_to_m "src/Makefile"
40 }
41
42 src_install() {
43 linux-mod_src_install
44 dodoc CAPI*.txt
45 dohtml *.html
46 }

  ViewVC Help
Powered by ViewVC 1.1.20