diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-06-27 21:34:59 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-06-27 21:34:59 +0000 |
commit | 7253483c5ccdbd613d6e75b192cff01c50a013bd (patch) | |
tree | b3efde43ffe57d8937ca8604656722425d58af18 /net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild | |
parent | version bump thanks to Serkan Kaba <serkan_kaba@yahoo.com> in bug 183106 (diff) | |
download | gentoo-2-7253483c5ccdbd613d6e75b192cff01c50a013bd.tar.gz gentoo-2-7253483c5ccdbd613d6e75b192cff01c50a013bd.tar.bz2 gentoo-2-7253483c5ccdbd613d6e75b192cff01c50a013bd.zip |
amd64 later 2.6 kernel fixes thanks to Miroslaw Mieszczak <mieszcz@zabrze.zigzag.pl> in bug 163366
(Portage version: 2.1.3_rc5)
Diffstat (limited to 'net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild')
-rw-r--r-- | net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild b/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild index 7acab9d8b682..72b1ae5dc3e5 100644 --- a/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild +++ b/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild,v 1.11 2007/05/02 07:53:25 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild,v 1.12 2007/06/27 21:34:59 genstef Exp $ inherit linux-mod rpm eutils @@ -108,12 +108,18 @@ src_unpack() { sed -i "s:\$(PWD)/../lib/driver-lib.o:${S}/e2220pc/lib/driver-lib.o:" ${i} convert_to_m ${i} done - if [ -e fritz.usb2 ]; then + if [ -e fritz.usb2 ]; then cd fritz.usb2; epatch ${FILESDIR}/fcusb2-2.6.19.patch; cd .. fi - epatch ${FILESDIR}/2.6.43-linux-2.6.19-irq_handler.patch - kernel_is ge 2 6 17 && epatch ${FILESDIR}/2.6.43-fcpcmcia.patch - #kernel_is ge 2 6 20 && epatch ${FILESDIR}/fritzcapi-2.6.20.patch + if ! use amd64; then + epatch ${FILESDIR}/2.6.43-linux-2.6.19-irq_handler.patch + kernel_is ge 2 6 17 && epatch ${FILESDIR}/2.6.43-fcpcmcia.patch + kernel_is ge 2 6 20 && epatch ${FILESDIR}/fritzcapi-2.6.20.patch + else + epatch ${FILESDIR}/2.6.43-linux-2.6.19-irq_handler.amd64.patch + kernel_is ge 2 6 17 && epatch ${FILESDIR}/2.6.43-fcpcmcia.amd64.patch + kernel_is ge 2 6 20 && epatch ${FILESDIR}/fritzcapi-2.6.20.amd64.patch + fi find -name \*.[hc] -print0 | xargs -0 sed -i ' s:#include <linux/config\.h>:#include <linux/autoconf.h>:; s/driver_init/fc_driver_init/g; s/driver_exit/fc_driver_exit/;' |