diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2001-04-29 02:01:57 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2001-04-29 02:01:57 +0000 |
commit | fb4ee9549d012f1d1dd4910d36e182de7d0a04be (patch) | |
tree | 1ff516f140a7d1b0bee13209502fe1819e8fd1a5 /sys-kernel | |
parent | added a little fix so that an existing /usr/src/linux/.config isn't overwritten (diff) | |
download | historical-fb4ee9549d012f1d1dd4910d36e182de7d0a04be.tar.gz historical-fb4ee9549d012f1d1dd4910d36e182de7d0a04be.tar.bz2 historical-fb4ee9549d012f1d1dd4910d36e182de7d0a04be.zip |
some cleanup
Diffstat (limited to 'sys-kernel')
12 files changed, 0 insertions, 2674 deletions
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.0.11-r1.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0.11-r1.ebuild deleted file mode 100644 index fed4c6465c4b..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0.11-r1.ebuild +++ /dev/null @@ -1,187 +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.0.11-r1.ebuild,v 1.2 2001/01/25 18:54:08 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.0-ac11 -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-2.4.0.tar.bz2 -http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2 -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.5.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.1.2-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.10a.tar.bz2 -ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_0.9.1_beta2.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" - -src_unpack() { - cd ${WORKDIR} - unpack linux-2.4.0.tar.bz2 - cd ${S} - echo "Applying ${KV} patch..." - bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 - mkdir extras - cd ${S}/extras - - cd ${S}/extras - echo "Unpacking LVM..." - unpack lvm_0.9.1_beta2.tar.gz - #patch does not appear necessary for this kernel - - echo "Unpacking ALSA drivers..." - cd ${S}/extras - unpack alsa-driver-0.5.10a.tar.bz2 - - echo "Unpacking and applying lm_sensors patch..." - cd ${S}/extras - unpack lm_sensors-2.5.5.tar.gz - cd lm_sensors-2.5.5 - mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch - cd ${S} - patch -p1 < lm_sensors-patch - - 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 - #annoying but true -- we need to do this for linux-sources as well - #so that autoconf.h exists and other packages compile - cp ${FILESDIR}/${PV}/config .config - cp ${FILESDIR}/${PV}/autoconf.h include/linux/autoconf.h - try make include/linux/version.h - - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R root.root linux -} - -src_compile() { - #LVM tools are included even in the linux-sources package - cd ${S}/extras/LVM/0.9.1_beta2 - try ./configure --prefix=/ --mandir=/usr/man - try make - - cd ${S} - try make symlinks - try make dep - - #if we're just linux-sources, then we're done with all compilation stuff - if [ "$PN" != "linux" ] - then - return - fi - - cd ${S}/lm_sensors-2.5.5 - try make - - cd ${S} - try make bzImage - try make modules - - cd ${S}/extras/alsa-driver-0.5.10a - try ./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 - try make clean - dodir /usr/lib - #no need for a static library in /lib - mv ${D}/lib/liblvm*.a ${D}/usr/lib - - 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-0.5.10a - 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 - - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - - else - - #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.0.11-r3.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0.11-r3.ebuild deleted file mode 100644 index 3b060a14810f..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0.11-r3.ebuild +++ /dev/null @@ -1,239 +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.0.11-r3.ebuild,v 1.5 2001/02/06 08:25:41 pete Exp $ - -S=${WORKDIR}/linux -KV=2.4.0-ac11 -LVMV=0.9.1_beta3 -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-2.4.0.tar.bz2 - http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2 - http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.5.tar.gz - http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.1.4-patch.tar.gz - ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.10a.tar.bz2 - ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMV}.tar.gz - http://www.braque.dhs.org/pub/linux/kernel/patch/patch-_against_2.4.1-pre10_-knfsdops-reiserfs.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-2.4.0.tar.bz2 - cd ${S} - echo "Applying ${KV} patch..." - try bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 - echo "Applying reiserfs-nfsd patch..." - try gzip -dc ${DISTDIR}/patch-_against_2.4.1-pre10_-knfsdops-reiserfs.gz | patch -p1 - echo "Applying reiserfs-superfs.c fix..." - cd fs/reiserfs - try patch -p0 < ${FILESDIR}/${PV}-r${PR}/super.diff - mkdir ${S}/extras - - #create and apply LVM patch. The tools get built later. - cd ${S}/extras - echo "Unpacking and applying LVM patch..." - unpack lvm_${LVMV}.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=2.4.0-ac11 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-0.5.10a.tar.bz2 - - #unpack and apply the lm_sensors patch - echo "Unpacking and applying lm_sensors patch..." - cd ${S}/extras - unpack lm_sensors-2.5.5.tar.gz - cd lm_sensors-2.5.5 - 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}/${PV}-r${PR}/config .config - try cp ${FILESDIR}/${PV}-r${PR}/autoconf.h include/linux/autoconf.h - 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() { - # moved this up here cause it looks like LVM depends on the symlinks - pete - cd ${S} - 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-2.5.5 - try make - - cd ${S} - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules - - cd ${S}/extras/alsa-driver-0.5.10a - 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} - - 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 - - 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-0.5.10a - 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-2.5.5 - 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.0.8.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0.8.ebuild deleted file mode 100644 index 4f6d5e2dfb1e..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0.8.ebuild +++ /dev/null @@ -1,193 +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.0.8.ebuild,v 1.3 2001/01/19 21:34:51 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.0-ac8 -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.de.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0.tar.bz2 -http://www.de.kernel.org/pub/linux/kernel/people/alan/2.4/patch-2.4.0-ac8.bz2 -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.4.tar.gz -http://www.netroedge.com/~lm78/archive/i2c-2.5.4.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.1.2-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.10a.tar.bz2 -ftp://ftp.sistina.com/pub/LVM/0.9/lvm_0.9.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" - - - -src_unpack() { - cd ${WORKDIR} - unpack linux-2.4.0.tar.bz2 - cd ${S} - echo "Applying ac7 patch..." - bzip2 -dc ${DISTDIR}/patch-2.4.0-ac8.bz2 | patch -p1 - - echo "Applying ReiserFS patch..." - gzip -dc ${FILESDIR}/${PV}/linux-2.4.0-ac6-reiserfs-3.6.25-maxbytes.diff.gz | patch -p1 - - mkdir extras - - cd ${S}/extras - echo "Unpacking LVM..." - unpack lvm_0.9.tar.gz - - echo "Unpacking ALSA drivers..." - unpack alsa-driver-0.5.10a.tar.bz2 - - #lm_sensors buggy mkpatch.pl in 2.5.4! - for x in i2c - do - echo "Unpacking and applying $x patch..." - cd ${S}/extras - unpack ${x}-2.5.4.tar.gz - cd ${x}-2.5.4 - mkpatch/mkpatch.pl . ${S} > ${S}/${x}-patch - cd ${S} - patch -p1 < ${x}-patch - done - - echo "Preparing for compilation..." - cd ${S} - #this is the configuration for the bootdisk/cd - cp ${FILESDIR}/${PV}/config .config - cp ${FILESDIR}/${PV}/autoconf.h include/linux/autoconf.h - try make include/linux/version.h - - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R root.root linux -} - -src_compile() { - - cd ${S} - try make symlinks - try make dep - - cd ${S}/fs/reiserfs/utils - try make - -# cd ${S}/lm_sensors-2.5.4 -# try make - - - if [ "$PN" = "linux" ] - then - cd ${S} - try make bzImage - try make modules - - cd ${S}/extras/LVM/0.9 - try ./configure --prefix=/ - try make - - cd ${S}/extras/alsa-driver-0.5.10a - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes \ - --with-cards=all - # --with-cards=share,dummy,virmidi,interwave,interwave-stb,gusmax,gusextreme,gusclassic,es1688,es18xx,sb8,sb16,sbawe,emu10k1,opl3sa2,mozart,sonicvibes,ens1370,ens1371,ad1816a,ad1848,als100,als4000,azt2320,cs4231,cs4232,cs4236,cs4281,cs461x,cs4281,es968,dt0197h,fm801,es1938,es1968,opti92x-ad1848,opti92x-cs4231,opti93x,serial,trident,sgalaxy,hal2,cmi8330,mtpav,rme96,rme9652,ice1712,intel8x0,via686a,cmipci,ymfpci,maestro3 - # "wavefront" is buggy in 0.5.10 - try make - fi -} -src_install() { - - cd ${S}/fs/reiserfs/utils - dodir /usr/man/man8 /sbin - try make install SBIN=${D}/sbin MANDIR=${D}/usr/man/man8 - - cd ${S}/extras/LVM/0.9 - make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - - 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-0.5.10a - 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 - - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - - else - - #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 - fi - fi -} - - - - - - - - diff --git a/sys-kernel/linux-sources/linux-sources-2.4.0_rc10-r4.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0_rc10-r4.ebuild deleted file mode 100644 index 077c25bf6e78..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0_rc10-r4.ebuild +++ /dev/null @@ -1,209 +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.0_rc10-r4.ebuild,v 1.1 2000/12/02 00:23:45 drobbins Exp $ - -S=${WORKDIR}/linux -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/patch-2.4.0-test10.bz2 -http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.0-test9.bz2 -http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0-test8.tar.bz2 -ftp://ftp.reiserfs.org/pub/2.4/linux-2.4.0-test10-reiserfs-3.6.19-patch.gz -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.4.tar.gz -http://www.netroedge.com/~lm78/archive/i2c-2.5.4.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.0.18-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.9d.tar.bz2 -ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-5/NVIDIA_kernel-0.9-5.tar.gz -ftp://ftp.sistina.com/pub/LVM/0.9/lvm_0.9.tar.gz" - -HOMEPAGE="http://www.kernel.org/ - http://www.netroedge.com/~lm78/ - http://devlinux.com/projects/reiserfs/ - http://www.alsa-project.org - http://www.nvidia.com" - -src_compile() { - #time to do the special symlink tweak - readlink /usr/src/linux > ${T}/linuxlink - rm /usr/src/linux - ( cd /usr/src; ln -s ${S} linux ) - #symlink tweak in place - cd ${S}/fs/reiserfs/utils - try make - cd ${S}/lm_sensors-2.5.2 - try make - cd ${S}/fs/jfs/utils - try make - if [ "$PN" = "linux" ] - then - cd ${S} - try make bzImage - try make modules - cd ${S}/extras/NVIDIA_kernel-0.9-5 - make NVdriver - cd ${S}/extras/alsa-driver-0.5.9d - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - #try make - fi - cd ${S}/extras/LVM/0.9 - try ./configure --prefix=/ - try make - #untweak the symlink - ( cd /usr/src; rm linux; ln -s `cat ${T}/linuxlink` linux ) -} - -src_unpack() { - if [ ! -L /usr/src/linux ] - then - echo '!!!' /usr/src/linux is not a symbolic link. - echo '!!!' For ${PF} to compile correctly, /usr/src/linux - echo '!!!' needs to be temporarily modified to point to - echo '!!!' a temporary build directory. Please rename your - echo '!!!' current directory and restart this build process. - exit 1 - fi - cd ${WORKDIR} - unpack linux-2.4.0-test8.tar.bz2 - cd ${S} - echo "Applying test9 patch..." - cat ${DISTDIR}/patch-2.4.0-test9.bz2 | bzip2 -d | patch -p1 - echo "Applying test10 patch..." - cat ${DISTDIR}/patch-2.4.0-test10.bz2 | bzip2 -d | patch -p1 - echo "Applying ReiserFS patch..." - gzip -dc ${DISTDIR}/linux-2.4.0-test10-reiserfs-3.6.19-patch.gz | patch -p1 - cd ${S} - mkdir extras - echo "Applying IBM JFS patch..." - cd extras - mkdir jfs - cd jfs - unpack jfs-0.0.18-patch.tar.gz - cd ${S} - patch -p1 < extras/jfs/jfs-common-v0.0.18-patch - patch -p1 < extras/jfs/jfs-2.4.0-test10-v0.0.18-patch - - cd ${S}/extras - echo "Unpacking ALSA drivers..." - unpack alsa-driver-0.5.9d.tar.bz2 - echo "Unpacking NVidia drivers..." - unpack NVIDIA_kernel-0.9-5.tar.gz - cd NVIDIA_kernel-0.9-5 - # this is a little fix to make the NVidia drivers compile right with test10 - mv nv.c nv.c.orig - echo '#define mem_map_inc_count(p) atomic_inc(&(p->count))' > nv.c - echo '#define mem_map_dec_count(p) atomic_dec(&(p->count))' >> nv.c - cat nv.c.orig >> nv.c - cd ${S}/extras - for x in lm_sensors i2c - do - echo "Unpacking and applying $x patch..." - cd ${S}/extras - unpack ${x}-2.5.4.tar.gz -# cd ${x}-2.5.4 -# mkpatch/mkpatch.pl . /usr/src/linux > /usr/src/linux/${x}-patch -# cd ${S} -# patch -p1 < ${x}-patch - done - cd ${S}/extras - echo "Applying LVM 0.9 patch..." -# one patch will fail, this is OK (it was applied earlier probably by the JFS patch) -# we pass the -f argument to patch to get around and already-applied patch - unpack lvm_0.9.tar.gz - cd LVM/0.9/PATCHES - cat linux-2.4.0-test10-VFS-lock.patch | ( cd ${S}; patch -p1 -f) - cat lvm-0.9-2.4.0-test10.patch | ( cd ${S}; patch -p1 -f) - echo "Preparing for compilation..." - cd ${S} - #this is the configuration for the bootdisk/cd - cp ${FILESDIR}/${PV}/${P}.config .config - cp ${FILESDIR}/${PV}/${P}.autoconf include/linux/autoconf.h - try make include/linux/version.h - try make symlinks - try make dep - cd ${S} - #fix silly permissions in tarball - chown -R root.root * -} - -src_install() { - cd ${S}/fs/reiserfs/utils - dodir /usr/man/man8 /sbin - try make install SBIN=${D}/sbin MANDIR=${D}/usr/man/man8 - - cd ${S}/fs/jfs/utils - cp output/* ${D}/sbin - local x - for x in `find -iname *.1` - do - doman $x - done - for x in `find -iname *.8` - do - doman $x - done - cd ${S}/extras/LVM/0.9 - make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - dodir /usr/src - if [ "$PN" = "linux" ] - then - dodir /usr/src/linux-${PV} - cd ${D}/usr/src - ln -sf linux-${PV} linux - #grab includes and documentation only - dodir /usr/src/linux-${PV}/include/linux - dodir /usr/src/linux-${PV}/include/asm-i386 - cp -ax ${S}/include ${D}/usr/src/linux-${PV} - cp -ax ${S}/Documentation ${D}/usr/src/linux-${PV} - 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 - try make INSTALL_MOD_PATH=${D} modules_install - #install ALSA modules - cd ${S}/extras/alsa-driver-0.5.9d - dodir /lib/modules/2.4.0-test10/misc - cp modules/*.o ${D}/lib/modules/2.4.0-test10/misc - dodir /usr/include/linux - insinto /usr/include/linux - cd include - doins asound.h asoundid.h asequencer.h ainstr_*.h - #install nvidia driver - cd ${S}/extras/NVIDIA_kernel-0.9-5 - insinto /lib/modules/2.4.0-test10/video - doins NVdriver - #fix symlink - cd ${D}/lib/modules/2.4.0-test10 - rm build - ln -sf /usr/src/linux-2.4.0-test10 build - else - #grab all the sources - cd ${WORKDIR} - mv linux ${D}/usr/src/linux-${PV} - cd ${D}/usr/src - ln -sf linux-${PV} 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 -} - - - - - - - - - - diff --git a/sys-kernel/linux-sources/linux-sources-2.4.0_rc10-r5.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0_rc10-r5.ebuild deleted file mode 100644 index c1cb350b674e..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0_rc10-r5.ebuild +++ /dev/null @@ -1,223 +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.0_rc10-r5.ebuild,v 1.1 2000/12/08 06:42:08 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.0-test10 -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-2.4.0-test10.tar.bz2 -ftp://ftp.reiserfs.org/pub/2.4/linux-2.4.0-test10-reiserfs-3.6.22-patch.gz -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.4.tar.gz -http://www.netroedge.com/~lm78/archive/i2c-2.5.4.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.0.18-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.9d.tar.bz2 -ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-5/NVIDIA_kernel-0.9-5.tar.gz -ftp://ftp.sistina.com/pub/LVM/0.9/lvm_0.9.tar.gz -http://www.namesys.com/lexa/linux-2.4.0-test6-reiserfs-3.6.13-nfs.diff.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 - http://www.nvidia.com" - -src_compile() { - cd ${S} - try make symlinks - try make dep - #time to do the special symlink tweak - if [ -e /usr/src/linux ] - then - readlink /usr/src/linux > ${T}/linuxlink - fi - rm /usr/src/linux - ( cd /usr/src; ln -s ${S} linux ) - #symlink tweak in place - cd ${S}/fs/reiserfs/utils - try make -# cd ${S}/lm_sensors-2.5.2 -# try make -# cd ${S}/fs/jfs/utils -# try make - if [ "$PN" = "linux" ] - then - cd ${S} - try make bzImage - try make modules - cd ${S}/extras/NVIDIA_kernel-0.9-5 - make NVdriver - cd ${S}/extras/alsa-driver-0.5.9d - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make - fi - cd ${S}/extras/LVM/0.9 - try ./configure --prefix=/ - try make - #untweak the symlink - if [ -e ${T}/linuxlink ] - then - ( cd /usr/src; rm linux; ln -s `cat ${T}/linuxlink` linux ) - fi -} - -src_unpack() { - if [ -e /usr/src/linux ] - then - if [ ! -L /usr/src/linux ] - then - echo '!!!' /usr/src/linux is not a symbolic link. - echo '!!!' For ${PF} to compile correctly, /usr/src/linux - echo '!!!' needs to be temporarily modified to point to - echo '!!!' a temporary build directory. Please rename your - echo '!!!' current directory and restart this build process. - exit 1 - fi - fi - cd ${WORKDIR} - unpack linux-2.4.0-test10.tar.bz2 - cd ${S} - echo "Applying ReiserFS patch..." - gzip -dc ${DISTDIR}/linux-2.4.0-test10-reiserfs-3.6.22-patch.gz | patch -p1 - - cd ${S} - echo "Applying reiser-nfs patch..." - gzip -dc ${DISTDIR}/linux-2.4.0-test6-reiserfs-3.6.13-nfs.diff.gz | patch -p1 - echo "Fixing failed super.c" - cd ${S}/fs/reiserfs - patch -p0 < ${FILESDIR}/${PV}/super.c.patch - cd ${S} - mkdir extras -# echo "Applying IBM JFS patch..." -# cd extras -# mkdir jfs -# cd jfs -# unpack jfs-0.0.18-patch.tar.gz -# cd ${S} -# patch -p1 < extras/jfs/jfs-common-v0.0.18-patch -# patch -p1 < extras/jfs/jfs-2.4.0-test10-v0.0.18-patch - - cd ${S}/extras - echo "Unpacking ALSA drivers..." - unpack alsa-driver-0.5.9d.tar.bz2 - echo "Unpacking NVidia drivers..." - unpack NVIDIA_kernel-0.9-5.tar.gz - cd NVIDIA_kernel-0.9-5 - # this is a little fix to make the NVidia drivers compile right with test10 - mv nv.c nv.c.orig - echo '#define mem_map_inc_count(p) atomic_inc(&(p->count))' > nv.c - echo '#define mem_map_dec_count(p) atomic_dec(&(p->count))' >> nv.c - cat nv.c.orig >> nv.c - cd ${S}/extras -# for x in lm_sensors i2c -# do -# echo "Unpacking and applying $x patch..." -# cd ${S}/extras -# unpack ${x}-2.5.4.tar.gz -# cd ${x}-2.5.4 -# mkpatch/mkpatch.pl . /usr/src/linux > /usr/src/linux/${x}-patch -# cd ${S} -# patch -p1 < ${x}-patch -# done - cd ${S}/extras - echo "Applying LVM 0.9 patch..." -# one patch will fail, this is OK (it was applied earlier probably by the JFS patch) -# we pass the -f argument to patch to get around and already-applied patch - unpack lvm_0.9.tar.gz - cd LVM/0.9/PATCHES - cat linux-2.4.0-test10-VFS-lock.patch | ( cd ${S}; patch -p1 -f) - cat lvm-0.9-2.4.0-test10.patch | ( cd ${S}; patch -p1 -f) - echo "Preparing for compilation..." - cd ${S} - #this is the configuration for the bootdisk/cd - cp ${FILESDIR}/${PV}/${P}.config .config - cp ${FILESDIR}/${PV}/${P}.autoconf include/linux/autoconf.h - try make include/linux/version.h - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R root.root linux -} - -src_install() { - cd ${S}/fs/reiserfs/utils - dodir /usr/man/man8 /sbin - try make install SBIN=${D}/sbin MANDIR=${D}/usr/man/man8 - -# cd ${S}/fs/jfs/utils -# cp output/* ${D}/sbin -# local x -# for x in `find -iname *.1` -# do -# doman $x -# done -# for x in `find -iname *.8` -# do -# doman $x -# done - cd ${S}/extras/LVM/0.9 - make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - dodir /usr/src - if [ "$PN" = "linux" ] - then - dodir /usr/src/linux-${KV} - cd ${D}/usr/src - ln -sf linux-${KV} linux - #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 - try make INSTALL_MOD_PATH=${D} modules_install - #install ALSA modules - cd ${S}/extras/alsa-driver-0.5.9d - dodir /lib/modules/${KV}/misc - cp modules/*.o ${D}/lib/modules/${KV}/misc - dodir /usr/include/linux - insinto /usr/include/linux - cd include - doins asound.h asoundid.h asequencer.h ainstr_*.h - #install nvidia driver - cd ${S}/extras/NVIDIA_kernel-0.9-5 - insinto /lib/modules/${KV}/video - doins NVdriver - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - else - #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 -} - - - - - - - - - - diff --git a/sys-kernel/linux-sources/linux-sources-2.4.0_rc11.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0_rc11.ebuild deleted file mode 100644 index e3125a436e37..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0_rc11.ebuild +++ /dev/null @@ -1,224 +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.0_rc11.ebuild,v 1.2 2000/12/02 06:38:37 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.0-test11 -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/patch-2.4.0-test11.bz2 -http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.0-test10.bz2 -http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.0-test9.bz2 -http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0-test8.tar.bz2 -ftp://ftp.reiserfs.org/pub/2.4/linux-2.4.0-test10-reiserfs-3.6.19-patch.gz -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.4.tar.gz -http://www.netroedge.com/~lm78/archive/i2c-2.5.4.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.0.18-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.9d.tar.bz2 -ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-5/NVIDIA_kernel-0.9-5.tar.gz -ftp://ftp.sistina.com/pub/LVM/0.9/lvm_0.9.tar.gz" - -HOMEPAGE="http://www.kernel.org/ - http://www.netroedge.com/~lm78/ - http://devlinux.com/projects/reiserfs/ - http://www.alsa-project.org - http://www.nvidia.com" - -src_compile() { - #time to do the special symlink tweak - if [ -e /usr/src/linux ] - then - readlink /usr/src/linux > ${T}/linuxlink - fi - rm /usr/src/linux - ( cd /usr/src; ln -s ${S} linux ) - #symlink tweak in place - cd ${S}/fs/reiserfs/utils - try make - cd ${S}/lm_sensors-2.5.2 - try make - cd ${S}/fs/jfs/utils - try make - if [ "$PN" = "linux" ] - then - cd ${S} - try make bzImage - try make modules - cd ${S}/extras/NVIDIA_kernel-0.9-5 - make NVdriver - cd ${S}/extras/alsa-driver-0.5.9d - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - #try make - fi - cd ${S}/extras/LVM/0.9 - try ./configure --prefix=/ - try make - #untweak the symlink - if [ -e ${T}/linuxlink ] - then - ( cd /usr/src; rm linux; ln -s `cat ${T}/linuxlink` linux ) - else - rm /usr/src/linux - fi -} - -src_unpack() { - if [ -e /usr/src/linux ] - then - if [ ! -L /usr/src/linux ] - then - echo '!!!' /usr/src/linux is not a symbolic link. - echo '!!!' For ${PF} to compile correctly, /usr/src/linux - echo '!!!' needs to be temporarily modified to point to - echo '!!!' a temporary build directory. Please rename your - echo '!!!' current directory and restart this build process. - exit 1 - fi - fi - cd ${WORKDIR} - unpack linux-2.4.0-test8.tar.bz2 - cd ${S} - echo "Applying test9 patch..." - cat ${DISTDIR}/patch-2.4.0-test9.bz2 | bzip2 -d | patch -p1 - echo "Applying test10 patch..." - cat ${DISTDIR}/patch-2.4.0-test10.bz2 | bzip2 -d | patch -p1 - echo "Applying ReiserFS patch..." - gzip -dc ${DISTDIR}/linux-2.4.0-test10-reiserfs-3.6.19-patch.gz | patch -p1 - cd ${S} - mkdir extras - echo "Applying IBM JFS patch..." - cd extras - mkdir jfs - cd jfs - unpack jfs-0.0.18-patch.tar.gz - cd ${S} - patch -p1 < extras/jfs/jfs-common-v0.0.18-patch - patch -p1 < extras/jfs/jfs-2.4.0-test10-v0.0.18-patch - - cd ${S}/extras - echo "Unpacking ALSA drivers..." - unpack alsa-driver-0.5.9d.tar.bz2 - echo "Unpacking NVidia drivers..." - unpack NVIDIA_kernel-0.9-5.tar.gz - cd NVIDIA_kernel-0.9-5 - # this is a little fix to make the NVidia drivers compile right with test10 - mv nv.c nv.c.orig - echo '#define mem_map_inc_count(p) atomic_inc(&(p->count))' > nv.c - echo '#define mem_map_dec_count(p) atomic_dec(&(p->count))' >> nv.c - cat nv.c.orig >> nv.c - cd ${S}/extras - for x in lm_sensors i2c - do - echo "Unpacking and applying $x patch..." - cd ${S}/extras - unpack ${x}-2.5.4.tar.gz -# cd ${x}-2.5.4 -# mkpatch/mkpatch.pl . /usr/src/linux > /usr/src/linux/${x}-patch -# cd ${S} -# patch -p1 < ${x}-patch - done - cd ${S}/extras - echo "Applying LVM 0.9 patch..." -# one patch will fail, this is OK (it was applied earlier probably by the JFS patch) -# we pass the -f argument to patch to get around and already-applied patch - unpack lvm_0.9.tar.gz - cd LVM/0.9/PATCHES - cat linux-2.4.0-test10-VFS-lock.patch | ( cd ${S}; patch -p1 -f) - cat lvm-0.9-2.4.0-test10.patch | ( cd ${S}; patch -p1 -f) - echo "Applying test11 patch..." - cd ${S} - cat ${DISTDIR}/patch-2.4.0-test11.bz2 | bzip2 -d | patch -p1 - echo "Preparing for compilation..." - #this is the configuration for the bootdisk/cd - cp ${FILESDIR}/${PV}/${P}.config .config - cp ${FILESDIR}/${PV}/${P}.autoconf include/linux/autoconf.h - try make include/linux/version.h - try make symlinks - try make dep - cd ${WORKDIR} - #fix silly permissions in tarball - chown -R root.root linux -} - -src_install() { - cd ${S}/fs/reiserfs/utils - dodir /usr/man/man8 /sbin - try make install SBIN=${D}/sbin MANDIR=${D}/usr/man/man8 - - cd ${S}/fs/jfs/utils - cp output/* ${D}/sbin - local x - for x in `find -iname *.1` - do - doman $x - done - for x in `find -iname *.8` - do - doman $x - done - cd ${S}/extras/LVM/0.9 - make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - dodir /usr/src - if [ "$PN" = "linux" ] - then - dodir /usr/src/linux-${KV} - cd ${D}/usr/src - ln -sf linux-${KV} linux - #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 - try make INSTALL_MOD_PATH=${D} modules_install - #install ALSA modules - cd ${S}/extras/alsa-driver-0.5.9d - dodir /lib/modules/${KV}/misc - cp modules/*.o ${D}/lib/modules/${KV}/misc - dodir /usr/include/linux - insinto /usr/include/linux - cd include - doins asound.h asoundid.h asequencer.h ainstr_*.h - #install nvidia driver - cd ${S}/extras/NVIDIA_kernel-0.9-5 - insinto /lib/modules/${KV}/video - doins NVdriver - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - else - #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 -} - - - - - - - - - - diff --git a/sys-kernel/linux-sources/linux-sources-2.4.0_rc12.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.0_rc12.ebuild deleted file mode 100644 index e444e97d260f..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.0_rc12.ebuild +++ /dev/null @@ -1,238 +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.0_rc12.ebuild,v 1.3 2001/01/16 03:40:54 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.0-test12 -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-2.4.0-test12.tar.bz2 -ftp://ftp.reiserfs.org/pub/2.4/linux-2.4.0-test12-reiserfs-3.6.23-patch.gz -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.4.tar.gz -http://www.netroedge.com/~lm78/archive/i2c-2.5.4.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.1.1-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.10.tar.bz2 -ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-5/NVIDIA_kernel-0.9-5.tar.gz -ftp://ftp.sistina.com/pub/LVM/0.9/lvm_0.9.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 - http://www.nvidia.com" - - - -src_unpack() { - if [ -e /usr/src/linux ] - then - if [ ! -L /usr/src/linux ] - then - echo '!!!' /usr/src/linux is not a symbolic link. - echo '!!!' For ${PF} to compile correctly, /usr/src/linux - echo '!!!' needs to be temporarily modified to point to - echo '!!!' a temporary build directory. Please rename your - echo '!!!' current directory and restart this build process. - exit 1 - fi - fi - cd ${WORKDIR} - unpack linux-2.4.0-test12.tar.bz2 - cd ${S} - echo "Applying ReiserFS patch..." - gzip -dc ${DISTDIR}/linux-2.4.0-test12-reiserfs-3.6.23-patch.gz | patch -p1 - - cd ${S} -# echo "Applying reiser-nfs patch..." -# gzip -dc ${FILESDIR}/${PV}/linux-2.4.0-test10-reiserfs-3.6.22-nfs.diff.gz | patch -p1 - mkdir extras - if [ "`use jfs`" ] - then - echo "Applying IBM JFS patch..." - cd extras - mkdir jfs - cd jfs - unpack jfs-0.1.1-patch.tar.gz - cd ${S} - patch -p1 < extras/jfs/jfs-common-v0.1.1-patch - patch -p1 < extras/jfs/jfs-2.4.0-test12-v0.1.1-patch - fi - cd ${S}/extras - echo "Unpacking ALSA drivers..." - unpack alsa-driver-0.5.10.tar.bz2 - echo "Unpacking NVidia drivers..." - unpack NVIDIA_kernel-0.9-5.tar.gz - cd NVIDIA_kernel-0.9-5 -# add devfs support and other important fixes - local x - for x in ${FILESDIR}/nvidia/* - do - cat ${x} | patch -p1 - done - cd ${S}/extras -# for x in i2c lm_sensors -# do -# echo "Unpacking and applying $x patch..." -# cd ${S}/extras -# unpack ${x}-2.5.4.tar.gz -# cd ${x}-2.5.4 -# mkpatch/mkpatch.pl . ${S} > ${S}/${x}-patch -# cd ${S} -# patch -p1 < ${x}-patch -# done - cd ${S}/extras -# echo "Applying LVM 0.9 patch..." -# one patch will fail, this is OK (it was applied earlier probably by the JFS patch) -# we pass the -f argument to patch to get around and already-applied patch -# unpack lvm_0.9.tar.gz -# cd LVM/0.9/PATCHES -# cat linux-2.4.0-test10-VFS-lock.patch | ( cd ${S}; patch -p1 -f) -# cat lvm-0.9-2.4.0-test10.patch | ( cd ${S}; patch -p1 -f) - echo "Preparing for compilation..." - cd ${S} - #this is the configuration for the bootdisk/cd -# cp ${FILESDIR}/${PV}/${PF}.config .config -# cp ${FILESDIR}/${PV}/${PF}.autoconf include/linux/autoconf.h -# try make include/linux/version.h - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R root.root linux -} - -src_compile() { - cd ${S} - try make symlinks - try make dep - #time to do the special symlink tweak - if [ -e /usr/src/linux ] - then - readlink /usr/src/linux > ${T}/linuxlink - fi - rm /usr/src/linux - ( cd /usr/src; ln -s ${S} linux ) - #symlink tweak in place - cd ${S}/fs/reiserfs/utils - try make -# cd ${S}/lm_sensors-2.5.4 -# try make - if [ "`use jfs`" ] - then - cd ${S}/fs/jfs/utils - try make - fi - if [ "$PN" = "linux" ] - then - cd ${S} - try make bzImage - try make modules - cd ${S}/extras/NVIDIA_kernel-0.9-5 - make NVdriver - cd ${S}/extras/alsa-driver-0.5.10 - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make - fi -# cd ${S}/extras/LVM/0.9 -# try ./configure --prefix=/ -# try make - #untweak the symlink - if [ -e ${T}/linuxlink ] - then - ( cd /usr/src; rm linux; ln -s `cat ${T}/linuxlink` linux ) - fi -} -src_install() { - cd ${S}/fs/reiserfs/utils - dodir /usr/man/man8 /sbin - try make install SBIN=${D}/sbin MANDIR=${D}/usr/man/man8 - - if [ "`use jfs`" ] - then - cd ${S}/fs/jfs/utils - cp output/* ${D}/sbin - local x - for x in `find -iname *.1` - do - doman $x - done - for x in `find -iname *.8` - do - doman $x - done - fi -# cd ${S}/extras/LVM/0.9 -# make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - dodir /usr/src - if [ "$PN" = "linux" ] - then - dodir /usr/src/linux-${KV} - cd ${D}/usr/src - ln -sf linux-${KV} linux - #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 - try make INSTALL_MOD_PATH=${D} modules_install - #install ALSA modules - cd ${S}/extras/alsa-driver-0.5.10 - dodir /lib/modules/${KV}/misc - cp modules/*.o ${D}/lib/modules/${KV}/misc - into /usr - dosbin snddevices - dodir /usr/include/linux - insinto /usr/include/linux - cd include - doins asound.h asoundid.h asequencer.h ainstr_*.h - #install nvidia driver - cd ${S}/extras/NVIDIA_kernel-0.9-5 - insinto /lib/modules/${KV}/video - doins NVdriver - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - else - #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 - fi - fi -} - - - - - - - - diff --git a/sys-kernel/linux-sources/linux-sources-2.4.1.20.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.1.20.ebuild deleted file mode 100644 index 998c7fd1a9c8..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.1.20.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.1.20.ebuild,v 1.1 2001/02/21 15:46:22 achim Exp $ - -S=${WORKDIR}/linux -#OKV=original kernel version, KV=patched kernel version -OKV=2.4.1 -KV=2.4.1-ac20 -#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-20010220.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-20010220.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.1_pre8-r1.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.1_pre8-r1.ebuild deleted file mode 100644 index 497c4dea7716..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.1_pre8-r1.ebuild +++ /dev/null @@ -1,185 +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.1_pre8-r1.ebuild,v 1.1 2001/01/21 04:34:52 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.1-pre8 -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-2.4.0.tar.bz2 -http://www.kernel.org/pub/linux/kernel/testing/patch-${KV}.bz2 -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.5.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.1.2-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.10a.tar.bz2 -ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_0.9.1_beta2.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" - -src_unpack() { - cd ${WORKDIR} - unpack linux-2.4.0.tar.bz2 - cd ${S} - echo "Applying ${KV} patch..." - bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 - mkdir extras - cd ${S}/extras - - cd ${S}/extras - echo "Unpacking LVM..." - unpack lvm_0.9.1_beta2.tar.gz - #patch does not appear necessary for this kernel - - echo "Unpacking ALSA drivers..." - cd ${S}/extras - unpack alsa-driver-0.5.10a.tar.bz2 - - echo "Unpacking and applying lm_sensors patch..." - cd ${S}/extras - unpack lm_sensors-2.5.5.tar.gz - cd lm_sensors-2.5.5 - mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch - cd ${S} - patch -p1 < lm_sensors-patch - - if [ "$PN" = "linux" ] - then - echo "Preparing for compilation..." - cd ${S} - #this is the configuration for the default kernel - cp ${FILESDIR}/${PV}/config .config - cp ${FILESDIR}/${PV}/autoconf.h include/linux/autoconf.h - try make include/linux/version.h - fi - - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R root.root linux -} - -src_compile() { - #LVM tools are included even in the linux-sources package - cd ${S}/extras/LVM/0.9.1_beta2 - try ./configure --prefix=/ --mandir=/usr/man - try make - - if [ "$PN" != "linux" ] - then - return - fi - - cd ${S} - try make symlinks - try make dep - cd ${S}/lm_sensors-2.5.5 - try make - - cd ${S} - try make bzImage - try make modules - - cd ${S}/extras/alsa-driver-0.5.10a - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make -} - -src_install() { - - cd ${S}/extras/LVM/0.9.1_beta2 - try make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - #clean up object files and original executables to reduce size of linux-sources - try make clean - dodir /usr/lib - #no need for a static library in /lib - mv ${D}/lib/liblvm*.a ${D}/usr/lib - - 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-0.5.10a - 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 - - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - - else - - #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.1_pre8.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.1_pre8.ebuild deleted file mode 100644 index 7b53064d626a..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.1_pre8.ebuild +++ /dev/null @@ -1,185 +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.1_pre8.ebuild,v 1.2 2001/01/21 04:34:52 drobbins Exp $ - -S=${WORKDIR}/linux -KV=2.4.1-pre8 -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-2.4.0.tar.bz2 -http://www.kernel.org/pub/linux/kernel/testing/patch-${KV}.bz2 -http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.5.tar.gz -http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-0.1.2-patch.tar.gz -ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.5.10a.tar.bz2 -ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_0.9.1_beta2.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" - -src_unpack() { - cd ${WORKDIR} - unpack linux-2.4.0.tar.bz2 - cd ${S} - echo "Applying ${KV} patch..." - bzip2 -dc ${DISTDIR}/patch-${KV}.bz2 | patch -p1 - mkdir extras - cd ${S}/extras - - cd ${S}/extras - echo "Unpacking LVM..." - unpack lvm_0.9.1_beta2.tar.gz - #patch does not appear necessary for this kernel - - echo "Unpacking ALSA drivers..." - cd ${S}/extras - unpack alsa-driver-0.5.10a.tar.bz2 - - echo "Unpacking and applying lm_sensors patch..." - cd ${S}/extras - unpack lm_sensors-2.5.5.tar.gz - cd lm_sensors-2.5.5 - mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch - cd ${S} - patch -p1 < lm_sensors-patch - - if [ "$PN" = "linux" ] - then - echo "Preparing for compilation..." - cd ${S} - #this is the configuration for the default kernel - cp ${FILESDIR}/${PV}/config .config - cp ${FILESDIR}/${PV}/autoconf.h include/linux/autoconf.h - try make include/linux/version.h - fi - - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R root.root linux -} - -src_compile() { - #LVM tools are included even in the linux-sources package - cd ${S}/extras/LVM/0.9.1_beta2 - try ./configure --prefix=/ --mandir=/usr/man - try make - - if [ "$PN" != "linux" ] - then - return - fi - - cd ${S} - try make symlinks - try make dep - cd ${S}/lm_sensors-2.5.5 - try make - - cd ${S} - try make bzImage - try make modules - - cd ${S}/extras/alsa-driver-0.5.10a - try ./configure --with-kernel=${S} --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make -} - -src_install() { - - cd ${S}/extras/LVM/0.9.1_beta2 - try make install prefix=${D} MAN8DIR=${D}/usr/man/man8 LIBDIR=${D}/lib - #clean up object files and original executables to reduce size of linux-sources - try make clean - dodir /usr/lib - #no need for a static library in /lib - mv ${D}/lib/liblvm*.a ${D}/usr/lib - - 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-0.5.10a - 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 - - #fix symlink - cd ${D}/lib/modules/${KV} - rm build - ln -sf /usr/src/linux-${KV} build - - else - - #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.4.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.4.ebuild deleted file mode 100644 index 70c5353fbe92..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.4.ebuild +++ /dev/null @@ -1,272 +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.4.ebuild,v 1.1 2001/04/28 16:05:21 drobbins Exp $ - -S=${WORKDIR}/linux -#OKV=original kernel version, KV=patched kernel version -OKV=2.4.4 -KV=2.4.4 -#Versions of LVM, ALSA, JFS and lm-sensors -LVMV=0.9.1_beta7 -LVMVARC=0.9.1_beta7 -AV=0.5.10b -JFSV=0.2.1 -SENV=2.5.5 -RV=20010327 -XMLV=0.3 -KNV="6.g" -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 - http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.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 -# ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz -if [ "`use alsa`" ] -then - SRC_URI="$SRC_URI ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2" -fi - -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-${RV}.patch.gz | patch -N -p1 -# echo "You can ignore the rejects the changes already are in rc11" - -# echo -# echo "Applying xmlprocfs patch..." -# try gzip -dc ${DISTDIR}/linux-2.4-xmlprocfs-${XMLV}.patch.gz | patch -p1 -# echo "Applying reiserfs-knfsd patch..." -# try gzip -dc ${DISTDIR}/linux-${OKV}-knfsd-${KNV}.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 - - if [ "`use alsa`" ] - then - #unpack alsa drivers - echo "Unpacking ALSA drivers..." - cd ${S}/extras - unpack alsa-driver-${AV}.tar.bz2 - fi - - #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.bootcomp .config - try 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} - - if [ "$PN" == "linux" ] - then - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules - - if [ "`use alsa`" ] - then - cd ${S}/extras/alsa-driver-${AV} - try ./configure --with-kernel=\"${S}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make - fi - fi -} - -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 - - dodir /usr/src - - - - #install sensors tools - cd ${S}/extras/lm_sensors-${SENV} - make install - - if [ "$PN" = "linux" ] - then - if [ "`use alsa`" ] - then - - #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 - fi - - 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 - - if [ "`use alsa`" ] - then - # 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 - fi - - #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` - try make INSTALL_MOD_PATH=${D} modules_install -# rm -r ${D}/lib/modules/`uname -r` - - #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 - - cp -ax ${S} ${D}/usr/src/linux-${KV} - - if [ "`use alsa`" ] - then - # 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 - fi - -} - -pkg_postinst() { - if [ "${ROOT}" = "/" ] - then - if [ "`use alsa`" ] ; 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.4_pre8.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.4_pre8.ebuild deleted file mode 100644 index e2d49bb256b1..000000000000 --- a/sys-kernel/linux-sources/linux-sources-2.4.4_pre8.ebuild +++ /dev/null @@ -1,274 +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.4_pre8.ebuild,v 1.1 2001/04/27 22:50:00 drobbins Exp $ - -S=${WORKDIR}/linux -#OKV=original kernel version, KV=patched kernel version -OKV=2.4.3 -KV=2.4.4-pre8 -#Versions of LVM, ALSA, JFS and lm-sensors -LVMV=0.9.1_beta7 -LVMVARC=0.9.1_beta7 -AV=0.5.10b -JFSV=0.2.1 -SENV=2.5.5 -RV=20010327 -XMLV=0.3 -KNV="6.g" -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.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz - ftp://ftp.reiserfs.com/pub/misc-patches/linux-${OKV}-knfsd-${KNV}.patch.gz" -# http://download.sourceforge.net/xmlprocfs/linux-2.4-xmlprocfs-${XMLV}.patch.gz -# ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz -if [ "`use alsa`" ] -then - SRC_URI="$SRC_URI ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2" -fi - -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-${RV}.patch.gz | patch -N -p1 -# echo "You can ignore the rejects the changes already are in rc11" - -# echo -# echo "Applying xmlprocfs patch..." -# try gzip -dc ${DISTDIR}/linux-2.4-xmlprocfs-${XMLV}.patch.gz | patch -p1 -# echo "Applying reiserfs-knfsd patch..." -# try gzip -dc ${DISTDIR}/linux-${OKV}-knfsd-${KNV}.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 - - if [ "`use alsa`" ] - then - #unpack alsa drivers - echo "Unpacking ALSA drivers..." - cd ${S}/extras - unpack alsa-driver-${AV}.tar.bz2 - fi - - #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.bootcomp .config - try 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} - - if [ "$PN" == "linux" ] - then - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" bzImage - try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" modules - - if [ "`use alsa`" ] - then - cd ${S}/extras/alsa-driver-${AV} - try ./configure --with-kernel=\"${S}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make - fi - fi -} - -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 - - dodir /usr/src - - - - #install sensors tools - cd ${S}/extras/lm_sensors-${SENV} - make install - - if [ "$PN" = "linux" ] - then - if [ "`use alsa`" ] - then - - #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 - fi - - 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 - - if [ "`use alsa`" ] - then - # 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 - fi - - #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` - try make INSTALL_MOD_PATH=${D} modules_install -# rm -r ${D}/lib/modules/`uname -r` - - #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 - - cp -ax ${S} ${D}/usr/src/linux-${KV} - - if [ "`use alsa`" ] - then - # 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 - fi - -} - -pkg_postinst() { - if [ "${ROOT}" = "/" ] - then - if [ "`use alsa`" ] ; 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 -} |