--- /usr/portage/net-dialup/fcpci/fcpci-0.1-r1.ebuild 2009-04-05 10:08:24.000000000 +0200 +++ /usr/local/portage/ebuilds/net-dialup/fcpci/fcpci-0.1-r1.ebuild 2009-12-07 21:52:14.000000000 +0100 @@ -2,11 +2,14 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dialup/fcpci/fcpci-0.1-r1.ebuild,v 1.1 2008/01/30 01:36:37 sbriesen Exp $ -inherit eutils rpm linux-mod +EAPI=2 +inherit eutils rpm linux-mod versionator DESCRIPTION="AVM kernel 2.6 modules for Fritz!Card PCI" HOMEPAGE="http://opensuse.foehr-it.de/" -SRC_URI="http://opensuse.foehr-it.de/rpms/10_3/src/${P}-0.src.rpm" +#SRC_URI="http://opensuse.foehr-it.de/rpms/10_3/src/${P}-0.src.rpm" +SRC_URI="http://opensuse.foehr-it.de/rpms/11_2/src/${P}-0.src.rpm + -> ${P}-0.src-11_2.rpm" LICENSE="AVM-FC" SLOT="0" @@ -35,10 +38,15 @@ if use amd64; then BIT="64bit-" PAT="1234" fi - - rpm_unpack "${DISTDIR}/${A}" || die "failed to unpack ${A} file" + + rpm_unpack "${A}" || die "failed to unpack ${A} file" DISTDIR="${WORKDIR}" unpack ${PN}-suse[0-9][0-9]-${BIT}[0-9].[0-9]*-[0-9]*.tar.gz + if kernel_is ge 2 6 31 ; then + einfo "Registering additional patches for kernels >= 2.6.31" + PAT="${PAT}67" + fi + cd "${S}" epatch $(sed -n "s|^Patch[${PAT}]:\s*\(.*\)|../\1|p" ../${PN}.spec) convert_to_m src/Makefile