diff options
Diffstat (limited to 'sys-kernel/linux-sources/linux-sources-2.4.6.ebuild')
-rw-r--r-- | sys-kernel/linux-sources/linux-sources-2.4.6.ebuild | 154 |
1 files changed, 106 insertions, 48 deletions
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.6.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.6.ebuild index 7fa2f71e54d8..8b37ca839dd0 100644 --- a/sys-kernel/linux-sources/linux-sources-2.4.6.ebuild +++ b/sys-kernel/linux-sources/linux-sources-2.4.6.ebuild @@ -12,8 +12,10 @@ S=${WORKDIR}/linux-${KV} LVMV=0.9.1_beta7 LVMVARC=0.9.1_beta7 + +# alsa is coming out of the kernel # Versions of alsa -AV=0.5.11 +# AV=0.5.11 # Versionos of jfs JFSV=1.0.0 @@ -40,7 +42,6 @@ PCV="3.1.27" # so we need no sources if [ ! "${PN}" = "linux-extras" ] ; then SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 - ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2 http://prdownloads.sourceforge.net/pcmcia-cs/pcmcia-cs-${PCV}.tar.gz http://www.zip.com.au/~akpm/ext3-2.4-0.9.1-246.gz http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-1.0.0-patch.tar.gz @@ -49,29 +50,29 @@ fi # http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz # http://www.netroedge.com/~lm78/archive/i2c-${SENV}.tar.gz # ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz +# ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2 if [ "$PN" != "linux-extras" ] then PROVIDE="virtual/kernel" fi -if [ "$PN" != "linux-sources" ] -then - if [ "`use alsa`" ] - then - PROVIDE="$PROVIDE virtual/alsa" - fi -fi +#if [ "$PN" != "linux-sources" ] +#then +# if [ "`use alsa`" ] +# then +# PROVIDE="$PROVIDE virtual/alsa" +# fi +#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 http://pcmcia-cs.sourceforge.net" - -if [ ! $PN = "linux-extras" ] ; then +#these deps are messed up; fix 'em and add ncurses (required my mosix compile, menuconfig) +if [ $PN != "linux-extras" ] ; then RDEPEND=">=sys-apps/e2fsprogs-1.22 >=sys-apps/util-linux-2.11f >=sys-apps/reiserfs-utils-3.6.25-r1" DEPEND=">=sys-apps/modutils-2.4.2 sys-devel/perl" else @@ -148,13 +149,13 @@ src_unpack() { try patch -p0 < ${FILESDIR}/${KV}/lvm.c.diff fi - if [ "`use alsa`" ] - then - #unpack alsa drivers - echo "Unpacking ALSA drivers..." - cd ${S}/extras - unpack alsa-driver-${AV}.tar.bz2 - fi +# if [ "`use alsa`" ] +# then +# #unpack alsa drivers +# echo "Unpacking ALSA drivers..." +# cd ${S}/extras +# unpack alsa-driver-${AV}.tar.bz2 +# fi # if [ "`use lm_sensors`" ] # then @@ -286,8 +287,6 @@ src_compile() { # try make # fi - cd ${S} - # Works, just commented out because JFS isn't ready to be used by non-developers # if [ "`use jfs`" ] # then @@ -308,18 +307,32 @@ src_compile() { #LEX=\""flex -l"\" modules fi - # This must come after the kernel compilation in linux - if [ "`use alsa`" ] +#This is moving into its own package RSN +# This must come after the kernel compilation in linux +# if [ "`use alsa`" ] +# then +# cd ${KS}/extras/alsa-driver-${AV} +# # This is needed for linux-extras +# if [ -f "Makefile.conf" ] +# then +# try make clean +# fi +# try ./configure --with-kernel=\"${KS}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all +# try make +# fi + + if [ "`use mosix`" ] then - cd ${KS}/extras/alsa-driver-${AV} - # This is needed for linux-extras - if [ -f "Makefile.conf" ] - then - try make clean - fi - try ./configure --with-kernel=\"${KS}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all - try make + cd ${KS}/extras/MOSIX-1.0.5 + local x + for x in lib/moslib sbin/setpe sbin/tune bin/mosrun usr.bin/mon usr.bin/migrate usr.bin/mosctl + do + cd $x + make + cd ../.. + done fi + if [ "`use pcmcia-cs`" ] then cd ${KS}/extras/pcmcia-cs-${PCV} @@ -346,16 +359,16 @@ src_install() { KS=${S} fi # We install the alsa headers in all three packages - if [ "`use alsa`" ] - then - #i get alsa includes - cd ${KS}/extras/alsa-driver-${AV} - insinto /usr/src/linux-${KV}/include/linux - cd include - doins asound.h asoundid.h asequencer.h ainstr_*.h - fi +# if [ "`use alsa`" ] +# then +# #i get alsa includes +# cd ${KS}/extras/alsa-driver-${AV} +# insinto /usr/src/linux-${KV}/include/linux +# cd include +# doins asound.h asoundid.h asequencer.h ainstr_*.h +# fi - if [ ! "${PN}" = "linux-sources" ] + if [ ! "${PN}" = "linux-sources" ] then if [ $PN = "linux" ] then @@ -365,6 +378,51 @@ src_install() { fi dodir /usr/lib + if [ "`use mosix`" ] + then + cd ${KS}/extras/MOSIX-1.0.5/lib/moslib + dodir /usr/lib /usr/include + dolib.a libmos.a + dolib.so libmos.so.0 + ln -s libmos.so.0 ${D}/usr/lib/libmos.so + insinto /usr/include + doins *.h + + cd ../../sbin/setpe + doman setpe.1 + into / + dosbin setpe + + cd ../tune + dosbin tune mtune tunepass tune_kernel prep_tune + doman tune.1 + + cd ../../bin/mosrun + dobin mosrun nomig runhome runon cpujob iojob nodecay slowdecay fastdecay + doman mosrun.1 + local x + for x in nomig runhome runon cpujob iojob nodecay slowdecay fastdecay + do + ln -s mosrun.1.gz ${D}/usr/share/man/man1/${x}.1.gz + done + + cd ../../usr.bin/mon + into /usr + dobin mon + doman mon.1 + + cd ../migrate + dobin migrate + doman migrate.1 + + cd ../mosctl + dobin mosctl + doman mosctl.1 + + exeinto /etc/rc.d/init.d + newexe ${FILESDIR}/${KV}/mosix.init mosix + fi + if [ "`use lvm`" ] then cd ${KS}/extras/LVM/${LVMV}/tools @@ -414,14 +472,14 @@ src_install() { ln -sf /usr/src/linux-${KV} build fi - if [ "`use alsa`" ] - then - #install ALSA modules - cd ${KS}/extras/alsa-driver-${AV} - dodoc INSTALL FAQ - dodir /lib/modules/${KV}/misc - cp modules/*.o ${D}/lib/modules/${KV}/misc - fi +# if [ "`use alsa`" ] +# then +# #install ALSA modules +# cd ${KS}/extras/alsa-driver-${AV} +# dodoc INSTALL FAQ +# dodir /lib/modules/${KV}/misc +# cp modules/*.o ${D}/lib/modules/${KV}/misc +# fi if [ "`use pcmcia-cs`" ] then #install PCMCIA modules and utilities |