summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-12-06 19:06:25 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-12-06 19:06:25 +0000
commit101ee13ecaf5882221dbee4c102dbe136b4c7e97 (patch)
tree84cac1ef3c43f2848337d6542759eaa28d3e922a /sys-kernel/linux-headers
parentno more linux-extras (diff)
downloadhistorical-101ee13ecaf5882221dbee4c102dbe136b4c7e97.tar.gz
historical-101ee13ecaf5882221dbee4c102dbe136b4c7e97.tar.bz2
historical-101ee13ecaf5882221dbee4c102dbe136b4c7e97.zip
cleanup, and new linux-headers.
Diffstat (limited to 'sys-kernel/linux-headers')
-rw-r--r--sys-kernel/linux-headers/files/2.4.14-loop.c.diff17
-rw-r--r--sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r37
-rw-r--r--sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r48
-rw-r--r--sys-kernel/linux-headers/files/digest-linux-headers-2.4.14-r27
-rw-r--r--sys-kernel/linux-headers/files/digest-linux-headers-2.4.160
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.4.10-r3.ebuild268
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.4.10-r4.ebuild273
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.4.14-r2.ebuild320
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.4.16.ebuild156
9 files changed, 156 insertions, 900 deletions
diff --git a/sys-kernel/linux-headers/files/2.4.14-loop.c.diff b/sys-kernel/linux-headers/files/2.4.14-loop.c.diff
deleted file mode 100644
index 0f8c41bbaef8..000000000000
--- a/sys-kernel/linux-headers/files/2.4.14-loop.c.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- linux.orig/drivers/block/loop.c Fri Nov 9 22:37:23 2001
-+++ linux/drivers/block/loop.c Fri Nov 9 22:38:05 2001
-@@ -218,14 +218,12 @@
- index++;
- pos += size;
- UnlockPage(page);
-- deactivate_page(page);
- page_cache_release(page);
- }
- return 0;
-
- unlock:
- UnlockPage(page);
-- deactivate_page(page);
- page_cache_release(page);
- fail:
- return -1;
diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r3 b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r3
deleted file mode 100644
index 900f40f733c1..000000000000
--- a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r3
+++ /dev/null
@@ -1,7 +0,0 @@
-MD5 2675f146c7496e6330f3c61ab644bd0d 2.4.10-low-latency.patch.gz 12288
-MD5 47a3c1ec4f3dc91e30e25bba5650fc3e ext3-2.4.10.gz 143360
-MD5 10ca20ea0783f3d2209c44d47023a679 ext3-dir-speedup.patch 12288
-MD5 d75e17cc3623eab2de5550308f1daea7 linux-2.4.10.tar.bz2 22913024
-MD5 066f2fca42aa46df3b5993921c4686ba lvm-1.0.1-rc4-2.4.10.patch.bz2 32768
-MD5 1aa87a35a1d808534cc78f32af0a1b2d lvm_1.0.1-rc4.tar.gz 360448
-MD5 da1e0fbc0ae1ff0262e439d38dad6c9e preempt-kernel-rml-2.4.10-7.patch 36864
diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r4 b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r4
deleted file mode 100644
index a1b8590cc8d4..000000000000
--- a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.10-r4
+++ /dev/null
@@ -1,8 +0,0 @@
-MD5 2675f146c7496e6330f3c61ab644bd0d 2.4.10-low-latency.patch.gz 12288
-MD5 af42e319147d6441fe61669ab2e55efd acpi-20010920.diff.gz 73728
-MD5 47a3c1ec4f3dc91e30e25bba5650fc3e ext3-2.4.10.gz 143360
-MD5 10ca20ea0783f3d2209c44d47023a679 ext3-dir-speedup.patch 12288
-MD5 d75e17cc3623eab2de5550308f1daea7 linux-2.4.10.tar.bz2 22913024
-MD5 066f2fca42aa46df3b5993921c4686ba lvm-1.0.1-rc4-2.4.10.patch.bz2 32768
-MD5 1aa87a35a1d808534cc78f32af0a1b2d lvm_1.0.1-rc4.tar.gz 360448
-MD5 da1e0fbc0ae1ff0262e439d38dad6c9e preempt-kernel-rml-2.4.10-7.patch 36864
diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.14-r2 b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.14-r2
deleted file mode 100644
index 93b166223364..000000000000
--- a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.14-r2
+++ /dev/null
@@ -1,7 +0,0 @@
-MD5 123dce508ca65a066fba7644b306180e 2.4.14-low-latency.patch.gz 12288
-MD5 1201fb14c225d918825bbd98f562ebd2 acpi-20011109.diff.gz 98304
-MD5 29df832104cc0655396e8a9a452bef2a ext3-2.4-0.9.15-2414.gz 139264
-MD5 dc03387783a8f58c90ef7b1ec6af252a linux-2.4.14.tar.bz2 23203840
-MD5 dc1098abb4b2d20d5869f6b0392cb734 lvm-1.0.1-rc4-2.4.14-r2.patch.bz2 32768
-MD5 1aa87a35a1d808534cc78f32af0a1b2d lvm_1.0.1-rc4.tar.gz 360448
-MD5 5b349b78918163fbbebf77a5593ab4b2 preempt-kernel-rml-2.4.14-2.patch 49152
diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.16 b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.16
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.16
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.10-r3.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.10-r3.ebuild
deleted file mode 100644
index 645c1c2c6f62..000000000000
--- a/sys-kernel/linux-headers/linux-headers-2.4.10-r3.ebuild
+++ /dev/null
@@ -1,268 +0,0 @@
-# Copyright 1999-2001 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: System Team <system@gentoo.org>
-# Author: Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.10-r3.ebuild,v 1.1 2001/10/12 03:59:48 drobbins Exp $
-
-#OKV=original kernel version, KV=patched kernel version. They can be the same.
-
-OKV=2.4.10
-KV=2.4.10
-S=${WORKDIR}/linux-${KV}
-S2=${WORKDIR}/linux-${KV}-extras
-if [ $PN = "linux-extras" ]
-then
- KS=${ROOT}usr/src/linux-${KV}
- KS2=${ROOT}usr/src/linux-${KV}-extras
-else
- KS=${S}
- KS2=${S2}
-fi
-
-# Kernel Features Enabled USE Variable Status
-#
-# Reiserfs Y - Production-ready
-# JFS N jfs Testing-only (commented out for now)
-# LVM Y lvm Production-ready
-# ext3 Y ext3 Production-ready
-# MOSIX N mosix Testing only, probably quite stable
-# XFS N xfs will probably need to be placed in a separate kernel
-# PCMCIA-CS N pcmcia Need to move this to its own ebuild
-# lm-sensors N lm_sensors Need to move this to its own ebuild
-
-LVMV=1.0.1-rc4
-
-#[ "${PN}" = "linux" ] && DESCRIPTION="Linux kernel version ${KV}, including modules, binary tools, libraries and includes"
-[ "${PN}" = "linux-sources" ] && DESCRIPTION="Linux kernel version ${KV} - full sources"
-#[ "${PN}" = "linux-extras" ] && DESCRIPTION="Linux kernel support tools and libraries"
-
-# We use build in /usr/src/linux in case of linux-extras
-# so we need no sources
-[ ! "${PN}" = "linux-extras" ] && SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
-http://www.ibiblio.org/gentoo/distfiles/lvm-${LVMV}-${KV}.patch.bz2
-ftp://ftp.sistina.com/pub/LVM/1.0/lvm_${LVMV}.tar.gz
-http://www.tech9.net/rml/linux/preempt-kernel-rml-2.4.10-7.patch
-http://www.uow.edu.au/~andrewm/linux/2.4.10-low-latency.patch.gz
-http://www.uow.edu.au/~andrewm/linux/ext3-dir-speedup.patch
-http://lameter.com/kernel/ext3-2.4.10.gz"
-
-[ "$PN" != "linux-extras" ] && PROVIDE="virtual/kernel"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.namesys.com
- http://www.sistina.com/lvm/"
-
-DEPEND=">=sys-apps/modutils-2.4.2 sys-devel/perl"
-#these deps are messed up; fix 'em and add ncurses (required my mosix compile, menuconfig)
-if [ $PN = "linux" ]
-then
-# RDEPEND="mosix? ( ~sys-apps/mosix-user-${MOSV} ) >=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1"
- RDEPEND=">=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1"
-elif [ $PN = "linux-sources" ]
-then
- if [ "`use build`" ]
- then
- DEPEND=""
- RDEPEND=""
- else
- #ncurses is required for "make menuconfig"
- RDEPEND=">=sys-libs/ncurses-5.2"
- fi
-elif [ $PN = "linux-extras" ]
-then
- #linux-extras/headers requires a rev of the current kernel sources to be installed
- RDEPEND="~sys-kernel/linux-sources-${PV}"
-elif [ $PN = "linux-headers" ]
-then
- DEPEND=""
- RDEPEND=""
-fi
-
-# this is not pretty...
-[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${KS}/include"
-
-src_unpack() {
- [ "$PN" = "linux-extras" ] && return
- mkdir ${S2}
-
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- mv linux linux-${KV} || die
- cd ${S}
- if [ "$KV" != "$OKV" ]
- then
- echo "Applying ${KV} patch..."
- bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 || die
- fi
- dodir /usr/src/linux-${KV}-extras
-
- #specific to 2.4.10; preempt and ext3 patches
- cd ${S}
- patch -p1 < ${DISTDIR}/preempt-kernel-rml-2.4.10-7.patch
- cat ${DISTDIR}/ext3-2.4.10.gz | gzip -dc | patch -p1 || die
- #the LVM patch is included to replace the old version, irregardless if USE lvm is set
- cat ${DISTDIR}/lvm-${LVMV}-${KV}.patch.bz2 | bzip2 -d | patch -N -l -p1
- #|| die
- #we removed || die because any stuff that hits -N causes an error code of 1
- cd ${S2}
- unpack lvm_${LVMV}.tar.gz
- #get sources ready for compilation or for sitting at /usr/src/linux
-
- #apply low-latency patch
- cd ${S}
- cat ${DISTDIR}/2.4.10-low-latency.patch.gz | gzip -d | patch -p1 || die
-
- #apply Ted T'so's ext3 directory speedup patch.
- cat ${DISTDIR}/ext3-dir-speedup.patch | patch -p1 || die
-
- echo "Preparing for compilation..."
- cd ${S}
-
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper || die
-
- #linux-sources needs to be fully configured, too. Not just linux
- #this is the configuration for the default kernel
- cp ${PORTDIR}/sys-kernel/linux-sources/files/config.default .config || die
- yes "" | make oldconfig
- echo "Ignore any errors from the yes command above."
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 *
- chmod -R a+r-w+X,u+w *
-}
-
-src_compile() {
- if [ "${PN}" = "linux-headers" ]
- then
- cd ${KS}
- make include/linux/autoconf.h include/linux/version.h || die
- elif [ "${PN}" = "linux-sources" ]
- then
- echo
- else
- if [ $PN = "linux" ]
- then
- cd ${KS}
- make symlinks || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" dep || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" LEX="flex -l" bzImage || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" LEX="flex -l" modules || die
- fi
- #LVM tools are included in the linux and linux-extras pakcages
- cd ${KS2}/LVM/${LVMV}
-
- # This is needed for linux-extras
- if [ -f "Makefile" ]
- then
- make clean || die
- fi
- # I had to hack this in so that LVM will look in the current linux
- # source directory instead of /usr/src/linux for stuff - pete
- CFLAGS="${CFLAGS} -I${KS}/include" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${KS}" || die
- make || die
- fi
-}
-
-src_install() {
- if [ "${PN}" = "linux" ] || [ "${PN}" = "linux-extras" ]
- then
- dodir /usr/lib
-
- cd ${KS2}/LVM/${LVMV}/tools
- CFLAGS="${CFLAGS} -I${KS}/include" make install -e prefix=${D} mandir=${D}/usr/share/man sbindir=${D}/sbin libdir=${D}/lib || die
- #no need for a static library in /lib
- mv ${D}/lib/*.a ${D}/usr/lib
-
- if [ "${PN}" = "linux" ]
- then
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- #grab includes and documentation only
- echo ">>> Copying includes and documentation..."
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-
- #grab compiled kernel
- dodir /boot/boot
- insinto /boot/boot
- cd ${S}
- doins arch/i386/boot/bzImage
-
- #grab modules
- # Do we have a bug in modutils ?
- # Meanwhile we use this quick fix (achim)
-
- install -d ${D}/lib/modules/`uname -r`
- make INSTALL_MOD_PATH=${D} modules_install || die
-
- cd ${S}
- depmod -b ${D} -F ${S}/System.map ${KV}
- #rm -rf ${D}/lib/modules/`uname -r`
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
- fi
-
- cd ${KS2}/cloop-${CLOOPV}
- insinto /lib/modules/${KV}/kernel/drivers/block
- doins cloop.o
- into /usr
- dobin create_compressed_fs extract_compressed_fs
-
- elif [ "$PN" = "linux-sources" ]
- then
- dodir /usr/src
- cd ${S}
- echo ">>> Copying sources..."
- cp -ax ${WORKDIR}/* ${D}/usr/src
- elif [ "$PN" = "linux-headers" ]
- then
- dodir /usr/include/linux
- cp -ax ${KS}/include/linux/* ${D}/usr/include/linux
- dodir /usr/include/asm
- cp -ax ${KS}/include/asm-i386/* ${D}/usr/include/asm
- fi
- if [ -d ${D}/usr/src/linux-${KV} ]
- then
- #don't overwrite existing .config if present
- cd ${D}/usr/src/linux-${KV}
- if [ -e .config ]
- then
- cp -a .config .config.eg
- fi
- fi
-}
-
-pkg_preinst() {
- if [ "$PN" = "linux-headers" ]
- then
- if [ -L ${ROOT}usr/include/linux ]
- then
- rm ${ROOT}usr/include/linux
- fi
- if [ -L ${ROOT}usr/include/asm ]
- then
- rm ${ROOT}usr/include/asm
- fi
- fi
-}
-
-pkg_postinst() {
- if [ "$PN" = "linux-extras" ] || [ "$PN" = "linux-headers" ]
- then
- return
- fi
- rm -f ${ROOT}/usr/src/linux
- ln -sf linux-${KV} ${ROOT}/usr/src/linux
-
- #copy over our .config if one isn't already present
- cd ${ROOT}/usr/src/linux-${KV}
- if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
- then
- cp -a .config.eg .config
- fi
-}
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.10-r4.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.10-r4.ebuild
deleted file mode 100644
index 037f5a73593f..000000000000
--- a/sys-kernel/linux-headers/linux-headers-2.4.10-r4.ebuild
+++ /dev/null
@@ -1,273 +0,0 @@
-# Copyright 1999-2001 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: System Team <system@gentoo.org>
-# Author: Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.10-r4.ebuild,v 1.1 2001/10/15 00:06:44 azarah Exp $
-
-#OKV=original kernel version, KV=patched kernel version. They can be the same.
-
-OKV=2.4.10
-KV=2.4.10
-S=${WORKDIR}/linux-${KV}
-S2=${WORKDIR}/linux-${KV}-extras
-if [ $PN = "linux-extras" ]
-then
- KS=${ROOT}usr/src/linux-${KV}
- KS2=${ROOT}usr/src/linux-${KV}-extras
-else
- KS=${S}
- KS2=${S2}
-fi
-
-# Kernel Features Enabled USE Variable Status
-#
-# Reiserfs Y - Production-ready
-# JFS N jfs Testing-only (commented out for now)
-# LVM Y lvm Production-ready
-# ext3 Y ext3 Production-ready
-# MOSIX N mosix Testing only, probably quite stable
-# XFS N xfs will probably need to be placed in a separate kernel
-# PCMCIA-CS N pcmcia Need to move this to its own ebuild
-# lm-sensors N lm_sensors Need to move this to its own ebuild
-
-LVMV=1.0.1-rc4
-ACPIV=20010920
-
-#[ "${PN}" = "linux" ] && DESCRIPTION="Linux kernel version ${KV}, including modules, binary tools, libraries and includes"
-[ "${PN}" = "linux-sources" ] && DESCRIPTION="Linux kernel version ${KV} - full sources"
-#[ "${PN}" = "linux-extras" ] && DESCRIPTION="Linux kernel support tools and libraries"
-
-# We use build in /usr/src/linux in case of linux-extras
-# so we need no sources
-[ ! "${PN}" = "linux-extras" ] && SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
-http://www.ibiblio.org/gentoo/distfiles/lvm-${LVMV}-${KV}.patch.bz2
-ftp://ftp.sistina.com/pub/LVM/1.0/lvm_${LVMV}.tar.gz
-http://www.tech9.net/rml/linux/preempt-kernel-rml-2.4.10-7.patch
-http://www.uow.edu.au/~andrewm/linux/2.4.10-low-latency.patch.gz
-http://www.uow.edu.au/~andrewm/linux/ext3-dir-speedup.patch
-http://lameter.com/kernel/ext3-2.4.10.gz
-http://developer.intel.com/technology/iapc/acpi/downloads/acpi-${ACPIV}.diff.gz"
-
-[ "$PN" != "linux-extras" ] && PROVIDE="virtual/kernel"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.namesys.com
- http://www.sistina.com/lvm/"
-
-DEPEND=">=sys-apps/modutils-2.4.2 sys-devel/perl"
-#these deps are messed up; fix 'em and add ncurses (required my mosix compile, menuconfig)
-if [ $PN = "linux" ]
-then
-# RDEPEND="mosix? ( ~sys-apps/mosix-user-${MOSV} ) >=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1"
- RDEPEND=">=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1"
-elif [ $PN = "linux-sources" ]
-then
- if [ "`use build`" ]
- then
- DEPEND=""
- RDEPEND=""
- else
- #ncurses is required for "make menuconfig"
- RDEPEND=">=sys-libs/ncurses-5.2"
- fi
-elif [ $PN = "linux-extras" ]
-then
- #linux-extras/headers requires a rev of the current kernel sources to be installed
- RDEPEND="~sys-kernel/linux-sources-${PV}"
-elif [ $PN = "linux-headers" ]
-then
- DEPEND=""
- RDEPEND=""
-fi
-
-# this is not pretty...
-[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${KS}/include"
-
-src_unpack() {
- [ "$PN" = "linux-extras" ] && return
- mkdir ${S2}
-
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- mv linux linux-${KV} || die
- cd ${S}
- if [ "$KV" != "$OKV" ]
- then
- echo "Applying ${KV} patch..."
- bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 || die
- fi
- dodir /usr/src/linux-${KV}-extras
-
- #specific to 2.4.10; preempt and ext3 patches
- cd ${S}
- patch -p1 < ${DISTDIR}/preempt-kernel-rml-2.4.10-7.patch
- cat ${DISTDIR}/ext3-2.4.10.gz | gzip -dc | patch -p1 || die
- #the LVM patch is included to replace the old version, irregardless if USE lvm is set
- cat ${DISTDIR}/lvm-${LVMV}-${KV}.patch.bz2 | bzip2 -d | patch -N -l -p1
- #|| die
- #we removed || die because any stuff that hits -N causes an error code of 1
- cd ${S2}
- unpack lvm_${LVMV}.tar.gz
- #get sources ready for compilation or for sitting at /usr/src/linux
-
- #apply low-latency patch
- cd ${S}
- cat ${DISTDIR}/2.4.10-low-latency.patch.gz | gzip -d | patch -p1 || die
-
- #apply Ted T'so's ext3 directory speedup patch.
- cat ${DISTDIR}/ext3-dir-speedup.patch | patch -p1 || die
-
- #apply ACPI updates
- cat ${DISTDIR}/acpi-${ACPIV}.diff.gz | gzip -d | patch -p1 || die
-
- echo "Preparing for compilation..."
- cd ${S}
-
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper || die
-
- #linux-sources needs to be fully configured, too. Not just linux
- #this is the configuration for the default kernel
- cp ${PORTDIR}/sys-kernel/linux-sources/files/config.default .config || die
- yes "" | make oldconfig
- echo "Ignore any errors from the yes command above."
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 *
- chmod -R a+r-w+X,u+w *
-}
-
-src_compile() {
- if [ "${PN}" = "linux-headers" ]
- then
- cd ${KS}
- make include/linux/autoconf.h include/linux/version.h || die
- elif [ "${PN}" = "linux-sources" ]
- then
- echo
- else
- if [ $PN = "linux" ]
- then
- cd ${KS}
- make symlinks || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" dep || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" LEX="flex -l" bzImage || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" LEX="flex -l" modules || die
- fi
- #LVM tools are included in the linux and linux-extras pakcages
- cd ${KS2}/LVM/${LVMV}
-
- # This is needed for linux-extras
- if [ -f "Makefile" ]
- then
- make clean || die
- fi
- # I had to hack this in so that LVM will look in the current linux
- # source directory instead of /usr/src/linux for stuff - pete
- CFLAGS="${CFLAGS} -I${KS}/include" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${KS}" || die
- make || die
- fi
-}
-
-src_install() {
- if [ "${PN}" = "linux" ] || [ "${PN}" = "linux-extras" ]
- then
- dodir /usr/lib
-
- cd ${KS2}/LVM/${LVMV}/tools
- CFLAGS="${CFLAGS} -I${KS}/include" make install -e prefix=${D} mandir=${D}/usr/share/man sbindir=${D}/sbin libdir=${D}/lib || die
- #no need for a static library in /lib
- mv ${D}/lib/*.a ${D}/usr/lib
-
- if [ "${PN}" = "linux" ]
- then
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- #grab includes and documentation only
- echo ">>> Copying includes and documentation..."
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-
- #grab compiled kernel
- dodir /boot/boot
- insinto /boot/boot
- cd ${S}
- doins arch/i386/boot/bzImage
-
- #grab modules
- # Do we have a bug in modutils ?
- # Meanwhile we use this quick fix (achim)
-
- install -d ${D}/lib/modules/`uname -r`
- make INSTALL_MOD_PATH=${D} modules_install || die
-
- cd ${S}
- depmod -b ${D} -F ${S}/System.map ${KV}
- #rm -rf ${D}/lib/modules/`uname -r`
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
- fi
-
- cd ${KS2}/cloop-${CLOOPV}
- insinto /lib/modules/${KV}/kernel/drivers/block
- doins cloop.o
- into /usr
- dobin create_compressed_fs extract_compressed_fs
-
- elif [ "$PN" = "linux-sources" ]
- then
- dodir /usr/src
- cd ${S}
- echo ">>> Copying sources..."
- cp -ax ${WORKDIR}/* ${D}/usr/src
- elif [ "$PN" = "linux-headers" ]
- then
- dodir /usr/include/linux
- cp -ax ${KS}/include/linux/* ${D}/usr/include/linux
- dodir /usr/include/asm
- cp -ax ${KS}/include/asm-i386/* ${D}/usr/include/asm
- fi
- if [ -d ${D}/usr/src/linux-${KV} ]
- then
- #don't overwrite existing .config if present
- cd ${D}/usr/src/linux-${KV}
- if [ -e .config ]
- then
- cp -a .config .config.eg
- fi
- fi
-}
-
-pkg_preinst() {
- if [ "$PN" = "linux-headers" ]
- then
- if [ -L ${ROOT}usr/include/linux ]
- then
- rm ${ROOT}usr/include/linux
- fi
- if [ -L ${ROOT}usr/include/asm ]
- then
- rm ${ROOT}usr/include/asm
- fi
- fi
-}
-
-pkg_postinst() {
- if [ "$PN" = "linux-extras" ] || [ "$PN" = "linux-headers" ]
- then
- return
- fi
- rm -f ${ROOT}/usr/src/linux
- ln -sf linux-${KV} ${ROOT}/usr/src/linux
-
- #copy over our .config if one isn't already present
- cd ${ROOT}/usr/src/linux-${KV}
- if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
- then
- cp -a .config.eg .config
- fi
-}
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.14-r2.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.14-r2.ebuild
deleted file mode 100644
index 4685fbb42d4a..000000000000
--- a/sys-kernel/linux-headers/linux-headers-2.4.14-r2.ebuild
+++ /dev/null
@@ -1,320 +0,0 @@
-# Copyright 1999-2001 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: System Team <system@gentoo.org>
-# Author: Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.14-r2.ebuild,v 1.1 2001/11/18 12:32:17 azarah Exp $
-
-#OKV=original kernel version, KV=patched kernel version. They can be the same.
-
-OKV=2.4.14
-KV=2.4.14
-S=${WORKDIR}/linux-${KV}
-S2=${WORKDIR}/linux-${KV}-extras
-if [ $PN = "linux-extras" ]
-then
- KS=${ROOT}usr/src/linux-${KV}
- KS2=${ROOT}usr/src/linux-${KV}-extras
-else
- KS=${S}
- KS2=${S2}
-fi
-
-# Kernel Features Enabled USE Variable Status
-#
-# Reiserfs Y - Production-ready
-# JFS N jfs Testing-only (commented out for now)
-# LVM Y lvm Production-ready
-# ext3 Y ext3 Production-ready
-# MOSIX N mosix Testing only, probably quite stable
-# XFS N xfs will probably need to be placed in a separate kernel
-# PCMCIA-CS N pcmcia Need to move this to its own ebuild
-# lm-sensors N lm_sensors Need to move this to its own ebuild
-
-# Patch Versions
-ACPIV=20011109
-LVMV=1.0.1-rc4
-EXT3V=0.9.15
-LOWLV=2.4.14
-PREEV="${KV}-2"
-
-EXT3P="ext3-2.4-${EXT3V}-`echo ${KV} |sed -e 's:\.::g' -e 's:-::'`"
-
-[ "${PN}" = "linux" ] && DESCRIPTION="Linux kernel version ${KV}, including modules, binary tools, libraries and includes"
-[ "${PN}" = "linux-sources" ] && DESCRIPTION="Linux kernel version ${KV} - full sources"
-[ "${PN}" = "linux-extras" ] && DESCRIPTION="Linux kernel support tools and libraries"
-
-# We use build in /usr/src/linux in case of linux-extras
-# so we need no sources
-[ ! "${PN}" = "linux-extras" ] && SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
-ftp://ftp.sistina.com/pub/LVM/1.0/lvm_${LVMV}.tar.gz
-ftp://ftp.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/2.4/preempt-kernel-rml-${PREEV}.patch
-http://www.uow.edu.au/~andrewm/linux/${LOWLV}-low-latency.patch.gz
-http://www.zip.com.au/~akpm/${EXT3P}.gz
-http://developer.intel.com/technology/iapc/acpi/downloads/acpi-${ACPIV}.diff.gz"
-
-# Make live easier for creating the LVM patch when packaging
-# The patch will be copied to /tmp/kpatches. Maybe some other
-# stuff can make use of this?
-[ "$MAKEPATCH" != "yes" ] && SRC_URI="${SRC_URI}
-http://www.ibiblio.org/gentoo/distfiles/lvm-${LVMV}-${PVR}.patch.bz2"
-
-[ "$PN" != "linux-extras" ] && PROVIDE="virtual/kernel"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://developer.intel.com/technology/iapc/acpi/"
-
-DEPEND=">=sys-apps/modutils-2.4.2 sys-devel/perl"
-#these deps are messed up; fix 'em and add ncurses (required my mosix compile, menuconfig)
-if [ $PN = "linux" ]
-then
-# RDEPEND="mosix? ( ~sys-apps/mosix-user-${MOSV} ) >=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1"
- RDEPEND=">=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1"
-elif [ $PN = "linux-sources" ]
-then
- if [ "`use build`" ]
- then
- DEPEND=""
- RDEPEND=""
- else
- #ncurses is required for "make menuconfig"
- RDEPEND=">=sys-libs/ncurses-5.2"
- fi
-elif [ $PN = "linux-extras" ]
-then
- #linux-extras/headers requires a rev of the current kernel sources to be installed
- RDEPEND="~sys-kernel/linux-sources-${PV}"
-elif [ $PN = "linux-headers" ]
-then
- DEPEND=""
- RDEPEND=""
-fi
-
-# this is not pretty...
-[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${KS}/include"
-
-src_unpack() {
-
- [ "$PN" = "linux-extras" ] && return
- mkdir ${S2}
-
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- mv linux linux-${KV} || die
- cd ${S}
- if [ "$KV" != "$OKV" ]
- then
- echo "Applying ${KV} patch..."
- bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 || die
- fi
- dodir /usr/src/linux-${KV}-extras
-
- #specific to 2.4.10; preempt and ext3 patches
- cd ${S}
- patch -p1 < ${DISTDIR}/preempt-kernel-rml-${PREEV}.patch
- cat ${DISTDIR}/${EXT3P}.gz | gzip -dc | patch -p1 || die
-
- #get LVM sources ready for compile or sitting at /usr/src;
- #generate the kernel patch, and apply it
- cd ${S2}
- unpack lvm_${LVMV}.tar.gz
-
- #Generate the patch, and cp it to /tmp/kpatches
- if [ "$MAKEPATCH" = "yes" ] ; then
- local S_LVM="${S2}/LVM/${LVMV}"
- cd ${S_LVM}
- ./configure --with-kernel_dir=${S} || die
- cd ${S_LVM}/PATCHES
- mv Makefile Makefile.orig
- sed -e 's:/usr/src/linux:${S}:' Makefile.orig >Makefile || die
- make || die
- mv ${S_LVM}/PATCHES/lvm-${LVMV}-${KV}.patch ${WORKDIR}
- mv Makefile.orig Makefile
- cd ${S_LVM}
- make distclean
- #the LVM patch is included to replace the old version, irregardless if USE lvm is set
- cd ${S}
- patch -l -p1 <${WORKDIR}/lvm-${LVMV}-${KV}.patch || die
- mkdir /tmp/kpatches
- bzip2 -c ${WORKDIR}/lvm-${LVMV}-${KV}.patch >/tmp/kpatches/lvm-${LVMV}-${PVR}.patch.bz2
-
- #normar merge, just patch with patch from gentoo mirror
- else
- cd ${S}
- cat ${DISTDIR}/lvm-${LVMV}-${PVR}.patch.bz2 | bzip2 -dc | patch -l -p1 || die
- fi
-
- #apply low-latency patch
- cd ${S}
- cat ${DISTDIR}/${LOWLV}-low-latency.patch.gz | gzip -d | patch -p1 || die
-
- #apply ACPI updates
- cat ${DISTDIR}/acpi-${ACPIV}.diff.gz | gzip -d | patch -p1 || die
-
- #fix problem compiling ${S}/drivers/block/loop.c as module
- patch -p1 <${FILESDIR}/2.4.14-loop.c.diff || die
-
- echo "Preparing for compilation..."
- cd ${S}
-
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper || die
-
- #linux-sources needs to be fully configured, too. Not just linux
- #this is the configuration for the default kernel
- cp ${PORTDIR}/sys-kernel/linux-sources/files/config.default .config || die
- yes "" | make oldconfig
- echo "Ignore any errors from the yes command above."
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 *
- chmod -R a+r-w+X,u+w *
-
- # Gentoo Linux uses /boot, so fix 'make install' to work properly
- #seems they cant make up their mind if it should be a space or tab
- cd ${S}
- mv Makefile Makefile.orig
- sed -e 's/#export\tINSTALL_PATH/export\tINSTALL_PATH/' \
- Makefile.orig >Makefile || die # test, remove me if Makefile ok
- rm Makefile.orig
-}
-
-src_compile() {
-
- if [ "${PN}" = "linux-headers" ]
- then
- cd ${KS}
- make include/linux/autoconf.h include/linux/version.h || die
- elif [ "${PN}" = "linux-sources" ]
- then
- echo
- else
- if [ $PN = "linux" ]
- then
- cd ${KS}
- make symlinks || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" dep || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" LEX="flex -l" bzImage || die
- make HOSTCFLAGS="${LINUX_HOSTCFLAGS}" LEX="flex -l" modules || die
- fi
- #LVM tools are included in the linux and linux-extras pakcages
- cd ${KS2}/LVM/${LVMV}
-
- # This is needed for linux-extras
- if [ -f "Makefile" ]
- then
- make clean || die
- fi
- # I had to hack this in so that LVM will look in the current linux
- # source directory instead of /usr/src/linux for stuff - pete
- CFLAGS="${CFLAGS} -I${KS}/include" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${KS}" || die
- make || die
- fi
-}
-
-src_install() {
-
- if [ "${PN}" = "linux" ] || [ "${PN}" = "linux-extras" ]
- then
- dodir /usr/lib
-
- cd ${KS2}/LVM/${LVMV}/tools
- CFLAGS="${CFLAGS} -I${KS}/include" make install -e prefix=${D} mandir=${D}/usr/share/man sbindir=${D}/sbin libdir=${D}/lib || die
- #no need for a static library in /lib
- mv ${D}/lib/*.a ${D}/usr/lib
-
- if [ "${PN}" = "linux" ]
- then
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- #grab includes and documentation only
- echo ">>> Copying includes and documentation..."
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-
- #grab compiled kernel
- dodir /boot/boot
- insinto /boot/boot
- cd ${S}
- doins arch/i386/boot/bzImage
-
- #grab modules
- # Do we have a bug in modutils ?
- # Meanwhile we use this quick fix (achim)
-
- install -d ${D}/lib/modules/`uname -r`
- make INSTALL_MOD_PATH=${D} modules_install || die
-
- cd ${S}
- depmod -b ${D} -F ${S}/System.map ${KV}
- #rm -rf ${D}/lib/modules/`uname -r`
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
- fi
-
- cd ${KS2}/cloop-${CLOOPV}
- insinto /lib/modules/${KV}/kernel/drivers/block
- doins cloop.o
- into /usr
- dobin create_compressed_fs extract_compressed_fs
-
- elif [ "$PN" = "linux-sources" ]
- then
- dodir /usr/src
- cd ${S}
- echo ">>> Copying sources..."
- cp -ax ${WORKDIR}/* ${D}/usr/src
- elif [ "$PN" = "linux-headers" ]
- then
- dodir /usr/include/linux
- cp -ax ${KS}/include/linux/* ${D}/usr/include/linux
- dodir /usr/include/asm
- cp -ax ${KS}/include/asm-i386/* ${D}/usr/include/asm
- fi
- if [ -d ${D}/usr/src/linux-${KV} ]
- then
- #don't overwrite existing .config if present
- cd ${D}/usr/src/linux-${KV}
- if [ -e .config ]
- then
- cp -a .config .config.eg
- fi
- fi
-}
-
-pkg_preinst() {
-
- if [ "$PN" = "linux-headers" ]
- then
- if [ -L ${ROOT}usr/include/linux ]
- then
- rm ${ROOT}usr/include/linux
- fi
- if [ -L ${ROOT}usr/include/asm ]
- then
- rm ${ROOT}usr/include/asm
- fi
- fi
-}
-
-pkg_postinst() {
-
- if [ "$PN" = "linux-extras" ] || [ "$PN" = "linux-headers" ]
- then
- return
- fi
- rm -f ${ROOT}/usr/src/linux
- ln -sf linux-${KV} ${ROOT}/usr/src/linux
-
- #copy over our .config if one isn't already present
- cd ${ROOT}/usr/src/linux-${KV}
- if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
- then
- cp -a .config.eg .config
- fi
-}
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.16.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.16.ebuild
new file mode 100644
index 000000000000..be330f954871
--- /dev/null
+++ b/sys-kernel/linux-headers/linux-headers-2.4.16.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Daniel Robbins <drobbins@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.16.ebuild,v 1.1 2001/12/06 19:06:25 drobbins Exp $
+
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+#we use this next variable to avoid duplicating stuff on cvs
+GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files
+OKV=${PV}
+KV=${OKV}
+S=${WORKDIR}/linux-${KV}
+S2=${WORKDIR}/linux-${KV}-extras
+
+# Patch versions. We now have a new system. To enable a patch, set the patch version. To disable
+# a patch, comment out the patch version and it won't be enabled. In this ebuild, ACPI, low latency
+# and preempt patches are enabled, but MOSIX is not.
+
+ACPIV=20011120
+LOWLV=2.4.16
+PREEV="${KV}-1"
+#MOSV=1.5.2
+
+DESCRIPTION="Linux kernel version ${KV} - full sources"
+
+PATCHES=""
+SRC_URI="http://www.de.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2"
+[ "$MOSV" ] && { SRC_URI="$SRC_URI http://www.mosix.cs.huji.ac.il/ftps/MOSIX-${MOSV}.tar.gz"; PATCHES="$PATCHES ${S2}/MOSIX-${MOSV}/patches.${OKV}"; }
+[ "$ACPIV" ] && { SRC_URI="$SRC_URI http://developer.intel.com/technology/iapc/acpi/downloads/acpi-${ACPIV}.diff.gz"; PATCHES="$PATCHES ${DISTDIR}/acpi-${ACPIV}.diff.gz"; }
+[ "$LOWLV" ] && { SRC_URI="$SRC_URI http://www.zip.com.au/~akpm/linux/${LOWLV}-low-latency.patch.gz"; PATCHES="$PATCHES ${DISTDIR}/${LOWLV}-low-latency.patch.gz"; }
+[ "$PREEV" ] && { SRC_URI="$SRC_URI http://www.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/v2.4/preempt-kernel-rml-${PREEV}.patch" PATCHES="$PATCHES ${DISTDIR}/preempt-kernel-rml-${PREEV}.patch"; }
+
+PROVIDE="virtual/kernel"
+HOMEPAGE="http://www.kernel.org/ http://www.namesys.com http://www.sistina.com/lvm/ http://developer.intel.com/technology/iapc/acpi/"
+
+if [ $PN = "linux-sources" ] && [ -z "`use build`" ]
+then
+ DEPEND=">=sys-apps/modutils-2.4.2 sys-devel/perl"
+ RDEPEND=">=sys-libs/ncurses-5.2"
+fi
+
+[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
+
+patchorama() {
+ local x
+ for x in ${*}
+ do
+ [ -d "$x" ] && continue
+ echo ">>> Applying ${x}..."
+ if [ "${x##*.}" = "bz2" ]
+ then
+ cat $x | bzip2 -d | patch -p1 -l
+ elif [ "${x##*.}" = "gz" ]
+ then
+ cat $x | gzip -d | patch -p1 -l
+ else
+ patch -p1 -l < $x
+ fi
+ done
+}
+
+src_unpack() {
+ mkdir ${S2}
+
+ cd ${WORKDIR}
+ unpack linux-${OKV}.tar.bz2
+ mv linux linux-${KV} || die
+ dodir /usr/src/linux-${KV}-extras
+ if [ "$MOSIX" ]
+ then
+ cd ${S2}
+ tar -xz --no-same-owner -f ${DISTDIR}/MOSIX-${MOSV}.tar.gz MOSIX-${MOSV}/patches.${OKV}
+ fi
+ cd ${S}
+ patchorama $PATCHES
+ echo "Preparing for compilation..."
+
+ #sometimes we have icky kernel symbols; this seems to get rid of them
+ make mrproper || die
+
+ #linux-sources needs to be fully configured, too. This is the configuration for the default kernel
+ cp ${S}/arch/i386/defconfig .config || die
+ yes "" | make oldconfig
+ echo "Ignore any errors from the yes command above."
+
+ #fix silly permissions in tarball
+ cd ${WORKDIR}
+ chown -R 0.0 *
+ chmod -R a+r-w+X,u+w *
+
+ # Gentoo Linux uses /boot, so fix 'make install' to work properly; seems they cant make up their mind if it should be a space or tab
+ cd ${S}
+ mv Makefile Makefile.orig
+ sed -e 's/#export\tINSTALL_PATH/export\tINSTALL_PATH/' \
+ Makefile.orig >Makefile || die # test, remove me if Makefile ok
+ rm Makefile.orig
+}
+
+src_compile() {
+ if [ "${PN}" = "linux-headers" ]
+ then
+ cd ${S}
+ make include/linux/autoconf.h include/linux/version.h || die
+ fi
+}
+
+src_install() {
+ if [ "$PN" = "linux-sources" ]
+ then
+ dodir /usr/src
+ cd ${S}
+ echo ">>> Copying sources..."
+ cp -ax ${WORKDIR}/* ${D}/usr/src
+ elif [ "$PN" = "linux-headers" ]
+ then
+ dodir /usr/include/linux
+ cp -ax ${S}/include/linux/* ${D}/usr/include/linux
+ dodir /usr/include/asm
+ cp -ax ${S}/include/asm-i386/* ${D}/usr/include/asm
+ fi
+ if [ -d ${D}/usr/src/linux-${KV} ]
+ then
+ #don't overwrite existing .config if present
+ cd ${D}/usr/src/linux-${KV}
+ if [ -e .config ]
+ then
+ cp -a .config .config.eg
+ fi
+ fi
+}
+
+pkg_preinst() {
+ if [ "$PN" = "linux-headers" ]
+ then
+ if [ -L ${ROOT}usr/include/linux ]
+ then
+ rm ${ROOT}usr/include/linux
+ fi
+ if [ -L ${ROOT}usr/include/asm ]
+ then
+ rm ${ROOT}usr/include/asm
+ fi
+ fi
+}
+
+pkg_postinst() {
+ [ "$PN" = "linux-headers" ] && return
+ rm -f ${ROOT}/usr/src/linux
+ ln -sf linux-${KV} ${ROOT}/usr/src/linux
+ #copy over our .config if one isn't already present
+ cd ${ROOT}/usr/src/linux-${KV}
+ if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
+ then
+ cp -a .config.eg .config
+ fi
+}