summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-02-21 07:31:33 +0000
committerAchim Gottinger <achim@gentoo.org>2001-02-21 07:31:33 +0000
commita9da636a151f52c84cb652702735cb42522bb5df (patch)
tree262c6f4dfe2570a78c72eb8c3bf40d3e6551f53c
parentadded docs (diff)
downloadhistorical-a9da636a151f52c84cb652702735cb42522bb5df.tar.gz
historical-a9da636a151f52c84cb652702735cb42522bb5df.tar.bz2
historical-a9da636a151f52c84cb652702735cb42522bb5df.zip
*** empty log message ***
-rw-r--r--sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.177
-rw-r--r--sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17-r17
-rw-r--r--sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.187
-rw-r--r--sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.19-r26
-rw-r--r--sys-kernel/linux-sources/linux-sources-2.4.1.19-r2.ebuild250
5 files changed, 277 insertions, 0 deletions
diff --git a/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17 b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17
new file mode 100644
index 000000000000..1a7ba65fd4fc
--- /dev/null
+++ b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17
@@ -0,0 +1,7 @@
+MD5 1caaa9c546f4a02a24f93d450fab9cf0 linux-2.4.1.tar.bz2
+MD5 704356d81b8e390043b3118610ff6b3c patch-2.4.1-ac17.bz2
+MD5 53740608812efa82532da2f980e6f974 lm_sensors-2.5.5.tar.gz
+MD5 f45a05097515a07afc87836c158834a1 jfs-0.1.5-patch.tar.gz
+MD5 eb43d5ccdb68f7af5bec2dde4fe0fdee alsa-driver-0.5.10a.tar.bz2
+MD5 64439cef292a0b0da2948e437ec0e8fb lvm_0.9.1_beta4.tar.gz
+MD5 643c69476b2d2303eb4e99f648e32f16 linux-2.4.0-reiserfs-3.6.25-nfs.diff
diff --git a/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17-r1 b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17-r1
new file mode 100644
index 000000000000..f1c415046819
--- /dev/null
+++ b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.17-r1
@@ -0,0 +1,7 @@
+MD5 1caaa9c546f4a02a24f93d450fab9cf0 linux-2.4.1.tar.bz2
+MD5 704356d81b8e390043b3118610ff6b3c patch-2.4.1-ac17.bz2
+MD5 53740608812efa82532da2f980e6f974 lm_sensors-2.5.5.tar.gz
+MD5 f45a05097515a07afc87836c158834a1 jfs-0.1.5-patch.tar.gz
+MD5 eb43d5ccdb68f7af5bec2dde4fe0fdee alsa-driver-0.5.10a.tar.bz2
+MD5 64439cef292a0b0da2948e437ec0e8fb lvm_0.9.1_beta4.tar.gz
+MD5 7e30da5b40c490c41fa6340fa2bd13a8 linux-2.4.2-p3-reiserfs-3.6.25-knfsd-6pr1.patch.bz2
diff --git a/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.18 b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.18
new file mode 100644
index 000000000000..c239af4294cb
--- /dev/null
+++ b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.18
@@ -0,0 +1,7 @@
+MD5 1caaa9c546f4a02a24f93d450fab9cf0 linux-2.4.1.tar.bz2
+MD5 57c22ef7beee4e4e2be7771f1319bef6 patch-2.4.1-ac18.bz2
+MD5 53740608812efa82532da2f980e6f974 lm_sensors-2.5.5.tar.gz
+MD5 f45a05097515a07afc87836c158834a1 jfs-0.1.5-patch.tar.gz
+MD5 eb43d5ccdb68f7af5bec2dde4fe0fdee alsa-driver-0.5.10a.tar.bz2
+MD5 64439cef292a0b0da2948e437ec0e8fb lvm_0.9.1_beta4.tar.gz
+MD5 7e30da5b40c490c41fa6340fa2bd13a8 linux-2.4.2-p3-reiserfs-3.6.25-knfsd-6pr1.patch.bz2
diff --git a/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.19-r2 b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.19-r2
new file mode 100644
index 000000000000..e8bd7d09f564
--- /dev/null
+++ b/sys-kernel/linux-sources/files/digest-linux-sources-2.4.1.19-r2
@@ -0,0 +1,6 @@
+MD5 1caaa9c546f4a02a24f93d450fab9cf0 linux-2.4.1.tar.bz2
+MD5 aa6b6646109bb006a3e1c117fd299f53 patch-2.4.1-ac19.bz2
+MD5 53740608812efa82532da2f980e6f974 lm_sensors-2.5.5.tar.gz
+MD5 f45a05097515a07afc87836c158834a1 jfs-0.1.5-patch.tar.gz
+MD5 a485ece59b10da2202fae7b78a542707 alsa-driver-0.5.10b.tar.bz2
+MD5 29083e6c2c3ff5cf8a5aca4b6b42a5a1 linux-2.4.2-pre4-reiserfs-20010220.patch.gz
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.1.19-r2.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.1.19-r2.ebuild
new file mode 100644
index 000000000000..489d4e6d532e
--- /dev/null
+++ b/sys-kernel/linux-sources/linux-sources-2.4.1.19-r2.ebuild
@@ -0,0 +1,250 @@
+# 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.19-r2.ebuild,v 1.1 2001/02/21 07:31:33 achim Exp $
+
+S=${WORKDIR}/linux
+#OKV=original kernel version, KV=patched kernel version
+OKV=2.4.1
+KV=2.4.1-ac19
+#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-nfsd 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"
+# 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_${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
+ try cp ${FILESDIR}/${KV}/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-${SENV}
+ try make
+
+ cd ${S}
+ 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}
+
+ try 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
+}
+
+
+
+
+
+
+
+