diff options
author | rafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4> | 2007-08-08 20:19:20 +0000 |
---|---|---|
committer | rafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4> | 2007-08-08 20:19:20 +0000 |
commit | c0f12610f7d24196e7d1313a5e4b99862d6455c2 (patch) | |
tree | 048e8dcb7892fc177872d5be92cb706a22ec2b15 /kernel/kernel-aletta/kernel-aletta.SlackBuild | |
parent | 8ff0e98e080d5b1338fd88064fc0e5f999d58a19 (diff) | |
download | slackbuilds-c0f12610f7d24196e7d1313a5e4b99862d6455c2.tar.gz slackbuilds-c0f12610f7d24196e7d1313a5e4b99862d6455c2.tar.bz2 |
moved kernel to the correct location
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1317 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'kernel/kernel-aletta/kernel-aletta.SlackBuild')
-rwxr-xr-x | kernel/kernel-aletta/kernel-aletta.SlackBuild | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/kernel/kernel-aletta/kernel-aletta.SlackBuild b/kernel/kernel-aletta/kernel-aletta.SlackBuild deleted file mode 100755 index 0419a14a..00000000 --- a/kernel/kernel-aletta/kernel-aletta.SlackBuild +++ /dev/null @@ -1,136 +0,0 @@ -#!/bin/bash -# -# kernel-aletta.SlackBuild is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or any later version. -# -# kernel-aletta.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA -# -# slackbuild for kernel-aletta -# by rhatto at riseup.net -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -PACKAGE="kernel-aletta" -KERNEL_VERSION="2.6.19" -EXTRAVERSION="2" -ARCH="i386" -BUILD="1rha" -PATCHSET="vs2.2.0-rc7" -TMP=${TMP:=/tmp} -SRC_DIR=${SRC:=$CWD} -REPOS=${REPOS:=$TMP} - -if [ ! -z "$EXTRAVERSION" ]; then - KERNEL_VERSION=$KERNEL_VERSION.$EXTRAVERSION -fi - -PATCH_VERSION="$KERNEL_VERSION-$PATCHSET" - -RTOOL="wget" -KERNEL="linux-$KERNEL_VERSION.tar.bz2" -PATCH="patch-$PATCH_VERSION.diff" -KERNEL_URL="http://www.kernel.org/pub/linux/kernel/v2.6/$KERNEL" -PATCH_URL="http://vserver.13thfloor.at/Experimental/$PATCH" -SRC_DIR="$SRC_DIR/kernel" - -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ]; then - - if [ ! -f "$SRC_DIR/$KERNEL" ]; then - rm -f $SRC_DIR/$KERNEL.sign - wget "$KERNEL_URL" -O "$SRC_DIR/$KERNEL" - wget "$KERNEL_URL.sign" -O "$SRC_DIR/$KERNEL.sign" - fi - - if [ ! -f "$SRC_DIR/$PATCH" ]; then - wget "$PATCH_URL" -O "$SRC_DIR/$PATCH" - fi - -fi - -TMP="$TMP/$PACKAGE" -mkdir -p $TMP -cd $TMP - -rm -rf linux-$KERNEL_VERSION* -tar jxvf $SRC_DIR/$KERNEL - -if [ ! -z "$PATCHSET" ]; then - mv linux-$KERNEL_VERSION linux-$KERNEL_VERSION-$PATCHSET - KERNEL_VERSION="$KERNEL_VERSION-$PATCHSET" -fi - -cp $CWD/config-$KERNEL_VERSION linux-$KERNEL_VERSION/.config -cd linux-$KERNEL_VERSION - -patch -p1 < $SRC_DIR/$PATCH - -if [ ! -z "$EXTRAVERSION" ] && [ ! -z "$PATCHSET" ]; then - sed -e "s/^EXTRAVERSION =*$/EXTRAVERSION = \.$EXTRAVERSION-$PATCHSET/" Makefile > Makefile.tmp -elif [ ! -z "$PATCHSET" ]; then - sed -e "s/^EXTRAVERSION =*$/EXTRAVERSION = -$PATCHSET/" Makefile > Makefile.tmp -fi -mv Makefile.tmp Makefile - -make oldconfig -time make - -# make the package - -PKG="$TMP/package-$PACKAGE" - -mkdir -p $PKG/{install,boot,usr/doc} - -cp System.map $PKG/boot/System.map-$KERNEL_VERSION -cp .config $PKG/boot/config-$KERNEL_VERSION -cp arch/$ARCH/boot/bzImage $PKG/boot/vmlinuz-$KERNEL_VERSION - -cat << EOF > $PKG/install/slack-desc -kernel-aletta: kernel-aletta (kernel for aletta server station) -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -kernel-aletta: -EOF - -VERSION="`echo $KERNEL_VERSION | sed -e 's/-/_/g'`" - -# docs -mkdir -p $PKG/usr/doc/$PACKAGE-$VERSION -for file in COPYING CREDITS MAINTAINERS README REPORTING-BUGS; do - cp $file* $PKG/usr/doc/$PACKAGE-$VERSION/ -done - -cd $PKG - -( cd boot && ln -s vmlinuz-$KERNEL_VERSION vmlinuz ) -( cd boot && ln -s config-$KERNEL_VERSION config ) -( cd boot && ln -s System.map-$KERNEL_VERSION System.map) - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - |