# Description: Linux # URL: http://www.kernel.org # Maintainer: Antonio SJ Musumeci, bile at landofbile dot com # Depends on: version=2.6.27.9 name=linux-${version} release=1 source=(http://www.kernel.org/pub/linux/kernel/v2.6/$name.tar.bz2) build() { cd $name if [ -e /usr/src/${name}.config ] then cp /usr/src/${name}.config ./.config elif [ -e /usr/src/linux/.config ] then cp /usr/src/linux/.config ./.config elif [ -e /boot/config ] then cp /boot/config ./.config elif [ -e /proc/config.gz ] then zcat /proc/config.gz > ./.config else echo "/boot/config and /proc/config.gz not found" CONFIG=def fi [ -z "$CONFIG" ] && CONFIG=old make ${CONFIG}config make all make INSTALL_MOD_PATH=$PKG modules_install # mkdir $PKG/boot # make INSTALL_PATH=$PKG/boot install install -m 644 -D arch/i386/boot/bzImage $PKG/boot/vmlinuz-$version install -m 644 System.map $PKG/boot/System.map-$version install -m 644 .config $PKG/boot/config-$version mkdir -p $PKG/usr/src make clean cd .. mv $name $PKG/usr/src/ cd $PKG/lib/modules/$version ln -sf /usr/src/$name build ln -sf /usr/src/$name source }