IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/tmp:/mnt:/usr/src STRIPLIB=n STRIPBIN=n VERSION=2.6.7 VERSIONP=2.6.7 PATCH=12 ROGNAME="Linux kernel $VERSION source" DESC="\ kernel-source (Linux kernel source) \n\ \n\ Source code for Linus Torvalds' Linux kernel. \n\ \n\ This is the complete source code for the Linux kernel, along with \n\ IBM's patches for S/390 and zSeries." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.us.kernel.org/pub/linux/kernel/v2.6 PKGNAME=kernel-source-$VERSION-s390-$BUILD TAG=REC compile() { mkdir -p usr/src cd usr/src echo "Unpacking the tarball. Please wait..." tar -xyf $CWD/linux-$VERSION.tar.bz2 chown -R root.root linux-$VERSION find . -perm 640 | xargs chmod 644 ( cd linux-$VERSION echo ----- linux-$VERSION-s390-$PATCH-april2004.diff zcat $CWD/linux-$VERSION-s390-$PATCH-april2004.diff.gz | patch -p1 sleep 5 ) ## setup source tree ( cd linux-$VERSION make mrproper cp $CWD/s390.default.$VERSION.config .config make oldconfig make clean make -j2 image make -j2 modules ) # Create the kernel-modules package ( cd linux-$VERSION rm -rf $TMP/kernel-modules make modules_install INSTALL_MOD_PATH=$TMP/kernel-modules ) cd $TMP # Create the generic kernel package rm -rf kernel-generic mkdir -p kernel-generic/boot cp -p usr/src/linux-$VERSION/arch/s390/boot/image kernel-generic/boot/image-generic-$VERSION cp -p usr/src/linux-$VERSION/System.map kernel-generic/boot/System.map-generic-$VERSION cp -p $CWD/s390.default.$VERSION.config kernel-generic/boot/config-generic-$VERSION } install() { cd $TMP # Clean up the source tree ( cd usr/src/linux-$VERSION make clean rm .config.old find . -name "*~" | xargs rm find . -name ".depend" | xargs rm find . -name ".hdepend" | xargs rm find . -name ".??*flags" | xargs rm ) mkdir /package-kernel-source mv usr /package-kernel-source } special() { cd $PKG mv package-kernel-source/* ./ rmdir package-kernel-source cd $CTL cat $CWD/../../../source/k/kernel/slack-desc > slack-desc sed -e 's%package-kernel-source/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new cat >> doinst.sh << EOF ( cd usr/src ; rm -rf linux ) ( cd usr/src ; ln -sf linux-$VERSION linux ) EOF } subpacks() { repack kernel-modules repack kernel-headers repack kernel-generic }