diff options
Diffstat (limited to 'sys-kernel/linux-UP-2.4.0/linux-UP-2.4.0_rc7-r5.ebuild')
-rw-r--r-- | sys-kernel/linux-UP-2.4.0/linux-UP-2.4.0_rc7-r5.ebuild | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/sys-kernel/linux-UP-2.4.0/linux-UP-2.4.0_rc7-r5.ebuild b/sys-kernel/linux-UP-2.4.0/linux-UP-2.4.0_rc7-r5.ebuild new file mode 100644 index 000000000000..73840aedcef2 --- /dev/null +++ b/sys-kernel/linux-UP-2.4.0/linux-UP-2.4.0_rc7-r5.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-UP-2.4.0/linux-UP-2.4.0_rc7-r5.ebuild,v 1.1 2000/08/26 20:41:56 achim Exp $ + +P=linux-UP-2.4.0_rc7-r5 +A="linux-2.4.0-test6.tar.bz2 linux-2.4.0-test6-reiserfs-3.6.13-patch.gz + ide.2.4.0-t6-5.0804.patch.gz test7-pre5.gz" +#"i2c-2.5.2.tar.gz lm_sensors-2.5.2.tar.gz +# pppoed0.47.tgz +# linux-2.2.17pre13-nfsv3-0.22.3.dif.bz2 kernel-nfs-dhiggen_merge-3.0.tar.gz" + +S=${WORKDIR}/linux +DESCRIPTION="Linux kernel for UP systems with reiserfs,usb,sensors,raid,udma,nfs3 and pppoe support" +SRC_URI="ftp://ftp.uk.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0-test6.tar.bz2 + ftp://ftp.de.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0-test6.tar.bz2 + http://devlinux.com/pub/namesys/2.4-beta/linux-2.4.0-test6-reiserfs-3.6.13-patch.gz + ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/ide.2.4.0-t6-5.0804.patch.gz + ftp://ftp.kernel.org/pub/linux/kernel/testing/test7-pre5.gz" +# http://www.netroedge.com/~lm78/archive/lm_sensors-2.5.2.tar.gz +# http://www.netroedge.com/~lm78/archive/i2c-2.5.2.tar.gz +# http://www.davin.ottawa.on.ca/pppoe/pppoed0.47.tgz + +HOMEPAGE="http://www.kernel.org/ + http://www.netroedge.com/~lm78/ + http://devlinux.com/projects/reiserfs/" + + +src_compile() { + cd ${S} + unset CFLAGS + unset CXXFLAGS + make dep + make bzImage + make modules + cd ${S}/fs/reiserfs/utils + make + cd ${S}/lm_sensors-2.5.2 + make +} + +src_unpack() { + unpack linux-2.4.0-test6.tar.bz2 + cd ${S} +# unpack ${A5} + echo "Applying pre5 patch..." + gzip -dc ${DISTDIR}/test7-pre5.gz | patch -p1 + echo "Applying UDMA patch..." + gzip -dc ${DISTDIR}/ide.2.4.0-t6-5.0804.patch.gz | patch -p1 + echo "Applying reiserfs-patch..." + gzip -dc ${DISTDIR}/linux-2.4.0-test6-reiserfs-3.6.13-patch.gz | patch -p1 + cd ${S}/fs/reiserfs + cp dir.c dir.c.orig + sed -e "s:d_ino):d_ino ,DT_DIR):" dir.c.orig > dir.c + +# echo "Applying pppoe-patch..." +# unpack pppoed0.47.tgz +# patch -p1 < pppoed-0.47/kernel-patches/2214-pppox + + echo "Creating i2c-patch..." + unpack i2c-2.5.2.tar.gz + cd i2c-2.5.2 + mkpatch/mkpatch.pl . ${S} > ${S}/i2c-patch + cd ${S} + echo "Applying i2c-patch..." + patch -p1 < i2c-patch + + echo "Creating lm-sensors-patch..." + unpack lm_sensors-2.5.2.tar.gz + cd lm_sensors-2.5.2 + + mkpatch/mkpatch.pl . ${S} > ${S}/sensors.patch + cd ${S} + echo "Applying lm_sensors-patch..." + patch -p1 < sensors.patch + + echo "Prepare for compilation..." + cd ${S}/arch/i386 +# cp Makefile Makefile.orig +## sed -e "s/-DCPU=686/-DCPU=586/" -e "s/\-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586/${CFLAGS}/" Makefile.orig > Makefile + cd ${S} +# cp Makefile Makefile.orig +## sed -e 's:-O2:${CFLAGS}:g' Makefile.orig > Makefile + make include/linux/version.h + make symlinks + cp ${O}/files/${P}.config .config + cp ${O}/files/${P}.autoconf include/linux/autoconf.h + cp ${O}/files/gentoolinux_logo.h include/linux/linux_logo.h + + cd ${S}/lm_sensors-2.5.2 + + cp Makefile Makefile.orig + sed -e "s:^LINUX=.*:LINUX=${S}:" \ + -e "s/^COMPILE_KERNEL.*/COMPILE_KERNEL := 0/" \ + -e "s:^I2C_HEADERS.*:I2C_HEADERS=${S}/i2c-2.5.2/kernel:" \ + -e "s/^SMP/#SMP/" \ + -e "s/^#SMP := 0/SMP := 0/" \ + -e "s:^DESTDIR.*:DESTDIR \:= ${D}:" \ + -e "s:^PREFIX \:= .*:PREFIX \:= /usr:" \ + Makefile.orig > Makefile + +} + +src_install() { + dodir /usr/src/linux + dodir /usr/src/linux/include/linux + dodir /usr/src/linux/include/asm-i386 + cp -ax ${S}/include ${D}/usr/src/linux + dodir /usr/src/linux/Documentation + cp -ax ${S}/Documentation ${D}/usr/src/linux + cd ${S}/Documentation + find . -type f -exec gzip {} \; + dodir /usr/include + dosym /usr/src/linux/include/linux /usr/include/linux + dosym /usr/src/linux/include/asm-i386 /usr/include/asm + insinto / + cd ${S} + doins arch/i386/boot/bzImage + make INSTALL_MOD_PATH=${D} modules_install + #dosym /lib/modules/2.2.17pre13-RAID current + into / + cd ${S}/fs/reiserfs/utils/bin + dosbin mkreiserfs resize_reiserfs reiserfsck dumpreiserfs + cd .. + into /usr + doman fsck/reiserfsck.8 + doman mkreiserfs/mkreiserfs.8 + cp dumpreiserfs/README README.dumpreiserfs + cp README README.reiserfs + dodoc README.reiserfs README.dumpreiserfs + + cd ${S}/lm_sensors-2.5.2 + make install + prepman +} + + + + + + + + + + |