diff options
Diffstat (limited to 'sys-kernel/linux-headers/linux-headers-2.6.17-r2.ebuild')
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-2.6.17-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/linux-headers-2.6.17-r2.ebuild b/sys-kernel/linux-headers/linux-headers-2.6.17-r2.ebuild new file mode 100644 index 000000000000..8b960cff58ff --- /dev/null +++ b/sys-kernel/linux-headers/linux-headers-2.6.17-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.17-r2.ebuild,v 1.11 2007/12/31 18:46:36 armin76 Exp $ + +ETYPE="headers" +H_SUPPORTEDARCH="alpha amd64 arm hppa m68k ia64 ppc ppc64 s390 sh sparc x86" +inherit eutils multilib kernel-2 +detect_version + +PATCHES_V='5' + +SRC_URI="${KERNEL_URI} mirror://gentoo/linux-2.6.17-m68k-headers.patch.bz2 + http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-headers/gentoo-headers-${PV}-${PATCHES_V}.tar.bz2" + +KEYWORDS="-* alpha amd64 arm m68k ppc ppc64 sh ~sparc x86" + +UNIPATCH_LIST="${DISTDIR}/linux-2.6.17-m68k-headers.patch.bz2 + ${DISTDIR}/gentoo-headers-${PV}-${PATCHES_V}.tar.bz2" + +wrap_headers_fix() { + for i in $* + do + echo -n " $1/" + cd ${S}/include/$1 + headers___fix $(find . -type f -print) + shift + done + echo +} + +src_unpack() { + ABI=${KERNEL_ABI} + kernel-2_src_unpack + + # Fixes ... all the wrapper magic is to keep sed from dumping + # ugly warnings about how it can't work on a directory. + cd "${S}"/include + einfo "Applying automated fixes:" + wrap_headers_fix asm-* linux + einfo "... done" +} |