summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-04-29 02:03:44 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-04-29 02:03:44 +0000
commit7b599d413e9b7a295b59bc23e07ae96b4d4c8ff2 (patch)
tree69c16e6f481c26e31eb68889aa36bab86cb1a2b9 /sys-kernel/linux-sources
parentsome cleanup (diff)
downloadhistorical-7b599d413e9b7a295b59bc23e07ae96b4d4c8ff2.tar.gz
historical-7b599d413e9b7a295b59bc23e07ae96b4d4c8ff2.tar.bz2
historical-7b599d413e9b7a295b59bc23e07ae96b4d4c8ff2.zip
additional cleanup -- these guys still have weird reiserfs stuff
Diffstat (limited to 'sys-kernel/linux-sources')
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2-r4.ebuild263
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2.13-r1.ebuild256
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2.13.ebuild251
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2.2.ebuild245
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2.27-r1.ebuild256
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2.27.ebuild248
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2.7.ebuild245
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.2_pre4.ebuild243
8 files changed, 0 insertions, 2007 deletions
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2-r4.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2-r4.ebuild
deleted file mode 100644
index 719d032a503e..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2-r4.ebuild
+++ /dev/null
@@ -1,263 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2-r4.ebuild,v 1.1 2001/04/05 21:26:17 drobbins Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta5
-LVMVARC=0.9.1_beta5_a
-AV=0.5.10b
-#JFSV=0.1.5
-SENV=2.5.5
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-2.4.2-reiserfs-20010327.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-if [ "$PN" = "linux" ]
-then
- PROVIDE="virtual/kernel"
-fi
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
-# echo "Applying ${KV} patch..."
-# try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-2.4.2-reiserfs-20010327.patch.gz | patch -N -p1
- mkdir ${S}/extras
-
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-
- #get ready for compilation
- cd ${S}
- try make symlinks
- try make include/linux/version.h
-}
-
-src_compile() {
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- cd ${S}
- yes \"\" | make oldconfig
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- mv ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src
-
- if [ "$PN" = "linux" ]
- then
-
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
- ln -sf linux-${KV} linux-2.4
-
- #grab includes and documentation only
- dodir /usr/src/linux-${KV}/include/linux
- dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
- dodir /usr/include
- dosym /usr/src/linux/include/linux /usr/include/linux
- dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- #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)
- dodir /lib/modules/${KV}
- dodir /lib/modules/`uname -r`
- dodir ${D}/lib/modules/${KV}
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
- into /usr
- dosbin snddevices
- dodir /usr/include/linux
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- try make clean
-
- #grab all the sources
- cd ${WORKDIR}
-
-
- mv linux ${D}/usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
-
- #move config file so we don't overwrite old one on merge
-
- cd linux
- mv .config .config.eg
-
- #remove workdir since our install was dirty and modified ${S}
- #this will cause an unpack to be done next time
-
- rm -rf ${WORKDIR}
-
- fi
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- else
- cd ${ROOT}usr/src/linux
- if [ ! -e .config ]
- then
- cp .config.eg .config
- fi
- make clean
- fi
-}
-
-
-
-
-
-
-
-
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2.13-r1.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2.13-r1.ebuild
deleted file mode 100644
index 8d6ccf7a413b..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2.13-r1.ebuild
+++ /dev/null
@@ -1,256 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2.13-r1.ebuild,v 1.2 2001/04/08 16:26:14 pete Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2-ac13
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta5
-LVMVARC=0.9.1_beta5_a
-AV=0.5.10b
-JFSV=0.2.0
-SENV=2.5.5
-RV=20010305
-XMLV=0.3
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-# http://download.sourceforge.net/xmlprocfs/linux-2.4-xmlprocfs-${XMLV}.patch.gz
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-${OKV}-reiserfs-${RV}.patch.gz | patch -N -p1
- echo "You can ignore the rejects the changes already are in rc13"
-# echo
-# echo "Applying xmlprocfs patch..."
-# try gzip -dc ${DISTDIR}/linux-2.4-xmlprocfs-${XMLV}.patch.gz | patch -p1
-
- mkdir ${S}/extras
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- mv Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- try make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
- yes "" | make oldconfig
- try make include/linux/version.h
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- cd ${S}
- try make update-modverfile
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- cp ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
-
- #install ALSA progs
- cd ${S}/extras/alsa-driver-${AV}
- into /usr
- dosbin snddevices
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-
- if [ "$PN" = "linux" ]
- then
-
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
-
- #grab includes and documentation only
-# dodir /usr/src/linux-${KV}/include/linux
-# dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-# dodir /usr/include
-# dosym /usr/src/linux/include/linux /usr/include/linux
-# dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- # get alsa includes
- cd ${S}/extras/alsa-driver-${AV}
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #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)
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- make mrproper
- cd ${WORKDIR}
-
- cd ${S}/extras/LVM/${LVMV}
- make distclean
-
- cd ${S}/extras/lm_sensors-${SENV}
- make clean
-
- cd ${S}/extras/alsa-driver-${AV}
- make distclean
-
- cp -ax ${S} ${D}/usr/src/linux-${KV}
-
- # get alsa includes
- insinto /usr/src/linux-${KV}/include/linux
- cd ${D}/usr/src/linux-${KV}/extras/alsa-driver-${AV}/include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
- fi
-
- #remove workdir since our install was dirty and modified ${S}
- #this will cause an unpack to be done next time
- rm -rf ${WORKDIR}
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
- rm -f ${ROOT}/usr/src/linux
- ln -sf linux-${KV} ${ROOT}/usr/src/linux
-}
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2.13.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2.13.ebuild
deleted file mode 100644
index e1f9c3c9f1df..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2.13.ebuild
+++ /dev/null
@@ -1,251 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2.13.ebuild,v 1.4 2001/03/30 03:34:19 achim Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2-ac13
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta5
-LVMVARC=0.9.1_beta5_a
-AV=0.5.10b
-JFSV=0.2.0
-SENV=2.5.5
-RV=20010305
-XMLV=0.3
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-# http://download.sourceforge.net/xmlprocfs/linux-2.4-xmlprocfs-${XMLV}.patch.gz
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-${OKV}-reiserfs-${RV}.patch.gz | patch -N -p1
- echo "You can ignore the rejects the changes already are in rc13"
-# echo
-# echo "Applying xmlprocfs patch..."
-# try gzip -dc ${DISTDIR}/linux-2.4-xmlprocfs-${XMLV}.patch.gz | patch -p1
-
- mkdir ${S}/extras
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- try make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
- yes "" | make oldconfig
- try make include/linux/version.h
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-
-
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- cp ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
- ln -sf linux-${KV} linux-2.4
-
- if [ "$PN" = "linux" ]
- then
-
- #grab includes and documentation only
- dodir /usr/src/linux-${KV}/include/linux
- dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include/* ${D}/usr/src/linux-${KV}/include
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-# dodir /usr/include
-# dosym /usr/src/linux/include/linux /usr/include/linux
-# dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- #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)
- dodir /lib/modules/${KV}
- dodir /lib/modules/`uname -r`
- dodir ${D}/lib/modules/${KV}
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
-
- #install ALSA headers
- cd ${S}/extras/alsa-driver-${AV}
- into /usr
- dosbin snddevices
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- try make clean
-
- #grab all the sources
- cp -a * ${D}/usr/src/linux-${KV}
-
- #install ALSA headers
- cd ${S}/extras/alsa-driver-${AV}
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- fi
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
-}
-
-
-
-
-
-
-
-
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2.2.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2.2.ebuild
deleted file mode 100644
index 0cfaa1a67019..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2.2.ebuild
+++ /dev/null
@@ -1,245 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2.2.ebuild,v 1.1 2001/03/02 00:38:42 achim Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2-ac2
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta5
-LVMVARC=0.9.1_beta5_a
-AV=0.5.10b
-JFSV=0.1.5
-SENV=2.5.5
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-2.4.2-pre4-reiserfs-20010221.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-2.4.2-pre4-reiserfs-20010221.patch.gz | patch -N -p1
- echo "You can ignore the tail-conversion.c reject the changes already are in rc19"
- mkdir ${S}/extras
-
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- cd ${S}
- yes \"\" | make oldconfig
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- mv ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src
-
- if [ "$PN" = "linux" ]
- then
-
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
- ln -sf linux-${KV} linux-2.4
-
- #grab includes and documentation only
- dodir /usr/src/linux-${KV}/include/linux
- dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
- dodir /usr/include
- dosym /usr/src/linux/include/linux /usr/include/linux
- dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- #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)
- dodir /lib/modules/${KV}
- dodir /lib/modules/`uname -r`
- dodir ${D}/lib/modules/${KV}
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
- into /usr
- dosbin snddevices
- dodir /usr/include/linux
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- try make clean
-
- #grab all the sources
- cd ${WORKDIR}
- mv linux ${D}/usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
-
- #remove workdir since our install was dirty and modified ${S}
- #this will cause an unpack to be done next time
- rm -rf ${WORKDIR}
- fi
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
-}
-
-
-
-
-
-
-
-
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2.27-r1.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2.27-r1.ebuild
deleted file mode 100644
index 0f3fa0fa5eb9..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2.27-r1.ebuild
+++ /dev/null
@@ -1,256 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2.27-r1.ebuild,v 1.2 2001/04/08 16:26:14 pete Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2-ac27
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta6
-LVMVARC=0.9.1_beta6
-AV=0.5.10b
-JFSV=0.2.1
-SENV=2.5.5
-RV=20010327
-XMLV=0.3
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-# http://download.sourceforge.net/xmlprocfs/linux-2.4-xmlprocfs-${XMLV}.patch.gz
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-${OKV}-reiserfs-${RV}.patch.gz | patch -N -p1
- echo "You can ignore the rejects the changes already are in rc13"
-# echo
-# echo "Applying xmlprocfs patch..."
-# try gzip -dc ${DISTDIR}/linux-2.4-xmlprocfs-${XMLV}.patch.gz | patch -p1
-
- mkdir ${S}/extras
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- try make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
- yes "" | make oldconfig
- try make include/linux/version.h
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- cd ${S}
- try make update-modverfile
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- cp ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
-
- #install ALSA progs
- cd ${S}/extras/alsa-driver-${AV}
- into /usr
- dosbin snddevices
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-
- if [ "$PN" = "linux" ]
- then
-
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
-
- #grab includes and documentation only
-# dodir /usr/src/linux-${KV}/include/linux
-# dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-# dodir /usr/include
-# dosym /usr/src/linux/include/linux /usr/include/linux
-# dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- # get alsa includes
- cd ${S}/extras/alsa-driver-${AV}
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #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)
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- make mrproper
- cd ${WORKDIR}
-
- cd ${S}/extras/LVM/${LVMV}
- make distclean
-
- cd ${S}/extras/lm_sensors-${SENV}
- make clean
-
- cd ${S}/extras/alsa-driver-${AV}
- make distclean
-
- cp -ax ${S} ${D}/usr/src/linux-${KV}
-
- # get alsa includes
- insinto /usr/src/linux-${KV}/include/linux
- cd ${D}/usr/src/linux-${KV}/extras/alsa-driver-${AV}/include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
- fi
-
- #remove workdir since our install was dirty and modified ${S}
- #this will cause an unpack to be done next time
- rm -rf ${WORKDIR}
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
- rm -f ${ROOT}/usr/src/linux
- ln -sf linux-${KV} ${ROOT}/usr/src/linux
-}
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2.27.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2.27.ebuild
deleted file mode 100644
index efeeb6892ef7..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2.27.ebuild
+++ /dev/null
@@ -1,248 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2.27.ebuild,v 1.1 2001/03/30 03:34:19 achim Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2-ac27
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta6
-LVMVARC=0.9.1_beta6
-AV=0.5.10b
-JFSV=0.2.1
-SENV=2.5.5
-RV=20010327
-
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-${OKV}-reiserfs-${RV}.patch.gz | patch -N -p1
- echo "You can ignore the rejects the changes already are in rc27"
-
- mkdir ${S}/extras
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- try make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
- yes "" | make oldconfig
- try make include/linux/version.h
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-
-
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- cp ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
- ln -sf linux-${KV} linux-2.4
-
- if [ "$PN" = "linux" ]
- then
-
- #grab includes and documentation only
- dodir /usr/src/linux-${KV}/include/linux
- dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include/* ${D}/usr/src/linux-${KV}/include
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
-# dodir /usr/include
-# dosym /usr/src/linux/include/linux /usr/include/linux
-# dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- #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)
- dodir /lib/modules/${KV}
- dodir /lib/modules/`uname -r`
- dodir ${D}/lib/modules/${KV}
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
-
- #install ALSA headers
- cd ${S}/extras/alsa-driver-${AV}
- into /usr
- dosbin snddevices
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- try make clean
-
- #grab all the sources
- cp -a * ${D}/usr/src/linux-${KV}
-
- #install ALSA headers
- cd ${S}/extras/alsa-driver-${AV}
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- fi
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
-}
-
-
-
-
-
-
-
-
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2.7.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2.7.ebuild
deleted file mode 100644
index 042f96b6a9a5..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2.7.ebuild
+++ /dev/null
@@ -1,245 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2.7.ebuild,v 1.1 2001/03/08 17:41:54 achim Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.2
-KV=2.4.2-ac7
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta5
-LVMVARC=0.9.1_beta5_a
-AV=0.5.10b
-JFSV=0.1.5
-SENV=2.5.5
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-2.4.2-reiserfs-20010301-full.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-update patch..."
- try gzip -dc ${DISTDIR}/linux-2.4.2-reiserfs-20010301-full.patch.gz | patch -N -p1
- echo "You can ignore the tail-conversion.c reject the changes already are in rc19"
- mkdir ${S}/extras
-
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- cd ${S}
- yes \"\" | make oldconfig
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- mv ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src
-
- if [ "$PN" = "linux" ]
- then
-
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
- ln -sf linux-${KV} linux-2.4
-
- #grab includes and documentation only
- dodir /usr/src/linux-${KV}/include/linux
- dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
- dodir /usr/include
- dosym /usr/src/linux/include/linux /usr/include/linux
- dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- #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)
- dodir /lib/modules/${KV}
- dodir /lib/modules/`uname -r`
- dodir ${D}/lib/modules/${KV}
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
- into /usr
- dosbin snddevices
- dodir /usr/include/linux
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- try make clean
-
- #grab all the sources
- cd ${WORKDIR}
- mv linux ${D}/usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
-
- #remove workdir since our install was dirty and modified ${S}
- #this will cause an unpack to be done next time
- rm -rf ${WORKDIR}
- fi
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
-}
-
-
-
-
-
-
-
-
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.2_pre4.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.2_pre4.ebuild
deleted file mode 100644
index e737c7cde82e..000000000000
--- a/sys-kernel/linux-sources/linux-sources-2.4.2_pre4.ebuild
+++ /dev/null
@@ -1,243 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.2_pre4.ebuild,v 1.2 2001/02/21 16:40:59 achim Exp $
-
-S=${WORKDIR}/linux
-#OKV=original kernel version, KV=patched kernel version
-OKV=2.4.1
-KV=2.4.2-pre4
-#Versions of LVM, ALSA, JFS and lm-sensors
-LVMV=0.9.1_beta5
-LVMVARC=0.9.1_beta5_a
-AV=0.5.10b
-JFSV=0.1.5
-SENV=2.5.5
-
-if [ "$PN" = "linux" ]
-then
- DESCRIPTION="Linux kernel, including modules, binary tools, libraries and includes"
-else
- DESCRIPTION="Kernel source package, including full sources, binary tools and libraries"
-fi
-SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/testing/patch-${KV}.bz2
- http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz
- http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
- ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2
- ftp://ftp.reiserfs.com/pub/misc-patches/linux-2.4.2-pre4-knfsd-6.g.patch.gz
- ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
-
-HOMEPAGE="http://www.kernel.org/
- http://www.netroedge.com/~lm78/
- http://www.namesys.com
- http://www.sistina.com/lvm/
- http://www.alsa-project.org"
-
-PROVIDE="virtual/kernel"
-
-RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
-
-# this is not pretty...
-LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
-
-src_unpack() {
- #unpack kernel and apply reiserfs-related patches
- cd ${WORKDIR}
- unpack linux-${OKV}.tar.bz2
- cd ${S}
- echo "Applying ${KV} patch..."
- try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1
- echo "Applying reiserfs-nfs patch..."
- try gzip -dc ${DISTDIR}/linux-2.4.2-pre4-knfsd-6.g.patch.gz | patch -p1
- mkdir ${S}/extras
- #create and apply LVM patch. The tools get built later.
- cd ${S}/extras
- echo "Unpacking and applying LVM patch..."
- unpack lvm_${LVMVARC}.tar.gz
- cd LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- cd PATCHES
- try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
- cd ${S}
- # the -l option allows this patch to apply cleanly (ignore whitespace changes)
- try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
-
- #unpack alsa drivers
- echo "Unpacking ALSA drivers..."
- cd ${S}/extras
- unpack alsa-driver-${AV}.tar.bz2
-
- #unpack and apply the lm_sensors patch
- echo "Unpacking and applying lm_sensors patch..."
- cd ${S}/extras
- unpack lm_sensors-${SENV}.tar.gz
- cd lm_sensors-${SENV}
- mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
- rmdir src
- ln -s ../.. src
- cp Makefile Makefile.orig
- sed -e "s:^LINUX=.*:LINUX=src:" \
- -e "s/^COMPILE_KERNEL.*/COMPILE_CERNEL := 0/" \
- -e "s:^I2C_HEADERS.*:I2C_HEADERS=src/include:" \
- -e "s#^DESTDIR.*#DESTDIR := ${D}#" \
- -e "s#^PREFIX.*#PREFIX := /usr#" \
- -e "s#^MANDIR.*#MANDIR := /usr/share/man#" \
- Makefile.orig > Makefile
- cd ${S}
- patch -p1 < lm_sensors-patch
-
- #get sources ready for compilation or for sitting at /usr/src/linux
- echo "Preparing for compilation..."
- cd ${S}
- #sometimes we have icky kernel symbols; this seems to get rid of them
- make mrproper
- #this is the configuration for the default kernel
- try cp ${FILESDIR}/${KV}/config .config
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 linux
- chmod -R a+r-w+X,u+w linux
-}
-
-src_compile() {
-
- try make symlinks
-
- #LVM tools are included even in the linux-sources package
- cd ${S}/extras/LVM/${LVMV}
-
- # 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
- try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
-
- try make
-
- if [ "$PN" != "linux" ]
- then
- return
- fi
-
- cd ${S}
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
-
- cd ${S}/extras/lm_sensors-${SENV}
- try make
-
- cd ${S}
- yes \"\" | make oldconfig
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage
- try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules
-
- cd ${S}/extras/alsa-driver-${AV}
- try CFLAGS=\""${CFLAGS} -I${S}"\" ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
- try make
-}
-
-src_install() {
-
-
- #clean up object files and original executables to reduce size of linux-sources
- dodir /usr/lib
- cd ${S}/extras/LVM/${LVMV}/tools
-
- try CFLAGS=\"${CFLAGS} -I${S}/include\" make install -e prefix=${D} mandir=${D}/usr/share/man \
- sbindir=${D}/sbin libdir=${D}/lib
- #no need for a static library in /lib
- mv ${D}/lib/liblvm*.a ${D}/usr/lib
-
- #clean up LVM
- try make clean
- dodir /usr/src
-
- if [ "$PN" = "linux" ]
- then
-
- dodir /usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
- ln -sf linux-${KV} linux-2.4
-
- #grab includes and documentation only
- dodir /usr/src/linux-${KV}/include/linux
- dodir /usr/src/linux-${KV}/include/asm-i386
- cp -ax ${S}/include ${D}/usr/src/linux-${KV}
- cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
- dodir /usr/include
- dosym /usr/src/linux/include/linux /usr/include/linux
- dosym /usr/src/linux/include/asm-i386 /usr/include/asm
-
- #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)
- dodir /lib/modules/${KV}
- dodir /lib/modules/`uname -r`
- dodir ${D}/lib/modules/${KV}
- try make INSTALL_MOD_PATH=${D} modules_install
-
- #install ALSA modules
- cd ${S}/extras/alsa-driver-${AV}
- dodir /lib/modules/${KV}/misc
- cp modules/*.o ${D}/lib/modules/${KV}/misc
- into /usr
- dosbin snddevices
- dodir /usr/include/linux
- insinto /usr/src/linux-${KV}/include/linux
- cd include
- doins asound.h asoundid.h asequencer.h ainstr_*.h
-
- #install sensors tools
- cd ${S}/extras/lm_sensors-${SENV}
- make install
-
- #fix symlink
- cd ${D}/lib/modules/${KV}
- rm build
- ln -sf /usr/src/linux-${KV} build
-
- else
-
- cd ${S}
- try make clean
-
- #grab all the sources
- cd ${WORKDIR}
- mv linux ${D}/usr/src/linux-${KV}
- cd ${D}/usr/src
- ln -sf linux-${KV} linux
-
- #remove workdir since our install was dirty and modified ${S}
- #this will cause an unpack to be done next time
- rm -rf ${WORKDIR}
- fi
-}
-
-pkg_postinst() {
- if [ "${ROOT}" = "/" ]
- then
- if [ "${PN}" = "linux" ] ; then
- echo "Creating sounddevices..."
- /usr/sbin/snddevices
- #needs to get fixed for devfs
- fi
- fi
-}
-
-
-
-
-
-
-
-